source: vendor/google/apiclient-services/src/Clouderrorreporting.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 12.7 KB
Line 
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 Clouderrorreporting (v1beta1).
24 *
25 * <p>
26 * Groups and counts similar errors from cloud services and applications,
27 * reports new errors, and provides access to error groups and their associated
28 * errors.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/error-reporting/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class Clouderrorreporting extends \Google\Service
38{
39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
40 const CLOUD_PLATFORM =
41 "https://www.googleapis.com/auth/cloud-platform";
42
43 public $projects;
44 public $projects_events;
45 public $projects_groupStats;
46 public $projects_groups;
47 public $projects_locations;
48 public $projects_locations_events;
49 public $projects_locations_groupStats;
50 public $projects_locations_groups;
51 public $rootUrlTemplate;
52
53 /**
54 * Constructs the internal representation of the Clouderrorreporting service.
55 *
56 * @param Client|array $clientOrConfig The client used to deliver requests, or a
57 * config array to pass to a new Client instance.
58 * @param string $rootUrl The root URL used for requests to the service.
59 */
60 public function __construct($clientOrConfig = [], $rootUrl = null)
61 {
62 parent::__construct($clientOrConfig);
63 $this->rootUrl = $rootUrl ?: 'https://clouderrorreporting.googleapis.com/';
64 $this->rootUrlTemplate = $rootUrl ?: 'https://clouderrorreporting.UNIVERSE_DOMAIN/';
65 $this->servicePath = '';
66 $this->batchPath = 'batch';
67 $this->version = 'v1beta1';
68 $this->serviceName = 'clouderrorreporting';
69
70 $this->projects = new Clouderrorreporting\Resource\Projects(
71 $this,
72 $this->serviceName,
73 'projects',
74 [
75 'methods' => [
76 'deleteEvents' => [
77 'path' => 'v1beta1/{+projectName}/events',
78 'httpMethod' => 'DELETE',
79 'parameters' => [
80 'projectName' => [
81 'location' => 'path',
82 'type' => 'string',
83 'required' => true,
84 ],
85 ],
86 ],
87 ]
88 ]
89 );
90 $this->projects_events = new Clouderrorreporting\Resource\ProjectsEvents(
91 $this,
92 $this->serviceName,
93 'events',
94 [
95 'methods' => [
96 'list' => [
97 'path' => 'v1beta1/{+projectName}/events',
98 'httpMethod' => 'GET',
99 'parameters' => [
100 'projectName' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 'groupId' => [
106 'location' => 'query',
107 'type' => 'string',
108 ],
109 'pageSize' => [
110 'location' => 'query',
111 'type' => 'integer',
112 ],
113 'pageToken' => [
114 'location' => 'query',
115 'type' => 'string',
116 ],
117 'serviceFilter.resourceType' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 'serviceFilter.service' => [
122 'location' => 'query',
123 'type' => 'string',
124 ],
125 'serviceFilter.version' => [
126 'location' => 'query',
127 'type' => 'string',
128 ],
129 'timeRange.period' => [
130 'location' => 'query',
131 'type' => 'string',
132 ],
133 ],
134 ],'report' => [
135 'path' => 'v1beta1/{+projectName}/events:report',
136 'httpMethod' => 'POST',
137 'parameters' => [
138 'projectName' => [
139 'location' => 'path',
140 'type' => 'string',
141 'required' => true,
142 ],
143 ],
144 ],
145 ]
146 ]
147 );
148 $this->projects_groupStats = new Clouderrorreporting\Resource\ProjectsGroupStats(
149 $this,
150 $this->serviceName,
151 'groupStats',
152 [
153 'methods' => [
154 'list' => [
155 'path' => 'v1beta1/{+projectName}/groupStats',
156 'httpMethod' => 'GET',
157 'parameters' => [
158 'projectName' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 'alignment' => [
164 'location' => 'query',
165 'type' => 'string',
166 ],
167 'alignmentTime' => [
168 'location' => 'query',
169 'type' => 'string',
170 ],
171 'groupId' => [
172 'location' => 'query',
173 'type' => 'string',
174 'repeated' => true,
175 ],
176 'order' => [
177 'location' => 'query',
178 'type' => 'string',
179 ],
180 'pageSize' => [
181 'location' => 'query',
182 'type' => 'integer',
183 ],
184 'pageToken' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 'serviceFilter.resourceType' => [
189 'location' => 'query',
190 'type' => 'string',
191 ],
192 'serviceFilter.service' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 'serviceFilter.version' => [
197 'location' => 'query',
198 'type' => 'string',
199 ],
200 'timeRange.period' => [
201 'location' => 'query',
202 'type' => 'string',
203 ],
204 'timedCountDuration' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 ],
209 ],
210 ]
211 ]
212 );
213 $this->projects_groups = new Clouderrorreporting\Resource\ProjectsGroups(
214 $this,
215 $this->serviceName,
216 'groups',
217 [
218 'methods' => [
219 'get' => [
220 'path' => 'v1beta1/{+groupName}',
221 'httpMethod' => 'GET',
222 'parameters' => [
223 'groupName' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 ],
229 ],'update' => [
230 'path' => 'v1beta1/{+name}',
231 'httpMethod' => 'PUT',
232 'parameters' => [
233 'name' => [
234 'location' => 'path',
235 'type' => 'string',
236 'required' => true,
237 ],
238 ],
239 ],
240 ]
241 ]
242 );
243 $this->projects_locations = new Clouderrorreporting\Resource\ProjectsLocations(
244 $this,
245 $this->serviceName,
246 'locations',
247 [
248 'methods' => [
249 'deleteEvents' => [
250 'path' => 'v1beta1/{+projectName}/events',
251 'httpMethod' => 'DELETE',
252 'parameters' => [
253 'projectName' => [
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ],
258 ],
259 ],
260 ]
261 ]
262 );
263 $this->projects_locations_events = new Clouderrorreporting\Resource\ProjectsLocationsEvents(
264 $this,
265 $this->serviceName,
266 'events',
267 [
268 'methods' => [
269 'list' => [
270 'path' => 'v1beta1/{+projectName}/events',
271 'httpMethod' => 'GET',
272 'parameters' => [
273 'projectName' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 'groupId' => [
279 'location' => 'query',
280 'type' => 'string',
281 ],
282 'pageSize' => [
283 'location' => 'query',
284 'type' => 'integer',
285 ],
286 'pageToken' => [
287 'location' => 'query',
288 'type' => 'string',
289 ],
290 'serviceFilter.resourceType' => [
291 'location' => 'query',
292 'type' => 'string',
293 ],
294 'serviceFilter.service' => [
295 'location' => 'query',
296 'type' => 'string',
297 ],
298 'serviceFilter.version' => [
299 'location' => 'query',
300 'type' => 'string',
301 ],
302 'timeRange.period' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 ],
307 ],
308 ]
309 ]
310 );
311 $this->projects_locations_groupStats = new Clouderrorreporting\Resource\ProjectsLocationsGroupStats(
312 $this,
313 $this->serviceName,
314 'groupStats',
315 [
316 'methods' => [
317 'list' => [
318 'path' => 'v1beta1/{+projectName}/groupStats',
319 'httpMethod' => 'GET',
320 'parameters' => [
321 'projectName' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 'alignment' => [
327 'location' => 'query',
328 'type' => 'string',
329 ],
330 'alignmentTime' => [
331 'location' => 'query',
332 'type' => 'string',
333 ],
334 'groupId' => [
335 'location' => 'query',
336 'type' => 'string',
337 'repeated' => true,
338 ],
339 'order' => [
340 'location' => 'query',
341 'type' => 'string',
342 ],
343 'pageSize' => [
344 'location' => 'query',
345 'type' => 'integer',
346 ],
347 'pageToken' => [
348 'location' => 'query',
349 'type' => 'string',
350 ],
351 'serviceFilter.resourceType' => [
352 'location' => 'query',
353 'type' => 'string',
354 ],
355 'serviceFilter.service' => [
356 'location' => 'query',
357 'type' => 'string',
358 ],
359 'serviceFilter.version' => [
360 'location' => 'query',
361 'type' => 'string',
362 ],
363 'timeRange.period' => [
364 'location' => 'query',
365 'type' => 'string',
366 ],
367 'timedCountDuration' => [
368 'location' => 'query',
369 'type' => 'string',
370 ],
371 ],
372 ],
373 ]
374 ]
375 );
376 $this->projects_locations_groups = new Clouderrorreporting\Resource\ProjectsLocationsGroups(
377 $this,
378 $this->serviceName,
379 'groups',
380 [
381 'methods' => [
382 'get' => [
383 'path' => 'v1beta1/{+groupName}',
384 'httpMethod' => 'GET',
385 'parameters' => [
386 'groupName' => [
387 'location' => 'path',
388 'type' => 'string',
389 'required' => true,
390 ],
391 ],
392 ],'update' => [
393 'path' => 'v1beta1/{+name}',
394 'httpMethod' => 'PUT',
395 'parameters' => [
396 'name' => [
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ],
401 ],
402 ],
403 ]
404 ]
405 );
406 }
407}
408
409// Adding a class alias for backwards compatibility with the previous class name.
410class_alias(Clouderrorreporting::class, 'Google_Service_Clouderrorreporting');
Note: See TracBrowser for help on using the repository browser.