Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#65)
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: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 74048d6 commit a612a49
Show file tree
Hide file tree
Showing 2 changed files with 885 additions and 903 deletions.
44 changes: 22 additions & 22 deletions src/v1/livestream_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export class LivestreamServiceClient {
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.getChannel(request, options, callback);
Expand Down Expand Up @@ -685,7 +685,7 @@ export class LivestreamServiceClient {
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.getInput(request, options, callback);
Expand Down Expand Up @@ -797,7 +797,7 @@ export class LivestreamServiceClient {
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.createEvent(request, options, callback);
Expand Down Expand Up @@ -889,7 +889,7 @@ export class LivestreamServiceClient {
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.getEvent(request, options, callback);
Expand Down Expand Up @@ -995,7 +995,7 @@ export class LivestreamServiceClient {
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.deleteEvent(request, options, callback);
Expand Down Expand Up @@ -1121,7 +1121,7 @@ export class LivestreamServiceClient {
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.createChannel(request, options, callback);
Expand Down Expand Up @@ -1279,7 +1279,7 @@ export class LivestreamServiceClient {
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.deleteChannel(request, options, callback);
Expand Down Expand Up @@ -1444,7 +1444,7 @@ export class LivestreamServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'channel.name': request.channel!.name || '',
'channel.name': request.channel!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateChannel(request, options, callback);
Expand Down Expand Up @@ -1598,7 +1598,7 @@ export class LivestreamServiceClient {
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.startChannel(request, options, callback);
Expand Down Expand Up @@ -1752,7 +1752,7 @@ export class LivestreamServiceClient {
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.stopChannel(request, options, callback);
Expand Down Expand Up @@ -1911,7 +1911,7 @@ export class LivestreamServiceClient {
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.createInput(request, options, callback);
Expand Down Expand Up @@ -2064,7 +2064,7 @@ export class LivestreamServiceClient {
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.deleteInput(request, options, callback);
Expand Down Expand Up @@ -2225,7 +2225,7 @@ export class LivestreamServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'input.name': request.input!.name || '',
'input.name': request.input!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateInput(request, options, callback);
Expand Down Expand Up @@ -2368,7 +2368,7 @@ export class LivestreamServiceClient {
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.listChannels(request, options, callback);
Expand Down Expand Up @@ -2416,7 +2416,7 @@ export class LivestreamServiceClient {
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['listChannels'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2473,7 +2473,7 @@ export class LivestreamServiceClient {
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['listChannels'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2587,7 +2587,7 @@ export class LivestreamServiceClient {
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.listInputs(request, options, callback);
Expand Down Expand Up @@ -2635,7 +2635,7 @@ export class LivestreamServiceClient {
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['listInputs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2692,7 +2692,7 @@ export class LivestreamServiceClient {
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['listInputs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2806,7 +2806,7 @@ export class LivestreamServiceClient {
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.listEvents(request, options, callback);
Expand Down Expand Up @@ -2854,7 +2854,7 @@ export class LivestreamServiceClient {
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['listEvents'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2911,7 +2911,7 @@ export class LivestreamServiceClient {
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['listEvents'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit a612a49

Please sign in to comment.