PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Cloudbuild.php

Cloudbuild.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Cloudbuild.php

740 lines 18.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Cloudbuild (v1).
18 *
19 * <p>
20 * The Google Cloud Container Builder API lets you build container images in the
21 * cloud.</p>
22 *
23 * <p>
24 * For more information about this service, see the API
25 * <a href="https://cloud.google.com/container-builder/docs/" target="_blank">Documentation</a>
26 * </p>
27 *
28 * @author Google, Inc.
29 */
30 class Google_Service_Cloudbuild extends Google_Service
31 {
32 /** View and manage your data across Google Cloud Platform services. */
33 const CLOUD_PLATFORM =
34 "https://www.googleapis.com/auth/cloud-platform";
35
36 public $operations;
37 public $projects_builds;
38
39
40 /**
41 * Constructs the internal representation of the Cloudbuild service.
42 *
43 * @param Google_Client $client
44 */
45 public function __construct(Google_Client $client)
46 {
47 parent::__construct($client);
48 $this->rootUrl = 'https://cloudbuild.googleapis.com/';
49 $this->servicePath = '';
50 $this->version = 'v1';
51 $this->serviceName = 'cloudbuild';
52
53 $this->operations = new Google_Service_Cloudbuild_Operations_Resource(
54 $this,
55 $this->serviceName,
56 'operations',
57 array(
58 'methods' => array(
59 'get' => array(
60 'path' => 'v1/{+name}',
61 'httpMethod' => 'GET',
62 'parameters' => array(
63 'name' => array(
64 'location' => 'path',
65 'type' => 'string',
66 'required' => true,
67 ),
68 ),
69 ),'list' => array(
70 'path' => 'v1/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => array(
73 'name' => array(
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ),
78 'pageSize' => array(
79 'location' => 'query',
80 'type' => 'integer',
81 ),
82 'filter' => array(
83 'location' => 'query',
84 'type' => 'string',
85 ),
86 'pageToken' => array(
87 'location' => 'query',
88 'type' => 'string',
89 ),
90 ),
91 ),
92 )
93 )
94 );
95 $this->projects_builds = new Google_Service_Cloudbuild_ProjectsBuilds_Resource(
96 $this,
97 $this->serviceName,
98 'builds',
99 array(
100 'methods' => array(
101 'cancel' => array(
102 'path' => 'v1/projects/{projectId}/builds/{id}:cancel',
103 'httpMethod' => 'POST',
104 'parameters' => array(
105 'projectId' => array(
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ),
110 'id' => array(
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ),
115 ),
116 ),'create' => array(
117 'path' => 'v1/projects/{projectId}/builds',
118 'httpMethod' => 'POST',
119 'parameters' => array(
120 'projectId' => array(
121 'location' => 'path',
122 'type' => 'string',
123 'required' => true,
124 ),
125 ),
126 ),'get' => array(
127 'path' => 'v1/projects/{projectId}/builds/{id}',
128 'httpMethod' => 'GET',
129 'parameters' => array(
130 'projectId' => array(
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ),
135 'id' => array(
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ),
140 ),
141 ),'list' => array(
142 'path' => 'v1/projects/{projectId}/builds',
143 'httpMethod' => 'GET',
144 'parameters' => array(
145 'projectId' => array(
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ),
150 'pageSize' => array(
151 'location' => 'query',
152 'type' => 'integer',
153 ),
154 'pageToken' => array(
155 'location' => 'query',
156 'type' => 'string',
157 ),
158 ),
159 ),
160 )
161 )
162 );
163 }
164 }
165
166
167 /**
168 * The "operations" collection of methods.
169 * Typical usage is:
170 * <code>
171 * $cloudbuildService = new Google_Service_Cloudbuild(...);
172 * $operations = $cloudbuildService->operations;
173 * </code>
174 */
175 class Google_Service_Cloudbuild_Operations_Resource extends Google_Service_Resource
176 {
177
178 /**
179 * Gets the latest state of a long-running operation. Clients can use this
180 * method to poll the operation result at intervals as recommended by the API
181 * service. (operations.get)
182 *
183 * @param string $name The name of the operation resource.
184 * @param array $optParams Optional parameters.
185 * @return Google_Service_Cloudbuild_Operation
186 */
187 public function get($name, $optParams = array())
188 {
189 $params = array('name' => $name);
190 $params = array_merge($params, $optParams);
191 return $this->call('get', array($params), "Google_Service_Cloudbuild_Operation");
192 }
193
194 /**
195 * Lists operations that match the specified filter in the request. If the
196 * server doesn't support this method, it returns `UNIMPLEMENTED`.
197 *
198 * NOTE: the `name` binding below allows API services to override the binding to
199 * use different resource name schemes, such as `users/operations`.
200 * (operations.listOperations)
201 *
202 * @param string $name The name of the operation collection.
203 * @param array $optParams Optional parameters.
204 *
205 * @opt_param int pageSize The standard list page size.
206 * @opt_param string filter The standard list filter.
207 * @opt_param string pageToken The standard list page token.
208 * @return Google_Service_Cloudbuild_ListOperationsResponse
209 */
210 public function listOperations($name, $optParams = array())
211 {
212 $params = array('name' => $name);
213 $params = array_merge($params, $optParams);
214 return $this->call('list', array($params), "Google_Service_Cloudbuild_ListOperationsResponse");
215 }
216 }
217
218 /**
219 * The "projects" collection of methods.
220 * Typical usage is:
221 * <code>
222 * $cloudbuildService = new Google_Service_Cloudbuild(...);
223 * $projects = $cloudbuildService->projects;
224 * </code>
225 */
226 class Google_Service_Cloudbuild_Projects_Resource extends Google_Service_Resource
227 {
228 }
229
230 /**
231 * The "builds" collection of methods.
232 * Typical usage is:
233 * <code>
234 * $cloudbuildService = new Google_Service_Cloudbuild(...);
235 * $builds = $cloudbuildService->builds;
236 * </code>
237 */
238 class Google_Service_Cloudbuild_ProjectsBuilds_Resource extends Google_Service_Resource
239 {
240
241 /**
242 * Cancels a requested build in progress. (builds.cancel)
243 *
244 * @param string $projectId ID of the project.
245 * @param string $id ID of the build.
246 * @param Google_CancelBuildRequest $postBody
247 * @param array $optParams Optional parameters.
248 * @return Google_Service_Cloudbuild_Build
249 */
250 public function cancel($projectId, $id, Google_Service_Cloudbuild_CancelBuildRequest $postBody, $optParams = array())
251 {
252 $params = array('projectId' => $projectId, 'id' => $id, 'postBody' => $postBody);
253 $params = array_merge($params, $optParams);
254 return $this->call('cancel', array($params), "Google_Service_Cloudbuild_Build");
255 }
256
257 /**
258 * Starts a build with the specified configuration.
259 *
260 * The long-running Operation returned by this method will include the ID of the
261 * build, which can be passed to GetBuild to determine its status (e.g., success
262 * or failure). (builds.create)
263 *
264 * @param string $projectId ID of the project.
265 * @param Google_Build $postBody
266 * @param array $optParams Optional parameters.
267 * @return Google_Service_Cloudbuild_Operation
268 */
269 public function create($projectId, Google_Service_Cloudbuild_Build $postBody, $optParams = array())
270 {
271 $params = array('projectId' => $projectId, 'postBody' => $postBody);
272 $params = array_merge($params, $optParams);
273 return $this->call('create', array($params), "Google_Service_Cloudbuild_Operation");
274 }
275
276 /**
277 * Returns information about a previously requested build.
278 *
279 * The Build that is returned includes its status (e.g., success or failure, or
280 * in-progress), and timing information. (builds.get)
281 *
282 * @param string $projectId ID of the project.
283 * @param string $id ID of the build.
284 * @param array $optParams Optional parameters.
285 * @return Google_Service_Cloudbuild_Build
286 */
287 public function get($projectId, $id, $optParams = array())
288 {
289 $params = array('projectId' => $projectId, 'id' => $id);
290 $params = array_merge($params, $optParams);
291 return $this->call('get', array($params), "Google_Service_Cloudbuild_Build");
292 }
293
294 /**
295 * Lists previously requested builds.
296 *
297 * Previously requested builds may still be in-progress, or may have finished
298 * successfully or unsuccessfully. (builds.listProjectsBuilds)
299 *
300 * @param string $projectId ID of the project.
301 * @param array $optParams Optional parameters.
302 *
303 * @opt_param int pageSize Number of results to return in the list.
304 * @opt_param string pageToken Token to provide to skip to a particular spot in
305 * the list.
306 * @return Google_Service_Cloudbuild_ListBuildsResponse
307 */
308 public function listProjectsBuilds($projectId, $optParams = array())
309 {
310 $params = array('projectId' => $projectId);
311 $params = array_merge($params, $optParams);
312 return $this->call('list', array($params), "Google_Service_Cloudbuild_ListBuildsResponse");
313 }
314 }
315
316
317
318
319 class Google_Service_Cloudbuild_Build extends Google_Collection
320 {
321 protected $collection_key = 'steps';
322 protected $internal_gapi_mappings = array(
323 );
324 public $createTime;
325 public $finishTime;
326 public $id;
327 public $images;
328 public $logsBucket;
329 public $projectId;
330 protected $resultsType = 'Google_Service_Cloudbuild_Results';
331 protected $resultsDataType = '';
332 protected $sourceType = 'Google_Service_Cloudbuild_Source';
333 protected $sourceDataType = '';
334 public $startTime;
335 public $status;
336 protected $stepsType = 'Google_Service_Cloudbuild_BuildStep';
337 protected $stepsDataType = 'array';
338 public $timeout;
339
340
341 public function setCreateTime($createTime)
342 {
343 $this->createTime = $createTime;
344 }
345 public function getCreateTime()
346 {
347 return $this->createTime;
348 }
349 public function setFinishTime($finishTime)
350 {
351 $this->finishTime = $finishTime;
352 }
353 public function getFinishTime()
354 {
355 return $this->finishTime;
356 }
357 public function setId($id)
358 {
359 $this->id = $id;
360 }
361 public function getId()
362 {
363 return $this->id;
364 }
365 public function setImages($images)
366 {
367 $this->images = $images;
368 }
369 public function getImages()
370 {
371 return $this->images;
372 }
373 public function setLogsBucket($logsBucket)
374 {
375 $this->logsBucket = $logsBucket;
376 }
377 public function getLogsBucket()
378 {
379 return $this->logsBucket;
380 }
381 public function setProjectId($projectId)
382 {
383 $this->projectId = $projectId;
384 }
385 public function getProjectId()
386 {
387 return $this->projectId;
388 }
389 public function setResults(Google_Service_Cloudbuild_Results $results)
390 {
391 $this->results = $results;
392 }
393 public function getResults()
394 {
395 return $this->results;
396 }
397 public function setSource(Google_Service_Cloudbuild_Source $source)
398 {
399 $this->source = $source;
400 }
401 public function getSource()
402 {
403 return $this->source;
404 }
405 public function setStartTime($startTime)
406 {
407 $this->startTime = $startTime;
408 }
409 public function getStartTime()
410 {
411 return $this->startTime;
412 }
413 public function setStatus($status)
414 {
415 $this->status = $status;
416 }
417 public function getStatus()
418 {
419 return $this->status;
420 }
421 public function setSteps($steps)
422 {
423 $this->steps = $steps;
424 }
425 public function getSteps()
426 {
427 return $this->steps;
428 }
429 public function setTimeout($timeout)
430 {
431 $this->timeout = $timeout;
432 }
433 public function getTimeout()
434 {
435 return $this->timeout;
436 }
437 }
438
439 class Google_Service_Cloudbuild_BuildOperationMetadata extends Google_Model
440 {
441 protected $internal_gapi_mappings = array(
442 );
443 protected $buildType = 'Google_Service_Cloudbuild_Build';
444 protected $buildDataType = '';
445
446
447 public function setBuild(Google_Service_Cloudbuild_Build $build)
448 {
449 $this->build = $build;
450 }
451 public function getBuild()
452 {
453 return $this->build;
454 }
455 }
456
457 class Google_Service_Cloudbuild_BuildStep extends Google_Collection
458 {
459 protected $collection_key = 'env';
460 protected $internal_gapi_mappings = array(
461 );
462 public $args;
463 public $dir;
464 public $env;
465 public $name;
466
467
468 public function setArgs($args)
469 {
470 $this->args = $args;
471 }
472 public function getArgs()
473 {
474 return $this->args;
475 }
476 public function setDir($dir)
477 {
478 $this->dir = $dir;
479 }
480 public function getDir()
481 {
482 return $this->dir;
483 }
484 public function setEnv($env)
485 {
486 $this->env = $env;
487 }
488 public function getEnv()
489 {
490 return $this->env;
491 }
492 public function setName($name)
493 {
494 $this->name = $name;
495 }
496 public function getName()
497 {
498 return $this->name;
499 }
500 }
501
502 class Google_Service_Cloudbuild_BuiltImage extends Google_Model
503 {
504 protected $internal_gapi_mappings = array(
505 );
506 public $digest;
507 public $name;
508
509
510 public function setDigest($digest)
511 {
512 $this->digest = $digest;
513 }
514 public function getDigest()
515 {
516 return $this->digest;
517 }
518 public function setName($name)
519 {
520 $this->name = $name;
521 }
522 public function getName()
523 {
524 return $this->name;
525 }
526 }
527
528 class Google_Service_Cloudbuild_CancelBuildRequest extends Google_Model
529 {
530 }
531
532 class Google_Service_Cloudbuild_ListBuildsResponse extends Google_Collection
533 {
534 protected $collection_key = 'builds';
535 protected $internal_gapi_mappings = array(
536 );
537 protected $buildsType = 'Google_Service_Cloudbuild_Build';
538 protected $buildsDataType = 'array';
539 public $nextPageToken;
540
541
542 public function setBuilds($builds)
543 {
544 $this->builds = $builds;
545 }
546 public function getBuilds()
547 {
548 return $this->builds;
549 }
550 public function setNextPageToken($nextPageToken)
551 {
552 $this->nextPageToken = $nextPageToken;
553 }
554 public function getNextPageToken()
555 {
556 return $this->nextPageToken;
557 }
558 }
559
560 class Google_Service_Cloudbuild_ListOperationsResponse extends Google_Collection
561 {
562 protected $collection_key = 'operations';
563 protected $internal_gapi_mappings = array(
564 );
565 public $nextPageToken;
566 protected $operationsType = 'Google_Service_Cloudbuild_Operation';
567 protected $operationsDataType = 'array';
568
569
570 public function setNextPageToken($nextPageToken)
571 {
572 $this->nextPageToken = $nextPageToken;
573 }
574 public function getNextPageToken()
575 {
576 return $this->nextPageToken;
577 }
578 public function setOperations($operations)
579 {
580 $this->operations = $operations;
581 }
582 public function getOperations()
583 {
584 return $this->operations;
585 }
586 }
587
588 class Google_Service_Cloudbuild_Operation extends Google_Model
589 {
590 protected $internal_gapi_mappings = array(
591 );
592 public $done;
593 protected $errorType = 'Google_Service_Cloudbuild_Status';
594 protected $errorDataType = '';
595 public $metadata;
596 public $name;
597 public $response;
598
599
600 public function setDone($done)
601 {
602 $this->done = $done;
603 }
604 public function getDone()
605 {
606 return $this->done;
607 }
608 public function setError(Google_Service_Cloudbuild_Status $error)
609 {
610 $this->error = $error;
611 }
612 public function getError()
613 {
614 return $this->error;
615 }
616 public function setMetadata($metadata)
617 {
618 $this->metadata = $metadata;
619 }
620 public function getMetadata()
621 {
622 return $this->metadata;
623 }
624 public function setName($name)
625 {
626 $this->name = $name;
627 }
628 public function getName()
629 {
630 return $this->name;
631 }
632 public function setResponse($response)
633 {
634 $this->response = $response;
635 }
636 public function getResponse()
637 {
638 return $this->response;
639 }
640 }
641
642 class Google_Service_Cloudbuild_Results extends Google_Collection
643 {
644 protected $collection_key = 'images';
645 protected $internal_gapi_mappings = array(
646 );
647 protected $imagesType = 'Google_Service_Cloudbuild_BuiltImage';
648 protected $imagesDataType = 'array';
649
650
651 public function setImages($images)
652 {
653 $this->images = $images;
654 }
655 public function getImages()
656 {
657 return $this->images;
658 }
659 }
660
661 class Google_Service_Cloudbuild_Source extends Google_Model
662 {
663 protected $internal_gapi_mappings = array(
664 );
665 protected $storageSourceType = 'Google_Service_Cloudbuild_StorageSource';
666 protected $storageSourceDataType = '';
667
668
669 public function setStorageSource(Google_Service_Cloudbuild_StorageSource $storageSource)
670 {
671 $this->storageSource = $storageSource;
672 }
673 public function getStorageSource()
674 {
675 return $this->storageSource;
676 }
677 }
678
679 class Google_Service_Cloudbuild_Status extends Google_Collection
680 {
681 protected $collection_key = 'details';
682 protected $internal_gapi_mappings = array(
683 );
684 public $code;
685 public $details;
686 public $message;
687
688
689 public function setCode($code)
690 {
691 $this->code = $code;
692 }
693 public function getCode()
694 {
695 return $this->code;
696 }
697 public function setDetails($details)
698 {
699 $this->details = $details;
700 }
701 public function getDetails()
702 {
703 return $this->details;
704 }
705 public function setMessage($message)
706 {
707 $this->message = $message;
708 }
709 public function getMessage()
710 {
711 return $this->message;
712 }
713 }
714
715 class Google_Service_Cloudbuild_StorageSource extends Google_Model
716 {
717 protected $internal_gapi_mappings = array(
718 );
719 public $bucket;
720 public $object;
721
722
723 public function setBucket($bucket)
724 {
725 $this->bucket = $bucket;
726 }
727 public function getBucket()
728 {
729 return $this->bucket;
730 }
731 public function setObject($object)
732 {
733 $this->object = $object;
734 }
735 public function getObject()
736 {
737 return $this->object;
738 }
739 }
740