Nessuna descrizione

Clouderrorreporting.php 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. * Service definition for Clouderrorreporting (v1beta1).
  19. *
  20. * <p>
  21. * Groups and counts similar errors from cloud services and applications,
  22. * reports new errors, and provides access to error groups and their associated
  23. * errors.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/error-reporting/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Google_Service_Clouderrorreporting extends Google_Service
  33. {
  34. /** View and manage your data across Google Cloud Platform services. */
  35. const CLOUD_PLATFORM =
  36. "https://www.googleapis.com/auth/cloud-platform";
  37. public $projects;
  38. public $projects_events;
  39. public $projects_groupStats;
  40. public $projects_groups;
  41. /**
  42. * Constructs the internal representation of the Clouderrorreporting service.
  43. *
  44. * @param Google_Client $client
  45. */
  46. public function __construct(Google_Client $client)
  47. {
  48. parent::__construct($client);
  49. $this->rootUrl = 'https://clouderrorreporting.googleapis.com/';
  50. $this->servicePath = '';
  51. $this->version = 'v1beta1';
  52. $this->serviceName = 'clouderrorreporting';
  53. $this->projects = new Google_Service_Clouderrorreporting_Resource_Projects(
  54. $this,
  55. $this->serviceName,
  56. 'projects',
  57. array(
  58. 'methods' => array(
  59. 'deleteEvents' => array(
  60. 'path' => 'v1beta1/{+projectName}/events',
  61. 'httpMethod' => 'DELETE',
  62. 'parameters' => array(
  63. 'projectName' => array(
  64. 'location' => 'path',
  65. 'type' => 'string',
  66. 'required' => true,
  67. ),
  68. ),
  69. ),
  70. )
  71. )
  72. );
  73. $this->projects_events = new Google_Service_Clouderrorreporting_Resource_ProjectsEvents(
  74. $this,
  75. $this->serviceName,
  76. 'events',
  77. array(
  78. 'methods' => array(
  79. 'list' => array(
  80. 'path' => 'v1beta1/{+projectName}/events',
  81. 'httpMethod' => 'GET',
  82. 'parameters' => array(
  83. 'projectName' => array(
  84. 'location' => 'path',
  85. 'type' => 'string',
  86. 'required' => true,
  87. ),
  88. 'pageToken' => array(
  89. 'location' => 'query',
  90. 'type' => 'string',
  91. ),
  92. 'serviceFilter.service' => array(
  93. 'location' => 'query',
  94. 'type' => 'string',
  95. ),
  96. 'pageSize' => array(
  97. 'location' => 'query',
  98. 'type' => 'integer',
  99. ),
  100. 'serviceFilter.version' => array(
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ),
  104. 'serviceFilter.resourceType' => array(
  105. 'location' => 'query',
  106. 'type' => 'string',
  107. ),
  108. 'timeRange.period' => array(
  109. 'location' => 'query',
  110. 'type' => 'string',
  111. ),
  112. 'groupId' => array(
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. ),
  116. ),
  117. ),'report' => array(
  118. 'path' => 'v1beta1/{+projectName}/events:report',
  119. 'httpMethod' => 'POST',
  120. 'parameters' => array(
  121. 'projectName' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. ),
  127. ),
  128. )
  129. )
  130. );
  131. $this->projects_groupStats = new Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats(
  132. $this,
  133. $this->serviceName,
  134. 'groupStats',
  135. array(
  136. 'methods' => array(
  137. 'list' => array(
  138. 'path' => 'v1beta1/{+projectName}/groupStats',
  139. 'httpMethod' => 'GET',
  140. 'parameters' => array(
  141. 'projectName' => array(
  142. 'location' => 'path',
  143. 'type' => 'string',
  144. 'required' => true,
  145. ),
  146. 'timeRange.period' => array(
  147. 'location' => 'query',
  148. 'type' => 'string',
  149. ),
  150. 'alignment' => array(
  151. 'location' => 'query',
  152. 'type' => 'string',
  153. ),
  154. 'groupId' => array(
  155. 'location' => 'query',
  156. 'type' => 'string',
  157. 'repeated' => true,
  158. ),
  159. 'serviceFilter.service' => array(
  160. 'location' => 'query',
  161. 'type' => 'string',
  162. ),
  163. 'pageSize' => array(
  164. 'location' => 'query',
  165. 'type' => 'integer',
  166. ),
  167. 'serviceFilter.version' => array(
  168. 'location' => 'query',
  169. 'type' => 'string',
  170. ),
  171. 'order' => array(
  172. 'location' => 'query',
  173. 'type' => 'string',
  174. ),
  175. 'serviceFilter.resourceType' => array(
  176. 'location' => 'query',
  177. 'type' => 'string',
  178. ),
  179. 'alignmentTime' => array(
  180. 'location' => 'query',
  181. 'type' => 'string',
  182. ),
  183. 'timedCountDuration' => array(
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. ),
  187. 'pageToken' => array(
  188. 'location' => 'query',
  189. 'type' => 'string',
  190. ),
  191. ),
  192. ),
  193. )
  194. )
  195. );
  196. $this->projects_groups = new Google_Service_Clouderrorreporting_Resource_ProjectsGroups(
  197. $this,
  198. $this->serviceName,
  199. 'groups',
  200. array(
  201. 'methods' => array(
  202. 'get' => array(
  203. 'path' => 'v1beta1/{+groupName}',
  204. 'httpMethod' => 'GET',
  205. 'parameters' => array(
  206. 'groupName' => array(
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ),
  211. ),
  212. ),'update' => array(
  213. 'path' => 'v1beta1/{+name}',
  214. 'httpMethod' => 'PUT',
  215. 'parameters' => array(
  216. 'name' => array(
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ),
  221. ),
  222. ),
  223. )
  224. )
  225. );
  226. }
  227. }