Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#180)
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 44aee3b commit fbb4ebd
Show file tree
Hide file tree
Showing 10 changed files with 911 additions and 822 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export class BinauthzManagementServiceV1Client {
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.getPolicy(request, options, callback);
Expand Down Expand Up @@ -544,7 +544,7 @@ export class BinauthzManagementServiceV1Client {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'policy.name': request.policy!.name || '',
'policy.name': request.policy!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updatePolicy(request, options, callback);
Expand Down Expand Up @@ -650,7 +650,7 @@ export class BinauthzManagementServiceV1Client {
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.createAttestor(request, options, callback);
Expand Down Expand Up @@ -749,7 +749,7 @@ export class BinauthzManagementServiceV1Client {
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.getAttestor(request, options, callback);
Expand Down Expand Up @@ -849,7 +849,7 @@ export class BinauthzManagementServiceV1Client {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'attestor.name': request.attestor!.name || '',
'attestor.name': request.attestor!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateAttestor(request, options, callback);
Expand Down Expand Up @@ -948,7 +948,7 @@ export class BinauthzManagementServiceV1Client {
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.deleteAttestor(request, options, callback);
Expand Down Expand Up @@ -1052,7 +1052,7 @@ export class BinauthzManagementServiceV1Client {
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.listAttestors(request, options, callback);
Expand Down Expand Up @@ -1094,7 +1094,7 @@ export class BinauthzManagementServiceV1Client {
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['listAttestors'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1145,7 +1145,7 @@ export class BinauthzManagementServiceV1Client {
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['listAttestors'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export class SystemPolicyV1Client {
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.getSystemPolicy(request, options, callback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ export class ValidationHelperV1Client {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
attestor: request.attestor || '',
attestor: request.attestor ?? '',
});
this.initialize();
return this.innerApiCalls.validateAttestationOccurrence(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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.getPolicy(request, options, callback);
Expand Down Expand Up @@ -550,7 +550,7 @@ export class BinauthzManagementServiceV1Beta1Client {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'policy.name': request.policy!.name || '',
'policy.name': request.policy!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updatePolicy(request, options, callback);
Expand Down Expand Up @@ -656,7 +656,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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.createAttestor(request, options, callback);
Expand Down Expand Up @@ -755,7 +755,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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.getAttestor(request, options, callback);
Expand Down Expand Up @@ -855,7 +855,7 @@ export class BinauthzManagementServiceV1Beta1Client {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'attestor.name': request.attestor!.name || '',
'attestor.name': request.attestor!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateAttestor(request, options, callback);
Expand Down Expand Up @@ -954,7 +954,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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.deleteAttestor(request, options, callback);
Expand Down Expand Up @@ -1058,7 +1058,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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.listAttestors(request, options, callback);
Expand Down Expand Up @@ -1100,7 +1100,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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['listAttestors'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1151,7 +1151,7 @@ export class BinauthzManagementServiceV1Beta1Client {
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['listAttestors'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export class SystemPolicyV1Beta1Client {
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.getSystemPolicy(request, options, callback);
Expand Down
Loading

0 comments on commit fbb4ebd

Please sign in to comment.