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

fix: make request optional in all cases #69

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/v1/executions_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class ExecutionsClient {
// -- Service calls --
// -------------------
createExecution(
request: protos.google.cloud.workflows.executions.v1.ICreateExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.ICreateExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -361,7 +361,7 @@ export class ExecutionsClient {
* const [response] = await client.createExecution(request);
*/
createExecution(
request: protos.google.cloud.workflows.executions.v1.ICreateExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.ICreateExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -407,7 +407,7 @@ export class ExecutionsClient {
return this.innerApiCalls.createExecution(request, options, callback);
}
getExecution(
request: protos.google.cloud.workflows.executions.v1.IGetExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.IGetExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -463,7 +463,7 @@ export class ExecutionsClient {
* const [response] = await client.getExecution(request);
*/
getExecution(
request: protos.google.cloud.workflows.executions.v1.IGetExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.IGetExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -509,7 +509,7 @@ export class ExecutionsClient {
return this.innerApiCalls.getExecution(request, options, callback);
}
cancelExecution(
request: protos.google.cloud.workflows.executions.v1.ICancelExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.ICancelExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -562,7 +562,7 @@ export class ExecutionsClient {
* const [response] = await client.cancelExecution(request);
*/
cancelExecution(
request: protos.google.cloud.workflows.executions.v1.ICancelExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1.ICancelExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -609,7 +609,7 @@ export class ExecutionsClient {
}

listExecutions(
request: protos.google.cloud.workflows.executions.v1.IListExecutionsRequest,
request?: protos.google.cloud.workflows.executions.v1.IListExecutionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -679,7 +679,7 @@ export class ExecutionsClient {
* for more details and examples.
*/
listExecutions(
request: protos.google.cloud.workflows.executions.v1.IListExecutionsRequest,
request?: protos.google.cloud.workflows.executions.v1.IListExecutionsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions src/v1/workflows_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class WorkflowsClient {
// -- Service calls --
// -------------------
getWorkflow(
request: protos.google.cloud.workflows.v1.IGetWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IGetWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -407,7 +407,7 @@ export class WorkflowsClient {
* const [response] = await client.getWorkflow(request);
*/
getWorkflow(
request: protos.google.cloud.workflows.v1.IGetWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IGetWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -449,7 +449,7 @@ export class WorkflowsClient {
}

createWorkflow(
request: protos.google.cloud.workflows.v1.ICreateWorkflowRequest,
request?: protos.google.cloud.workflows.v1.ICreateWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -519,7 +519,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
createWorkflow(
request: protos.google.cloud.workflows.v1.ICreateWorkflowRequest,
request?: protos.google.cloud.workflows.v1.ICreateWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -604,7 +604,7 @@ export class WorkflowsClient {
>;
}
deleteWorkflow(
request: protos.google.cloud.workflows.v1.IDeleteWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IDeleteWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -663,7 +663,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
deleteWorkflow(
request: protos.google.cloud.workflows.v1.IDeleteWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IDeleteWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -748,7 +748,7 @@ export class WorkflowsClient {
>;
}
updateWorkflow(
request: protos.google.cloud.workflows.v1.IUpdateWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IUpdateWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -811,7 +811,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
updateWorkflow(
request: protos.google.cloud.workflows.v1.IUpdateWorkflowRequest,
request?: protos.google.cloud.workflows.v1.IUpdateWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -896,7 +896,7 @@ export class WorkflowsClient {
>;
}
listWorkflows(
request: protos.google.cloud.workflows.v1.IListWorkflowsRequest,
request?: protos.google.cloud.workflows.v1.IListWorkflowsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -967,7 +967,7 @@ export class WorkflowsClient {
* for more details and examples.
*/
listWorkflows(
request: protos.google.cloud.workflows.v1.IListWorkflowsRequest,
request?: protos.google.cloud.workflows.v1.IListWorkflowsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
16 changes: 8 additions & 8 deletions src/v1beta/executions_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class ExecutionsClient {
// -- Service calls --
// -------------------
createExecution(
request: protos.google.cloud.workflows.executions.v1beta.ICreateExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.ICreateExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -362,7 +362,7 @@ export class ExecutionsClient {
* const [response] = await client.createExecution(request);
*/
createExecution(
request: protos.google.cloud.workflows.executions.v1beta.ICreateExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.ICreateExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -408,7 +408,7 @@ export class ExecutionsClient {
return this.innerApiCalls.createExecution(request, options, callback);
}
getExecution(
request: protos.google.cloud.workflows.executions.v1beta.IGetExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.IGetExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -464,7 +464,7 @@ export class ExecutionsClient {
* const [response] = await client.getExecution(request);
*/
getExecution(
request: protos.google.cloud.workflows.executions.v1beta.IGetExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.IGetExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -510,7 +510,7 @@ export class ExecutionsClient {
return this.innerApiCalls.getExecution(request, options, callback);
}
cancelExecution(
request: protos.google.cloud.workflows.executions.v1beta.ICancelExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.ICancelExecutionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -563,7 +563,7 @@ export class ExecutionsClient {
* const [response] = await client.cancelExecution(request);
*/
cancelExecution(
request: protos.google.cloud.workflows.executions.v1beta.ICancelExecutionRequest,
request?: protos.google.cloud.workflows.executions.v1beta.ICancelExecutionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -610,7 +610,7 @@ export class ExecutionsClient {
}

listExecutions(
request: protos.google.cloud.workflows.executions.v1beta.IListExecutionsRequest,
request?: protos.google.cloud.workflows.executions.v1beta.IListExecutionsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -680,7 +680,7 @@ export class ExecutionsClient {
* for more details and examples.
*/
listExecutions(
request: protos.google.cloud.workflows.executions.v1beta.IListExecutionsRequest,
request?: protos.google.cloud.workflows.executions.v1beta.IListExecutionsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions src/v1beta/workflows_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class WorkflowsClient {
// -- Service calls --
// -------------------
getWorkflow(
request: protos.google.cloud.workflows.v1beta.IGetWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IGetWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -411,7 +411,7 @@ export class WorkflowsClient {
* const [response] = await client.getWorkflow(request);
*/
getWorkflow(
request: protos.google.cloud.workflows.v1beta.IGetWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IGetWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -455,7 +455,7 @@ export class WorkflowsClient {
}

createWorkflow(
request: protos.google.cloud.workflows.v1beta.ICreateWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.ICreateWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -525,7 +525,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
createWorkflow(
request: protos.google.cloud.workflows.v1beta.ICreateWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.ICreateWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -610,7 +610,7 @@ export class WorkflowsClient {
>;
}
deleteWorkflow(
request: protos.google.cloud.workflows.v1beta.IDeleteWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IDeleteWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -669,7 +669,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
deleteWorkflow(
request: protos.google.cloud.workflows.v1beta.IDeleteWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IDeleteWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -754,7 +754,7 @@ export class WorkflowsClient {
>;
}
updateWorkflow(
request: protos.google.cloud.workflows.v1beta.IUpdateWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IUpdateWorkflowRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -817,7 +817,7 @@ export class WorkflowsClient {
* const [response] = await operation.promise();
*/
updateWorkflow(
request: protos.google.cloud.workflows.v1beta.IUpdateWorkflowRequest,
request?: protos.google.cloud.workflows.v1beta.IUpdateWorkflowRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -902,7 +902,7 @@ export class WorkflowsClient {
>;
}
listWorkflows(
request: protos.google.cloud.workflows.v1beta.IListWorkflowsRequest,
request?: protos.google.cloud.workflows.v1beta.IListWorkflowsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -973,7 +973,7 @@ export class WorkflowsClient {
* for more details and examples.
*/
listWorkflows(
request: protos.google.cloud.workflows.v1beta.IListWorkflowsRequest,
request?: protos.google.cloud.workflows.v1beta.IListWorkflowsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down