Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#32)
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 f4687e0 commit 8e2e3b5
Show file tree
Hide file tree
Showing 2 changed files with 1,097 additions and 1,033 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export class VideoStitcherServiceClient {
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.createCdnKey(request, options, callback);
Expand Down Expand Up @@ -581,7 +581,7 @@ export class VideoStitcherServiceClient {
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.getCdnKey(request, options, callback);
Expand Down Expand Up @@ -673,7 +673,7 @@ export class VideoStitcherServiceClient {
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.deleteCdnKey(request, options, callback);
Expand Down Expand Up @@ -769,7 +769,7 @@ export class VideoStitcherServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'cdn_key.name': request.cdnKey!.name || '',
'cdn_key.name': request.cdnKey!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateCdnKey(request, options, callback);
Expand Down Expand Up @@ -870,7 +870,7 @@ export class VideoStitcherServiceClient {
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.createVodSession(request, options, callback);
Expand Down Expand Up @@ -963,7 +963,7 @@ export class VideoStitcherServiceClient {
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.getVodSession(request, options, callback);
Expand Down Expand Up @@ -1061,7 +1061,7 @@ export class VideoStitcherServiceClient {
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.getVodStitchDetail(request, options, callback);
Expand Down Expand Up @@ -1159,7 +1159,7 @@ export class VideoStitcherServiceClient {
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.getVodAdTagDetail(request, options, callback);
Expand Down Expand Up @@ -1257,7 +1257,7 @@ export class VideoStitcherServiceClient {
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.getLiveAdTagDetail(request, options, callback);
Expand Down Expand Up @@ -1356,7 +1356,7 @@ export class VideoStitcherServiceClient {
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.createSlate(request, options, callback);
Expand Down Expand Up @@ -1442,7 +1442,7 @@ export class VideoStitcherServiceClient {
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.getSlate(request, options, callback);
Expand Down Expand Up @@ -1535,7 +1535,7 @@ export class VideoStitcherServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'slate.name': request.slate!.name || '',
'slate.name': request.slate!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateSlate(request, options, callback);
Expand Down Expand Up @@ -1627,7 +1627,7 @@ export class VideoStitcherServiceClient {
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.deleteSlate(request, options, callback);
Expand Down Expand Up @@ -1727,7 +1727,7 @@ export class VideoStitcherServiceClient {
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.createLiveSession(request, options, callback);
Expand Down Expand Up @@ -1819,7 +1819,7 @@ export class VideoStitcherServiceClient {
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.getLiveSession(request, options, callback);
Expand Down Expand Up @@ -1924,7 +1924,7 @@ export class VideoStitcherServiceClient {
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.listCdnKeys(request, options, callback);
Expand Down Expand Up @@ -1968,7 +1968,7 @@ export class VideoStitcherServiceClient {
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['listCdnKeys'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2021,7 +2021,7 @@ export class VideoStitcherServiceClient {
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['listCdnKeys'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2127,7 +2127,7 @@ export class VideoStitcherServiceClient {
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.listVodStitchDetails(request, options, callback);
Expand Down Expand Up @@ -2166,7 +2166,7 @@ export class VideoStitcherServiceClient {
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['listVodStitchDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2214,7 +2214,7 @@ export class VideoStitcherServiceClient {
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['listVodStitchDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2319,7 +2319,7 @@ export class VideoStitcherServiceClient {
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.listVodAdTagDetails(request, options, callback);
Expand Down Expand Up @@ -2358,7 +2358,7 @@ export class VideoStitcherServiceClient {
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['listVodAdTagDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2406,7 +2406,7 @@ export class VideoStitcherServiceClient {
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['listVodAdTagDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2511,7 +2511,7 @@ export class VideoStitcherServiceClient {
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.listLiveAdTagDetails(request, options, callback);
Expand Down Expand Up @@ -2550,7 +2550,7 @@ export class VideoStitcherServiceClient {
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['listLiveAdTagDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2598,7 +2598,7 @@ export class VideoStitcherServiceClient {
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['listLiveAdTagDetails'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2707,7 +2707,7 @@ export class VideoStitcherServiceClient {
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.listSlates(request, options, callback);
Expand Down Expand Up @@ -2750,7 +2750,7 @@ export class VideoStitcherServiceClient {
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['listSlates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2802,7 +2802,7 @@ export class VideoStitcherServiceClient {
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['listSlates'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 8e2e3b5

Please sign in to comment.