Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#384)
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: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 86da005 commit 6c1cb6b
Show file tree
Hide file tree
Showing 12 changed files with 4,302 additions and 4,186 deletions.
72 changes: 36 additions & 36 deletions src/v1/data_catalog_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class DataCatalogClient {
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.createEntryGroup(request, options, callback);
Expand Down Expand Up @@ -615,7 +615,7 @@ export class DataCatalogClient {
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.getEntryGroup(request, options, callback);
Expand Down Expand Up @@ -717,7 +717,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'entry_group.name': request.entryGroup!.name || '',
'entry_group.name': request.entryGroup!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateEntryGroup(request, options, callback);
Expand Down Expand Up @@ -815,7 +815,7 @@ export class DataCatalogClient {
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.deleteEntryGroup(request, options, callback);
Expand Down Expand Up @@ -921,7 +921,7 @@ export class DataCatalogClient {
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.createEntry(request, options, callback);
Expand Down Expand Up @@ -1041,7 +1041,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'entry.name': request.entry!.name || '',
'entry.name': request.entry!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateEntry(request, options, callback);
Expand Down Expand Up @@ -1135,7 +1135,7 @@ export class DataCatalogClient {
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.deleteEntry(request, options, callback);
Expand Down Expand Up @@ -1220,7 +1220,7 @@ export class DataCatalogClient {
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.getEntry(request, options, callback);
Expand Down Expand Up @@ -1443,7 +1443,7 @@ export class DataCatalogClient {
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.modifyEntryOverview(request, options, callback);
Expand Down Expand Up @@ -1546,7 +1546,7 @@ export class DataCatalogClient {
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.modifyEntryContacts(request, options, callback);
Expand Down Expand Up @@ -1651,7 +1651,7 @@ export class DataCatalogClient {
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.createTagTemplate(request, options, callback);
Expand Down Expand Up @@ -1742,7 +1742,7 @@ export class DataCatalogClient {
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.getTagTemplate(request, options, callback);
Expand Down Expand Up @@ -1851,7 +1851,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'tag_template.name': request.tagTemplate!.name || '',
'tag_template.name': request.tagTemplate!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateTagTemplate(request, options, callback);
Expand Down Expand Up @@ -1950,7 +1950,7 @@ export class DataCatalogClient {
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.deleteTagTemplate(request, options, callback);
Expand Down Expand Up @@ -2063,7 +2063,7 @@ export class DataCatalogClient {
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.createTagTemplateField(
Expand Down Expand Up @@ -2190,7 +2190,7 @@ export class DataCatalogClient {
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.updateTagTemplateField(
Expand Down Expand Up @@ -2297,7 +2297,7 @@ export class DataCatalogClient {
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.renameTagTemplateField(
Expand Down Expand Up @@ -2402,7 +2402,7 @@ export class DataCatalogClient {
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.renameTagTemplateFieldEnumValue(
Expand Down Expand Up @@ -2512,7 +2512,7 @@ export class DataCatalogClient {
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.deleteTagTemplateField(
Expand Down Expand Up @@ -2620,7 +2620,7 @@ export class DataCatalogClient {
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.createTag(request, options, callback);
Expand Down Expand Up @@ -2712,7 +2712,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'tag.name': request.tag!.name || '',
'tag.name': request.tag!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateTag(request, options, callback);
Expand Down Expand Up @@ -2797,7 +2797,7 @@ export class DataCatalogClient {
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.deleteTag(request, options, callback);
Expand Down Expand Up @@ -2883,7 +2883,7 @@ export class DataCatalogClient {
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.starEntry(request, options, callback);
Expand Down Expand Up @@ -2969,7 +2969,7 @@ export class DataCatalogClient {
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.unstarEntry(request, options, callback);
Expand Down Expand Up @@ -3080,7 +3080,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
resource: request.resource || '',
resource: request.resource ?? '',
});
this.initialize();
return this.innerApiCalls.setIamPolicy(request, options, callback);
Expand Down Expand Up @@ -3187,7 +3187,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
resource: request.resource || '',
resource: request.resource ?? '',
});
this.initialize();
return this.innerApiCalls.getIamPolicy(request, options, callback);
Expand Down Expand Up @@ -3289,7 +3289,7 @@ export class DataCatalogClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
resource: request.resource || '',
resource: request.resource ?? '',
});
this.initialize();
return this.innerApiCalls.testIamPermissions(request, options, callback);
Expand Down Expand Up @@ -3699,7 +3699,7 @@ export class DataCatalogClient {
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.listEntryGroups(request, options, callback);
Expand Down Expand Up @@ -3743,7 +3743,7 @@ export class DataCatalogClient {
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['listEntryGroups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3796,7 +3796,7 @@ export class DataCatalogClient {
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['listEntryGroups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3914,7 +3914,7 @@ export class DataCatalogClient {
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.listEntries(request, options, callback);
Expand Down Expand Up @@ -3962,7 +3962,7 @@ export class DataCatalogClient {
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['listEntries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4019,7 +4019,7 @@ export class DataCatalogClient {
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['listEntries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4124,7 +4124,7 @@ export class DataCatalogClient {
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.listTags(request, options, callback);
Expand Down Expand Up @@ -4167,7 +4167,7 @@ export class DataCatalogClient {
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['listTags'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4219,7 +4219,7 @@ export class DataCatalogClient {
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['listTags'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 6c1cb6b

Please sign in to comment.