| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/workflows/apiv1beta", |
| "version": "1.12.6", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.workflows.v1beta", |
| "version": "v1beta" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "workflows_v1beta_generated_Workflows_CreateWorkflow_sync", |
| "title": "workflows CreateWorkflow Sample", |
| "description": "CreateWorkflow creates a new workflow. If a workflow with the specified name already\nexists in the specified project and location, the long running operation\nwill return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.", |
| "file": "Client/CreateWorkflow/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Client.CreateWorkflow", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "workflowspb.CreateWorkflowRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateWorkflowOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "CreateWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Workflows.CreateWorkflow", |
| "service": { |
| "shortName": "Workflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflows_v1beta_generated_Workflows_DeleteWorkflow_sync", |
| "title": "workflows DeleteWorkflow Sample", |
| "description": "DeleteWorkflow deletes a workflow with the specified name.\nThis method also cancels and deletes all running executions of the\nworkflow.", |
| "file": "Client/DeleteWorkflow/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Client.DeleteWorkflow", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "workflowspb.DeleteWorkflowRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteWorkflowOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "DeleteWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Workflows.DeleteWorkflow", |
| "service": { |
| "shortName": "Workflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 56, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflows_v1beta_generated_Workflows_GetWorkflow_sync", |
| "title": "workflows GetWorkflow Sample", |
| "description": "GetWorkflow gets details of a single Workflow.", |
| "file": "Client/GetWorkflow/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Client.GetWorkflow", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "workflowspb.GetWorkflowRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*workflowspb.Workflow", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "GetWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Workflows.GetWorkflow", |
| "service": { |
| "shortName": "Workflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflows_v1beta_generated_Workflows_ListWorkflows_sync", |
| "title": "workflows ListWorkflows Sample", |
| "description": "ListWorkflows lists Workflows in a given project and location.\nThe default order is not specified.", |
| "file": "Client/ListWorkflows/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListWorkflows", |
| "fullName": "google.cloud.workflows.v1beta.Client.ListWorkflows", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "workflowspb.ListWorkflowsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "WorkflowIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "ListWorkflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows.ListWorkflows", |
| "service": { |
| "shortName": "Workflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "workflows_v1beta_generated_Workflows_UpdateWorkflow_sync", |
| "title": "workflows UpdateWorkflow Sample", |
| "description": "UpdateWorkflow updates an existing workflow.\nRunning this method has no impact on already running executions of the\nworkflow. A new revision of the workflow may be created as a result of a\nsuccessful update operation. In that case, such revision will be used\nin new workflow executions.", |
| "file": "Client/UpdateWorkflow/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Client.UpdateWorkflow", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "workflowspb.UpdateWorkflowRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "UpdateWorkflowOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.workflows.v1beta.Client" |
| }, |
| "method": { |
| "shortName": "UpdateWorkflow", |
| "fullName": "google.cloud.workflows.v1beta.Workflows.UpdateWorkflow", |
| "service": { |
| "shortName": "Workflows", |
| "fullName": "google.cloud.workflows.v1beta.Workflows" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |