Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#165)
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 4e89145 commit 5c53a83
Show file tree
Hide file tree
Showing 8 changed files with 1,074 additions and 994 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class ExecutionsClient {
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.createExecution(request, options, callback);
Expand Down Expand Up @@ -530,7 +530,7 @@ export class ExecutionsClient {
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.getExecution(request, options, callback);
Expand Down Expand Up @@ -629,7 +629,7 @@ export class ExecutionsClient {
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.cancelExecution(request, options, callback);
Expand Down Expand Up @@ -743,7 +743,7 @@ export class ExecutionsClient {
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.listExecutions(request, options, callback);
Expand Down Expand Up @@ -793,7 +793,7 @@ export class ExecutionsClient {
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['listExecutions'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -852,7 +852,7 @@ export class ExecutionsClient {
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['listExecutions'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export class WorkflowsClient {
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.getWorkflow(request, options, callback);
Expand Down Expand Up @@ -612,7 +612,7 @@ export class WorkflowsClient {
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.createWorkflow(request, options, callback);
Expand Down Expand Up @@ -753,7 +753,7 @@ export class WorkflowsClient {
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.deleteWorkflow(request, options, callback);
Expand Down Expand Up @@ -898,7 +898,7 @@ export class WorkflowsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'workflow.name': request.workflow!.name || '',
'workflow.name': request.workflow!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateWorkflow(request, options, callback);
Expand Down Expand Up @@ -1047,7 +1047,7 @@ export class WorkflowsClient {
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.listWorkflows(request, options, callback);
Expand Down Expand Up @@ -1100,7 +1100,7 @@ export class WorkflowsClient {
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['listWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1162,7 +1162,7 @@ export class WorkflowsClient {
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['listWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class ExecutionsClient {
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.createExecution(request, options, callback);
Expand Down Expand Up @@ -531,7 +531,7 @@ export class ExecutionsClient {
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.getExecution(request, options, callback);
Expand Down Expand Up @@ -630,7 +630,7 @@ export class ExecutionsClient {
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.cancelExecution(request, options, callback);
Expand Down Expand Up @@ -744,7 +744,7 @@ export class ExecutionsClient {
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.listExecutions(request, options, callback);
Expand Down Expand Up @@ -794,7 +794,7 @@ export class ExecutionsClient {
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['listExecutions'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -853,7 +853,7 @@ export class ExecutionsClient {
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['listExecutions'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export class WorkflowsClient {
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.getWorkflow(request, options, callback);
Expand Down Expand Up @@ -618,7 +618,7 @@ export class WorkflowsClient {
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.createWorkflow(request, options, callback);
Expand Down Expand Up @@ -759,7 +759,7 @@ export class WorkflowsClient {
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.deleteWorkflow(request, options, callback);
Expand Down Expand Up @@ -904,7 +904,7 @@ export class WorkflowsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'workflow.name': request.workflow!.name || '',
'workflow.name': request.workflow!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateWorkflow(request, options, callback);
Expand Down Expand Up @@ -1053,7 +1053,7 @@ export class WorkflowsClient {
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.listWorkflows(request, options, callback);
Expand Down Expand Up @@ -1106,7 +1106,7 @@ export class WorkflowsClient {
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['listWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1168,7 +1168,7 @@ export class WorkflowsClient {
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['listWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 5c53a83

Please sign in to comment.