Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#55)
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 129ac81 commit 5a43fb2
Show file tree
Hide file tree
Showing 2 changed files with 243 additions and 231 deletions.
12 changes: 6 additions & 6 deletions packages/google-cloud-ids/src/v1/i_d_s_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export class IDSClient {
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.getEndpoint(request, options, callback);
Expand Down Expand Up @@ -627,7 +627,7 @@ export class IDSClient {
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.createEndpoint(request, options, callback);
Expand Down Expand Up @@ -779,7 +779,7 @@ export class IDSClient {
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.deleteEndpoint(request, options, callback);
Expand Down Expand Up @@ -915,7 +915,7 @@ export class IDSClient {
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.listEndpoints(request, options, callback);
Expand Down Expand Up @@ -964,7 +964,7 @@ export class IDSClient {
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['listEndpoints'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1022,7 +1022,7 @@ export class IDSClient {
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['listEndpoints'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 5a43fb2

Please sign in to comment.