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