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 |
|
---|
18 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for Workflows (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Manage workflow definitions. To execute workflows and manage executions, see
|
---|
27 | * the Workflows Executions API.</p>
|
---|
28 | *
|
---|
29 | * <p>
|
---|
30 | * For more information about this service, see the API
|
---|
31 | * <a href="https://cloud.google.com/workflows" target="_blank">Documentation</a>
|
---|
32 | * </p>
|
---|
33 | *
|
---|
34 | * @author Google, Inc.
|
---|
35 | */
|
---|
36 | class Workflows extends \Google\Service
|
---|
37 | {
|
---|
38 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
39 | const CLOUD_PLATFORM =
|
---|
40 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
41 |
|
---|
42 | public $projects_locations;
|
---|
43 | public $projects_locations_operations;
|
---|
44 | public $projects_locations_workflows;
|
---|
45 | public $rootUrlTemplate;
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * Constructs the internal representation of the Workflows 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://workflows.googleapis.com/';
|
---|
58 | $this->rootUrlTemplate = $rootUrl ?: 'https://workflows.UNIVERSE_DOMAIN/';
|
---|
59 | $this->servicePath = '';
|
---|
60 | $this->batchPath = 'batch';
|
---|
61 | $this->version = 'v1';
|
---|
62 | $this->serviceName = 'workflows';
|
---|
63 |
|
---|
64 | $this->projects_locations = new Workflows\Resource\ProjectsLocations(
|
---|
65 | $this,
|
---|
66 | $this->serviceName,
|
---|
67 | 'locations',
|
---|
68 | [
|
---|
69 | 'methods' => [
|
---|
70 | 'get' => [
|
---|
71 | 'path' => 'v1/{+name}',
|
---|
72 | 'httpMethod' => 'GET',
|
---|
73 | 'parameters' => [
|
---|
74 | 'name' => [
|
---|
75 | 'location' => 'path',
|
---|
76 | 'type' => 'string',
|
---|
77 | 'required' => true,
|
---|
78 | ],
|
---|
79 | ],
|
---|
80 | ],'list' => [
|
---|
81 | 'path' => 'v1/{+name}/locations',
|
---|
82 | 'httpMethod' => 'GET',
|
---|
83 | 'parameters' => [
|
---|
84 | 'name' => [
|
---|
85 | 'location' => 'path',
|
---|
86 | 'type' => 'string',
|
---|
87 | 'required' => true,
|
---|
88 | ],
|
---|
89 | 'filter' => [
|
---|
90 | 'location' => 'query',
|
---|
91 | 'type' => 'string',
|
---|
92 | ],
|
---|
93 | 'pageSize' => [
|
---|
94 | 'location' => 'query',
|
---|
95 | 'type' => 'integer',
|
---|
96 | ],
|
---|
97 | 'pageToken' => [
|
---|
98 | 'location' => 'query',
|
---|
99 | 'type' => 'string',
|
---|
100 | ],
|
---|
101 | ],
|
---|
102 | ],
|
---|
103 | ]
|
---|
104 | ]
|
---|
105 | );
|
---|
106 | $this->projects_locations_operations = new Workflows\Resource\ProjectsLocationsOperations(
|
---|
107 | $this,
|
---|
108 | $this->serviceName,
|
---|
109 | 'operations',
|
---|
110 | [
|
---|
111 | 'methods' => [
|
---|
112 | 'delete' => [
|
---|
113 | 'path' => 'v1/{+name}',
|
---|
114 | 'httpMethod' => 'DELETE',
|
---|
115 | 'parameters' => [
|
---|
116 | 'name' => [
|
---|
117 | 'location' => 'path',
|
---|
118 | 'type' => 'string',
|
---|
119 | 'required' => true,
|
---|
120 | ],
|
---|
121 | ],
|
---|
122 | ],'get' => [
|
---|
123 | 'path' => 'v1/{+name}',
|
---|
124 | 'httpMethod' => 'GET',
|
---|
125 | 'parameters' => [
|
---|
126 | 'name' => [
|
---|
127 | 'location' => 'path',
|
---|
128 | 'type' => 'string',
|
---|
129 | 'required' => true,
|
---|
130 | ],
|
---|
131 | ],
|
---|
132 | ],'list' => [
|
---|
133 | 'path' => 'v1/{+name}/operations',
|
---|
134 | 'httpMethod' => 'GET',
|
---|
135 | 'parameters' => [
|
---|
136 | 'name' => [
|
---|
137 | 'location' => 'path',
|
---|
138 | 'type' => 'string',
|
---|
139 | 'required' => true,
|
---|
140 | ],
|
---|
141 | 'filter' => [
|
---|
142 | 'location' => 'query',
|
---|
143 | 'type' => 'string',
|
---|
144 | ],
|
---|
145 | 'pageSize' => [
|
---|
146 | 'location' => 'query',
|
---|
147 | 'type' => 'integer',
|
---|
148 | ],
|
---|
149 | 'pageToken' => [
|
---|
150 | 'location' => 'query',
|
---|
151 | 'type' => 'string',
|
---|
152 | ],
|
---|
153 | ],
|
---|
154 | ],
|
---|
155 | ]
|
---|
156 | ]
|
---|
157 | );
|
---|
158 | $this->projects_locations_workflows = new Workflows\Resource\ProjectsLocationsWorkflows(
|
---|
159 | $this,
|
---|
160 | $this->serviceName,
|
---|
161 | 'workflows',
|
---|
162 | [
|
---|
163 | 'methods' => [
|
---|
164 | 'create' => [
|
---|
165 | 'path' => 'v1/{+parent}/workflows',
|
---|
166 | 'httpMethod' => 'POST',
|
---|
167 | 'parameters' => [
|
---|
168 | 'parent' => [
|
---|
169 | 'location' => 'path',
|
---|
170 | 'type' => 'string',
|
---|
171 | 'required' => true,
|
---|
172 | ],
|
---|
173 | 'workflowId' => [
|
---|
174 | 'location' => 'query',
|
---|
175 | 'type' => 'string',
|
---|
176 | ],
|
---|
177 | ],
|
---|
178 | ],'delete' => [
|
---|
179 | 'path' => 'v1/{+name}',
|
---|
180 | 'httpMethod' => 'DELETE',
|
---|
181 | 'parameters' => [
|
---|
182 | 'name' => [
|
---|
183 | 'location' => 'path',
|
---|
184 | 'type' => 'string',
|
---|
185 | 'required' => true,
|
---|
186 | ],
|
---|
187 | ],
|
---|
188 | ],'get' => [
|
---|
189 | 'path' => 'v1/{+name}',
|
---|
190 | 'httpMethod' => 'GET',
|
---|
191 | 'parameters' => [
|
---|
192 | 'name' => [
|
---|
193 | 'location' => 'path',
|
---|
194 | 'type' => 'string',
|
---|
195 | 'required' => true,
|
---|
196 | ],
|
---|
197 | 'revisionId' => [
|
---|
198 | 'location' => 'query',
|
---|
199 | 'type' => 'string',
|
---|
200 | ],
|
---|
201 | ],
|
---|
202 | ],'list' => [
|
---|
203 | 'path' => 'v1/{+parent}/workflows',
|
---|
204 | 'httpMethod' => 'GET',
|
---|
205 | 'parameters' => [
|
---|
206 | 'parent' => [
|
---|
207 | 'location' => 'path',
|
---|
208 | 'type' => 'string',
|
---|
209 | 'required' => true,
|
---|
210 | ],
|
---|
211 | 'filter' => [
|
---|
212 | 'location' => 'query',
|
---|
213 | 'type' => 'string',
|
---|
214 | ],
|
---|
215 | 'orderBy' => [
|
---|
216 | 'location' => 'query',
|
---|
217 | 'type' => 'string',
|
---|
218 | ],
|
---|
219 | 'pageSize' => [
|
---|
220 | 'location' => 'query',
|
---|
221 | 'type' => 'integer',
|
---|
222 | ],
|
---|
223 | 'pageToken' => [
|
---|
224 | 'location' => 'query',
|
---|
225 | 'type' => 'string',
|
---|
226 | ],
|
---|
227 | ],
|
---|
228 | ],'listRevisions' => [
|
---|
229 | 'path' => 'v1/{+name}:listRevisions',
|
---|
230 | 'httpMethod' => 'GET',
|
---|
231 | 'parameters' => [
|
---|
232 | 'name' => [
|
---|
233 | 'location' => 'path',
|
---|
234 | 'type' => 'string',
|
---|
235 | 'required' => true,
|
---|
236 | ],
|
---|
237 | 'pageSize' => [
|
---|
238 | 'location' => 'query',
|
---|
239 | 'type' => 'integer',
|
---|
240 | ],
|
---|
241 | 'pageToken' => [
|
---|
242 | 'location' => 'query',
|
---|
243 | 'type' => 'string',
|
---|
244 | ],
|
---|
245 | ],
|
---|
246 | ],'patch' => [
|
---|
247 | 'path' => 'v1/{+name}',
|
---|
248 | 'httpMethod' => 'PATCH',
|
---|
249 | 'parameters' => [
|
---|
250 | 'name' => [
|
---|
251 | 'location' => 'path',
|
---|
252 | 'type' => 'string',
|
---|
253 | 'required' => true,
|
---|
254 | ],
|
---|
255 | 'updateMask' => [
|
---|
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.
|
---|
268 | class_alias(Workflows::class, 'Google_Service_Workflows');
|
---|