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 CloudBuild (v1).
24 *
25 * <p>
26 * Creates and manages builds 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/cloud-build/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudBuild 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 $locations;
42  public $operations;
43  public $projects_builds;
44  public $projects_githubEnterpriseConfigs;
45  public $projects_locations_bitbucketServerConfigs;
46  public $projects_locations_bitbucketServerConfigs_connectedRepositories;
47  public $projects_locations_bitbucketServerConfigs_repos;
48  public $projects_locations_builds;
49  public $projects_locations_githubEnterpriseConfigs;
50  public $projects_locations_operations;
51  public $projects_locations_triggers;
52  public $projects_locations_workerPools;
53  public $projects_triggers;
54  public $v1;
55
56  /**
57   * Constructs the internal representation of the CloudBuild service.
58   *
59   * @param Client|array $clientOrConfig The client used to deliver requests, or a
60   *                                     config array to pass to a new Client instance.
61   * @param string $rootUrl The root URL used for requests to the service.
62   */
63  public function __construct($clientOrConfig = [], $rootUrl = null)
64  {
65    parent::__construct($clientOrConfig);
66    $this->rootUrl = $rootUrl ?: 'https://cloudbuild.googleapis.com/';
67    $this->servicePath = '';
68    $this->batchPath = 'batch';
69    $this->version = 'v1';
70    $this->serviceName = 'cloudbuild';
71
72    $this->locations = new CloudBuild\Resource\Locations(
73        $this,
74        $this->serviceName,
75        'locations',
76        [
77          'methods' => [
78            'regionalWebhook' => [
79              'path' => 'v1/{+location}/regionalWebhook',
80              'httpMethod' => 'POST',
81              'parameters' => [
82                'location' => [
83                  'location' => 'path',
84                  'type' => 'string',
85                  'required' => true,
86                ],
87                'webhookKey' => [
88                  'location' => 'query',
89                  'type' => 'string',
90                ],
91              ],
92            ],
93          ]
94        ]
95    );
96    $this->operations = new CloudBuild\Resource\Operations(
97        $this,
98        $this->serviceName,
99        'operations',
100        [
101          'methods' => [
102            'cancel' => [
103              'path' => 'v1/{+name}:cancel',
104              'httpMethod' => 'POST',
105              'parameters' => [
106                'name' => [
107                  'location' => 'path',
108                  'type' => 'string',
109                  'required' => true,
110                ],
111              ],
112            ],'get' => [
113              'path' => 'v1/{+name}',
114              'httpMethod' => 'GET',
115              'parameters' => [
116                'name' => [
117                  'location' => 'path',
118                  'type' => 'string',
119                  'required' => true,
120                ],
121              ],
122            ],
123          ]
124        ]
125    );
126    $this->projects_builds = new CloudBuild\Resource\ProjectsBuilds(
127        $this,
128        $this->serviceName,
129        'builds',
130        [
131          'methods' => [
132            'approve' => [
133              'path' => 'v1/{+name}:approve',
134              'httpMethod' => 'POST',
135              'parameters' => [
136                'name' => [
137                  'location' => 'path',
138                  'type' => 'string',
139                  'required' => true,
140                ],
141              ],
142            ],'cancel' => [
143              'path' => 'v1/projects/{projectId}/builds/{id}:cancel',
144              'httpMethod' => 'POST',
145              'parameters' => [
146                'projectId' => [
147                  'location' => 'path',
148                  'type' => 'string',
149                  'required' => true,
150                ],
151                'id' => [
152                  'location' => 'path',
153                  'type' => 'string',
154                  'required' => true,
155                ],
156              ],
157            ],'create' => [
158              'path' => 'v1/projects/{projectId}/builds',
159              'httpMethod' => 'POST',
160              'parameters' => [
161                'projectId' => [
162                  'location' => 'path',
163                  'type' => 'string',
164                  'required' => true,
165                ],
166                'parent' => [
167                  'location' => 'query',
168                  'type' => 'string',
169                ],
170              ],
171            ],'get' => [
172              'path' => 'v1/projects/{projectId}/builds/{id}',
173              'httpMethod' => 'GET',
174              'parameters' => [
175                'projectId' => [
176                  'location' => 'path',
177                  'type' => 'string',
178                  'required' => true,
179                ],
180                'id' => [
181                  'location' => 'path',
182                  'type' => 'string',
183                  'required' => true,
184                ],
185                'name' => [
186                  'location' => 'query',
187                  'type' => 'string',
188                ],
189              ],
190            ],'list' => [
191              'path' => 'v1/projects/{projectId}/builds',
192              'httpMethod' => 'GET',
193              'parameters' => [
194                'projectId' => [
195                  'location' => 'path',
196                  'type' => 'string',
197                  'required' => true,
198                ],
199                'filter' => [
200                  'location' => 'query',
201                  'type' => 'string',
202                ],
203                'pageSize' => [
204                  'location' => 'query',
205                  'type' => 'integer',
206                ],
207                'pageToken' => [
208                  'location' => 'query',
209                  'type' => 'string',
210                ],
211                'parent' => [
212                  'location' => 'query',
213                  'type' => 'string',
214                ],
215              ],
216            ],'retry' => [
217              'path' => 'v1/projects/{projectId}/builds/{id}:retry',
218              'httpMethod' => 'POST',
219              'parameters' => [
220                'projectId' => [
221                  'location' => 'path',
222                  'type' => 'string',
223                  'required' => true,
224                ],
225                'id' => [
226                  'location' => 'path',
227                  'type' => 'string',
228                  'required' => true,
229                ],
230              ],
231            ],
232          ]
233        ]
234    );
235    $this->projects_githubEnterpriseConfigs = new CloudBuild\Resource\ProjectsGithubEnterpriseConfigs(
236        $this,
237        $this->serviceName,
238        'githubEnterpriseConfigs',
239        [
240          'methods' => [
241            'create' => [
242              'path' => 'v1/{+parent}/githubEnterpriseConfigs',
243              'httpMethod' => 'POST',
244              'parameters' => [
245                'parent' => [
246                  'location' => 'path',
247                  'type' => 'string',
248                  'required' => true,
249                ],
250                'gheConfigId' => [
251                  'location' => 'query',
252                  'type' => 'string',
253                ],
254                'projectId' => [
255                  'location' => 'query',
256                  'type' => 'string',
257                ],
258              ],
259            ],'delete' => [
260              'path' => 'v1/{+name}',
261              'httpMethod' => 'DELETE',
262              'parameters' => [
263                'name' => [
264                  'location' => 'path',
265                  'type' => 'string',
266                  'required' => true,
267                ],
268                'configId' => [
269                  'location' => 'query',
270                  'type' => 'string',
271                ],
272                'projectId' => [
273                  'location' => 'query',
274                  'type' => 'string',
275                ],
276              ],
277            ],'get' => [
278              'path' => 'v1/{+name}',
279              'httpMethod' => 'GET',
280              'parameters' => [
281                'name' => [
282                  'location' => 'path',
283                  'type' => 'string',
284                  'required' => true,
285                ],
286                'configId' => [
287                  'location' => 'query',
288                  'type' => 'string',
289                ],
290                'projectId' => [
291                  'location' => 'query',
292                  'type' => 'string',
293                ],
294              ],
295            ],'list' => [
296              'path' => 'v1/{+parent}/githubEnterpriseConfigs',
297              'httpMethod' => 'GET',
298              'parameters' => [
299                'parent' => [
300                  'location' => 'path',
301                  'type' => 'string',
302                  'required' => true,
303                ],
304                'projectId' => [
305                  'location' => 'query',
306                  'type' => 'string',
307                ],
308              ],
309            ],'patch' => [
310              'path' => 'v1/{+name}',
311              'httpMethod' => 'PATCH',
312              'parameters' => [
313                'name' => [
314                  'location' => 'path',
315                  'type' => 'string',
316                  'required' => true,
317                ],
318                'updateMask' => [
319                  'location' => 'query',
320                  'type' => 'string',
321                ],
322              ],
323            ],
324          ]
325        ]
326    );
327    $this->projects_locations_bitbucketServerConfigs = new CloudBuild\Resource\ProjectsLocationsBitbucketServerConfigs(
328        $this,
329        $this->serviceName,
330        'bitbucketServerConfigs',
331        [
332          'methods' => [
333            'create' => [
334              'path' => 'v1/{+parent}/bitbucketServerConfigs',
335              'httpMethod' => 'POST',
336              'parameters' => [
337                'parent' => [
338                  'location' => 'path',
339                  'type' => 'string',
340                  'required' => true,
341                ],
342                'bitbucketServerConfigId' => [
343                  'location' => 'query',
344                  'type' => 'string',
345                ],
346              ],
347            ],'delete' => [
348              'path' => 'v1/{+name}',
349              'httpMethod' => 'DELETE',
350              'parameters' => [
351                'name' => [
352                  'location' => 'path',
353                  'type' => 'string',
354                  'required' => true,
355                ],
356              ],
357            ],'get' => [
358              'path' => 'v1/{+name}',
359              'httpMethod' => 'GET',
360              'parameters' => [
361                'name' => [
362                  'location' => 'path',
363                  'type' => 'string',
364                  'required' => true,
365                ],
366              ],
367            ],'list' => [
368              'path' => 'v1/{+parent}/bitbucketServerConfigs',
369              'httpMethod' => 'GET',
370              'parameters' => [
371                'parent' => [
372                  'location' => 'path',
373                  'type' => 'string',
374                  'required' => true,
375                ],
376                'pageSize' => [
377                  'location' => 'query',
378                  'type' => 'integer',
379                ],
380                'pageToken' => [
381                  'location' => 'query',
382                  'type' => 'string',
383                ],
384              ],
385            ],'patch' => [
386              'path' => 'v1/{+name}',
387              'httpMethod' => 'PATCH',
388              'parameters' => [
389                'name' => [
390                  'location' => 'path',
391                  'type' => 'string',
392                  'required' => true,
393                ],
394                'updateMask' => [
395                  'location' => 'query',
396                  'type' => 'string',
397                ],
398              ],
399            ],'removeBitbucketServerConnectedRepository' => [
400              'path' => 'v1/{+config}:removeBitbucketServerConnectedRepository',
401              'httpMethod' => 'POST',
402              'parameters' => [
403                'config' => [
404                  'location' => 'path',
405                  'type' => 'string',
406                  'required' => true,
407                ],
408              ],
409            ],
410          ]
411        ]
412    );
413    $this->projects_locations_bitbucketServerConfigs_connectedRepositories = new CloudBuild\Resource\ProjectsLocationsBitbucketServerConfigsConnectedRepositories(
414        $this,
415        $this->serviceName,
416        'connectedRepositories',
417        [
418          'methods' => [
419            'batchCreate' => [
420              'path' => 'v1/{+parent}/connectedRepositories:batchCreate',
421              'httpMethod' => 'POST',
422              'parameters' => [
423                'parent' => [
424                  'location' => 'path',
425                  'type' => 'string',
426                  'required' => true,
427                ],
428              ],
429            ],
430          ]
431        ]
432    );
433    $this->projects_locations_bitbucketServerConfigs_repos = new CloudBuild\Resource\ProjectsLocationsBitbucketServerConfigsRepos(
434        $this,
435        $this->serviceName,
436        'repos',
437        [
438          'methods' => [
439            'list' => [
440              'path' => 'v1/{+parent}/repos',
441              'httpMethod' => 'GET',
442              'parameters' => [
443                'parent' => [
444                  'location' => 'path',
445                  'type' => 'string',
446                  'required' => true,
447                ],
448                'pageSize' => [
449                  'location' => 'query',
450                  'type' => 'integer',
451                ],
452                'pageToken' => [
453                  'location' => 'query',
454                  'type' => 'string',
455                ],
456              ],
457            ],
458          ]
459        ]
460    );
461    $this->projects_locations_builds = new CloudBuild\Resource\ProjectsLocationsBuilds(
462        $this,
463        $this->serviceName,
464        'builds',
465        [
466          'methods' => [
467            'approve' => [
468              'path' => 'v1/{+name}:approve',
469              'httpMethod' => 'POST',
470              'parameters' => [
471                'name' => [
472                  'location' => 'path',
473                  'type' => 'string',
474                  'required' => true,
475                ],
476              ],
477            ],'cancel' => [
478              'path' => 'v1/{+name}:cancel',
479              'httpMethod' => 'POST',
480              'parameters' => [
481                'name' => [
482                  'location' => 'path',
483                  'type' => 'string',
484                  'required' => true,
485                ],
486              ],
487            ],'create' => [
488              'path' => 'v1/{+parent}/builds',
489              'httpMethod' => 'POST',
490              'parameters' => [
491                'parent' => [
492                  'location' => 'path',
493                  'type' => 'string',
494                  'required' => true,
495                ],
496                'projectId' => [
497                  'location' => 'query',
498                  'type' => 'string',
499                ],
500              ],
501            ],'get' => [
502              'path' => 'v1/{+name}',
503              'httpMethod' => 'GET',
504              'parameters' => [
505                'name' => [
506                  'location' => 'path',
507                  'type' => 'string',
508                  'required' => true,
509                ],
510                'id' => [
511                  'location' => 'query',
512                  'type' => 'string',
513                ],
514                'projectId' => [
515                  'location' => 'query',
516                  'type' => 'string',
517                ],
518              ],
519            ],'list' => [
520              'path' => 'v1/{+parent}/builds',
521              'httpMethod' => 'GET',
522              'parameters' => [
523                'parent' => [
524                  'location' => 'path',
525                  'type' => 'string',
526                  'required' => true,
527                ],
528                'filter' => [
529                  'location' => 'query',
530                  'type' => 'string',
531                ],
532                'pageSize' => [
533                  'location' => 'query',
534                  'type' => 'integer',
535                ],
536                'pageToken' => [
537                  'location' => 'query',
538                  'type' => 'string',
539                ],
540                'projectId' => [
541                  'location' => 'query',
542                  'type' => 'string',
543                ],
544              ],
545            ],'retry' => [
546              'path' => 'v1/{+name}:retry',
547              'httpMethod' => 'POST',
548              'parameters' => [
549                'name' => [
550                  'location' => 'path',
551                  'type' => 'string',
552                  'required' => true,
553                ],
554              ],
555            ],
556          ]
557        ]
558    );
559    $this->projects_locations_githubEnterpriseConfigs = new CloudBuild\Resource\ProjectsLocationsGithubEnterpriseConfigs(
560        $this,
561        $this->serviceName,
562        'githubEnterpriseConfigs',
563        [
564          'methods' => [
565            'create' => [
566              'path' => 'v1/{+parent}/githubEnterpriseConfigs',
567              'httpMethod' => 'POST',
568              'parameters' => [
569                'parent' => [
570                  'location' => 'path',
571                  'type' => 'string',
572                  'required' => true,
573                ],
574                'gheConfigId' => [
575                  'location' => 'query',
576                  'type' => 'string',
577                ],
578                'projectId' => [
579                  'location' => 'query',
580                  'type' => 'string',
581                ],
582              ],
583            ],'delete' => [
584              'path' => 'v1/{+name}',
585              'httpMethod' => 'DELETE',
586              'parameters' => [
587                'name' => [
588                  'location' => 'path',
589                  'type' => 'string',
590                  'required' => true,
591                ],
592                'configId' => [
593                  'location' => 'query',
594                  'type' => 'string',
595                ],
596                'projectId' => [
597                  'location' => 'query',
598                  'type' => 'string',
599                ],
600              ],
601            ],'get' => [
602              'path' => 'v1/{+name}',
603              'httpMethod' => 'GET',
604              'parameters' => [
605                'name' => [
606                  'location' => 'path',
607                  'type' => 'string',
608                  'required' => true,
609                ],
610                'configId' => [
611                  'location' => 'query',
612                  'type' => 'string',
613                ],
614                'projectId' => [
615                  'location' => 'query',
616                  'type' => 'string',
617                ],
618              ],
619            ],'list' => [
620              'path' => 'v1/{+parent}/githubEnterpriseConfigs',
621              'httpMethod' => 'GET',
622              'parameters' => [
623                'parent' => [
624                  'location' => 'path',
625                  'type' => 'string',
626                  'required' => true,
627                ],
628                'projectId' => [
629                  'location' => 'query',
630                  'type' => 'string',
631                ],
632              ],
633            ],'patch' => [
634              'path' => 'v1/{+name}',
635              'httpMethod' => 'PATCH',
636              'parameters' => [
637                'name' => [
638                  'location' => 'path',
639                  'type' => 'string',
640                  'required' => true,
641                ],
642                'updateMask' => [
643                  'location' => 'query',
644                  'type' => 'string',
645                ],
646              ],
647            ],
648          ]
649        ]
650    );
651    $this->projects_locations_operations = new CloudBuild\Resource\ProjectsLocationsOperations(
652        $this,
653        $this->serviceName,
654        'operations',
655        [
656          'methods' => [
657            'cancel' => [
658              'path' => 'v1/{+name}:cancel',
659              'httpMethod' => 'POST',
660              'parameters' => [
661                'name' => [
662                  'location' => 'path',
663                  'type' => 'string',
664                  'required' => true,
665                ],
666              ],
667            ],'get' => [
668              'path' => 'v1/{+name}',
669              'httpMethod' => 'GET',
670              'parameters' => [
671                'name' => [
672                  'location' => 'path',
673                  'type' => 'string',
674                  'required' => true,
675                ],
676              ],
677            ],
678          ]
679        ]
680    );
681    $this->projects_locations_triggers = new CloudBuild\Resource\ProjectsLocationsTriggers(
682        $this,
683        $this->serviceName,
684        'triggers',
685        [
686          'methods' => [
687            'create' => [
688              'path' => 'v1/{+parent}/triggers',
689              'httpMethod' => 'POST',
690              'parameters' => [
691                'parent' => [
692                  'location' => 'path',
693                  'type' => 'string',
694                  'required' => true,
695                ],
696                'projectId' => [
697                  'location' => 'query',
698                  'type' => 'string',
699                ],
700              ],
701            ],'delete' => [
702              'path' => 'v1/{+name}',
703              'httpMethod' => 'DELETE',
704              'parameters' => [
705                'name' => [
706                  'location' => 'path',
707                  'type' => 'string',
708                  'required' => true,
709                ],
710                'projectId' => [
711                  'location' => 'query',
712                  'type' => 'string',
713                ],
714                'triggerId' => [
715                  'location' => 'query',
716                  'type' => 'string',
717                ],
718              ],
719            ],'get' => [
720              'path' => 'v1/{+name}',
721              'httpMethod' => 'GET',
722              'parameters' => [
723                'name' => [
724                  'location' => 'path',
725                  'type' => 'string',
726                  'required' => true,
727                ],
728                'projectId' => [
729                  'location' => 'query',
730                  'type' => 'string',
731                ],
732                'triggerId' => [
733                  'location' => 'query',
734                  'type' => 'string',
735                ],
736              ],
737            ],'list' => [
738              'path' => 'v1/{+parent}/triggers',
739              'httpMethod' => 'GET',
740              'parameters' => [
741                'parent' => [
742                  'location' => 'path',
743                  'type' => 'string',
744                  'required' => true,
745                ],
746                'pageSize' => [
747                  'location' => 'query',
748                  'type' => 'integer',
749                ],
750                'pageToken' => [
751                  'location' => 'query',
752                  'type' => 'string',
753                ],
754                'projectId' => [
755                  'location' => 'query',
756                  'type' => 'string',
757                ],
758              ],
759            ],'patch' => [
760              'path' => 'v1/{+resourceName}',
761              'httpMethod' => 'PATCH',
762              'parameters' => [
763                'resourceName' => [
764                  'location' => 'path',
765                  'type' => 'string',
766                  'required' => true,
767                ],
768                'projectId' => [
769                  'location' => 'query',
770                  'type' => 'string',
771                ],
772                'triggerId' => [
773                  'location' => 'query',
774                  'type' => 'string',
775                ],
776              ],
777            ],'run' => [
778              'path' => 'v1/{+name}:run',
779              'httpMethod' => 'POST',
780              'parameters' => [
781                'name' => [
782                  'location' => 'path',
783                  'type' => 'string',
784                  'required' => true,
785                ],
786              ],
787            ],'webhook' => [
788              'path' => 'v1/{+name}:webhook',
789              'httpMethod' => 'POST',
790              'parameters' => [
791                'name' => [
792                  'location' => 'path',
793                  'type' => 'string',
794                  'required' => true,
795                ],
796                'projectId' => [
797                  'location' => 'query',
798                  'type' => 'string',
799                ],
800                'secret' => [
801                  'location' => 'query',
802                  'type' => 'string',
803                ],
804                'trigger' => [
805                  'location' => 'query',
806                  'type' => 'string',
807                ],
808              ],
809            ],
810          ]
811        ]
812    );
813    $this->projects_locations_workerPools = new CloudBuild\Resource\ProjectsLocationsWorkerPools(
814        $this,
815        $this->serviceName,
816        'workerPools',
817        [
818          'methods' => [
819            'create' => [
820              'path' => 'v1/{+parent}/workerPools',
821              'httpMethod' => 'POST',
822              'parameters' => [
823                'parent' => [
824                  'location' => 'path',
825                  'type' => 'string',
826                  'required' => true,
827                ],
828                'validateOnly' => [
829                  'location' => 'query',
830                  'type' => 'boolean',
831                ],
832                'workerPoolId' => [
833                  'location' => 'query',
834                  'type' => 'string',
835                ],
836              ],
837            ],'delete' => [
838              'path' => 'v1/{+name}',
839              'httpMethod' => 'DELETE',
840              'parameters' => [
841                'name' => [
842                  'location' => 'path',
843                  'type' => 'string',
844                  'required' => true,
845                ],
846                'allowMissing' => [
847                  'location' => 'query',
848                  'type' => 'boolean',
849                ],
850                'etag' => [
851                  'location' => 'query',
852                  'type' => 'string',
853                ],
854                'validateOnly' => [
855                  'location' => 'query',
856                  'type' => 'boolean',
857                ],
858              ],
859            ],'get' => [
860              'path' => 'v1/{+name}',
861              'httpMethod' => 'GET',
862              'parameters' => [
863                'name' => [
864                  'location' => 'path',
865                  'type' => 'string',
866                  'required' => true,
867                ],
868              ],
869            ],'list' => [
870              'path' => 'v1/{+parent}/workerPools',
871              'httpMethod' => 'GET',
872              'parameters' => [
873                'parent' => [
874                  'location' => 'path',
875                  'type' => 'string',
876                  'required' => true,
877                ],
878                'pageSize' => [
879                  'location' => 'query',
880                  'type' => 'integer',
881                ],
882                'pageToken' => [
883                  'location' => 'query',
884                  'type' => 'string',
885                ],
886              ],
887            ],'patch' => [
888              'path' => 'v1/{+name}',
889              'httpMethod' => 'PATCH',
890              'parameters' => [
891                'name' => [
892                  'location' => 'path',
893                  'type' => 'string',
894                  'required' => true,
895                ],
896                'updateMask' => [
897                  'location' => 'query',
898                  'type' => 'string',
899                ],
900                'validateOnly' => [
901                  'location' => 'query',
902                  'type' => 'boolean',
903                ],
904              ],
905            ],
906          ]
907        ]
908    );
909    $this->projects_triggers = new CloudBuild\Resource\ProjectsTriggers(
910        $this,
911        $this->serviceName,
912        'triggers',
913        [
914          'methods' => [
915            'create' => [
916              'path' => 'v1/projects/{projectId}/triggers',
917              'httpMethod' => 'POST',
918              'parameters' => [
919                'projectId' => [
920                  'location' => 'path',
921                  'type' => 'string',
922                  'required' => true,
923                ],
924                'parent' => [
925                  'location' => 'query',
926                  'type' => 'string',
927                ],
928              ],
929            ],'delete' => [
930              'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
931              'httpMethod' => 'DELETE',
932              'parameters' => [
933                'projectId' => [
934                  'location' => 'path',
935                  'type' => 'string',
936                  'required' => true,
937                ],
938                'triggerId' => [
939                  'location' => 'path',
940                  'type' => 'string',
941                  'required' => true,
942                ],
943                'name' => [
944                  'location' => 'query',
945                  'type' => 'string',
946                ],
947              ],
948            ],'get' => [
949              'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
950              'httpMethod' => 'GET',
951              'parameters' => [
952                'projectId' => [
953                  'location' => 'path',
954                  'type' => 'string',
955                  'required' => true,
956                ],
957                'triggerId' => [
958                  'location' => 'path',
959                  'type' => 'string',
960                  'required' => true,
961                ],
962                'name' => [
963                  'location' => 'query',
964                  'type' => 'string',
965                ],
966              ],
967            ],'list' => [
968              'path' => 'v1/projects/{projectId}/triggers',
969              'httpMethod' => 'GET',
970              'parameters' => [
971                'projectId' => [
972                  'location' => 'path',
973                  'type' => 'string',
974                  'required' => true,
975                ],
976                'pageSize' => [
977                  'location' => 'query',
978                  'type' => 'integer',
979                ],
980                'pageToken' => [
981                  'location' => 'query',
982                  'type' => 'string',
983                ],
984                'parent' => [
985                  'location' => 'query',
986                  'type' => 'string',
987                ],
988              ],
989            ],'patch' => [
990              'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
991              'httpMethod' => 'PATCH',
992              'parameters' => [
993                'projectId' => [
994                  'location' => 'path',
995                  'type' => 'string',
996                  'required' => true,
997                ],
998                'triggerId' => [
999                  'location' => 'path',
1000                  'type' => 'string',
1001                  'required' => true,
1002                ],
1003              ],
1004            ],'run' => [
1005              'path' => 'v1/projects/{projectId}/triggers/{triggerId}:run',
1006              'httpMethod' => 'POST',
1007              'parameters' => [
1008                'projectId' => [
1009                  'location' => 'path',
1010                  'type' => 'string',
1011                  'required' => true,
1012                ],
1013                'triggerId' => [
1014                  'location' => 'path',
1015                  'type' => 'string',
1016                  'required' => true,
1017                ],
1018                'name' => [
1019                  'location' => 'query',
1020                  'type' => 'string',
1021                ],
1022              ],
1023            ],'webhook' => [
1024              'path' => 'v1/projects/{projectId}/triggers/{trigger}:webhook',
1025              'httpMethod' => 'POST',
1026              'parameters' => [
1027                'projectId' => [
1028                  'location' => 'path',
1029                  'type' => 'string',
1030                  'required' => true,
1031                ],
1032                'trigger' => [
1033                  'location' => 'path',
1034                  'type' => 'string',
1035                  'required' => true,
1036                ],
1037                'name' => [
1038                  'location' => 'query',
1039                  'type' => 'string',
1040                ],
1041                'secret' => [
1042                  'location' => 'query',
1043                  'type' => 'string',
1044                ],
1045              ],
1046            ],
1047          ]
1048        ]
1049    );
1050    $this->v1 = new CloudBuild\Resource\V1(
1051        $this,
1052        $this->serviceName,
1053        'v1',
1054        [
1055          'methods' => [
1056            'webhook' => [
1057              'path' => 'v1/webhook',
1058              'httpMethod' => 'POST',
1059              'parameters' => [
1060                'webhookKey' => [
1061                  'location' => 'query',
1062                  'type' => 'string',
1063                ],
1064              ],
1065            ],
1066          ]
1067        ]
1068    );
1069  }
1070}
1071
1072// Adding a class alias for backwards compatibility with the previous class name.
1073class_alias(CloudBuild::class, 'Google_Service_CloudBuild');
1074