Class: Google::Apis::WorkflowexecutionsV1beta::WorkflowExecutionsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::WorkflowexecutionsV1beta::WorkflowExecutionsService
- Defined in:
- generated/google/apis/workflowexecutions_v1beta/service.rb
Overview
Workflow Executions API
Execute workflows created with Workflows API.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_execution(name, cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Cancels an execution of the given name.
-
#create_project_location_workflow_execution(parent, execution_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Creates a new execution using the latest revision of the given workflow.
-
#get_project_location_workflow_execution(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Returns an execution of the given name.
-
#initialize ⇒ WorkflowExecutionsService
constructor
A new instance of WorkflowExecutionsService.
-
#list_project_location_workflow_executions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse
Returns a list of executions which belong to the workflow with the given name.
Constructor Details
#initialize ⇒ WorkflowExecutionsService
Returns a new instance of WorkflowExecutionsService.
45 46 47 48 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 45 def initialize super('https://workflowexecutions.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#cancel_execution(name, cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Cancels an execution of the given name.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 72 def cancel_execution(name, cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:cancel', ) command.request_representation = Google::Apis::WorkflowexecutionsV1beta::CancelExecutionRequest::Representation command.request_object = cancel_execution_request_object command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_workflow_execution(parent, execution_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Creates a new execution using the latest revision of the given workflow.
107 108 109 110 111 112 113 114 115 116 117 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 107 def create_project_location_workflow_execution(parent, execution_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/executions', ) command.request_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation command.request_object = execution_object command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_workflow_execution(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::Execution
Returns an execution of the given name.
143 144 145 146 147 148 149 150 151 152 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 143 def get_project_location_workflow_execution(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_workflow_executions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse
Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).
189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'generated/google/apis/workflowexecutions_v1beta/service.rb', line 189 def list_project_location_workflow_executions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/executions', ) command.response_representation = Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse::Representation command.response_class = Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |