Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#158)
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 2687b4f commit f6ee977
Show file tree
Hide file tree
Showing 16 changed files with 1,984 additions and 1,819 deletions.
6 changes: 3 additions & 3 deletions packages/google-appengine/src/v1/applications_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class ApplicationsClient {
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.getApplication(request, options, callback);
Expand Down Expand Up @@ -722,7 +722,7 @@ export class ApplicationsClient {
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.updateApplication(request, options, callback);
Expand Down Expand Up @@ -869,7 +869,7 @@ export class ApplicationsClient {
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.repairApplication(request, options, callback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export class AuthorizedCertificatesClient {
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.getAuthorizedCertificate(
Expand Down Expand Up @@ -527,7 +527,7 @@ export class AuthorizedCertificatesClient {
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.createAuthorizedCertificate(
Expand Down Expand Up @@ -639,7 +639,7 @@ export class AuthorizedCertificatesClient {
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.updateAuthorizedCertificate(
Expand Down Expand Up @@ -741,7 +741,7 @@ export class AuthorizedCertificatesClient {
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.deleteAuthorizedCertificate(
Expand Down Expand Up @@ -846,7 +846,7 @@ export class AuthorizedCertificatesClient {
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.listAuthorizedCertificates(
Expand Down Expand Up @@ -890,7 +890,7 @@ export class AuthorizedCertificatesClient {
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['listAuthorizedCertificates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -939,7 +939,7 @@ export class AuthorizedCertificatesClient {
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['listAuthorizedCertificates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
6 changes: 3 additions & 3 deletions packages/google-appengine/src/v1/authorized_domains_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class AuthorizedDomainsClient {
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.listAuthorizedDomains(request, options, callback);
Expand Down Expand Up @@ -461,7 +461,7 @@ export class AuthorizedDomainsClient {
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['listAuthorizedDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -508,7 +508,7 @@ export class AuthorizedDomainsClient {
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['listAuthorizedDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
14 changes: 7 additions & 7 deletions packages/google-appengine/src/v1/domain_mappings_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export class DomainMappingsClient {
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.getDomainMapping(request, options, callback);
Expand Down Expand Up @@ -600,7 +600,7 @@ export class DomainMappingsClient {
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.createDomainMapping(request, options, callback);
Expand Down Expand Up @@ -747,7 +747,7 @@ export class DomainMappingsClient {
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.updateDomainMapping(request, options, callback);
Expand Down Expand Up @@ -888,7 +888,7 @@ export class DomainMappingsClient {
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.deleteDomainMapping(request, options, callback);
Expand Down Expand Up @@ -1015,7 +1015,7 @@ export class DomainMappingsClient {
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.listDomainMappings(request, options, callback);
Expand Down Expand Up @@ -1053,7 +1053,7 @@ export class DomainMappingsClient {
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['listDomainMappings'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1100,7 +1100,7 @@ export class DomainMappingsClient {
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['listDomainMappings'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
16 changes: 8 additions & 8 deletions packages/google-appengine/src/v1/firewall_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class FirewallClient {
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.batchUpdateIngressRules(
Expand Down Expand Up @@ -537,7 +537,7 @@ export class FirewallClient {
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.createIngressRule(request, options, callback);
Expand Down Expand Up @@ -621,7 +621,7 @@ export class FirewallClient {
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.getIngressRule(request, options, callback);
Expand Down Expand Up @@ -711,7 +711,7 @@ export class FirewallClient {
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.updateIngressRule(request, options, callback);
Expand Down Expand Up @@ -797,7 +797,7 @@ export class FirewallClient {
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.deleteIngressRule(request, options, callback);
Expand Down Expand Up @@ -895,7 +895,7 @@ export class FirewallClient {
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.listIngressRules(request, options, callback);
Expand Down Expand Up @@ -938,7 +938,7 @@ export class FirewallClient {
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['listIngressRules'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -990,7 +990,7 @@ export class FirewallClient {
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['listIngressRules'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
12 changes: 6 additions & 6 deletions packages/google-appengine/src/v1/instances_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export class InstancesClient {
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.getInstance(request, options, callback);
Expand Down Expand Up @@ -591,7 +591,7 @@ export class InstancesClient {
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.deleteInstance(request, options, callback);
Expand Down Expand Up @@ -745,7 +745,7 @@ export class InstancesClient {
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.debugInstance(request, options, callback);
Expand Down Expand Up @@ -874,7 +874,7 @@ export class InstancesClient {
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.listInstances(request, options, callback);
Expand Down Expand Up @@ -913,7 +913,7 @@ export class InstancesClient {
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['listInstances'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -961,7 +961,7 @@ export class InstancesClient {
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['listInstances'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
12 changes: 6 additions & 6 deletions packages/google-appengine/src/v1/services_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export class ServicesClient {
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.getService(request, options, callback);
Expand Down Expand Up @@ -596,7 +596,7 @@ export class ServicesClient {
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.updateService(request, options, callback);
Expand Down Expand Up @@ -734,7 +734,7 @@ export class ServicesClient {
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.deleteService(request, options, callback);
Expand Down Expand Up @@ -859,7 +859,7 @@ export class ServicesClient {
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.listServices(request, options, callback);
Expand Down Expand Up @@ -897,7 +897,7 @@ export class ServicesClient {
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['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -944,7 +944,7 @@ export class ServicesClient {
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['listServices'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit f6ee977

Please sign in to comment.