source: vendor/google/apiclient-services/src/DeploymentManager.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 18.6 KB
Line 
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 DeploymentManager (v2).
24 *
25 * <p>
26 * The Google Cloud Deployment Manager v2 API provides services for configuring,
27 * deploying, and viewing Google Cloud services and APIs via templates which
28 * specify deployments of Cloud resources.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/deployment-manager" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class DeploymentManager extends \Google\Service
38{
39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
40 const CLOUD_PLATFORM =
41 "https://www.googleapis.com/auth/cloud-platform";
42 /** View your data across Google Cloud services and see the email address of your Google Account. */
43 const CLOUD_PLATFORM_READ_ONLY =
44 "https://www.googleapis.com/auth/cloud-platform.read-only";
45 /** View and manage your Google Cloud Platform management resources and deployment status information. */
46 const NDEV_CLOUDMAN =
47 "https://www.googleapis.com/auth/ndev.cloudman";
48 /** View your Google Cloud Platform management resources and deployment status information. */
49 const NDEV_CLOUDMAN_READONLY =
50 "https://www.googleapis.com/auth/ndev.cloudman.readonly";
51
52 public $deployments;
53 public $manifests;
54 public $operations;
55 public $resources;
56 public $types;
57 public $rootUrlTemplate;
58
59 /**
60 * Constructs the internal representation of the DeploymentManager service.
61 *
62 * @param Client|array $clientOrConfig The client used to deliver requests, or a
63 * config array to pass to a new Client instance.
64 * @param string $rootUrl The root URL used for requests to the service.
65 */
66 public function __construct($clientOrConfig = [], $rootUrl = null)
67 {
68 parent::__construct($clientOrConfig);
69 $this->rootUrl = $rootUrl ?: 'https://deploymentmanager.googleapis.com/';
70 $this->rootUrlTemplate = $rootUrl ?: 'https://deploymentmanager.UNIVERSE_DOMAIN/';
71 $this->servicePath = '';
72 $this->batchPath = 'batch';
73 $this->version = 'v2';
74 $this->serviceName = 'deploymentmanager';
75
76 $this->deployments = new DeploymentManager\Resource\Deployments(
77 $this,
78 $this->serviceName,
79 'deployments',
80 [
81 'methods' => [
82 'cancelPreview' => [
83 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview',
84 'httpMethod' => 'POST',
85 'parameters' => [
86 'project' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 'deployment' => [
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ],
96 ],
97 ],'delete' => [
98 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}',
99 'httpMethod' => 'DELETE',
100 'parameters' => [
101 'project' => [
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ],
106 'deployment' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 'deletePolicy' => [
112 'location' => 'query',
113 'type' => 'string',
114 ],
115 'header.bypassBillingFilter' => [
116 'location' => 'query',
117 'type' => 'boolean',
118 ],
119 ],
120 ],'get' => [
121 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}',
122 'httpMethod' => 'GET',
123 'parameters' => [
124 'project' => [
125 'location' => 'path',
126 'type' => 'string',
127 'required' => true,
128 ],
129 'deployment' => [
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ],
134 'header.bypassBillingFilter' => [
135 'location' => 'query',
136 'type' => 'boolean',
137 ],
138 ],
139 ],'getIamPolicy' => [
140 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy',
141 'httpMethod' => 'GET',
142 'parameters' => [
143 'project' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 'resource' => [
149 'location' => 'path',
150 'type' => 'string',
151 'required' => true,
152 ],
153 'header.bypassBillingFilter' => [
154 'location' => 'query',
155 'type' => 'boolean',
156 ],
157 'optionsRequestedPolicyVersion' => [
158 'location' => 'query',
159 'type' => 'integer',
160 ],
161 ],
162 ],'insert' => [
163 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments',
164 'httpMethod' => 'POST',
165 'parameters' => [
166 'project' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 'createPolicy' => [
172 'location' => 'query',
173 'type' => 'string',
174 ],
175 'header.bypassBillingFilter' => [
176 'location' => 'query',
177 'type' => 'boolean',
178 ],
179 'preview' => [
180 'location' => 'query',
181 'type' => 'boolean',
182 ],
183 ],
184 ],'list' => [
185 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments',
186 'httpMethod' => 'GET',
187 'parameters' => [
188 'project' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 'filter' => [
194 'location' => 'query',
195 'type' => 'string',
196 ],
197 'maxResults' => [
198 'location' => 'query',
199 'type' => 'integer',
200 ],
201 'orderBy' => [
202 'location' => 'query',
203 'type' => 'string',
204 ],
205 'pageToken' => [
206 'location' => 'query',
207 'type' => 'string',
208 ],
209 ],
210 ],'patch' => [
211 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}',
212 'httpMethod' => 'PATCH',
213 'parameters' => [
214 'project' => [
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ],
219 'deployment' => [
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ],
224 'createPolicy' => [
225 'location' => 'query',
226 'type' => 'string',
227 ],
228 'deletePolicy' => [
229 'location' => 'query',
230 'type' => 'string',
231 ],
232 'header.bypassBillingFilter' => [
233 'location' => 'query',
234 'type' => 'boolean',
235 ],
236 'preview' => [
237 'location' => 'query',
238 'type' => 'boolean',
239 ],
240 ],
241 ],'setIamPolicy' => [
242 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy',
243 'httpMethod' => 'POST',
244 'parameters' => [
245 'project' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 'resource' => [
251 'location' => 'path',
252 'type' => 'string',
253 'required' => true,
254 ],
255 ],
256 ],'stop' => [
257 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop',
258 'httpMethod' => 'POST',
259 'parameters' => [
260 'project' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 'deployment' => [
266 'location' => 'path',
267 'type' => 'string',
268 'required' => true,
269 ],
270 ],
271 ],'testIamPermissions' => [
272 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions',
273 'httpMethod' => 'POST',
274 'parameters' => [
275 'project' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 'resource' => [
281 'location' => 'path',
282 'type' => 'string',
283 'required' => true,
284 ],
285 'header.bypassBillingFilter' => [
286 'location' => 'query',
287 'type' => 'boolean',
288 ],
289 ],
290 ],'update' => [
291 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}',
292 'httpMethod' => 'PUT',
293 'parameters' => [
294 'project' => [
295 'location' => 'path',
296 'type' => 'string',
297 'required' => true,
298 ],
299 'deployment' => [
300 'location' => 'path',
301 'type' => 'string',
302 'required' => true,
303 ],
304 'createPolicy' => [
305 'location' => 'query',
306 'type' => 'string',
307 ],
308 'deletePolicy' => [
309 'location' => 'query',
310 'type' => 'string',
311 ],
312 'header.bypassBillingFilter' => [
313 'location' => 'query',
314 'type' => 'boolean',
315 ],
316 'preview' => [
317 'location' => 'query',
318 'type' => 'boolean',
319 ],
320 ],
321 ],
322 ]
323 ]
324 );
325 $this->manifests = new DeploymentManager\Resource\Manifests(
326 $this,
327 $this->serviceName,
328 'manifests',
329 [
330 'methods' => [
331 'get' => [
332 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}',
333 'httpMethod' => 'GET',
334 'parameters' => [
335 'project' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 'deployment' => [
341 'location' => 'path',
342 'type' => 'string',
343 'required' => true,
344 ],
345 'manifest' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 'header.bypassBillingFilter' => [
351 'location' => 'query',
352 'type' => 'boolean',
353 ],
354 ],
355 ],'list' => [
356 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests',
357 'httpMethod' => 'GET',
358 'parameters' => [
359 'project' => [
360 'location' => 'path',
361 'type' => 'string',
362 'required' => true,
363 ],
364 'deployment' => [
365 'location' => 'path',
366 'type' => 'string',
367 'required' => true,
368 ],
369 'filter' => [
370 'location' => 'query',
371 'type' => 'string',
372 ],
373 'maxResults' => [
374 'location' => 'query',
375 'type' => 'integer',
376 ],
377 'orderBy' => [
378 'location' => 'query',
379 'type' => 'string',
380 ],
381 'pageToken' => [
382 'location' => 'query',
383 'type' => 'string',
384 ],
385 ],
386 ],
387 ]
388 ]
389 );
390 $this->operations = new DeploymentManager\Resource\Operations(
391 $this,
392 $this->serviceName,
393 'operations',
394 [
395 'methods' => [
396 'get' => [
397 'path' => 'deploymentmanager/v2/projects/{project}/global/operations/{operation}',
398 'httpMethod' => 'GET',
399 'parameters' => [
400 'project' => [
401 'location' => 'path',
402 'type' => 'string',
403 'required' => true,
404 ],
405 'operation' => [
406 'location' => 'path',
407 'type' => 'string',
408 'required' => true,
409 ],
410 'header.bypassBillingFilter' => [
411 'location' => 'query',
412 'type' => 'boolean',
413 ],
414 ],
415 ],'list' => [
416 'path' => 'deploymentmanager/v2/projects/{project}/global/operations',
417 'httpMethod' => 'GET',
418 'parameters' => [
419 'project' => [
420 'location' => 'path',
421 'type' => 'string',
422 'required' => true,
423 ],
424 'filter' => [
425 'location' => 'query',
426 'type' => 'string',
427 ],
428 'maxResults' => [
429 'location' => 'query',
430 'type' => 'integer',
431 ],
432 'orderBy' => [
433 'location' => 'query',
434 'type' => 'string',
435 ],
436 'pageToken' => [
437 'location' => 'query',
438 'type' => 'string',
439 ],
440 ],
441 ],
442 ]
443 ]
444 );
445 $this->resources = new DeploymentManager\Resource\Resources(
446 $this,
447 $this->serviceName,
448 'resources',
449 [
450 'methods' => [
451 'get' => [
452 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}',
453 'httpMethod' => 'GET',
454 'parameters' => [
455 'project' => [
456 'location' => 'path',
457 'type' => 'string',
458 'required' => true,
459 ],
460 'deployment' => [
461 'location' => 'path',
462 'type' => 'string',
463 'required' => true,
464 ],
465 'resource' => [
466 'location' => 'path',
467 'type' => 'string',
468 'required' => true,
469 ],
470 'header.bypassBillingFilter' => [
471 'location' => 'query',
472 'type' => 'boolean',
473 ],
474 ],
475 ],'list' => [
476 'path' => 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources',
477 'httpMethod' => 'GET',
478 'parameters' => [
479 'project' => [
480 'location' => 'path',
481 'type' => 'string',
482 'required' => true,
483 ],
484 'deployment' => [
485 'location' => 'path',
486 'type' => 'string',
487 'required' => true,
488 ],
489 'filter' => [
490 'location' => 'query',
491 'type' => 'string',
492 ],
493 'maxResults' => [
494 'location' => 'query',
495 'type' => 'integer',
496 ],
497 'orderBy' => [
498 'location' => 'query',
499 'type' => 'string',
500 ],
501 'pageToken' => [
502 'location' => 'query',
503 'type' => 'string',
504 ],
505 ],
506 ],
507 ]
508 ]
509 );
510 $this->types = new DeploymentManager\Resource\Types(
511 $this,
512 $this->serviceName,
513 'types',
514 [
515 'methods' => [
516 'list' => [
517 'path' => 'deploymentmanager/v2/projects/{project}/global/types',
518 'httpMethod' => 'GET',
519 'parameters' => [
520 'project' => [
521 'location' => 'path',
522 'type' => 'string',
523 'required' => true,
524 ],
525 'filter' => [
526 'location' => 'query',
527 'type' => 'string',
528 ],
529 'maxResults' => [
530 'location' => 'query',
531 'type' => 'integer',
532 ],
533 'orderBy' => [
534 'location' => 'query',
535 'type' => 'string',
536 ],
537 'pageToken' => [
538 'location' => 'query',
539 'type' => 'string',
540 ],
541 ],
542 ],
543 ]
544 ]
545 );
546 }
547}
548
549// Adding a class alias for backwards compatibility with the previous class name.
550class_alias(DeploymentManager::class, 'Google_Service_DeploymentManager');
Note: See TracBrowser for help on using the repository browser.