Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#201)
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 19359f6 commit b0032de
Show file tree
Hide file tree
Showing 4 changed files with 2,950 additions and 2,702 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ export class CertificateAuthorityServiceClient {
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.createCertificate(request, options, callback);
Expand Down Expand Up @@ -923,7 +923,7 @@ export class CertificateAuthorityServiceClient {
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.getCertificate(request, options, callback);
Expand Down Expand Up @@ -1038,7 +1038,7 @@ export class CertificateAuthorityServiceClient {
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.revokeCertificate(request, options, callback);
Expand Down Expand Up @@ -1152,7 +1152,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'certificate.name': request.certificate!.name || '',
'certificate.name': request.certificate!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCertificate(request, options, callback);
Expand Down Expand Up @@ -1256,7 +1256,7 @@ export class CertificateAuthorityServiceClient {
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.fetchCertificateAuthorityCsr(
Expand Down Expand Up @@ -1358,7 +1358,7 @@ export class CertificateAuthorityServiceClient {
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.getCertificateAuthority(
Expand Down Expand Up @@ -1453,7 +1453,7 @@ export class CertificateAuthorityServiceClient {
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.getCaPool(request, options, callback);
Expand Down Expand Up @@ -1567,7 +1567,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
ca_pool: request.caPool || '',
ca_pool: request.caPool ?? '',
});
this.initialize();
return this.innerApiCalls.fetchCaCerts(request, options, callback);
Expand Down Expand Up @@ -1665,7 +1665,7 @@ export class CertificateAuthorityServiceClient {
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.getCertificateRevocationList(
Expand Down Expand Up @@ -1767,7 +1767,7 @@ export class CertificateAuthorityServiceClient {
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.getCertificateTemplate(
Expand Down Expand Up @@ -1901,7 +1901,7 @@ export class CertificateAuthorityServiceClient {
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.activateCertificateAuthority(
Expand Down Expand Up @@ -2064,7 +2064,7 @@ export class CertificateAuthorityServiceClient {
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.createCertificateAuthority(
Expand Down Expand Up @@ -2221,7 +2221,7 @@ export class CertificateAuthorityServiceClient {
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.disableCertificateAuthority(
Expand Down Expand Up @@ -2378,7 +2378,7 @@ export class CertificateAuthorityServiceClient {
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.enableCertificateAuthority(
Expand Down Expand Up @@ -2535,7 +2535,7 @@ export class CertificateAuthorityServiceClient {
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.undeleteCertificateAuthority(
Expand Down Expand Up @@ -2699,7 +2699,7 @@ export class CertificateAuthorityServiceClient {
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.deleteCertificateAuthority(
Expand Down Expand Up @@ -2857,7 +2857,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'certificate_authority.name': request.certificateAuthority!.name || '',
'certificate_authority.name': request.certificateAuthority!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCertificateAuthority(
Expand Down Expand Up @@ -3019,7 +3019,7 @@ export class CertificateAuthorityServiceClient {
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.createCaPool(request, options, callback);
Expand Down Expand Up @@ -3173,7 +3173,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'ca_pool.name': request.caPool!.name || '',
'ca_pool.name': request.caPool!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCaPool(request, options, callback);
Expand Down Expand Up @@ -3326,7 +3326,7 @@ export class CertificateAuthorityServiceClient {
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.deleteCaPool(request, options, callback);
Expand Down Expand Up @@ -3481,7 +3481,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'certificate_revocation_list.name':
request.certificateRevocationList!.name || '',
request.certificateRevocationList!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCertificateRevocationList(
Expand Down Expand Up @@ -3644,7 +3644,7 @@ export class CertificateAuthorityServiceClient {
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.createCertificateTemplate(
Expand Down Expand Up @@ -3801,7 +3801,7 @@ export class CertificateAuthorityServiceClient {
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.deleteCertificateTemplate(
Expand Down Expand Up @@ -3959,7 +3959,7 @@ export class CertificateAuthorityServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'certificate_template.name': request.certificateTemplate!.name || '',
'certificate_template.name': request.certificateTemplate!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCertificateTemplate(
Expand Down Expand Up @@ -4112,7 +4112,7 @@ export class CertificateAuthorityServiceClient {
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.listCertificates(request, options, callback);
Expand Down Expand Up @@ -4166,7 +4166,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4229,7 +4229,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4345,7 +4345,7 @@ export class CertificateAuthorityServiceClient {
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.listCertificateAuthorities(
Expand Down Expand Up @@ -4399,7 +4399,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateAuthorities'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4458,7 +4458,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateAuthorities'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4574,7 +4574,7 @@ export class CertificateAuthorityServiceClient {
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.listCaPools(request, options, callback);
Expand Down Expand Up @@ -4624,7 +4624,7 @@ export class CertificateAuthorityServiceClient {
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['listCaPools'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4683,7 +4683,7 @@ export class CertificateAuthorityServiceClient {
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['listCaPools'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4799,7 +4799,7 @@ export class CertificateAuthorityServiceClient {
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.listCertificateRevocationLists(
Expand Down Expand Up @@ -4853,7 +4853,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateRevocationLists'];
Expand Down Expand Up @@ -4913,7 +4913,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateRevocationLists'];
Expand Down Expand Up @@ -5030,7 +5030,7 @@ export class CertificateAuthorityServiceClient {
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.listCertificateTemplates(
Expand Down Expand Up @@ -5084,7 +5084,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateTemplates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -5143,7 +5143,7 @@ export class CertificateAuthorityServiceClient {
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['listCertificateTemplates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit b0032de

Please sign in to comment.