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.
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::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.
-
#export_project_location_workflow_execution_data(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ExportDataResponse
Returns all metadata stored about an execution, excluding most data that is already accessible using other API methods.
-
#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.
-
#get_project_location_workflow_execution_step_entry(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::StepEntry
Gets a step entry.
-
#initialize ⇒ WorkflowExecutionsService
constructor
A new instance of WorkflowExecutionsService.
-
#list_project_location_workflow_execution_callbacks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse
Returns a list of active callbacks that belong to the execution with the given name.
-
#list_project_location_workflow_execution_step_entries(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, skip: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ListStepEntriesResponse
Lists step entries for the corresponding workflow execution.
-
#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.
47 48 49 50 51 52 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', 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.
40 41 42 |
# File 'lib/google/apis/workflowexecutions_v1/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_v1/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::WorkflowexecutionsV1::Execution
Cancels an execution of the given name.
111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 111 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. For more information, see Execute a workflow.
147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 147 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 |
#export_project_location_workflow_execution_data(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ExportDataResponse
Returns all metadata stored about an execution, excluding most data that is already accessible using other API methods.
182 183 184 185 186 187 188 189 190 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 182 def export_project_location_workflow_execution_data(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:exportData', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::ExportDataResponse::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::ExportDataResponse 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 |
#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.
216 217 218 219 220 221 222 223 224 225 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 216 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 |
#get_project_location_workflow_execution_step_entry(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::StepEntry
Gets a step entry.
357 358 359 360 361 362 363 364 365 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 357 def get_project_location_workflow_execution_step_entry(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::StepEntry::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::StepEntry 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 |
#list_project_location_workflow_execution_callbacks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse
Returns a list of active callbacks that belong to the execution with the given name. The returned callbacks are ordered by callback ID.
323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 323 def list_project_location_workflow_execution_callbacks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/callbacks', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse 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['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_execution_step_entries(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, skip: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WorkflowexecutionsV1::ListStepEntriesResponse
Lists step entries for the corresponding workflow execution. Returned entries are ordered by their create_time.
413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 413 def list_project_location_workflow_execution_step_entries(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, skip: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/stepEntries', ) command.response_representation = Google::Apis::WorkflowexecutionsV1::ListStepEntriesResponse::Representation command.response_class = Google::Apis::WorkflowexecutionsV1::ListStepEntriesResponse 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['skip'] = skip unless skip.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).
277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 277 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.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/google/apis/workflowexecutions_v1/service.rb', line 77 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 |