Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#326)
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 b139ac7 commit 1406f95
Show file tree
Hide file tree
Showing 4 changed files with 554 additions and 506 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export class BudgetServiceClient {
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.createBudget(request, options, callback);
Expand Down Expand Up @@ -530,7 +530,7 @@ export class BudgetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'budget.name': request.budget!.name || '',
'budget.name': request.budget!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateBudget(request, options, callback);
Expand Down Expand Up @@ -627,7 +627,7 @@ export class BudgetServiceClient {
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.getBudget(request, options, callback);
Expand Down Expand Up @@ -719,7 +719,7 @@ export class BudgetServiceClient {
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.deleteBudget(request, options, callback);
Expand Down Expand Up @@ -827,7 +827,7 @@ export class BudgetServiceClient {
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.listBudgets(request, options, callback);
Expand Down Expand Up @@ -869,7 +869,7 @@ export class BudgetServiceClient {
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['listBudgets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -920,7 +920,7 @@ export class BudgetServiceClient {
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['listBudgets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class BudgetServiceClient {
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.createBudget(request, options, callback);
Expand Down Expand Up @@ -543,7 +543,7 @@ export class BudgetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'budget.name': request.budget!.name || '',
'budget.name': request.budget!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateBudget(request, options, callback);
Expand Down Expand Up @@ -640,7 +640,7 @@ export class BudgetServiceClient {
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.getBudget(request, options, callback);
Expand Down Expand Up @@ -738,7 +738,7 @@ export class BudgetServiceClient {
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.deleteBudget(request, options, callback);
Expand Down Expand Up @@ -846,7 +846,7 @@ export class BudgetServiceClient {
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.listBudgets(request, options, callback);
Expand Down Expand Up @@ -888,7 +888,7 @@ export class BudgetServiceClient {
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['listBudgets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -939,7 +939,7 @@ export class BudgetServiceClient {
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['listBudgets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 1406f95

Please sign in to comment.