* $workflowexecutionsService = new Google\Service\WorkflowExecutions(...); * $workflows = $workflowexecutionsService->workflows; * */ class ProjectsLocationsWorkflows extends \Google\Service\Resource { /** * Triggers a new execution using the latest revision of the given workflow by a * Pub/Sub push notification. (workflows.triggerPubsubExecution) * * @param string $workflow Required. Name of the workflow for which an execution * should be created. Format: * projects/{project}/locations/{location}/workflows/{workflow} * @param TriggerPubsubExecutionRequest $postBody * @param array $optParams Optional parameters. * @return Execution */ public function triggerPubsubExecution($workflow, TriggerPubsubExecutionRequest $postBody, $optParams = []) { $params = ['workflow' => $workflow, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('triggerPubsubExecution', [$params], Execution::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsWorkflows::class, 'Google_Service_WorkflowExecutions_Resource_ProjectsLocationsWorkflows');