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

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#658)
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 884fdd8 commit e351ed1
Show file tree
Hide file tree
Showing 8 changed files with 1,604 additions and 1,481 deletions.
56 changes: 28 additions & 28 deletions src/v1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export class AssetServiceClient {
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.batchGetAssetsHistory(request, options, callback);
Expand Down Expand Up @@ -670,7 +670,7 @@ export class AssetServiceClient {
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.createFeed(request, options, callback);
Expand Down Expand Up @@ -756,7 +756,7 @@ export class AssetServiceClient {
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.getFeed(request, options, callback);
Expand Down Expand Up @@ -841,7 +841,7 @@ export class AssetServiceClient {
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.listFeeds(request, options, callback);
Expand Down Expand Up @@ -932,7 +932,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'feed.name': request.feed!.name || '',
'feed.name': request.feed!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateFeed(request, options, callback);
Expand Down Expand Up @@ -1018,7 +1018,7 @@ export class AssetServiceClient {
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.deleteFeed(request, options, callback);
Expand Down Expand Up @@ -1133,7 +1133,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'analysis_query.scope': request.analysisQuery!.scope || '',
'analysis_query.scope': request.analysisQuery!.scope ?? '',
});
this.initialize();
return this.innerApiCalls.analyzeIamPolicy(request, options, callback);
Expand Down Expand Up @@ -1232,7 +1232,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
resource: request.resource || '',
resource: request.resource ?? '',
});
this.initialize();
return this.innerApiCalls.analyzeMove(request, options, callback);
Expand Down Expand Up @@ -1382,7 +1382,7 @@ export class AssetServiceClient {
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.queryAssets(request, options, callback);
Expand Down Expand Up @@ -1484,7 +1484,7 @@ export class AssetServiceClient {
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.createSavedQuery(request, options, callback);
Expand Down Expand Up @@ -1571,7 +1571,7 @@ export class AssetServiceClient {
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.getSavedQuery(request, options, callback);
Expand Down Expand Up @@ -1665,7 +1665,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'saved_query.name': request.savedQuery!.name || '',
'saved_query.name': request.savedQuery!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateSavedQuery(request, options, callback);
Expand Down Expand Up @@ -1755,7 +1755,7 @@ export class AssetServiceClient {
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.deleteSavedQuery(request, options, callback);
Expand Down Expand Up @@ -1868,7 +1868,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
this.initialize();
return this.innerApiCalls.batchGetEffectiveIamPolicies(
Expand Down Expand Up @@ -2036,7 +2036,7 @@ export class AssetServiceClient {
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.exportAssets(request, options, callback);
Expand Down Expand Up @@ -2203,7 +2203,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'analysis_query.scope': request.analysisQuery!.scope || '',
'analysis_query.scope': request.analysisQuery!.scope ?? '',
});
this.initialize();
return this.innerApiCalls.analyzeIamPolicyLongrunning(
Expand Down Expand Up @@ -2384,7 +2384,7 @@ export class AssetServiceClient {
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.listAssets(request, options, callback);
Expand Down Expand Up @@ -2473,7 +2473,7 @@ export class AssetServiceClient {
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['listAssets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2571,7 +2571,7 @@ export class AssetServiceClient {
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['listAssets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2815,7 +2815,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
this.initialize();
return this.innerApiCalls.searchAllResources(request, options, callback);
Expand Down Expand Up @@ -2990,7 +2990,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllResources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3174,7 +3174,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllResources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3371,7 +3371,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
this.initialize();
return this.innerApiCalls.searchAllIamPolicies(request, options, callback);
Expand Down Expand Up @@ -3499,7 +3499,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllIamPolicies'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3636,7 +3636,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllIamPolicies'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3751,7 +3751,7 @@ export class AssetServiceClient {
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.listSavedQueries(request, options, callback);
Expand Down Expand Up @@ -3806,7 +3806,7 @@ export class AssetServiceClient {
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['listSavedQueries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3870,7 +3870,7 @@ export class AssetServiceClient {
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['listSavedQueries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
12 changes: 6 additions & 6 deletions src/v1p1beta1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
this.initialize();
return this.innerApiCalls.searchAllResources(request, options, callback);
Expand Down Expand Up @@ -500,7 +500,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllResources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -568,7 +568,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllResources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -693,7 +693,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
this.initialize();
return this.innerApiCalls.searchAllIamPolicies(request, options, callback);
Expand Down Expand Up @@ -747,7 +747,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllIamPolicies'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -810,7 +810,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
scope: request.scope || '',
scope: request.scope ?? '',
});
const defaultCallSettings = this._defaults['searchAllIamPolicies'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
10 changes: 5 additions & 5 deletions src/v1p2beta1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export class AssetServiceClient {
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.createFeed(request, options, callback);
Expand Down Expand Up @@ -504,7 +504,7 @@ export class AssetServiceClient {
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.getFeed(request, options, callback);
Expand Down Expand Up @@ -591,7 +591,7 @@ export class AssetServiceClient {
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.listFeeds(request, options, callback);
Expand Down Expand Up @@ -684,7 +684,7 @@ export class AssetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'feed.name': request.feed!.name || '',
'feed.name': request.feed!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateFeed(request, options, callback);
Expand Down Expand Up @@ -772,7 +772,7 @@ export class AssetServiceClient {
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.deleteFeed(request, options, callback);
Expand Down
6 changes: 3 additions & 3 deletions src/v1p5beta1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class AssetServiceClient {
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.listAssets(request, options, callback);
Expand Down Expand Up @@ -504,7 +504,7 @@ export class AssetServiceClient {
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['listAssets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -572,7 +572,7 @@ export class AssetServiceClient {
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['listAssets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit e351ed1

Please sign in to comment.