Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#169)
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 c9f65b1 commit 26e71a9
Show file tree
Hide file tree
Showing 2 changed files with 609 additions and 620 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.getService(request, options, callback);
Expand Down Expand Up @@ -656,8 +656,8 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
config_id: request.configId || '',
service_name: request.serviceName ?? '',
config_id: request.configId ?? '',
});
this.initialize();
return this.innerApiCalls.getServiceConfig(request, options, callback);
Expand Down Expand Up @@ -765,7 +765,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.createServiceConfig(request, options, callback);
Expand Down Expand Up @@ -867,8 +867,8 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
rollout_id: request.rolloutId || '',
service_name: request.serviceName ?? '',
rollout_id: request.rolloutId ?? '',
});
this.initialize();
return this.innerApiCalls.getServiceRollout(request, options, callback);
Expand Down Expand Up @@ -1238,7 +1238,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.deleteService(request, options, callback);
Expand Down Expand Up @@ -1383,7 +1383,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.undeleteService(request, options, callback);
Expand Down Expand Up @@ -1542,7 +1542,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.submitConfigSource(request, options, callback);
Expand Down Expand Up @@ -1697,7 +1697,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.createServiceRollout(request, options, callback);
Expand Down Expand Up @@ -2039,7 +2039,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.listServiceConfigs(request, options, callback);
Expand Down Expand Up @@ -2080,7 +2080,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
const defaultCallSettings = this._defaults['listServiceConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2130,7 +2130,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
const defaultCallSettings = this._defaults['listServiceConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2247,7 +2247,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
this.initialize();
return this.innerApiCalls.listServiceRollouts(request, options, callback);
Expand Down Expand Up @@ -2297,7 +2297,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
const defaultCallSettings = this._defaults['listServiceRollouts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2356,7 +2356,7 @@ export class ServiceManagerClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
service_name: request.serviceName || '',
service_name: request.serviceName ?? '',
});
const defaultCallSettings = this._defaults['listServiceRollouts'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 26e71a9

Please sign in to comment.