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

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

Upload project files

  • Property mode set to 100644
File size: 3.8 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\Clouderrorreporting\Resource;
19
20use Google\Service\Clouderrorreporting\ErrorGroup;
21
22/**
23 * The "groups" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
27 * $groups = $clouderrorreportingService->projects_locations_groups;
28 * </code>
29 */
30class ProjectsLocationsGroups extends \Google\Service\Resource
31{
32 /**
33 * Get the specified group. (groups.get)
34 *
35 * @param string $groupName Required. The group resource name. Written as either
36 * `projects/{projectID}/groups/{group_id}` or
37 * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
38 * groupStats.list to return a list of groups belonging to this project.
39 * Examples: `projects/my-project-123/groups/my-group`, `projects/my-
40 * project-123/locations/global/groups/my-group` In the group resource name, the
41 * `group_id` is a unique identifier for a particular error group. The
42 * identifier is derived from key parts of the error-log content and is treated
43 * as Service Data. For information about how Service Data is handled, see
44 * [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
45 * notice). For a list of supported locations, see [Supported
46 * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
47 * the default when unspecified.
48 * @param array $optParams Optional parameters.
49 * @return ErrorGroup
50 * @throws \Google\Service\Exception
51 */
52 public function get($groupName, $optParams = [])
53 {
54 $params = ['groupName' => $groupName];
55 $params = array_merge($params, $optParams);
56 return $this->call('get', [$params], ErrorGroup::class);
57 }
58 /**
59 * Replace the data for the specified group. Fails if the group does not exist.
60 * (groups.update)
61 *
62 * @param string $name The group resource name. Written as
63 * `projects/{projectID}/groups/{group_id}` or
64 * `projects/{projectID}/locations/{location}/groups/{group_id}` Examples:
65 * `projects/my-project-123/groups/my-group`, `projects/my-
66 * project-123/locations/us-central1/groups/my-group` In the group resource
67 * name, the `group_id` is a unique identifier for a particular error group. The
68 * identifier is derived from key parts of the error-log content and is treated
69 * as Service Data. For information about how Service Data is handled, see
70 * [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
71 * notice). For a list of supported locations, see [Supported
72 * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
73 * the default when unspecified.
74 * @param ErrorGroup $postBody
75 * @param array $optParams Optional parameters.
76 * @return ErrorGroup
77 * @throws \Google\Service\Exception
78 */
79 public function update($name, ErrorGroup $postBody, $optParams = [])
80 {
81 $params = ['name' => $name, 'postBody' => $postBody];
82 $params = array_merge($params, $optParams);
83 return $this->call('update', [$params], ErrorGroup::class);
84 }
85}
86
87// Adding a class alias for backwards compatibility with the previous class name.
88class_alias(ProjectsLocationsGroups::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocationsGroups');
Note: See TracBrowser for help on using the repository browser.