Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#296)
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 19798e2 commit b3ece57
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class DashboardsServiceClient {
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.createDashboard(request, options, callback);
Expand Down Expand Up @@ -537,7 +537,7 @@ export class DashboardsServiceClient {
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.getDashboard(request, options, callback);
Expand Down Expand Up @@ -634,7 +634,7 @@ export class DashboardsServiceClient {
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.deleteDashboard(request, options, callback);
Expand Down Expand Up @@ -732,7 +732,7 @@ export class DashboardsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'dashboard.name': request.dashboard!.name || '',
'dashboard.name': request.dashboard!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateDashboard(request, options, callback);
Expand Down Expand Up @@ -840,7 +840,7 @@ export class DashboardsServiceClient {
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.listDashboards(request, options, callback);
Expand Down Expand Up @@ -883,7 +883,7 @@ export class DashboardsServiceClient {
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['listDashboards'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -935,7 +935,7 @@ export class DashboardsServiceClient {
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['listDashboards'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit b3ece57

Please sign in to comment.