source: vendor/google/apiclient-services/src/WorkflowExecutions.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 8.5 KB
RevLine 
[e3d4e0a]1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for WorkflowExecutions (v1).
24 *
25 * <p>
26 * Execute workflows created with Workflows API.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/workflows" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class WorkflowExecutions extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations_workflows;
42 public $projects_locations_workflows_executions;
43 public $projects_locations_workflows_executions_callbacks;
44 public $projects_locations_workflows_executions_stepEntries;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the WorkflowExecutions service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://workflowexecutions.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://workflowexecutions.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v1';
62 $this->serviceName = 'workflowexecutions';
63
64 $this->projects_locations_workflows = new WorkflowExecutions\Resource\ProjectsLocationsWorkflows(
65 $this,
66 $this->serviceName,
67 'workflows',
68 [
69 'methods' => [
70 'triggerPubsubExecution' => [
71 'path' => 'v1/{+workflow}:triggerPubsubExecution',
72 'httpMethod' => 'POST',
73 'parameters' => [
74 'workflow' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 ],
80 ],
81 ]
82 ]
83 );
84 $this->projects_locations_workflows_executions = new WorkflowExecutions\Resource\ProjectsLocationsWorkflowsExecutions(
85 $this,
86 $this->serviceName,
87 'executions',
88 [
89 'methods' => [
90 'cancel' => [
91 'path' => 'v1/{+name}:cancel',
92 'httpMethod' => 'POST',
93 'parameters' => [
94 'name' => [
95 'location' => 'path',
96 'type' => 'string',
97 'required' => true,
98 ],
99 ],
100 ],'create' => [
101 'path' => 'v1/{+parent}/executions',
102 'httpMethod' => 'POST',
103 'parameters' => [
104 'parent' => [
105 'location' => 'path',
106 'type' => 'string',
107 'required' => true,
108 ],
109 ],
110 ],'deleteExecutionHistory' => [
111 'path' => 'v1/{+name}:deleteExecutionHistory',
112 'httpMethod' => 'POST',
113 'parameters' => [
114 'name' => [
115 'location' => 'path',
116 'type' => 'string',
117 'required' => true,
118 ],
119 ],
120 ],'exportData' => [
121 'path' => 'v1/{+name}:exportData',
122 'httpMethod' => 'GET',
123 'parameters' => [
124 'name' => [
125 'location' => 'path',
126 'type' => 'string',
127 'required' => true,
128 ],
129 ],
130 ],'get' => [
131 'path' => 'v1/{+name}',
132 'httpMethod' => 'GET',
133 'parameters' => [
134 'name' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 'view' => [
140 'location' => 'query',
141 'type' => 'string',
142 ],
143 ],
144 ],'list' => [
145 'path' => 'v1/{+parent}/executions',
146 'httpMethod' => 'GET',
147 'parameters' => [
148 'parent' => [
149 'location' => 'path',
150 'type' => 'string',
151 'required' => true,
152 ],
153 'filter' => [
154 'location' => 'query',
155 'type' => 'string',
156 ],
157 'orderBy' => [
158 'location' => 'query',
159 'type' => 'string',
160 ],
161 'pageSize' => [
162 'location' => 'query',
163 'type' => 'integer',
164 ],
165 'pageToken' => [
166 'location' => 'query',
167 'type' => 'string',
168 ],
169 'view' => [
170 'location' => 'query',
171 'type' => 'string',
172 ],
173 ],
174 ],
175 ]
176 ]
177 );
178 $this->projects_locations_workflows_executions_callbacks = new WorkflowExecutions\Resource\ProjectsLocationsWorkflowsExecutionsCallbacks(
179 $this,
180 $this->serviceName,
181 'callbacks',
182 [
183 'methods' => [
184 'list' => [
185 'path' => 'v1/{+parent}/callbacks',
186 'httpMethod' => 'GET',
187 'parameters' => [
188 'parent' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 'pageSize' => [
194 'location' => 'query',
195 'type' => 'integer',
196 ],
197 'pageToken' => [
198 'location' => 'query',
199 'type' => 'string',
200 ],
201 ],
202 ],
203 ]
204 ]
205 );
206 $this->projects_locations_workflows_executions_stepEntries = new WorkflowExecutions\Resource\ProjectsLocationsWorkflowsExecutionsStepEntries(
207 $this,
208 $this->serviceName,
209 'stepEntries',
210 [
211 'methods' => [
212 'get' => [
213 'path' => 'v1/{+name}',
214 'httpMethod' => 'GET',
215 'parameters' => [
216 'name' => [
217 'location' => 'path',
218 'type' => 'string',
219 'required' => true,
220 ],
221 'view' => [
222 'location' => 'query',
223 'type' => 'string',
224 ],
225 ],
226 ],'list' => [
227 'path' => 'v1/{+parent}/stepEntries',
228 'httpMethod' => 'GET',
229 'parameters' => [
230 'parent' => [
231 'location' => 'path',
232 'type' => 'string',
233 'required' => true,
234 ],
235 'filter' => [
236 'location' => 'query',
237 'type' => 'string',
238 ],
239 'orderBy' => [
240 'location' => 'query',
241 'type' => 'string',
242 ],
243 'pageSize' => [
244 'location' => 'query',
245 'type' => 'integer',
246 ],
247 'pageToken' => [
248 'location' => 'query',
249 'type' => 'string',
250 ],
251 'skip' => [
252 'location' => 'query',
253 'type' => 'integer',
254 ],
255 'view' => [
256 'location' => 'query',
257 'type' => 'string',
258 ],
259 ],
260 ],
261 ]
262 ]
263 );
264 }
265}
266
267// Adding a class alias for backwards compatibility with the previous class name.
268class_alias(WorkflowExecutions::class, 'Google_Service_WorkflowExecutions');
Note: See TracBrowser for help on using the repository browser.