Class: Google::Apis::WorkflowexecutionsV1::WorkflowExecutionsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::WorkflowexecutionsV1::WorkflowExecutionsService
- Defined in:
- lib/google/apis/workflowexecutions_v1/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::WorkflowexecutionsV1::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::WorkflowexecutionsV1::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::WorkflowexecutionsV1::Execution
Returns an execution of the given name.
-
#initialize ⇒ WorkflowExecutionsService
constructor
A new instance of WorkflowExecutionsService.
-
#list_project_location_workflow_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ListExecutionsResponse
Returns a list of executions which belong to the workflow with the given name.
-
#trigger_workflow_pubsub_execution(workflow, trigger_pubsub_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::Execution
Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.
Constructor Details
#initialize ⇒ WorkflowExecutionsService
Returns a new instance of WorkflowExecutionsService.
45 46 47 48 49 50 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 45 def initialize super('https://workflowexecutions.googleapis.com/', '', client_name: 'google-apis-workflowexecutions_v1', client_version: Google::Apis::WorkflowexecutionsV1::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.
38 39 40 |
# File 'lib/google/apis/workflowexecutions_v1/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 'lib/google/apis/workflowexecutions_v1/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::WorkflowexecutionsV1::Execution
Cancels an execution of the given name.
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 109 def cancel_execution(name, cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::WorkflowexecutionsV1::CancelExecutionRequest::Representation command.request_object = cancel_execution_request_object command.response_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::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::WorkflowexecutionsV1::Execution
Creates a new execution using the latest revision of the given workflow.
144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 144 def create_project_location_workflow_execution(parent, execution_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/executions', ) command.request_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation command.request_object = execution_object command.response_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::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::WorkflowexecutionsV1::Execution
Returns an execution of the given name.
180 181 182 183 184 185 186 187 188 189 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 180 def get_project_location_workflow_execution(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::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, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::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).
235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 235 def list_project_location_workflow_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/executions', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::ListExecutionsResponse::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::ListExecutionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#trigger_workflow_pubsub_execution(workflow, trigger_pubsub_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::Execution
Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 75 def trigger_workflow_pubsub_execution(workflow, trigger_pubsub_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+workflow}:triggerPubsubExecution', ) command.request_representation = Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest::Representation command.request_object = trigger_pubsub_execution_request_object command.response_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::Execution command.params['workflow'] = workflow unless workflow.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |