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
18/**
19 * Service definition for Appengine (v1).
20 *
21 * <p>
22 * Provisions and manages developers' App Engine applications.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://cloud.google.com/appengine/docs/admin-api/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_Appengine extends Google_Service
32{
33  /** View and manage your applications deployed on Google App Engine. */
34  const APPENGINE_ADMIN =
35      "https://www.googleapis.com/auth/appengine.admin";
36  /** View and manage your data across Google Cloud Platform services. */
37  const CLOUD_PLATFORM =
38      "https://www.googleapis.com/auth/cloud-platform";
39  /** View your data across Google Cloud Platform services. */
40  const CLOUD_PLATFORM_READ_ONLY =
41      "https://www.googleapis.com/auth/cloud-platform.read-only";
42
43  public $apps;
44  public $apps_authorizedCertificates;
45  public $apps_authorizedDomains;
46  public $apps_domainMappings;
47  public $apps_firewall_ingressRules;
48  public $apps_locations;
49  public $apps_operations;
50  public $apps_services;
51  public $apps_services_versions;
52  public $apps_services_versions_instances;
53
54  /**
55   * Constructs the internal representation of the Appengine service.
56   *
57   * @param Google_Client $client
58   */
59  public function __construct(Google_Client $client)
60  {
61    parent::__construct($client);
62    $this->rootUrl = 'https://appengine.googleapis.com/';
63    $this->servicePath = '';
64    $this->batchPath = 'batch';
65    $this->version = 'v1';
66    $this->serviceName = 'appengine';
67
68    $this->apps = new Google_Service_Appengine_Resource_Apps(
69        $this,
70        $this->serviceName,
71        'apps',
72        array(
73          'methods' => array(
74            'create' => array(
75              'path' => 'v1/apps',
76              'httpMethod' => 'POST',
77              'parameters' => array(),
78            ),'get' => array(
79              'path' => 'v1/apps/{appsId}',
80              'httpMethod' => 'GET',
81              'parameters' => array(
82                'appsId' => array(
83                  'location' => 'path',
84                  'type' => 'string',
85                  'required' => true,
86                ),
87              ),
88            ),'patch' => array(
89              'path' => 'v1/apps/{appsId}',
90              'httpMethod' => 'PATCH',
91              'parameters' => array(
92                'appsId' => array(
93                  'location' => 'path',
94                  'type' => 'string',
95                  'required' => true,
96                ),
97                'updateMask' => array(
98                  'location' => 'query',
99                  'type' => 'string',
100                ),
101              ),
102            ),'repair' => array(
103              'path' => 'v1/apps/{appsId}:repair',
104              'httpMethod' => 'POST',
105              'parameters' => array(
106                'appsId' => array(
107                  'location' => 'path',
108                  'type' => 'string',
109                  'required' => true,
110                ),
111              ),
112            ),
113          )
114        )
115    );
116    $this->apps_authorizedCertificates = new Google_Service_Appengine_Resource_AppsAuthorizedCertificates(
117        $this,
118        $this->serviceName,
119        'authorizedCertificates',
120        array(
121          'methods' => array(
122            'create' => array(
123              'path' => 'v1/apps/{appsId}/authorizedCertificates',
124              'httpMethod' => 'POST',
125              'parameters' => array(
126                'appsId' => array(
127                  'location' => 'path',
128                  'type' => 'string',
129                  'required' => true,
130                ),
131              ),
132            ),'delete' => array(
133              'path' => 'v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}',
134              'httpMethod' => 'DELETE',
135              'parameters' => array(
136                'appsId' => array(
137                  'location' => 'path',
138                  'type' => 'string',
139                  'required' => true,
140                ),
141                'authorizedCertificatesId' => array(
142                  'location' => 'path',
143                  'type' => 'string',
144                  'required' => true,
145                ),
146              ),
147            ),'get' => array(
148              'path' => 'v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}',
149              'httpMethod' => 'GET',
150              'parameters' => array(
151                'appsId' => array(
152                  'location' => 'path',
153                  'type' => 'string',
154                  'required' => true,
155                ),
156                'authorizedCertificatesId' => array(
157                  'location' => 'path',
158                  'type' => 'string',
159                  'required' => true,
160                ),
161                'view' => array(
162                  'location' => 'query',
163                  'type' => 'string',
164                ),
165              ),
166            ),'list' => array(
167              'path' => 'v1/apps/{appsId}/authorizedCertificates',
168              'httpMethod' => 'GET',
169              'parameters' => array(
170                'appsId' => array(
171                  'location' => 'path',
172                  'type' => 'string',
173                  'required' => true,
174                ),
175                'pageToken' => array(
176                  'location' => 'query',
177                  'type' => 'string',
178                ),
179                'pageSize' => array(
180                  'location' => 'query',
181                  'type' => 'integer',
182                ),
183                'view' => array(
184                  'location' => 'query',
185                  'type' => 'string',
186                ),
187              ),
188            ),'patch' => array(
189              'path' => 'v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}',
190              'httpMethod' => 'PATCH',
191              'parameters' => array(
192                'appsId' => array(
193                  'location' => 'path',
194                  'type' => 'string',
195                  'required' => true,
196                ),
197                'authorizedCertificatesId' => array(
198                  'location' => 'path',
199                  'type' => 'string',
200                  'required' => true,
201                ),
202                'updateMask' => array(
203                  'location' => 'query',
204                  'type' => 'string',
205                ),
206              ),
207            ),
208          )
209        )
210    );
211    $this->apps_authorizedDomains = new Google_Service_Appengine_Resource_AppsAuthorizedDomains(
212        $this,
213        $this->serviceName,
214        'authorizedDomains',
215        array(
216          'methods' => array(
217            'list' => array(
218              'path' => 'v1/apps/{appsId}/authorizedDomains',
219              'httpMethod' => 'GET',
220              'parameters' => array(
221                'appsId' => array(
222                  'location' => 'path',
223                  'type' => 'string',
224                  'required' => true,
225                ),
226                'pageToken' => array(
227                  'location' => 'query',
228                  'type' => 'string',
229                ),
230                'pageSize' => array(
231                  'location' => 'query',
232                  'type' => 'integer',
233                ),
234              ),
235            ),
236          )
237        )
238    );
239    $this->apps_domainMappings = new Google_Service_Appengine_Resource_AppsDomainMappings(
240        $this,
241        $this->serviceName,
242        'domainMappings',
243        array(
244          'methods' => array(
245            'create' => array(
246              'path' => 'v1/apps/{appsId}/domainMappings',
247              'httpMethod' => 'POST',
248              'parameters' => array(
249                'appsId' => array(
250                  'location' => 'path',
251                  'type' => 'string',
252                  'required' => true,
253                ),
254                'overrideStrategy' => array(
255                  'location' => 'query',
256                  'type' => 'string',
257                ),
258              ),
259            ),'delete' => array(
260              'path' => 'v1/apps/{appsId}/domainMappings/{domainMappingsId}',
261              'httpMethod' => 'DELETE',
262              'parameters' => array(
263                'appsId' => array(
264                  'location' => 'path',
265                  'type' => 'string',
266                  'required' => true,
267                ),
268                'domainMappingsId' => array(
269                  'location' => 'path',
270                  'type' => 'string',
271                  'required' => true,
272                ),
273              ),
274            ),'get' => array(
275              'path' => 'v1/apps/{appsId}/domainMappings/{domainMappingsId}',
276              'httpMethod' => 'GET',
277              'parameters' => array(
278                'appsId' => array(
279                  'location' => 'path',
280                  'type' => 'string',
281                  'required' => true,
282                ),
283                'domainMappingsId' => array(
284                  'location' => 'path',
285                  'type' => 'string',
286                  'required' => true,
287                ),
288              ),
289            ),'list' => array(
290              'path' => 'v1/apps/{appsId}/domainMappings',
291              'httpMethod' => 'GET',
292              'parameters' => array(
293                'appsId' => array(
294                  'location' => 'path',
295                  'type' => 'string',
296                  'required' => true,
297                ),
298                'pageToken' => array(
299                  'location' => 'query',
300                  'type' => 'string',
301                ),
302                'pageSize' => array(
303                  'location' => 'query',
304                  'type' => 'integer',
305                ),
306              ),
307            ),'patch' => array(
308              'path' => 'v1/apps/{appsId}/domainMappings/{domainMappingsId}',
309              'httpMethod' => 'PATCH',
310              'parameters' => array(
311                'appsId' => array(
312                  'location' => 'path',
313                  'type' => 'string',
314                  'required' => true,
315                ),
316                'domainMappingsId' => array(
317                  'location' => 'path',
318                  'type' => 'string',
319                  'required' => true,
320                ),
321                'updateMask' => array(
322                  'location' => 'query',
323                  'type' => 'string',
324                ),
325              ),
326            ),
327          )
328        )
329    );
330    $this->apps_firewall_ingressRules = new Google_Service_Appengine_Resource_AppsFirewallIngressRules(
331        $this,
332        $this->serviceName,
333        'ingressRules',
334        array(
335          'methods' => array(
336            'batchUpdate' => array(
337              'path' => 'v1/apps/{appsId}/firewall/ingressRules:batchUpdate',
338              'httpMethod' => 'POST',
339              'parameters' => array(
340                'appsId' => array(
341                  'location' => 'path',
342                  'type' => 'string',
343                  'required' => true,
344                ),
345              ),
346            ),'create' => array(
347              'path' => 'v1/apps/{appsId}/firewall/ingressRules',
348              'httpMethod' => 'POST',
349              'parameters' => array(
350                'appsId' => array(
351                  'location' => 'path',
352                  'type' => 'string',
353                  'required' => true,
354                ),
355              ),
356            ),'delete' => array(
357              'path' => 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}',
358              'httpMethod' => 'DELETE',
359              'parameters' => array(
360                'appsId' => array(
361                  'location' => 'path',
362                  'type' => 'string',
363                  'required' => true,
364                ),
365                'ingressRulesId' => array(
366                  'location' => 'path',
367                  'type' => 'string',
368                  'required' => true,
369                ),
370              ),
371            ),'get' => array(
372              'path' => 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}',
373              'httpMethod' => 'GET',
374              'parameters' => array(
375                'appsId' => array(
376                  'location' => 'path',
377                  'type' => 'string',
378                  'required' => true,
379                ),
380                'ingressRulesId' => array(
381                  'location' => 'path',
382                  'type' => 'string',
383                  'required' => true,
384                ),
385              ),
386            ),'list' => array(
387              'path' => 'v1/apps/{appsId}/firewall/ingressRules',
388              'httpMethod' => 'GET',
389              'parameters' => array(
390                'appsId' => array(
391                  'location' => 'path',
392                  'type' => 'string',
393                  'required' => true,
394                ),
395                'pageToken' => array(
396                  'location' => 'query',
397                  'type' => 'string',
398                ),
399                'pageSize' => array(
400                  'location' => 'query',
401                  'type' => 'integer',
402                ),
403                'matchingAddress' => array(
404                  'location' => 'query',
405                  'type' => 'string',
406                ),
407              ),
408            ),'patch' => array(
409              'path' => 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}',
410              'httpMethod' => 'PATCH',
411              'parameters' => array(
412                'appsId' => array(
413                  'location' => 'path',
414                  'type' => 'string',
415                  'required' => true,
416                ),
417                'ingressRulesId' => array(
418                  'location' => 'path',
419                  'type' => 'string',
420                  'required' => true,
421                ),
422                'updateMask' => array(
423                  'location' => 'query',
424                  'type' => 'string',
425                ),
426              ),
427            ),
428          )
429        )
430    );
431    $this->apps_locations = new Google_Service_Appengine_Resource_AppsLocations(
432        $this,
433        $this->serviceName,
434        'locations',
435        array(
436          'methods' => array(
437            'get' => array(
438              'path' => 'v1/apps/{appsId}/locations/{locationsId}',
439              'httpMethod' => 'GET',
440              'parameters' => array(
441                'appsId' => array(
442                  'location' => 'path',
443                  'type' => 'string',
444                  'required' => true,
445                ),
446                'locationsId' => array(
447                  'location' => 'path',
448                  'type' => 'string',
449                  'required' => true,
450                ),
451              ),
452            ),'list' => array(
453              'path' => 'v1/apps/{appsId}/locations',
454              'httpMethod' => 'GET',
455              'parameters' => array(
456                'appsId' => array(
457                  'location' => 'path',
458                  'type' => 'string',
459                  'required' => true,
460                ),
461                'filter' => array(
462                  'location' => 'query',
463                  'type' => 'string',
464                ),
465                'pageToken' => array(
466                  'location' => 'query',
467                  'type' => 'string',
468                ),
469                'pageSize' => array(
470                  'location' => 'query',
471                  'type' => 'integer',
472                ),
473              ),
474            ),
475          )
476        )
477    );
478    $this->apps_operations = new Google_Service_Appengine_Resource_AppsOperations(
479        $this,
480        $this->serviceName,
481        'operations',
482        array(
483          'methods' => array(
484            'get' => array(
485              'path' => 'v1/apps/{appsId}/operations/{operationsId}',
486              'httpMethod' => 'GET',
487              'parameters' => array(
488                'appsId' => array(
489                  'location' => 'path',
490                  'type' => 'string',
491                  'required' => true,
492                ),
493                'operationsId' => array(
494                  'location' => 'path',
495                  'type' => 'string',
496                  'required' => true,
497                ),
498              ),
499            ),'list' => array(
500              'path' => 'v1/apps/{appsId}/operations',
501              'httpMethod' => 'GET',
502              'parameters' => array(
503                'appsId' => array(
504                  'location' => 'path',
505                  'type' => 'string',
506                  'required' => true,
507                ),
508                'pageToken' => array(
509                  'location' => 'query',
510                  'type' => 'string',
511                ),
512                'pageSize' => array(
513                  'location' => 'query',
514                  'type' => 'integer',
515                ),
516                'filter' => array(
517                  'location' => 'query',
518                  'type' => 'string',
519                ),
520              ),
521            ),
522          )
523        )
524    );
525    $this->apps_services = new Google_Service_Appengine_Resource_AppsServices(
526        $this,
527        $this->serviceName,
528        'services',
529        array(
530          'methods' => array(
531            'delete' => array(
532              'path' => 'v1/apps/{appsId}/services/{servicesId}',
533              'httpMethod' => 'DELETE',
534              'parameters' => array(
535                'appsId' => array(
536                  'location' => 'path',
537                  'type' => 'string',
538                  'required' => true,
539                ),
540                'servicesId' => array(
541                  'location' => 'path',
542                  'type' => 'string',
543                  'required' => true,
544                ),
545              ),
546            ),'get' => array(
547              'path' => 'v1/apps/{appsId}/services/{servicesId}',
548              'httpMethod' => 'GET',
549              'parameters' => array(
550                'appsId' => array(
551                  'location' => 'path',
552                  'type' => 'string',
553                  'required' => true,
554                ),
555                'servicesId' => array(
556                  'location' => 'path',
557                  'type' => 'string',
558                  'required' => true,
559                ),
560              ),
561            ),'list' => array(
562              'path' => 'v1/apps/{appsId}/services',
563              'httpMethod' => 'GET',
564              'parameters' => array(
565                'appsId' => array(
566                  'location' => 'path',
567                  'type' => 'string',
568                  'required' => true,
569                ),
570                'pageToken' => array(
571                  'location' => 'query',
572                  'type' => 'string',
573                ),
574                'pageSize' => array(
575                  'location' => 'query',
576                  'type' => 'integer',
577                ),
578              ),
579            ),'patch' => array(
580              'path' => 'v1/apps/{appsId}/services/{servicesId}',
581              'httpMethod' => 'PATCH',
582              'parameters' => array(
583                'appsId' => array(
584                  'location' => 'path',
585                  'type' => 'string',
586                  'required' => true,
587                ),
588                'servicesId' => array(
589                  'location' => 'path',
590                  'type' => 'string',
591                  'required' => true,
592                ),
593                'updateMask' => array(
594                  'location' => 'query',
595                  'type' => 'string',
596                ),
597                'migrateTraffic' => array(
598                  'location' => 'query',
599                  'type' => 'boolean',
600                ),
601              ),
602            ),
603          )
604        )
605    );
606    $this->apps_services_versions = new Google_Service_Appengine_Resource_AppsServicesVersions(
607        $this,
608        $this->serviceName,
609        'versions',
610        array(
611          'methods' => array(
612            'create' => array(
613              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions',
614              'httpMethod' => 'POST',
615              'parameters' => array(
616                'appsId' => array(
617                  'location' => 'path',
618                  'type' => 'string',
619                  'required' => true,
620                ),
621                'servicesId' => array(
622                  'location' => 'path',
623                  'type' => 'string',
624                  'required' => true,
625                ),
626              ),
627            ),'delete' => array(
628              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
629              'httpMethod' => 'DELETE',
630              'parameters' => array(
631                'appsId' => array(
632                  'location' => 'path',
633                  'type' => 'string',
634                  'required' => true,
635                ),
636                'servicesId' => array(
637                  'location' => 'path',
638                  'type' => 'string',
639                  'required' => true,
640                ),
641                'versionsId' => array(
642                  'location' => 'path',
643                  'type' => 'string',
644                  'required' => true,
645                ),
646              ),
647            ),'get' => array(
648              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
649              'httpMethod' => 'GET',
650              'parameters' => array(
651                'appsId' => array(
652                  'location' => 'path',
653                  'type' => 'string',
654                  'required' => true,
655                ),
656                'servicesId' => array(
657                  'location' => 'path',
658                  'type' => 'string',
659                  'required' => true,
660                ),
661                'versionsId' => array(
662                  'location' => 'path',
663                  'type' => 'string',
664                  'required' => true,
665                ),
666                'view' => array(
667                  'location' => 'query',
668                  'type' => 'string',
669                ),
670              ),
671            ),'list' => array(
672              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions',
673              'httpMethod' => 'GET',
674              'parameters' => array(
675                'appsId' => array(
676                  'location' => 'path',
677                  'type' => 'string',
678                  'required' => true,
679                ),
680                'servicesId' => array(
681                  'location' => 'path',
682                  'type' => 'string',
683                  'required' => true,
684                ),
685                'pageToken' => array(
686                  'location' => 'query',
687                  'type' => 'string',
688                ),
689                'pageSize' => array(
690                  'location' => 'query',
691                  'type' => 'integer',
692                ),
693                'view' => array(
694                  'location' => 'query',
695                  'type' => 'string',
696                ),
697              ),
698            ),'patch' => array(
699              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
700              'httpMethod' => 'PATCH',
701              'parameters' => array(
702                'appsId' => array(
703                  'location' => 'path',
704                  'type' => 'string',
705                  'required' => true,
706                ),
707                'servicesId' => array(
708                  'location' => 'path',
709                  'type' => 'string',
710                  'required' => true,
711                ),
712                'versionsId' => array(
713                  'location' => 'path',
714                  'type' => 'string',
715                  'required' => true,
716                ),
717                'updateMask' => array(
718                  'location' => 'query',
719                  'type' => 'string',
720                ),
721              ),
722            ),
723          )
724        )
725    );
726    $this->apps_services_versions_instances = new Google_Service_Appengine_Resource_AppsServicesVersionsInstances(
727        $this,
728        $this->serviceName,
729        'instances',
730        array(
731          'methods' => array(
732            'debug' => array(
733              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug',
734              'httpMethod' => 'POST',
735              'parameters' => array(
736                'appsId' => array(
737                  'location' => 'path',
738                  'type' => 'string',
739                  'required' => true,
740                ),
741                'servicesId' => array(
742                  'location' => 'path',
743                  'type' => 'string',
744                  'required' => true,
745                ),
746                'versionsId' => array(
747                  'location' => 'path',
748                  'type' => 'string',
749                  'required' => true,
750                ),
751                'instancesId' => array(
752                  'location' => 'path',
753                  'type' => 'string',
754                  'required' => true,
755                ),
756              ),
757            ),'delete' => array(
758              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}',
759              'httpMethod' => 'DELETE',
760              'parameters' => array(
761                'appsId' => array(
762                  'location' => 'path',
763                  'type' => 'string',
764                  'required' => true,
765                ),
766                'servicesId' => array(
767                  'location' => 'path',
768                  'type' => 'string',
769                  'required' => true,
770                ),
771                'versionsId' => array(
772                  'location' => 'path',
773                  'type' => 'string',
774                  'required' => true,
775                ),
776                'instancesId' => array(
777                  'location' => 'path',
778                  'type' => 'string',
779                  'required' => true,
780                ),
781              ),
782            ),'get' => array(
783              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}',
784              'httpMethod' => 'GET',
785              'parameters' => array(
786                'appsId' => array(
787                  'location' => 'path',
788                  'type' => 'string',
789                  'required' => true,
790                ),
791                'servicesId' => array(
792                  'location' => 'path',
793                  'type' => 'string',
794                  'required' => true,
795                ),
796                'versionsId' => array(
797                  'location' => 'path',
798                  'type' => 'string',
799                  'required' => true,
800                ),
801                'instancesId' => array(
802                  'location' => 'path',
803                  'type' => 'string',
804                  'required' => true,
805                ),
806              ),
807            ),'list' => array(
808              'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances',
809              'httpMethod' => 'GET',
810              'parameters' => array(
811                'appsId' => array(
812                  'location' => 'path',
813                  'type' => 'string',
814                  'required' => true,
815                ),
816                'servicesId' => array(
817                  'location' => 'path',
818                  'type' => 'string',
819                  'required' => true,
820                ),
821                'versionsId' => array(
822                  'location' => 'path',
823                  'type' => 'string',
824                  'required' => true,
825                ),
826                'pageToken' => array(
827                  'location' => 'query',
828                  'type' => 'string',
829                ),
830                'pageSize' => array(
831                  'location' => 'query',
832                  'type' => 'integer',
833                ),
834              ),
835            ),
836          )
837        )
838    );
839  }
840}
841