Skip to content

Commit

Permalink
fix(workflowexecutions): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 6f7c5c6 commit e3a21da
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 48 deletions.
46 changes: 22 additions & 24 deletions src/apis/workflowexecutions/v1.ts
Expand Up @@ -301,19 +301,17 @@ export namespace workflowexecutions_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.cancel(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.cancel({
* // Required. Name of the execution to be cancelled. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}/executions/{execution\}
* name:
* 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* name: 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {}
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -384,7 +382,8 @@ export namespace workflowexecutions_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Cancel;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Cancel;
options = {};
}

Expand Down Expand Up @@ -444,8 +443,8 @@ export namespace workflowexecutions_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.create(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.create({
* // Required. Name of the workflow for which an execution should be created. Format: projects/{project\}/locations/{location\}/workflows/{workflow\} The latest revision of the workflow will be used.
* parent: 'projects/my-project/locations/my-location/workflows/my-workflow',
*
Expand All @@ -463,8 +462,7 @@ export namespace workflowexecutions_v1 {
* // "workflowRevisionId": "my_workflowRevisionId"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -535,7 +533,8 @@ export namespace workflowexecutions_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Create;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Create;
options = {};
}

Expand Down Expand Up @@ -598,15 +597,13 @@ export namespace workflowexecutions_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.get(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.get({
* // Required. Name of the execution to be retrieved. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}/executions/{execution\}
* name:
* 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* name: 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* // Optional. A view defining which fields should be filled in the returned execution. The API will default to the FULL view.
* view: 'placeholder-value',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -677,7 +674,8 @@ export namespace workflowexecutions_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Get;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Get;
options = {};
}

Expand Down Expand Up @@ -737,8 +735,8 @@ export namespace workflowexecutions_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.list(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.list({
* // Maximum number of executions to return per call. Max supported value depends on the selected Execution view: it's 10000 for BASIC and 100 for FULL. The default value used if the field is not specified is 100, regardless of the selected view. Values greater than the max value will be coerced down to it.
* pageSize: 'placeholder-value',
* // A page token, received from a previous `ListExecutions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListExecutions` must match the call that provided the page token.
Expand All @@ -747,8 +745,7 @@ export namespace workflowexecutions_v1 {
* parent: 'projects/my-project/locations/my-location/workflows/my-workflow',
* // Optional. A view defining which fields should be filled in the returned executions. The API will default to the BASIC view.
* view: 'placeholder-value',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -818,7 +815,8 @@ export namespace workflowexecutions_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$List;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$List;
options = {};
}

Expand Down
46 changes: 22 additions & 24 deletions src/apis/workflowexecutions/v1beta.ts
Expand Up @@ -301,19 +301,17 @@ export namespace workflowexecutions_v1beta {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.cancel(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.cancel({
* // Required. Name of the execution to be cancelled. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}/executions/{execution\}
* name:
* 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* name: 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {}
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -384,7 +382,8 @@ export namespace workflowexecutions_v1beta {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Cancel;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Cancel;
options = {};
}

Expand Down Expand Up @@ -447,8 +446,8 @@ export namespace workflowexecutions_v1beta {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.create(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.create({
* // Required. Name of the workflow for which an execution should be created. Format: projects/{project\}/locations/{location\}/workflows/{workflow\} The latest revision of the workflow will be used.
* parent: 'projects/my-project/locations/my-location/workflows/my-workflow',
*
Expand All @@ -466,8 +465,7 @@ export namespace workflowexecutions_v1beta {
* // "workflowRevisionId": "my_workflowRevisionId"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -538,7 +536,8 @@ export namespace workflowexecutions_v1beta {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Create;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Create;
options = {};
}

Expand Down Expand Up @@ -601,15 +600,13 @@ export namespace workflowexecutions_v1beta {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.get(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.get({
* // Required. Name of the execution to be retrieved. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}/executions/{execution\}
* name:
* 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* name: 'projects/my-project/locations/my-location/workflows/my-workflow/executions/my-execution',
* // Optional. A view defining which fields should be filled in the returned execution. The API will default to the FULL view.
* view: 'placeholder-value',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -680,7 +677,8 @@ export namespace workflowexecutions_v1beta {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$Get;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$Get;
options = {};
}

Expand Down Expand Up @@ -740,8 +738,8 @@ export namespace workflowexecutions_v1beta {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await workflowexecutions.projects.locations.workflows.executions.list(
* {
* const res =
* await workflowexecutions.projects.locations.workflows.executions.list({
* // Maximum number of executions to return per call. Max supported value depends on the selected Execution view: it's 10000 for BASIC and 100 for FULL. The default value used if the field is not specified is 100, regardless of the selected view. Values greater than the max value will be coerced down to it.
* pageSize: 'placeholder-value',
* // A page token, received from a previous `ListExecutions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListExecutions` must match the call that provided the page token.
Expand All @@ -750,8 +748,7 @@ export namespace workflowexecutions_v1beta {
* parent: 'projects/my-project/locations/my-location/workflows/my-workflow',
* // Optional. A view defining which fields should be filled in the returned executions. The API will default to the BASIC view.
* view: 'placeholder-value',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -821,7 +818,8 @@ export namespace workflowexecutions_v1beta {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Workflows$Executions$List;
params =
{} as Params$Resource$Projects$Locations$Workflows$Executions$List;
options = {};
}

Expand Down

0 comments on commit e3a21da

Please sign in to comment.