Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#408)
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 5eb2dac commit 88fc998
Show file tree
Hide file tree
Showing 4 changed files with 789 additions and 708 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ export class RecaptchaEnterpriseServiceClient {
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.createAssessment(request, options, callback);
Expand Down Expand Up @@ -576,7 +576,7 @@ export class RecaptchaEnterpriseServiceClient {
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.annotateAssessment(request, options, callback);
Expand Down Expand Up @@ -670,7 +670,7 @@ export class RecaptchaEnterpriseServiceClient {
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.createKey(request, options, callback);
Expand Down Expand Up @@ -762,7 +762,7 @@ export class RecaptchaEnterpriseServiceClient {
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.getKey(request, options, callback);
Expand Down Expand Up @@ -856,7 +856,7 @@ export class RecaptchaEnterpriseServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'key.name': request.key!.name || '',
'key.name': request.key!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateKey(request, options, callback);
Expand Down Expand Up @@ -948,7 +948,7 @@ export class RecaptchaEnterpriseServiceClient {
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.deleteKey(request, options, callback);
Expand Down Expand Up @@ -1045,7 +1045,7 @@ export class RecaptchaEnterpriseServiceClient {
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.migrateKey(request, options, callback);
Expand Down Expand Up @@ -1138,7 +1138,7 @@ export class RecaptchaEnterpriseServiceClient {
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.getMetrics(request, options, callback);
Expand Down Expand Up @@ -1240,7 +1240,7 @@ export class RecaptchaEnterpriseServiceClient {
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.listKeys(request, options, callback);
Expand Down Expand Up @@ -1281,7 +1281,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listKeys'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1331,7 +1331,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listKeys'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1443,7 +1443,7 @@ export class RecaptchaEnterpriseServiceClient {
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.listRelatedAccountGroups(
Expand Down Expand Up @@ -1493,7 +1493,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listRelatedAccountGroups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1548,7 +1548,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listRelatedAccountGroups'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1661,7 +1661,7 @@ export class RecaptchaEnterpriseServiceClient {
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.listRelatedAccountGroupMemberships(
Expand Down Expand Up @@ -1712,7 +1712,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listRelatedAccountGroupMemberships'];
Expand Down Expand Up @@ -1769,7 +1769,7 @@ export class RecaptchaEnterpriseServiceClient {
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['listRelatedAccountGroupMemberships'];
Expand Down Expand Up @@ -1887,7 +1887,7 @@ export class RecaptchaEnterpriseServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
project: request.project || '',
project: request.project ?? '',
});
this.initialize();
return this.innerApiCalls.searchRelatedAccountGroupMemberships(
Expand Down Expand Up @@ -1942,7 +1942,7 @@ export class RecaptchaEnterpriseServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
project: request.project || '',
project: request.project ?? '',
});
const defaultCallSettings =
this._defaults['searchRelatedAccountGroupMemberships'];
Expand Down Expand Up @@ -2003,7 +2003,7 @@ export class RecaptchaEnterpriseServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
project: request.project || '',
project: request.project ?? '',
});
const defaultCallSettings =
this._defaults['searchRelatedAccountGroupMemberships'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
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.createAssessment(request, options, callback);
Expand Down Expand Up @@ -524,7 +524,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
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.annotateAssessment(request, options, callback);
Expand Down
Loading

0 comments on commit 88fc998

Please sign in to comment.