Playdeveloperreporting.php 6.3 KB

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