Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#111)
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 c8de428 commit 07c74bc
Show file tree
Hide file tree
Showing 2 changed files with 407 additions and 370 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class EssentialContactsServiceClient {
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.createContact(request, options, callback);
Expand Down Expand Up @@ -547,7 +547,7 @@ export class EssentialContactsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'contact.name': request.contact!.name || '',
'contact.name': request.contact!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateContact(request, options, callback);
Expand Down Expand Up @@ -641,7 +641,7 @@ export class EssentialContactsServiceClient {
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.getContact(request, options, callback);
Expand Down Expand Up @@ -741,7 +741,7 @@ export class EssentialContactsServiceClient {
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.deleteContact(request, options, callback);
Expand Down Expand Up @@ -851,7 +851,7 @@ export class EssentialContactsServiceClient {
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.sendTestMessage(request, options, callback);
Expand Down Expand Up @@ -958,7 +958,7 @@ export class EssentialContactsServiceClient {
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.listContacts(request, options, callback);
Expand Down Expand Up @@ -1004,7 +1004,7 @@ export class EssentialContactsServiceClient {
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['listContacts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1059,7 +1059,7 @@ export class EssentialContactsServiceClient {
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['listContacts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1177,7 +1177,7 @@ export class EssentialContactsServiceClient {
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.computeContacts(request, options, callback);
Expand Down Expand Up @@ -1227,7 +1227,7 @@ export class EssentialContactsServiceClient {
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['computeContacts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1286,7 +1286,7 @@ export class EssentialContactsServiceClient {
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['computeContacts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 07c74bc

Please sign in to comment.