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 | namespace Google\Service\Clouderrorreporting\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Clouderrorreporting\ListEventsResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "events" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
|
---|
27 | * $events = $clouderrorreportingService->projects_locations_events;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class ProjectsLocationsEvents extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Lists the specified events. (events.listProjectsLocationsEvents)
|
---|
34 | *
|
---|
35 | * @param string $projectName Required. The resource name of the Google Cloud
|
---|
36 | * Platform project. Written as `projects/{projectID}` or
|
---|
37 | * `projects/{projectID}/locations/{location}`, where `{projectID}` is the
|
---|
38 | * [Google Cloud Platform project
|
---|
39 | * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a
|
---|
40 | * Cloud region. Examples: `projects/my-project-123`, `projects/my-
|
---|
41 | * project-123/locations/global`. For a list of supported locations, see
|
---|
42 | * [Supported Regions](https://cloud.google.com/logging/docs/region-support).
|
---|
43 | * `global` is the default when unspecified.
|
---|
44 | * @param array $optParams Optional parameters.
|
---|
45 | *
|
---|
46 | * @opt_param string groupId Required. The group for which events shall be
|
---|
47 | * returned. The `group_id` is a unique identifier for a particular error group.
|
---|
48 | * The identifier is derived from key parts of the error-log content and is
|
---|
49 | * treated as Service Data. For information about how Service Data is handled,
|
---|
50 | * see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-
|
---|
51 | * privacy-notice).
|
---|
52 | * @opt_param int pageSize Optional. The maximum number of results to return per
|
---|
53 | * response.
|
---|
54 | * @opt_param string pageToken Optional. A `next_page_token` provided by a
|
---|
55 | * previous response.
|
---|
56 | * @opt_param string serviceFilter.resourceType Optional. The exact value to
|
---|
57 | * match against [`ServiceContext.resource_type`](/error-
|
---|
58 | * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
|
---|
59 | * @opt_param string serviceFilter.service Optional. The exact value to match
|
---|
60 | * against [`ServiceContext.service`](/error-
|
---|
61 | * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
|
---|
62 | * @opt_param string serviceFilter.version Optional. The exact value to match
|
---|
63 | * against [`ServiceContext.version`](/error-
|
---|
64 | * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
|
---|
65 | * @opt_param string timeRange.period Restricts the query to the specified time
|
---|
66 | * range.
|
---|
67 | * @return ListEventsResponse
|
---|
68 | * @throws \Google\Service\Exception
|
---|
69 | */
|
---|
70 | public function listProjectsLocationsEvents($projectName, $optParams = [])
|
---|
71 | {
|
---|
72 | $params = ['projectName' => $projectName];
|
---|
73 | $params = array_merge($params, $optParams);
|
---|
74 | return $this->call('list', [$params], ListEventsResponse::class);
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
79 | class_alias(ProjectsLocationsEvents::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocationsEvents');
|
---|