Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#154)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474338479

Source-Link: googleapis/googleapis@d5d35e0

Source-Link: googleapis/googleapis-gen@efcd3f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 4cfb099 commit fef75b3
Show file tree
Hide file tree
Showing 6 changed files with 2,646 additions and 2,616 deletions.
42 changes: 21 additions & 21 deletions packages/google-cloud-metastore/src/v1/dataproc_metastore_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getService(request, options, callback);
Expand Down Expand Up @@ -724,7 +724,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getMetadataImport(request, options, callback);
Expand Down Expand Up @@ -810,7 +810,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getBackup(request, options, callback);
Expand Down Expand Up @@ -941,7 +941,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createService(request, options, callback);
Expand Down Expand Up @@ -1101,7 +1101,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'service.name': request.service!.name || '',
'service.name': request.service!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateService(request, options, callback);
Expand Down Expand Up @@ -1255,7 +1255,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteService(request, options, callback);
Expand Down Expand Up @@ -1420,7 +1420,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createMetadataImport(request, options, callback);
Expand Down Expand Up @@ -1581,7 +1581,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'metadata_import.name': request.metadataImport!.name || '',
'metadata_import.name': request.metadataImport!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateMetadataImport(request, options, callback);
Expand Down Expand Up @@ -1741,7 +1741,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service: request.service || '',
service: request.service ?? '',
});
this.initialize();
return this.innerApiCalls.exportMetadata(request, options, callback);
Expand Down Expand Up @@ -1902,7 +1902,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service: request.service || '',
service: request.service ?? '',
});
this.initialize();
return this.innerApiCalls.restoreService(request, options, callback);
Expand Down Expand Up @@ -2066,7 +2066,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createBackup(request, options, callback);
Expand Down Expand Up @@ -2220,7 +2220,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteBackup(request, options, callback);
Expand Down Expand Up @@ -2365,7 +2365,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listServices(request, options, callback);
Expand Down Expand Up @@ -2421,7 +2421,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2486,7 +2486,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2608,7 +2608,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listMetadataImports(request, options, callback);
Expand Down Expand Up @@ -2664,7 +2664,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listMetadataImports'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2729,7 +2729,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listMetadataImports'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2845,7 +2845,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listBackups(request, options, callback);
Expand Down Expand Up @@ -2901,7 +2901,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listBackups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2966,7 +2966,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listBackups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getService(request, options, callback);
Expand Down Expand Up @@ -768,7 +768,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getMetadataImport(request, options, callback);
Expand Down Expand Up @@ -862,7 +862,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getBackup(request, options, callback);
Expand Down Expand Up @@ -993,7 +993,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createService(request, options, callback);
Expand Down Expand Up @@ -1153,7 +1153,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'service.name': request.service!.name || '',
'service.name': request.service!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateService(request, options, callback);
Expand Down Expand Up @@ -1307,7 +1307,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteService(request, options, callback);
Expand Down Expand Up @@ -1472,7 +1472,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createMetadataImport(request, options, callback);
Expand Down Expand Up @@ -1633,7 +1633,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'metadata_import.name': request.metadataImport!.name || '',
'metadata_import.name': request.metadataImport!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateMetadataImport(request, options, callback);
Expand Down Expand Up @@ -1793,7 +1793,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service: request.service || '',
service: request.service ?? '',
});
this.initialize();
return this.innerApiCalls.exportMetadata(request, options, callback);
Expand Down Expand Up @@ -1954,7 +1954,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service: request.service || '',
service: request.service ?? '',
});
this.initialize();
return this.innerApiCalls.restoreService(request, options, callback);
Expand Down Expand Up @@ -2118,7 +2118,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createBackup(request, options, callback);
Expand Down Expand Up @@ -2272,7 +2272,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteBackup(request, options, callback);
Expand Down Expand Up @@ -2423,7 +2423,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listServices(request, options, callback);
Expand Down Expand Up @@ -2479,7 +2479,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2544,7 +2544,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2666,7 +2666,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listMetadataImports(request, options, callback);
Expand Down Expand Up @@ -2722,7 +2722,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listMetadataImports'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2787,7 +2787,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listMetadataImports'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2909,7 +2909,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listBackups(request, options, callback);
Expand Down Expand Up @@ -2965,7 +2965,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listBackups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3030,7 +3030,7 @@ export class DataprocMetastoreClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listBackups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit fef75b3

Please sign in to comment.