Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#112)
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 eda55d3 commit d0ef234
Show file tree
Hide file tree
Showing 4 changed files with 1,501 additions and 1,424 deletions.
16 changes: 8 additions & 8 deletions packages/google-api-serviceusage/src/v1/service_usage_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export class ServiceUsageClient {
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 @@ -582,7 +582,7 @@ export class ServiceUsageClient {
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.batchGetServices(request, options, callback);
Expand Down Expand Up @@ -696,7 +696,7 @@ export class ServiceUsageClient {
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.enableService(request, options, callback);
Expand Down Expand Up @@ -854,7 +854,7 @@ export class ServiceUsageClient {
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.disableService(request, options, callback);
Expand Down Expand Up @@ -1011,7 +1011,7 @@ export class ServiceUsageClient {
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.batchEnableServices(request, options, callback);
Expand Down Expand Up @@ -1165,7 +1165,7 @@ export class ServiceUsageClient {
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 @@ -1212,7 +1212,7 @@ export class ServiceUsageClient {
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 @@ -1268,7 +1268,7 @@ export class ServiceUsageClient {
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
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ export class ServiceUsageClient {
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();
this.warn(
Expand Down Expand Up @@ -736,7 +736,7 @@ export class ServiceUsageClient {
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.getConsumerQuotaMetric(
Expand Down Expand Up @@ -842,7 +842,7 @@ export class ServiceUsageClient {
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.getConsumerQuotaLimit(request, options, callback);
Expand Down Expand Up @@ -959,7 +959,7 @@ export class ServiceUsageClient {
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();
this.warn(
Expand Down Expand Up @@ -1123,7 +1123,7 @@ export class ServiceUsageClient {
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();
this.warn(
Expand Down Expand Up @@ -1298,7 +1298,7 @@ export class ServiceUsageClient {
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();
this.warn(
Expand Down Expand Up @@ -1467,7 +1467,7 @@ export class ServiceUsageClient {
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.createAdminOverride(request, options, callback);
Expand Down Expand Up @@ -1623,7 +1623,7 @@ export class ServiceUsageClient {
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.updateAdminOverride(request, options, callback);
Expand Down Expand Up @@ -1773,7 +1773,7 @@ export class ServiceUsageClient {
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.deleteAdminOverride(request, options, callback);
Expand Down Expand Up @@ -1927,7 +1927,7 @@ export class ServiceUsageClient {
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.importAdminOverrides(request, options, callback);
Expand Down Expand Up @@ -2084,7 +2084,7 @@ export class ServiceUsageClient {
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.createConsumerOverride(
Expand Down Expand Up @@ -2244,7 +2244,7 @@ export class ServiceUsageClient {
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.updateConsumerOverride(
Expand Down Expand Up @@ -2398,7 +2398,7 @@ export class ServiceUsageClient {
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.deleteConsumerOverride(
Expand Down Expand Up @@ -2556,7 +2556,7 @@ export class ServiceUsageClient {
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.importConsumerOverrides(
Expand Down Expand Up @@ -2704,7 +2704,7 @@ export class ServiceUsageClient {
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.generateServiceIdentity(
Expand Down Expand Up @@ -2858,7 +2858,7 @@ export class ServiceUsageClient {
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();
this.warn(
Expand Down Expand Up @@ -2912,7 +2912,7 @@ export class ServiceUsageClient {
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 @@ -2975,7 +2975,7 @@ export class ServiceUsageClient {
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 @@ -3096,7 +3096,7 @@ export class ServiceUsageClient {
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.listConsumerQuotaMetrics(
Expand Down Expand Up @@ -3146,7 +3146,7 @@ export class ServiceUsageClient {
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['listConsumerQuotaMetrics'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3201,7 +3201,7 @@ export class ServiceUsageClient {
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['listConsumerQuotaMetrics'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3310,7 +3310,7 @@ export class ServiceUsageClient {
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.listAdminOverrides(request, options, callback);
Expand Down Expand Up @@ -3353,7 +3353,7 @@ export class ServiceUsageClient {
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['listAdminOverrides'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3405,7 +3405,7 @@ export class ServiceUsageClient {
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['listAdminOverrides'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3514,7 +3514,7 @@ export class ServiceUsageClient {
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.listConsumerOverrides(request, options, callback);
Expand Down Expand Up @@ -3557,7 +3557,7 @@ export class ServiceUsageClient {
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['listConsumerOverrides'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3609,7 +3609,7 @@ export class ServiceUsageClient {
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['listConsumerOverrides'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit d0ef234

Please sign in to comment.