source: vendor/google/apiclient-services/src/AppHub.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: 22.3 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 AppHub (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/app-hub/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AppHub 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;
42 public $projects_locations_applications;
43 public $projects_locations_applications_services;
44 public $projects_locations_applications_workloads;
45 public $projects_locations_discoveredServices;
46 public $projects_locations_discoveredWorkloads;
47 public $projects_locations_operations;
48 public $projects_locations_serviceProjectAttachments;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the AppHub service.
53 *
54 * @param Client|array $clientOrConfig The client used to deliver requests, or a
55 * config array to pass to a new Client instance.
56 * @param string $rootUrl The root URL used for requests to the service.
57 */
58 public function __construct($clientOrConfig = [], $rootUrl = null)
59 {
60 parent::__construct($clientOrConfig);
61 $this->rootUrl = $rootUrl ?: 'https://apphub.googleapis.com/';
62 $this->rootUrlTemplate = $rootUrl ?: 'https://apphub.UNIVERSE_DOMAIN/';
63 $this->servicePath = '';
64 $this->batchPath = 'batch';
65 $this->version = 'v1';
66 $this->serviceName = 'apphub';
67
68 $this->projects_locations = new AppHub\Resource\ProjectsLocations(
69 $this,
70 $this->serviceName,
71 'locations',
72 [
73 'methods' => [
74 'detachServiceProjectAttachment' => [
75 'path' => 'v1/{+name}:detachServiceProjectAttachment',
76 'httpMethod' => 'POST',
77 'parameters' => [
78 'name' => [
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ],
83 ],
84 ],'get' => [
85 'path' => 'v1/{+name}',
86 'httpMethod' => 'GET',
87 'parameters' => [
88 'name' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 ],
94 ],'list' => [
95 'path' => 'v1/{+name}/locations',
96 'httpMethod' => 'GET',
97 'parameters' => [
98 'name' => [
99 'location' => 'path',
100 'type' => 'string',
101 'required' => true,
102 ],
103 'filter' => [
104 'location' => 'query',
105 'type' => 'string',
106 ],
107 'pageSize' => [
108 'location' => 'query',
109 'type' => 'integer',
110 ],
111 'pageToken' => [
112 'location' => 'query',
113 'type' => 'string',
114 ],
115 ],
116 ],'lookupServiceProjectAttachment' => [
117 'path' => 'v1/{+name}:lookupServiceProjectAttachment',
118 'httpMethod' => 'GET',
119 'parameters' => [
120 'name' => [
121 'location' => 'path',
122 'type' => 'string',
123 'required' => true,
124 ],
125 ],
126 ],
127 ]
128 ]
129 );
130 $this->projects_locations_applications = new AppHub\Resource\ProjectsLocationsApplications(
131 $this,
132 $this->serviceName,
133 'applications',
134 [
135 'methods' => [
136 'create' => [
137 'path' => 'v1/{+parent}/applications',
138 'httpMethod' => 'POST',
139 'parameters' => [
140 'parent' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 'applicationId' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 'requestId' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],'delete' => [
155 'path' => 'v1/{+name}',
156 'httpMethod' => 'DELETE',
157 'parameters' => [
158 'name' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 'requestId' => [
164 'location' => 'query',
165 'type' => 'string',
166 ],
167 ],
168 ],'get' => [
169 'path' => 'v1/{+name}',
170 'httpMethod' => 'GET',
171 'parameters' => [
172 'name' => [
173 'location' => 'path',
174 'type' => 'string',
175 'required' => true,
176 ],
177 ],
178 ],'getIamPolicy' => [
179 'path' => 'v1/{+resource}:getIamPolicy',
180 'httpMethod' => 'GET',
181 'parameters' => [
182 'resource' => [
183 'location' => 'path',
184 'type' => 'string',
185 'required' => true,
186 ],
187 'options.requestedPolicyVersion' => [
188 'location' => 'query',
189 'type' => 'integer',
190 ],
191 ],
192 ],'list' => [
193 'path' => 'v1/{+parent}/applications',
194 'httpMethod' => 'GET',
195 'parameters' => [
196 'parent' => [
197 'location' => 'path',
198 'type' => 'string',
199 'required' => true,
200 ],
201 'filter' => [
202 'location' => 'query',
203 'type' => 'string',
204 ],
205 'orderBy' => [
206 'location' => 'query',
207 'type' => 'string',
208 ],
209 'pageSize' => [
210 'location' => 'query',
211 'type' => 'integer',
212 ],
213 'pageToken' => [
214 'location' => 'query',
215 'type' => 'string',
216 ],
217 ],
218 ],'patch' => [
219 'path' => 'v1/{+name}',
220 'httpMethod' => 'PATCH',
221 'parameters' => [
222 'name' => [
223 'location' => 'path',
224 'type' => 'string',
225 'required' => true,
226 ],
227 'requestId' => [
228 'location' => 'query',
229 'type' => 'string',
230 ],
231 'updateMask' => [
232 'location' => 'query',
233 'type' => 'string',
234 ],
235 ],
236 ],'setIamPolicy' => [
237 'path' => 'v1/{+resource}:setIamPolicy',
238 'httpMethod' => 'POST',
239 'parameters' => [
240 'resource' => [
241 'location' => 'path',
242 'type' => 'string',
243 'required' => true,
244 ],
245 ],
246 ],'testIamPermissions' => [
247 'path' => 'v1/{+resource}:testIamPermissions',
248 'httpMethod' => 'POST',
249 'parameters' => [
250 'resource' => [
251 'location' => 'path',
252 'type' => 'string',
253 'required' => true,
254 ],
255 ],
256 ],
257 ]
258 ]
259 );
260 $this->projects_locations_applications_services = new AppHub\Resource\ProjectsLocationsApplicationsServices(
261 $this,
262 $this->serviceName,
263 'services',
264 [
265 'methods' => [
266 'create' => [
267 'path' => 'v1/{+parent}/services',
268 'httpMethod' => 'POST',
269 'parameters' => [
270 'parent' => [
271 'location' => 'path',
272 'type' => 'string',
273 'required' => true,
274 ],
275 'requestId' => [
276 'location' => 'query',
277 'type' => 'string',
278 ],
279 'serviceId' => [
280 'location' => 'query',
281 'type' => 'string',
282 ],
283 ],
284 ],'delete' => [
285 'path' => 'v1/{+name}',
286 'httpMethod' => 'DELETE',
287 'parameters' => [
288 'name' => [
289 'location' => 'path',
290 'type' => 'string',
291 'required' => true,
292 ],
293 'requestId' => [
294 'location' => 'query',
295 'type' => 'string',
296 ],
297 ],
298 ],'get' => [
299 'path' => 'v1/{+name}',
300 'httpMethod' => 'GET',
301 'parameters' => [
302 'name' => [
303 'location' => 'path',
304 'type' => 'string',
305 'required' => true,
306 ],
307 ],
308 ],'list' => [
309 'path' => 'v1/{+parent}/services',
310 'httpMethod' => 'GET',
311 'parameters' => [
312 'parent' => [
313 'location' => 'path',
314 'type' => 'string',
315 'required' => true,
316 ],
317 'filter' => [
318 'location' => 'query',
319 'type' => 'string',
320 ],
321 'orderBy' => [
322 'location' => 'query',
323 'type' => 'string',
324 ],
325 'pageSize' => [
326 'location' => 'query',
327 'type' => 'integer',
328 ],
329 'pageToken' => [
330 'location' => 'query',
331 'type' => 'string',
332 ],
333 ],
334 ],'patch' => [
335 'path' => 'v1/{+name}',
336 'httpMethod' => 'PATCH',
337 'parameters' => [
338 'name' => [
339 'location' => 'path',
340 'type' => 'string',
341 'required' => true,
342 ],
343 'requestId' => [
344 'location' => 'query',
345 'type' => 'string',
346 ],
347 'updateMask' => [
348 'location' => 'query',
349 'type' => 'string',
350 ],
351 ],
352 ],
353 ]
354 ]
355 );
356 $this->projects_locations_applications_workloads = new AppHub\Resource\ProjectsLocationsApplicationsWorkloads(
357 $this,
358 $this->serviceName,
359 'workloads',
360 [
361 'methods' => [
362 'create' => [
363 'path' => 'v1/{+parent}/workloads',
364 'httpMethod' => 'POST',
365 'parameters' => [
366 'parent' => [
367 'location' => 'path',
368 'type' => 'string',
369 'required' => true,
370 ],
371 'requestId' => [
372 'location' => 'query',
373 'type' => 'string',
374 ],
375 'workloadId' => [
376 'location' => 'query',
377 'type' => 'string',
378 ],
379 ],
380 ],'delete' => [
381 'path' => 'v1/{+name}',
382 'httpMethod' => 'DELETE',
383 'parameters' => [
384 'name' => [
385 'location' => 'path',
386 'type' => 'string',
387 'required' => true,
388 ],
389 'requestId' => [
390 'location' => 'query',
391 'type' => 'string',
392 ],
393 ],
394 ],'get' => [
395 'path' => 'v1/{+name}',
396 'httpMethod' => 'GET',
397 'parameters' => [
398 'name' => [
399 'location' => 'path',
400 'type' => 'string',
401 'required' => true,
402 ],
403 ],
404 ],'list' => [
405 'path' => 'v1/{+parent}/workloads',
406 'httpMethod' => 'GET',
407 'parameters' => [
408 'parent' => [
409 'location' => 'path',
410 'type' => 'string',
411 'required' => true,
412 ],
413 'filter' => [
414 'location' => 'query',
415 'type' => 'string',
416 ],
417 'orderBy' => [
418 'location' => 'query',
419 'type' => 'string',
420 ],
421 'pageSize' => [
422 'location' => 'query',
423 'type' => 'integer',
424 ],
425 'pageToken' => [
426 'location' => 'query',
427 'type' => 'string',
428 ],
429 ],
430 ],'patch' => [
431 'path' => 'v1/{+name}',
432 'httpMethod' => 'PATCH',
433 'parameters' => [
434 'name' => [
435 'location' => 'path',
436 'type' => 'string',
437 'required' => true,
438 ],
439 'requestId' => [
440 'location' => 'query',
441 'type' => 'string',
442 ],
443 'updateMask' => [
444 'location' => 'query',
445 'type' => 'string',
446 ],
447 ],
448 ],
449 ]
450 ]
451 );
452 $this->projects_locations_discoveredServices = new AppHub\Resource\ProjectsLocationsDiscoveredServices(
453 $this,
454 $this->serviceName,
455 'discoveredServices',
456 [
457 'methods' => [
458 'get' => [
459 'path' => 'v1/{+name}',
460 'httpMethod' => 'GET',
461 'parameters' => [
462 'name' => [
463 'location' => 'path',
464 'type' => 'string',
465 'required' => true,
466 ],
467 ],
468 ],'list' => [
469 'path' => 'v1/{+parent}/discoveredServices',
470 'httpMethod' => 'GET',
471 'parameters' => [
472 'parent' => [
473 'location' => 'path',
474 'type' => 'string',
475 'required' => true,
476 ],
477 'filter' => [
478 'location' => 'query',
479 'type' => 'string',
480 ],
481 'orderBy' => [
482 'location' => 'query',
483 'type' => 'string',
484 ],
485 'pageSize' => [
486 'location' => 'query',
487 'type' => 'integer',
488 ],
489 'pageToken' => [
490 'location' => 'query',
491 'type' => 'string',
492 ],
493 ],
494 ],'lookup' => [
495 'path' => 'v1/{+parent}/discoveredServices:lookup',
496 'httpMethod' => 'GET',
497 'parameters' => [
498 'parent' => [
499 'location' => 'path',
500 'type' => 'string',
501 'required' => true,
502 ],
503 'uri' => [
504 'location' => 'query',
505 'type' => 'string',
506 ],
507 ],
508 ],
509 ]
510 ]
511 );
512 $this->projects_locations_discoveredWorkloads = new AppHub\Resource\ProjectsLocationsDiscoveredWorkloads(
513 $this,
514 $this->serviceName,
515 'discoveredWorkloads',
516 [
517 'methods' => [
518 'get' => [
519 'path' => 'v1/{+name}',
520 'httpMethod' => 'GET',
521 'parameters' => [
522 'name' => [
523 'location' => 'path',
524 'type' => 'string',
525 'required' => true,
526 ],
527 ],
528 ],'list' => [
529 'path' => 'v1/{+parent}/discoveredWorkloads',
530 'httpMethod' => 'GET',
531 'parameters' => [
532 'parent' => [
533 'location' => 'path',
534 'type' => 'string',
535 'required' => true,
536 ],
537 'filter' => [
538 'location' => 'query',
539 'type' => 'string',
540 ],
541 'orderBy' => [
542 'location' => 'query',
543 'type' => 'string',
544 ],
545 'pageSize' => [
546 'location' => 'query',
547 'type' => 'integer',
548 ],
549 'pageToken' => [
550 'location' => 'query',
551 'type' => 'string',
552 ],
553 ],
554 ],'lookup' => [
555 'path' => 'v1/{+parent}/discoveredWorkloads:lookup',
556 'httpMethod' => 'GET',
557 'parameters' => [
558 'parent' => [
559 'location' => 'path',
560 'type' => 'string',
561 'required' => true,
562 ],
563 'uri' => [
564 'location' => 'query',
565 'type' => 'string',
566 ],
567 ],
568 ],
569 ]
570 ]
571 );
572 $this->projects_locations_operations = new AppHub\Resource\ProjectsLocationsOperations(
573 $this,
574 $this->serviceName,
575 'operations',
576 [
577 'methods' => [
578 'cancel' => [
579 'path' => 'v1/{+name}:cancel',
580 'httpMethod' => 'POST',
581 'parameters' => [
582 'name' => [
583 'location' => 'path',
584 'type' => 'string',
585 'required' => true,
586 ],
587 ],
588 ],'delete' => [
589 'path' => 'v1/{+name}',
590 'httpMethod' => 'DELETE',
591 'parameters' => [
592 'name' => [
593 'location' => 'path',
594 'type' => 'string',
595 'required' => true,
596 ],
597 ],
598 ],'get' => [
599 'path' => 'v1/{+name}',
600 'httpMethod' => 'GET',
601 'parameters' => [
602 'name' => [
603 'location' => 'path',
604 'type' => 'string',
605 'required' => true,
606 ],
607 ],
608 ],'list' => [
609 'path' => 'v1/{+name}/operations',
610 'httpMethod' => 'GET',
611 'parameters' => [
612 'name' => [
613 'location' => 'path',
614 'type' => 'string',
615 'required' => true,
616 ],
617 'filter' => [
618 'location' => 'query',
619 'type' => 'string',
620 ],
621 'pageSize' => [
622 'location' => 'query',
623 'type' => 'integer',
624 ],
625 'pageToken' => [
626 'location' => 'query',
627 'type' => 'string',
628 ],
629 ],
630 ],
631 ]
632 ]
633 );
634 $this->projects_locations_serviceProjectAttachments = new AppHub\Resource\ProjectsLocationsServiceProjectAttachments(
635 $this,
636 $this->serviceName,
637 'serviceProjectAttachments',
638 [
639 'methods' => [
640 'create' => [
641 'path' => 'v1/{+parent}/serviceProjectAttachments',
642 'httpMethod' => 'POST',
643 'parameters' => [
644 'parent' => [
645 'location' => 'path',
646 'type' => 'string',
647 'required' => true,
648 ],
649 'requestId' => [
650 'location' => 'query',
651 'type' => 'string',
652 ],
653 'serviceProjectAttachmentId' => [
654 'location' => 'query',
655 'type' => 'string',
656 ],
657 ],
658 ],'delete' => [
659 'path' => 'v1/{+name}',
660 'httpMethod' => 'DELETE',
661 'parameters' => [
662 'name' => [
663 'location' => 'path',
664 'type' => 'string',
665 'required' => true,
666 ],
667 'requestId' => [
668 'location' => 'query',
669 'type' => 'string',
670 ],
671 ],
672 ],'get' => [
673 'path' => 'v1/{+name}',
674 'httpMethod' => 'GET',
675 'parameters' => [
676 'name' => [
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ],
681 ],
682 ],'list' => [
683 'path' => 'v1/{+parent}/serviceProjectAttachments',
684 'httpMethod' => 'GET',
685 'parameters' => [
686 'parent' => [
687 'location' => 'path',
688 'type' => 'string',
689 'required' => true,
690 ],
691 'filter' => [
692 'location' => 'query',
693 'type' => 'string',
694 ],
695 'orderBy' => [
696 'location' => 'query',
697 'type' => 'string',
698 ],
699 'pageSize' => [
700 'location' => 'query',
701 'type' => 'integer',
702 ],
703 'pageToken' => [
704 'location' => 'query',
705 'type' => 'string',
706 ],
707 ],
708 ],
709 ]
710 ]
711 );
712 }
713}
714
715// Adding a class alias for backwards compatibility with the previous class name.
716class_alias(AppHub::class, 'Google_Service_AppHub');
Note: See TracBrowser for help on using the repository browser.