source: vendor/google/apiclient-services/src/CloudComposer.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 15.1 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 CloudComposer (v1).
24 *
25 * <p>
26 * Manages Apache Airflow environments on Google Cloud Platform.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/composer/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudComposer 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_environments;
42 public $projects_locations_environments_userWorkloadsConfigMaps;
43 public $projects_locations_environments_userWorkloadsSecrets;
44 public $projects_locations_environments_workloads;
45 public $projects_locations_imageVersions;
46 public $projects_locations_operations;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the CloudComposer service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://composer.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://composer.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'composer';
65
66 $this->projects_locations_environments = new CloudComposer\Resource\ProjectsLocationsEnvironments(
67 $this,
68 $this->serviceName,
69 'environments',
70 [
71 'methods' => [
72 'checkUpgrade' => [
73 'path' => 'v1/{+environment}:checkUpgrade',
74 'httpMethod' => 'POST',
75 'parameters' => [
76 'environment' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'create' => [
83 'path' => 'v1/{+parent}/environments',
84 'httpMethod' => 'POST',
85 'parameters' => [
86 'parent' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 ],
92 ],'databaseFailover' => [
93 'path' => 'v1/{+environment}:databaseFailover',
94 'httpMethod' => 'POST',
95 'parameters' => [
96 'environment' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],'delete' => [
103 'path' => 'v1/{+name}',
104 'httpMethod' => 'DELETE',
105 'parameters' => [
106 'name' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 ],
112 ],'executeAirflowCommand' => [
113 'path' => 'v1/{+environment}:executeAirflowCommand',
114 'httpMethod' => 'POST',
115 'parameters' => [
116 'environment' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 ],
122 ],'fetchDatabaseProperties' => [
123 'path' => 'v1/{+environment}:fetchDatabaseProperties',
124 'httpMethod' => 'GET',
125 'parameters' => [
126 'environment' => [
127 'location' => 'path',
128 'type' => 'string',
129 'required' => true,
130 ],
131 ],
132 ],'get' => [
133 'path' => 'v1/{+name}',
134 'httpMethod' => 'GET',
135 'parameters' => [
136 'name' => [
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ],
141 ],
142 ],'list' => [
143 'path' => 'v1/{+parent}/environments',
144 'httpMethod' => 'GET',
145 'parameters' => [
146 'parent' => [
147 'location' => 'path',
148 'type' => 'string',
149 'required' => true,
150 ],
151 'pageSize' => [
152 'location' => 'query',
153 'type' => 'integer',
154 ],
155 'pageToken' => [
156 'location' => 'query',
157 'type' => 'string',
158 ],
159 ],
160 ],'loadSnapshot' => [
161 'path' => 'v1/{+environment}:loadSnapshot',
162 'httpMethod' => 'POST',
163 'parameters' => [
164 'environment' => [
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ],
169 ],
170 ],'patch' => [
171 'path' => 'v1/{+name}',
172 'httpMethod' => 'PATCH',
173 'parameters' => [
174 'name' => [
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ],
179 'updateMask' => [
180 'location' => 'query',
181 'type' => 'string',
182 ],
183 ],
184 ],'pollAirflowCommand' => [
185 'path' => 'v1/{+environment}:pollAirflowCommand',
186 'httpMethod' => 'POST',
187 'parameters' => [
188 'environment' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 ],
194 ],'saveSnapshot' => [
195 'path' => 'v1/{+environment}:saveSnapshot',
196 'httpMethod' => 'POST',
197 'parameters' => [
198 'environment' => [
199 'location' => 'path',
200 'type' => 'string',
201 'required' => true,
202 ],
203 ],
204 ],'stopAirflowCommand' => [
205 'path' => 'v1/{+environment}:stopAirflowCommand',
206 'httpMethod' => 'POST',
207 'parameters' => [
208 'environment' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 ],
214 ],
215 ]
216 ]
217 );
218 $this->projects_locations_environments_userWorkloadsConfigMaps = new CloudComposer\Resource\ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps(
219 $this,
220 $this->serviceName,
221 'userWorkloadsConfigMaps',
222 [
223 'methods' => [
224 'create' => [
225 'path' => 'v1/{+parent}/userWorkloadsConfigMaps',
226 'httpMethod' => 'POST',
227 'parameters' => [
228 'parent' => [
229 'location' => 'path',
230 'type' => 'string',
231 'required' => true,
232 ],
233 ],
234 ],'delete' => [
235 'path' => 'v1/{+name}',
236 'httpMethod' => 'DELETE',
237 'parameters' => [
238 'name' => [
239 'location' => 'path',
240 'type' => 'string',
241 'required' => true,
242 ],
243 ],
244 ],'get' => [
245 'path' => 'v1/{+name}',
246 'httpMethod' => 'GET',
247 'parameters' => [
248 'name' => [
249 'location' => 'path',
250 'type' => 'string',
251 'required' => true,
252 ],
253 ],
254 ],'list' => [
255 'path' => 'v1/{+parent}/userWorkloadsConfigMaps',
256 'httpMethod' => 'GET',
257 'parameters' => [
258 'parent' => [
259 'location' => 'path',
260 'type' => 'string',
261 'required' => true,
262 ],
263 'pageSize' => [
264 'location' => 'query',
265 'type' => 'integer',
266 ],
267 'pageToken' => [
268 'location' => 'query',
269 'type' => 'string',
270 ],
271 ],
272 ],'update' => [
273 'path' => 'v1/{+name}',
274 'httpMethod' => 'PUT',
275 'parameters' => [
276 'name' => [
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ],
281 ],
282 ],
283 ]
284 ]
285 );
286 $this->projects_locations_environments_userWorkloadsSecrets = new CloudComposer\Resource\ProjectsLocationsEnvironmentsUserWorkloadsSecrets(
287 $this,
288 $this->serviceName,
289 'userWorkloadsSecrets',
290 [
291 'methods' => [
292 'create' => [
293 'path' => 'v1/{+parent}/userWorkloadsSecrets',
294 'httpMethod' => 'POST',
295 'parameters' => [
296 'parent' => [
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ],
301 ],
302 ],'delete' => [
303 'path' => 'v1/{+name}',
304 'httpMethod' => 'DELETE',
305 'parameters' => [
306 'name' => [
307 'location' => 'path',
308 'type' => 'string',
309 'required' => true,
310 ],
311 ],
312 ],'get' => [
313 'path' => 'v1/{+name}',
314 'httpMethod' => 'GET',
315 'parameters' => [
316 'name' => [
317 'location' => 'path',
318 'type' => 'string',
319 'required' => true,
320 ],
321 ],
322 ],'list' => [
323 'path' => 'v1/{+parent}/userWorkloadsSecrets',
324 'httpMethod' => 'GET',
325 'parameters' => [
326 'parent' => [
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ],
331 'pageSize' => [
332 'location' => 'query',
333 'type' => 'integer',
334 ],
335 'pageToken' => [
336 'location' => 'query',
337 'type' => 'string',
338 ],
339 ],
340 ],'update' => [
341 'path' => 'v1/{+name}',
342 'httpMethod' => 'PUT',
343 'parameters' => [
344 'name' => [
345 'location' => 'path',
346 'type' => 'string',
347 'required' => true,
348 ],
349 ],
350 ],
351 ]
352 ]
353 );
354 $this->projects_locations_environments_workloads = new CloudComposer\Resource\ProjectsLocationsEnvironmentsWorkloads(
355 $this,
356 $this->serviceName,
357 'workloads',
358 [
359 'methods' => [
360 'list' => [
361 'path' => 'v1/{+parent}/workloads',
362 'httpMethod' => 'GET',
363 'parameters' => [
364 'parent' => [
365 'location' => 'path',
366 'type' => 'string',
367 'required' => true,
368 ],
369 'filter' => [
370 'location' => 'query',
371 'type' => 'string',
372 ],
373 'pageSize' => [
374 'location' => 'query',
375 'type' => 'integer',
376 ],
377 'pageToken' => [
378 'location' => 'query',
379 'type' => 'string',
380 ],
381 ],
382 ],
383 ]
384 ]
385 );
386 $this->projects_locations_imageVersions = new CloudComposer\Resource\ProjectsLocationsImageVersions(
387 $this,
388 $this->serviceName,
389 'imageVersions',
390 [
391 'methods' => [
392 'list' => [
393 'path' => 'v1/{+parent}/imageVersions',
394 'httpMethod' => 'GET',
395 'parameters' => [
396 'parent' => [
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ],
401 'includePastReleases' => [
402 'location' => 'query',
403 'type' => 'boolean',
404 ],
405 'pageSize' => [
406 'location' => 'query',
407 'type' => 'integer',
408 ],
409 'pageToken' => [
410 'location' => 'query',
411 'type' => 'string',
412 ],
413 ],
414 ],
415 ]
416 ]
417 );
418 $this->projects_locations_operations = new CloudComposer\Resource\ProjectsLocationsOperations(
419 $this,
420 $this->serviceName,
421 'operations',
422 [
423 'methods' => [
424 'delete' => [
425 'path' => 'v1/{+name}',
426 'httpMethod' => 'DELETE',
427 'parameters' => [
428 'name' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 ],
434 ],'get' => [
435 'path' => 'v1/{+name}',
436 'httpMethod' => 'GET',
437 'parameters' => [
438 'name' => [
439 'location' => 'path',
440 'type' => 'string',
441 'required' => true,
442 ],
443 ],
444 ],'list' => [
445 'path' => 'v1/{+name}/operations',
446 'httpMethod' => 'GET',
447 'parameters' => [
448 'name' => [
449 'location' => 'path',
450 'type' => 'string',
451 'required' => true,
452 ],
453 'filter' => [
454 'location' => 'query',
455 'type' => 'string',
456 ],
457 'pageSize' => [
458 'location' => 'query',
459 'type' => 'integer',
460 ],
461 'pageToken' => [
462 'location' => 'query',
463 'type' => 'string',
464 ],
465 ],
466 ],
467 ]
468 ]
469 );
470 }
471}
472
473// Adding a class alias for backwards compatibility with the previous class name.
474class_alias(CloudComposer::class, 'Google_Service_CloudComposer');
Note: See TracBrowser for help on using the repository browser.