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 Logging (v2).
20 *
21 * <p>
22 * Writes log entries and manages your Logging configuration.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_Logging extends Google_Service
32{
33  /** View and manage your data across Google Cloud Platform services. */
34  const CLOUD_PLATFORM =
35      "https://www.googleapis.com/auth/cloud-platform";
36  /** View your data across Google Cloud Platform services. */
37  const CLOUD_PLATFORM_READ_ONLY =
38      "https://www.googleapis.com/auth/cloud-platform.read-only";
39  /** Administrate log data for your projects. */
40  const LOGGING_ADMIN =
41      "https://www.googleapis.com/auth/logging.admin";
42  /** View log data for your projects. */
43  const LOGGING_READ =
44      "https://www.googleapis.com/auth/logging.read";
45  /** Submit log data for your projects. */
46  const LOGGING_WRITE =
47      "https://www.googleapis.com/auth/logging.write";
48
49  public $billingAccounts_exclusions;
50  public $billingAccounts_logs;
51  public $billingAccounts_sinks;
52  public $entries;
53  public $exclusions;
54  public $folders_exclusions;
55  public $folders_logs;
56  public $folders_sinks;
57  public $logs;
58  public $monitoredResourceDescriptors;
59  public $organizations_exclusions;
60  public $organizations_logs;
61  public $organizations_sinks;
62  public $projects_exclusions;
63  public $projects_logs;
64  public $projects_metrics;
65  public $projects_sinks;
66  public $sinks;
67
68  /**
69   * Constructs the internal representation of the Logging service.
70   *
71   * @param Google_Client $client
72   */
73  public function __construct(Google_Client $client)
74  {
75    parent::__construct($client);
76    $this->rootUrl = 'https://logging.googleapis.com/';
77    $this->servicePath = '';
78    $this->batchPath = 'batch';
79    $this->version = 'v2';
80    $this->serviceName = 'logging';
81
82    $this->billingAccounts_exclusions = new Google_Service_Logging_Resource_BillingAccountsExclusions(
83        $this,
84        $this->serviceName,
85        'exclusions',
86        array(
87          'methods' => array(
88            'create' => array(
89              'path' => 'v2/{+parent}/exclusions',
90              'httpMethod' => 'POST',
91              'parameters' => array(
92                'parent' => array(
93                  'location' => 'path',
94                  'type' => 'string',
95                  'required' => true,
96                ),
97              ),
98            ),'delete' => array(
99              'path' => 'v2/{+name}',
100              'httpMethod' => 'DELETE',
101              'parameters' => array(
102                'name' => array(
103                  'location' => 'path',
104                  'type' => 'string',
105                  'required' => true,
106                ),
107              ),
108            ),'get' => array(
109              'path' => 'v2/{+name}',
110              'httpMethod' => 'GET',
111              'parameters' => array(
112                'name' => array(
113                  'location' => 'path',
114                  'type' => 'string',
115                  'required' => true,
116                ),
117              ),
118            ),'list' => array(
119              'path' => 'v2/{+parent}/exclusions',
120              'httpMethod' => 'GET',
121              'parameters' => array(
122                'parent' => array(
123                  'location' => 'path',
124                  'type' => 'string',
125                  'required' => true,
126                ),
127                'pageToken' => array(
128                  'location' => 'query',
129                  'type' => 'string',
130                ),
131                'pageSize' => array(
132                  'location' => 'query',
133                  'type' => 'integer',
134                ),
135              ),
136            ),'patch' => array(
137              'path' => 'v2/{+name}',
138              'httpMethod' => 'PATCH',
139              'parameters' => array(
140                'name' => array(
141                  'location' => 'path',
142                  'type' => 'string',
143                  'required' => true,
144                ),
145                'updateMask' => array(
146                  'location' => 'query',
147                  'type' => 'string',
148                ),
149              ),
150            ),
151          )
152        )
153    );
154    $this->billingAccounts_logs = new Google_Service_Logging_Resource_BillingAccountsLogs(
155        $this,
156        $this->serviceName,
157        'logs',
158        array(
159          'methods' => array(
160            'delete' => array(
161              'path' => 'v2/{+logName}',
162              'httpMethod' => 'DELETE',
163              'parameters' => array(
164                'logName' => array(
165                  'location' => 'path',
166                  'type' => 'string',
167                  'required' => true,
168                ),
169              ),
170            ),'list' => array(
171              'path' => 'v2/{+parent}/logs',
172              'httpMethod' => 'GET',
173              'parameters' => array(
174                'parent' => array(
175                  'location' => 'path',
176                  'type' => 'string',
177                  'required' => true,
178                ),
179                'pageToken' => array(
180                  'location' => 'query',
181                  'type' => 'string',
182                ),
183                'pageSize' => array(
184                  'location' => 'query',
185                  'type' => 'integer',
186                ),
187              ),
188            ),
189          )
190        )
191    );
192    $this->billingAccounts_sinks = new Google_Service_Logging_Resource_BillingAccountsSinks(
193        $this,
194        $this->serviceName,
195        'sinks',
196        array(
197          'methods' => array(
198            'create' => array(
199              'path' => 'v2/{+parent}/sinks',
200              'httpMethod' => 'POST',
201              'parameters' => array(
202                'parent' => array(
203                  'location' => 'path',
204                  'type' => 'string',
205                  'required' => true,
206                ),
207                'uniqueWriterIdentity' => array(
208                  'location' => 'query',
209                  'type' => 'boolean',
210                ),
211              ),
212            ),'delete' => array(
213              'path' => 'v2/{+sinkName}',
214              'httpMethod' => 'DELETE',
215              'parameters' => array(
216                'sinkName' => array(
217                  'location' => 'path',
218                  'type' => 'string',
219                  'required' => true,
220                ),
221              ),
222            ),'get' => array(
223              'path' => 'v2/{+sinkName}',
224              'httpMethod' => 'GET',
225              'parameters' => array(
226                'sinkName' => array(
227                  'location' => 'path',
228                  'type' => 'string',
229                  'required' => true,
230                ),
231              ),
232            ),'list' => array(
233              'path' => 'v2/{+parent}/sinks',
234              'httpMethod' => 'GET',
235              'parameters' => array(
236                'parent' => array(
237                  'location' => 'path',
238                  'type' => 'string',
239                  'required' => true,
240                ),
241                'pageToken' => array(
242                  'location' => 'query',
243                  'type' => 'string',
244                ),
245                'pageSize' => array(
246                  'location' => 'query',
247                  'type' => 'integer',
248                ),
249              ),
250            ),'patch' => array(
251              'path' => 'v2/{+sinkName}',
252              'httpMethod' => 'PATCH',
253              'parameters' => array(
254                'sinkName' => array(
255                  'location' => 'path',
256                  'type' => 'string',
257                  'required' => true,
258                ),
259                'uniqueWriterIdentity' => array(
260                  'location' => 'query',
261                  'type' => 'boolean',
262                ),
263                'updateMask' => array(
264                  'location' => 'query',
265                  'type' => 'string',
266                ),
267              ),
268            ),'update' => array(
269              'path' => 'v2/{+sinkName}',
270              'httpMethod' => 'PUT',
271              'parameters' => array(
272                'sinkName' => array(
273                  'location' => 'path',
274                  'type' => 'string',
275                  'required' => true,
276                ),
277                'uniqueWriterIdentity' => array(
278                  'location' => 'query',
279                  'type' => 'boolean',
280                ),
281                'updateMask' => array(
282                  'location' => 'query',
283                  'type' => 'string',
284                ),
285              ),
286            ),
287          )
288        )
289    );
290    $this->entries = new Google_Service_Logging_Resource_Entries(
291        $this,
292        $this->serviceName,
293        'entries',
294        array(
295          'methods' => array(
296            'list' => array(
297              'path' => 'v2/entries:list',
298              'httpMethod' => 'POST',
299              'parameters' => array(),
300            ),'write' => array(
301              'path' => 'v2/entries:write',
302              'httpMethod' => 'POST',
303              'parameters' => array(),
304            ),
305          )
306        )
307    );
308    $this->exclusions = new Google_Service_Logging_Resource_Exclusions(
309        $this,
310        $this->serviceName,
311        'exclusions',
312        array(
313          'methods' => array(
314            'create' => array(
315              'path' => 'v2/{+parent}/exclusions',
316              'httpMethod' => 'POST',
317              'parameters' => array(
318                'parent' => array(
319                  'location' => 'path',
320                  'type' => 'string',
321                  'required' => true,
322                ),
323              ),
324            ),'delete' => array(
325              'path' => 'v2/{+name}',
326              'httpMethod' => 'DELETE',
327              'parameters' => array(
328                'name' => array(
329                  'location' => 'path',
330                  'type' => 'string',
331                  'required' => true,
332                ),
333              ),
334            ),'get' => array(
335              'path' => 'v2/{+name}',
336              'httpMethod' => 'GET',
337              'parameters' => array(
338                'name' => array(
339                  'location' => 'path',
340                  'type' => 'string',
341                  'required' => true,
342                ),
343              ),
344            ),'list' => array(
345              'path' => 'v2/{+parent}/exclusions',
346              'httpMethod' => 'GET',
347              'parameters' => array(
348                'parent' => array(
349                  'location' => 'path',
350                  'type' => 'string',
351                  'required' => true,
352                ),
353                'pageToken' => array(
354                  'location' => 'query',
355                  'type' => 'string',
356                ),
357                'pageSize' => array(
358                  'location' => 'query',
359                  'type' => 'integer',
360                ),
361              ),
362            ),'patch' => array(
363              'path' => 'v2/{+name}',
364              'httpMethod' => 'PATCH',
365              'parameters' => array(
366                'name' => array(
367                  'location' => 'path',
368                  'type' => 'string',
369                  'required' => true,
370                ),
371                'updateMask' => array(
372                  'location' => 'query',
373                  'type' => 'string',
374                ),
375              ),
376            ),
377          )
378        )
379    );
380    $this->folders_exclusions = new Google_Service_Logging_Resource_FoldersExclusions(
381        $this,
382        $this->serviceName,
383        'exclusions',
384        array(
385          'methods' => array(
386            'create' => array(
387              'path' => 'v2/{+parent}/exclusions',
388              'httpMethod' => 'POST',
389              'parameters' => array(
390                'parent' => array(
391                  'location' => 'path',
392                  'type' => 'string',
393                  'required' => true,
394                ),
395              ),
396            ),'delete' => array(
397              'path' => 'v2/{+name}',
398              'httpMethod' => 'DELETE',
399              'parameters' => array(
400                'name' => array(
401                  'location' => 'path',
402                  'type' => 'string',
403                  'required' => true,
404                ),
405              ),
406            ),'get' => array(
407              'path' => 'v2/{+name}',
408              'httpMethod' => 'GET',
409              'parameters' => array(
410                'name' => array(
411                  'location' => 'path',
412                  'type' => 'string',
413                  'required' => true,
414                ),
415              ),
416            ),'list' => array(
417              'path' => 'v2/{+parent}/exclusions',
418              'httpMethod' => 'GET',
419              'parameters' => array(
420                'parent' => array(
421                  'location' => 'path',
422                  'type' => 'string',
423                  'required' => true,
424                ),
425                'pageToken' => array(
426                  'location' => 'query',
427                  'type' => 'string',
428                ),
429                'pageSize' => array(
430                  'location' => 'query',
431                  'type' => 'integer',
432                ),
433              ),
434            ),'patch' => array(
435              'path' => 'v2/{+name}',
436              'httpMethod' => 'PATCH',
437              'parameters' => array(
438                'name' => array(
439                  'location' => 'path',
440                  'type' => 'string',
441                  'required' => true,
442                ),
443                'updateMask' => array(
444                  'location' => 'query',
445                  'type' => 'string',
446                ),
447              ),
448            ),
449          )
450        )
451    );
452    $this->folders_logs = new Google_Service_Logging_Resource_FoldersLogs(
453        $this,
454        $this->serviceName,
455        'logs',
456        array(
457          'methods' => array(
458            'delete' => array(
459              'path' => 'v2/{+logName}',
460              'httpMethod' => 'DELETE',
461              'parameters' => array(
462                'logName' => array(
463                  'location' => 'path',
464                  'type' => 'string',
465                  'required' => true,
466                ),
467              ),
468            ),'list' => array(
469              'path' => 'v2/{+parent}/logs',
470              'httpMethod' => 'GET',
471              'parameters' => array(
472                'parent' => array(
473                  'location' => 'path',
474                  'type' => 'string',
475                  'required' => true,
476                ),
477                'pageToken' => array(
478                  'location' => 'query',
479                  'type' => 'string',
480                ),
481                'pageSize' => array(
482                  'location' => 'query',
483                  'type' => 'integer',
484                ),
485              ),
486            ),
487          )
488        )
489    );
490    $this->folders_sinks = new Google_Service_Logging_Resource_FoldersSinks(
491        $this,
492        $this->serviceName,
493        'sinks',
494        array(
495          'methods' => array(
496            'create' => array(
497              'path' => 'v2/{+parent}/sinks',
498              'httpMethod' => 'POST',
499              'parameters' => array(
500                'parent' => array(
501                  'location' => 'path',
502                  'type' => 'string',
503                  'required' => true,
504                ),
505                'uniqueWriterIdentity' => array(
506                  'location' => 'query',
507                  'type' => 'boolean',
508                ),
509              ),
510            ),'delete' => array(
511              'path' => 'v2/{+sinkName}',
512              'httpMethod' => 'DELETE',
513              'parameters' => array(
514                'sinkName' => array(
515                  'location' => 'path',
516                  'type' => 'string',
517                  'required' => true,
518                ),
519              ),
520            ),'get' => array(
521              'path' => 'v2/{+sinkName}',
522              'httpMethod' => 'GET',
523              'parameters' => array(
524                'sinkName' => array(
525                  'location' => 'path',
526                  'type' => 'string',
527                  'required' => true,
528                ),
529              ),
530            ),'list' => array(
531              'path' => 'v2/{+parent}/sinks',
532              'httpMethod' => 'GET',
533              'parameters' => array(
534                'parent' => array(
535                  'location' => 'path',
536                  'type' => 'string',
537                  'required' => true,
538                ),
539                'pageToken' => array(
540                  'location' => 'query',
541                  'type' => 'string',
542                ),
543                'pageSize' => array(
544                  'location' => 'query',
545                  'type' => 'integer',
546                ),
547              ),
548            ),'patch' => array(
549              'path' => 'v2/{+sinkName}',
550              'httpMethod' => 'PATCH',
551              'parameters' => array(
552                'sinkName' => array(
553                  'location' => 'path',
554                  'type' => 'string',
555                  'required' => true,
556                ),
557                'uniqueWriterIdentity' => array(
558                  'location' => 'query',
559                  'type' => 'boolean',
560                ),
561                'updateMask' => array(
562                  'location' => 'query',
563                  'type' => 'string',
564                ),
565              ),
566            ),'update' => array(
567              'path' => 'v2/{+sinkName}',
568              'httpMethod' => 'PUT',
569              'parameters' => array(
570                'sinkName' => array(
571                  'location' => 'path',
572                  'type' => 'string',
573                  'required' => true,
574                ),
575                'uniqueWriterIdentity' => array(
576                  'location' => 'query',
577                  'type' => 'boolean',
578                ),
579                'updateMask' => array(
580                  'location' => 'query',
581                  'type' => 'string',
582                ),
583              ),
584            ),
585          )
586        )
587    );
588    $this->logs = new Google_Service_Logging_Resource_Logs(
589        $this,
590        $this->serviceName,
591        'logs',
592        array(
593          'methods' => array(
594            'delete' => array(
595              'path' => 'v2/{+logName}',
596              'httpMethod' => 'DELETE',
597              'parameters' => array(
598                'logName' => array(
599                  'location' => 'path',
600                  'type' => 'string',
601                  'required' => true,
602                ),
603              ),
604            ),'list' => array(
605              'path' => 'v2/{+parent}/logs',
606              'httpMethod' => 'GET',
607              'parameters' => array(
608                'parent' => array(
609                  'location' => 'path',
610                  'type' => 'string',
611                  'required' => true,
612                ),
613                'pageToken' => array(
614                  'location' => 'query',
615                  'type' => 'string',
616                ),
617                'pageSize' => array(
618                  'location' => 'query',
619                  'type' => 'integer',
620                ),
621              ),
622            ),
623          )
624        )
625    );
626    $this->monitoredResourceDescriptors = new Google_Service_Logging_Resource_MonitoredResourceDescriptors(
627        $this,
628        $this->serviceName,
629        'monitoredResourceDescriptors',
630        array(
631          'methods' => array(
632            'list' => array(
633              'path' => 'v2/monitoredResourceDescriptors',
634              'httpMethod' => 'GET',
635              'parameters' => array(
636                'pageToken' => array(
637                  'location' => 'query',
638                  'type' => 'string',
639                ),
640                'pageSize' => array(
641                  'location' => 'query',
642                  'type' => 'integer',
643                ),
644              ),
645            ),
646          )
647        )
648    );
649    $this->organizations_exclusions = new Google_Service_Logging_Resource_OrganizationsExclusions(
650        $this,
651        $this->serviceName,
652        'exclusions',
653        array(
654          'methods' => array(
655            'create' => array(
656              'path' => 'v2/{+parent}/exclusions',
657              'httpMethod' => 'POST',
658              'parameters' => array(
659                'parent' => array(
660                  'location' => 'path',
661                  'type' => 'string',
662                  'required' => true,
663                ),
664              ),
665            ),'delete' => array(
666              'path' => 'v2/{+name}',
667              'httpMethod' => 'DELETE',
668              'parameters' => array(
669                'name' => array(
670                  'location' => 'path',
671                  'type' => 'string',
672                  'required' => true,
673                ),
674              ),
675            ),'get' => array(
676              'path' => 'v2/{+name}',
677              'httpMethod' => 'GET',
678              'parameters' => array(
679                'name' => array(
680                  'location' => 'path',
681                  'type' => 'string',
682                  'required' => true,
683                ),
684              ),
685            ),'list' => array(
686              'path' => 'v2/{+parent}/exclusions',
687              'httpMethod' => 'GET',
688              'parameters' => array(
689                'parent' => array(
690                  'location' => 'path',
691                  'type' => 'string',
692                  'required' => true,
693                ),
694                'pageToken' => array(
695                  'location' => 'query',
696                  'type' => 'string',
697                ),
698                'pageSize' => array(
699                  'location' => 'query',
700                  'type' => 'integer',
701                ),
702              ),
703            ),'patch' => array(
704              'path' => 'v2/{+name}',
705              'httpMethod' => 'PATCH',
706              'parameters' => array(
707                'name' => array(
708                  'location' => 'path',
709                  'type' => 'string',
710                  'required' => true,
711                ),
712                'updateMask' => array(
713                  'location' => 'query',
714                  'type' => 'string',
715                ),
716              ),
717            ),
718          )
719        )
720    );
721    $this->organizations_logs = new Google_Service_Logging_Resource_OrganizationsLogs(
722        $this,
723        $this->serviceName,
724        'logs',
725        array(
726          'methods' => array(
727            'delete' => array(
728              'path' => 'v2/{+logName}',
729              'httpMethod' => 'DELETE',
730              'parameters' => array(
731                'logName' => array(
732                  'location' => 'path',
733                  'type' => 'string',
734                  'required' => true,
735                ),
736              ),
737            ),'list' => array(
738              'path' => 'v2/{+parent}/logs',
739              'httpMethod' => 'GET',
740              'parameters' => array(
741                'parent' => array(
742                  'location' => 'path',
743                  'type' => 'string',
744                  'required' => true,
745                ),
746                'pageToken' => array(
747                  'location' => 'query',
748                  'type' => 'string',
749                ),
750                'pageSize' => array(
751                  'location' => 'query',
752                  'type' => 'integer',
753                ),
754              ),
755            ),
756          )
757        )
758    );
759    $this->organizations_sinks = new Google_Service_Logging_Resource_OrganizationsSinks(
760        $this,
761        $this->serviceName,
762        'sinks',
763        array(
764          'methods' => array(
765            'create' => array(
766              'path' => 'v2/{+parent}/sinks',
767              'httpMethod' => 'POST',
768              'parameters' => array(
769                'parent' => array(
770                  'location' => 'path',
771                  'type' => 'string',
772                  'required' => true,
773                ),
774                'uniqueWriterIdentity' => array(
775                  'location' => 'query',
776                  'type' => 'boolean',
777                ),
778              ),
779            ),'delete' => array(
780              'path' => 'v2/{+sinkName}',
781              'httpMethod' => 'DELETE',
782              'parameters' => array(
783                'sinkName' => array(
784                  'location' => 'path',
785                  'type' => 'string',
786                  'required' => true,
787                ),
788              ),
789            ),'get' => array(
790              'path' => 'v2/{+sinkName}',
791              'httpMethod' => 'GET',
792              'parameters' => array(
793                'sinkName' => array(
794                  'location' => 'path',
795                  'type' => 'string',
796                  'required' => true,
797                ),
798              ),
799            ),'list' => array(
800              'path' => 'v2/{+parent}/sinks',
801              'httpMethod' => 'GET',
802              'parameters' => array(
803                'parent' => array(
804                  'location' => 'path',
805                  'type' => 'string',
806                  'required' => true,
807                ),
808                'pageToken' => array(
809                  'location' => 'query',
810                  'type' => 'string',
811                ),
812                'pageSize' => array(
813                  'location' => 'query',
814                  'type' => 'integer',
815                ),
816              ),
817            ),'patch' => array(
818              'path' => 'v2/{+sinkName}',
819              'httpMethod' => 'PATCH',
820              'parameters' => array(
821                'sinkName' => array(
822                  'location' => 'path',
823                  'type' => 'string',
824                  'required' => true,
825                ),
826                'uniqueWriterIdentity' => array(
827                  'location' => 'query',
828                  'type' => 'boolean',
829                ),
830                'updateMask' => array(
831                  'location' => 'query',
832                  'type' => 'string',
833                ),
834              ),
835            ),'update' => array(
836              'path' => 'v2/{+sinkName}',
837              'httpMethod' => 'PUT',
838              'parameters' => array(
839                'sinkName' => array(
840                  'location' => 'path',
841                  'type' => 'string',
842                  'required' => true,
843                ),
844                'uniqueWriterIdentity' => array(
845                  'location' => 'query',
846                  'type' => 'boolean',
847                ),
848                'updateMask' => array(
849                  'location' => 'query',
850                  'type' => 'string',
851                ),
852              ),
853            ),
854          )
855        )
856    );
857    $this->projects_exclusions = new Google_Service_Logging_Resource_ProjectsExclusions(
858        $this,
859        $this->serviceName,
860        'exclusions',
861        array(
862          'methods' => array(
863            'create' => array(
864              'path' => 'v2/{+parent}/exclusions',
865              'httpMethod' => 'POST',
866              'parameters' => array(
867                'parent' => array(
868                  'location' => 'path',
869                  'type' => 'string',
870                  'required' => true,
871                ),
872              ),
873            ),'delete' => array(
874              'path' => 'v2/{+name}',
875              'httpMethod' => 'DELETE',
876              'parameters' => array(
877                'name' => array(
878                  'location' => 'path',
879                  'type' => 'string',
880                  'required' => true,
881                ),
882              ),
883            ),'get' => array(
884              'path' => 'v2/{+name}',
885              'httpMethod' => 'GET',
886              'parameters' => array(
887                'name' => array(
888                  'location' => 'path',
889                  'type' => 'string',
890                  'required' => true,
891                ),
892              ),
893            ),'list' => array(
894              'path' => 'v2/{+parent}/exclusions',
895              'httpMethod' => 'GET',
896              'parameters' => array(
897                'parent' => array(
898                  'location' => 'path',
899                  'type' => 'string',
900                  'required' => true,
901                ),
902                'pageToken' => array(
903                  'location' => 'query',
904                  'type' => 'string',
905                ),
906                'pageSize' => array(
907                  'location' => 'query',
908                  'type' => 'integer',
909                ),
910              ),
911            ),'patch' => array(
912              'path' => 'v2/{+name}',
913              'httpMethod' => 'PATCH',
914              'parameters' => array(
915                'name' => array(
916                  'location' => 'path',
917                  'type' => 'string',
918                  'required' => true,
919                ),
920                'updateMask' => array(
921                  'location' => 'query',
922                  'type' => 'string',
923                ),
924              ),
925            ),
926          )
927        )
928    );
929    $this->projects_logs = new Google_Service_Logging_Resource_ProjectsLogs(
930        $this,
931        $this->serviceName,
932        'logs',
933        array(
934          'methods' => array(
935            'delete' => array(
936              'path' => 'v2/{+logName}',
937              'httpMethod' => 'DELETE',
938              'parameters' => array(
939                'logName' => array(
940                  'location' => 'path',
941                  'type' => 'string',
942                  'required' => true,
943                ),
944              ),
945            ),'list' => array(
946              'path' => 'v2/{+parent}/logs',
947              'httpMethod' => 'GET',
948              'parameters' => array(
949                'parent' => array(
950                  'location' => 'path',
951                  'type' => 'string',
952                  'required' => true,
953                ),
954                'pageToken' => array(
955                  'location' => 'query',
956                  'type' => 'string',
957                ),
958                'pageSize' => array(
959                  'location' => 'query',
960                  'type' => 'integer',
961                ),
962              ),
963            ),
964          )
965        )
966    );
967    $this->projects_metrics = new Google_Service_Logging_Resource_ProjectsMetrics(
968        $this,
969        $this->serviceName,
970        'metrics',
971        array(
972          'methods' => array(
973            'create' => array(
974              'path' => 'v2/{+parent}/metrics',
975              'httpMethod' => 'POST',
976              'parameters' => array(
977                'parent' => array(
978                  'location' => 'path',
979                  'type' => 'string',
980                  'required' => true,
981                ),
982              ),
983            ),'delete' => array(
984              'path' => 'v2/{+metricName}',
985              'httpMethod' => 'DELETE',
986              'parameters' => array(
987                'metricName' => array(
988                  'location' => 'path',
989                  'type' => 'string',
990                  'required' => true,
991                ),
992              ),
993            ),'get' => array(
994              'path' => 'v2/{+metricName}',
995              'httpMethod' => 'GET',
996              'parameters' => array(
997                'metricName' => array(
998                  'location' => 'path',
999                  'type' => 'string',
1000                  'required' => true,
1001                ),
1002              ),
1003            ),'list' => array(
1004              'path' => 'v2/{+parent}/metrics',
1005              'httpMethod' => 'GET',
1006              'parameters' => array(
1007                'parent' => array(
1008                  'location' => 'path',
1009                  'type' => 'string',
1010                  'required' => true,
1011                ),
1012                'pageToken' => array(
1013                  'location' => 'query',
1014                  'type' => 'string',
1015                ),
1016                'pageSize' => array(
1017                  'location' => 'query',
1018                  'type' => 'integer',
1019                ),
1020              ),
1021            ),'update' => array(
1022              'path' => 'v2/{+metricName}',
1023              'httpMethod' => 'PUT',
1024              'parameters' => array(
1025                'metricName' => array(
1026                  'location' => 'path',
1027                  'type' => 'string',
1028                  'required' => true,
1029                ),
1030              ),
1031            ),
1032          )
1033        )
1034    );
1035    $this->projects_sinks = new Google_Service_Logging_Resource_ProjectsSinks(
1036        $this,
1037        $this->serviceName,
1038        'sinks',
1039        array(
1040          'methods' => array(
1041            'create' => array(
1042              'path' => 'v2/{+parent}/sinks',
1043              'httpMethod' => 'POST',
1044              'parameters' => array(
1045                'parent' => array(
1046                  'location' => 'path',
1047                  'type' => 'string',
1048                  'required' => true,
1049                ),
1050                'uniqueWriterIdentity' => array(
1051                  'location' => 'query',
1052                  'type' => 'boolean',
1053                ),
1054              ),
1055            ),'delete' => array(
1056              'path' => 'v2/{+sinkName}',
1057              'httpMethod' => 'DELETE',
1058              'parameters' => array(
1059                'sinkName' => array(
1060                  'location' => 'path',
1061                  'type' => 'string',
1062                  'required' => true,
1063                ),
1064              ),
1065            ),'get' => array(
1066              'path' => 'v2/{+sinkName}',
1067              'httpMethod' => 'GET',
1068              'parameters' => array(
1069                'sinkName' => array(
1070                  'location' => 'path',
1071                  'type' => 'string',
1072                  'required' => true,
1073                ),
1074              ),
1075            ),'list' => array(
1076              'path' => 'v2/{+parent}/sinks',
1077              'httpMethod' => 'GET',
1078              'parameters' => array(
1079                'parent' => array(
1080                  'location' => 'path',
1081                  'type' => 'string',
1082                  'required' => true,
1083                ),
1084                'pageToken' => array(
1085                  'location' => 'query',
1086                  'type' => 'string',
1087                ),
1088                'pageSize' => array(
1089                  'location' => 'query',
1090                  'type' => 'integer',
1091                ),
1092              ),
1093            ),'patch' => array(
1094              'path' => 'v2/{+sinkName}',
1095              'httpMethod' => 'PATCH',
1096              'parameters' => array(
1097                'sinkName' => array(
1098                  'location' => 'path',
1099                  'type' => 'string',
1100                  'required' => true,
1101                ),
1102                'uniqueWriterIdentity' => array(
1103                  'location' => 'query',
1104                  'type' => 'boolean',
1105                ),
1106                'updateMask' => array(
1107                  'location' => 'query',
1108                  'type' => 'string',
1109                ),
1110              ),
1111            ),'update' => array(
1112              'path' => 'v2/{+sinkName}',
1113              'httpMethod' => 'PUT',
1114              'parameters' => array(
1115                'sinkName' => array(
1116                  'location' => 'path',
1117                  'type' => 'string',
1118                  'required' => true,
1119                ),
1120                'uniqueWriterIdentity' => array(
1121                  'location' => 'query',
1122                  'type' => 'boolean',
1123                ),
1124                'updateMask' => array(
1125                  'location' => 'query',
1126                  'type' => 'string',
1127                ),
1128              ),
1129            ),
1130          )
1131        )
1132    );
1133    $this->sinks = new Google_Service_Logging_Resource_Sinks(
1134        $this,
1135        $this->serviceName,
1136        'sinks',
1137        array(
1138          'methods' => array(
1139            'create' => array(
1140              'path' => 'v2/{+parent}/sinks',
1141              'httpMethod' => 'POST',
1142              'parameters' => array(
1143                'parent' => array(
1144                  'location' => 'path',
1145                  'type' => 'string',
1146                  'required' => true,
1147                ),
1148                'uniqueWriterIdentity' => array(
1149                  'location' => 'query',
1150                  'type' => 'boolean',
1151                ),
1152              ),
1153            ),'delete' => array(
1154              'path' => 'v2/{+sinkName}',
1155              'httpMethod' => 'DELETE',
1156              'parameters' => array(
1157                'sinkName' => array(
1158                  'location' => 'path',
1159                  'type' => 'string',
1160                  'required' => true,
1161                ),
1162              ),
1163            ),'get' => array(
1164              'path' => 'v2/{+sinkName}',
1165              'httpMethod' => 'GET',
1166              'parameters' => array(
1167                'sinkName' => array(
1168                  'location' => 'path',
1169                  'type' => 'string',
1170                  'required' => true,
1171                ),
1172              ),
1173            ),'list' => array(
1174              'path' => 'v2/{+parent}/sinks',
1175              'httpMethod' => 'GET',
1176              'parameters' => array(
1177                'parent' => array(
1178                  'location' => 'path',
1179                  'type' => 'string',
1180                  'required' => true,
1181                ),
1182                'pageToken' => array(
1183                  'location' => 'query',
1184                  'type' => 'string',
1185                ),
1186                'pageSize' => array(
1187                  'location' => 'query',
1188                  'type' => 'integer',
1189                ),
1190              ),
1191            ),'update' => array(
1192              'path' => 'v2/{+sinkName}',
1193              'httpMethod' => 'PUT',
1194              'parameters' => array(
1195                'sinkName' => array(
1196                  'location' => 'path',
1197                  'type' => 'string',
1198                  'required' => true,
1199                ),
1200                'uniqueWriterIdentity' => array(
1201                  'location' => 'query',
1202                  'type' => 'boolean',
1203                ),
1204                'updateMask' => array(
1205                  'location' => 'query',
1206                  'type' => 'string',
1207                ),
1208              ),
1209            ),
1210          )
1211        )
1212    );
1213  }
1214}
1215