| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/workflows/executions/apiv1beta", |
| "version": "1.12.6", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.workflows.executions.v1beta", |
| "version": "v1beta" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "workflowexecutions_v1beta_generated_Executions_CancelExecution_sync", |
| "title": "workflowexecutions CancelExecution Sample", |
| "description": "CancelExecution cancels an execution of the given name.", |
| "file": "Client/CancelExecution/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CancelExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client.CancelExecution", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "executionspb.CancelExecutionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*executionspb.Execution", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "CancelExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions.CancelExecution", |
| "service": { |
| "shortName": "Executions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflowexecutions_v1beta_generated_Executions_CreateExecution_sync", |
| "title": "workflowexecutions CreateExecution Sample", |
| "description": "CreateExecution creates a new execution using the latest revision of the given workflow.", |
| "file": "Client/CreateExecution/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client.CreateExecution", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "executionspb.CreateExecutionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*executionspb.Execution", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "CreateExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions.CreateExecution", |
| "service": { |
| "shortName": "Executions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflowexecutions_v1beta_generated_Executions_GetExecution_sync", |
| "title": "workflowexecutions GetExecution Sample", |
| "description": "GetExecution returns an execution of the given name.", |
| "file": "Client/GetExecution/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client.GetExecution", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "executionspb.GetExecutionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*executionspb.Execution", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "GetExecution", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions.GetExecution", |
| "service": { |
| "shortName": "Executions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflowexecutions_v1beta_generated_Executions_ListExecutions_sync", |
| "title": "workflowexecutions ListExecutions Sample", |
| "description": "ListExecutions returns a list of executions which belong to the workflow with\nthe given name. The method returns executions of all workflow\nrevisions. Returned executions are ordered by their start time (newest\nfirst).", |
| "file": "Client/ListExecutions/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListExecutions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client.ListExecutions", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "executionspb.ListExecutionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ExecutionIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.executions.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "ListExecutions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions.ListExecutions", |
| "service": { |
| "shortName": "Executions", |
| "fullName": "google.cloud.workflows.executions.v1beta.Executions" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |