Class: Google::Apis::WorkflowexecutionsV1beta::WorkflowExecutionsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::WorkflowexecutionsV1beta::WorkflowExecutionsService
- Defined in:
- lib/google/apis/workflowexecutions_v1beta/service.rb
Overview
Workflow Executions API
Execute workflows created with Workflows API.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://workflowexecutions.$UNIVERSE_DOMAIN$/"
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.
47 48 49 50 51 52 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-workflowexecutions_v1beta', client_version: Google::Apis::WorkflowexecutionsV1beta::GEM_VERSION) @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.
40 41 42 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 40 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.
45 46 47 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 45 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.
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 76 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.
111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 111 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.
147 148 149 150 151 152 153 154 155 156 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 147 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).
193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/google/apis/workflowexecutions_v1beta/service.rb', line 193 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 |