Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#153)
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 6469419 commit c6ac0fc
Show file tree
Hide file tree
Showing 4 changed files with 1,110 additions and 1,160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class HubServiceClient {
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.getHub(request, options, callback);
Expand Down Expand Up @@ -695,7 +695,7 @@ export class HubServiceClient {
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.getSpoke(request, options, callback);
Expand Down Expand Up @@ -818,7 +818,7 @@ export class HubServiceClient {
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.createHub(request, options, callback);
Expand Down Expand Up @@ -977,7 +977,7 @@ export class HubServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'hub.name': request.hub!.name || '',
'hub.name': request.hub!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateHub(request, options, callback);
Expand Down Expand Up @@ -1130,7 +1130,7 @@ export class HubServiceClient {
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.deleteHub(request, options, callback);
Expand Down Expand Up @@ -1287,7 +1287,7 @@ export class HubServiceClient {
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.createSpoke(request, options, callback);
Expand Down Expand Up @@ -1446,7 +1446,7 @@ export class HubServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'spoke.name': request.spoke!.name || '',
'spoke.name': request.spoke!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateSpoke(request, options, callback);
Expand Down Expand Up @@ -1599,7 +1599,7 @@ export class HubServiceClient {
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.deleteSpoke(request, options, callback);
Expand Down Expand Up @@ -1736,7 +1736,7 @@ export class HubServiceClient {
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.listHubs(request, options, callback);
Expand Down Expand Up @@ -1778,7 +1778,7 @@ export class HubServiceClient {
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['listHubs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1829,7 +1829,7 @@ export class HubServiceClient {
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['listHubs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1937,7 +1937,7 @@ export class HubServiceClient {
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.listSpokes(request, options, callback);
Expand Down Expand Up @@ -1979,7 +1979,7 @@ export class HubServiceClient {
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['listSpokes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2030,7 +2030,7 @@ export class HubServiceClient {
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['listSpokes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export class HubServiceClient {
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.getHub(request, options, callback);
Expand Down Expand Up @@ -695,7 +695,7 @@ export class HubServiceClient {
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.getSpoke(request, options, callback);
Expand Down Expand Up @@ -817,7 +817,7 @@ export class HubServiceClient {
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.createHub(request, options, callback);
Expand Down Expand Up @@ -975,7 +975,7 @@ export class HubServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'hub.name': request.hub!.name || '',
'hub.name': request.hub!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateHub(request, options, callback);
Expand Down Expand Up @@ -1127,7 +1127,7 @@ export class HubServiceClient {
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.deleteHub(request, options, callback);
Expand Down Expand Up @@ -1283,7 +1283,7 @@ export class HubServiceClient {
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.createSpoke(request, options, callback);
Expand Down Expand Up @@ -1441,7 +1441,7 @@ export class HubServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'spoke.name': request.spoke!.name || '',
'spoke.name': request.spoke!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateSpoke(request, options, callback);
Expand Down Expand Up @@ -1593,7 +1593,7 @@ export class HubServiceClient {
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.deleteSpoke(request, options, callback);
Expand Down Expand Up @@ -1730,7 +1730,7 @@ export class HubServiceClient {
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.listHubs(request, options, callback);
Expand Down Expand Up @@ -1772,7 +1772,7 @@ export class HubServiceClient {
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['listHubs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1823,7 +1823,7 @@ export class HubServiceClient {
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['listHubs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1931,7 +1931,7 @@ export class HubServiceClient {
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.listSpokes(request, options, callback);
Expand Down Expand Up @@ -1973,7 +1973,7 @@ export class HubServiceClient {
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['listSpokes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2024,7 +2024,7 @@ export class HubServiceClient {
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['listSpokes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit c6ac0fc

Please sign in to comment.