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 Playdeveloperreporting (v1beta1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/play/developer/reporting" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Playdeveloperreporting extends \Google\Service
36{
37
38
39  public $anomalies;
40  public $vitals_anrrate;
41  public $vitals_crashrate;
42  public $vitals_excessivewakeuprate;
43  public $vitals_stuckbackgroundwakelockrate;
44
45  /**
46   * Constructs the internal representation of the Playdeveloperreporting
47   * service.
48   *
49   * @param Client|array $clientOrConfig The client used to deliver requests, or a
50   *                                     config array to pass to a new Client instance.
51   * @param string $rootUrl The root URL used for requests to the service.
52   */
53  public function __construct($clientOrConfig = [], $rootUrl = null)
54  {
55    parent::__construct($clientOrConfig);
56    $this->rootUrl = $rootUrl ?: 'https://playdeveloperreporting.googleapis.com/';
57    $this->servicePath = '';
58    $this->batchPath = 'batch';
59    $this->version = 'v1beta1';
60    $this->serviceName = 'playdeveloperreporting';
61
62    $this->anomalies = new Playdeveloperreporting\Resource\Anomalies(
63        $this,
64        $this->serviceName,
65        'anomalies',
66        [
67          'methods' => [
68            'list' => [
69              'path' => 'v1beta1/{+parent}/anomalies',
70              'httpMethod' => 'GET',
71              'parameters' => [
72                'parent' => [
73                  'location' => 'path',
74                  'type' => 'string',
75                  'required' => true,
76                ],
77                'filter' => [
78                  'location' => 'query',
79                  'type' => 'string',
80                ],
81                'pageSize' => [
82                  'location' => 'query',
83                  'type' => 'integer',
84                ],
85                'pageToken' => [
86                  'location' => 'query',
87                  'type' => 'string',
88                ],
89              ],
90            ],
91          ]
92        ]
93    );
94    $this->vitals_anrrate = new Playdeveloperreporting\Resource\VitalsAnrrate(
95        $this,
96        $this->serviceName,
97        'anrrate',
98        [
99          'methods' => [
100            'get' => [
101              'path' => 'v1beta1/{+name}',
102              'httpMethod' => 'GET',
103              'parameters' => [
104                'name' => [
105                  'location' => 'path',
106                  'type' => 'string',
107                  'required' => true,
108                ],
109              ],
110            ],'query' => [
111              'path' => 'v1beta1/{+name}:query',
112              'httpMethod' => 'POST',
113              'parameters' => [
114                'name' => [
115                  'location' => 'path',
116                  'type' => 'string',
117                  'required' => true,
118                ],
119              ],
120            ],
121          ]
122        ]
123    );
124    $this->vitals_crashrate = new Playdeveloperreporting\Resource\VitalsCrashrate(
125        $this,
126        $this->serviceName,
127        'crashrate',
128        [
129          'methods' => [
130            'get' => [
131              'path' => 'v1beta1/{+name}',
132              'httpMethod' => 'GET',
133              'parameters' => [
134                'name' => [
135                  'location' => 'path',
136                  'type' => 'string',
137                  'required' => true,
138                ],
139              ],
140            ],'query' => [
141              'path' => 'v1beta1/{+name}:query',
142              'httpMethod' => 'POST',
143              'parameters' => [
144                'name' => [
145                  'location' => 'path',
146                  'type' => 'string',
147                  'required' => true,
148                ],
149              ],
150            ],
151          ]
152        ]
153    );
154    $this->vitals_excessivewakeuprate = new Playdeveloperreporting\Resource\VitalsExcessivewakeuprate(
155        $this,
156        $this->serviceName,
157        'excessivewakeuprate',
158        [
159          'methods' => [
160            'get' => [
161              'path' => 'v1beta1/{+name}',
162              'httpMethod' => 'GET',
163              'parameters' => [
164                'name' => [
165                  'location' => 'path',
166                  'type' => 'string',
167                  'required' => true,
168                ],
169              ],
170            ],'query' => [
171              'path' => 'v1beta1/{+name}:query',
172              'httpMethod' => 'POST',
173              'parameters' => [
174                'name' => [
175                  'location' => 'path',
176                  'type' => 'string',
177                  'required' => true,
178                ],
179              ],
180            ],
181          ]
182        ]
183    );
184    $this->vitals_stuckbackgroundwakelockrate = new Playdeveloperreporting\Resource\VitalsStuckbackgroundwakelockrate(
185        $this,
186        $this->serviceName,
187        'stuckbackgroundwakelockrate',
188        [
189          'methods' => [
190            'get' => [
191              'path' => 'v1beta1/{+name}',
192              'httpMethod' => 'GET',
193              'parameters' => [
194                'name' => [
195                  'location' => 'path',
196                  'type' => 'string',
197                  'required' => true,
198                ],
199              ],
200            ],'query' => [
201              'path' => 'v1beta1/{+name}:query',
202              'httpMethod' => 'POST',
203              'parameters' => [
204                'name' => [
205                  'location' => 'path',
206                  'type' => 'string',
207                  'required' => true,
208                ],
209              ],
210            ],
211          ]
212        ]
213    );
214  }
215}
216
217// Adding a class alias for backwards compatibility with the previous class name.
218class_alias(Playdeveloperreporting::class, 'Google_Service_Playdeveloperreporting');
219