* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...); * $groups = $clouderrorreportingService->projects_groups; * */ class ProjectsGroups extends \Google\Service\Resource { /** * Get the specified group. (groups.get) * * @param string $groupName Required. The group resource name. Written as * `projects/{projectID}/groups/{group_name}`. Call groupStats.list to return a * list of groups belonging to this project. Example: `projects/my- * project-123/groups/my-group` * @param array $optParams Optional parameters. * @return ErrorGroup */ public function get($groupName, $optParams = []) { $params = ['groupName' => $groupName]; $params = array_merge($params, $optParams); return $this->call('get', [$params], ErrorGroup::class); } /** * Replace the data for the specified group. Fails if the group does not exist. * (groups.update) * * @param string $name The group resource name. Example: projects/my- * project-123/groups/CNSgkpnppqKCUw * @param ErrorGroup $postBody * @param array $optParams Optional parameters. * @return ErrorGroup */ public function update($name, ErrorGroup $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], ErrorGroup::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsGroups::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsGroups');