Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#566)
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 2c337ba commit 0bc6564
Show file tree
Hide file tree
Showing 2 changed files with 855 additions and 780 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class DataTransferServiceClient {
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.getDataSource(request, options, callback);
Expand Down Expand Up @@ -600,7 +600,7 @@ export class DataTransferServiceClient {
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.createTransferConfig(request, options, callback);
Expand Down Expand Up @@ -730,7 +730,7 @@ export class DataTransferServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'transfer_config.name': request.transferConfig!.name || '',
'transfer_config.name': request.transferConfig!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateTransferConfig(request, options, callback);
Expand Down Expand Up @@ -830,7 +830,7 @@ export class DataTransferServiceClient {
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.deleteTransferConfig(request, options, callback);
Expand Down Expand Up @@ -929,7 +929,7 @@ export class DataTransferServiceClient {
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.getTransferConfig(request, options, callback);
Expand Down Expand Up @@ -1039,7 +1039,7 @@ export class DataTransferServiceClient {
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 @@ -1151,7 +1151,7 @@ export class DataTransferServiceClient {
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.startManualTransferRuns(
Expand Down Expand Up @@ -1254,7 +1254,7 @@ export class DataTransferServiceClient {
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.getTransferRun(request, options, callback);
Expand Down Expand Up @@ -1353,7 +1353,7 @@ export class DataTransferServiceClient {
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.deleteTransferRun(request, options, callback);
Expand Down Expand Up @@ -1453,7 +1453,7 @@ export class DataTransferServiceClient {
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.checkValidCreds(request, options, callback);
Expand Down Expand Up @@ -1559,7 +1559,7 @@ export class DataTransferServiceClient {
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.enrollDataSources(request, options, callback);
Expand Down Expand Up @@ -1664,7 +1664,7 @@ export class DataTransferServiceClient {
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.listDataSources(request, options, callback);
Expand Down Expand Up @@ -1708,7 +1708,7 @@ export class DataTransferServiceClient {
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['listDataSources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1761,7 +1761,7 @@ export class DataTransferServiceClient {
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['listDataSources'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1874,7 +1874,7 @@ export class DataTransferServiceClient {
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.listTransferConfigs(request, options, callback);
Expand Down Expand Up @@ -1920,7 +1920,7 @@ export class DataTransferServiceClient {
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['listTransferConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1975,7 +1975,7 @@ export class DataTransferServiceClient {
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['listTransferConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2090,7 +2090,7 @@ export class DataTransferServiceClient {
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.listTransferRuns(request, options, callback);
Expand Down Expand Up @@ -2139,7 +2139,7 @@ export class DataTransferServiceClient {
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['listTransferRuns'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2197,7 +2197,7 @@ export class DataTransferServiceClient {
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['listTransferRuns'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2310,7 +2310,7 @@ export class DataTransferServiceClient {
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.listTransferLogs(request, options, callback);
Expand Down Expand Up @@ -2357,7 +2357,7 @@ export class DataTransferServiceClient {
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['listTransferLogs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2413,7 +2413,7 @@ export class DataTransferServiceClient {
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['listTransferLogs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 0bc6564

Please sign in to comment.