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 (#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: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 9fdfa46 commit 741cf60
Show file tree
Hide file tree
Showing 8 changed files with 1,074 additions and 994 deletions.
12 changes: 6 additions & 6 deletions src/v1/executions_client.ts
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
14 changes: 7 additions & 7 deletions src/v1/workflows_client.ts
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
12 changes: 6 additions & 6 deletions src/v1beta/executions_client.ts
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
14 changes: 7 additions & 7 deletions src/v1beta/workflows_client.ts
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 741cf60

Please sign in to comment.