* $drivelabelsService = new Google\Service\DriveLabels(...); * $users = $drivelabelsService->users; * */ class Users extends \Google\Service\Resource { /** * Gets the user capabilities. (users.getCapabilities) * * @param string $name Required. The resource name of the user. Only * "users/me/capabilities" is supported. * @param array $optParams Optional parameters. * * @opt_param string customer The customer to scope this request to. For * example: "customers/abcd1234". If unset, will return settings within the * current customer. * @return GoogleAppsDriveLabelsV2UserCapabilities * @throws \Google\Service\Exception */ public function getCapabilities($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('getCapabilities', [$params], GoogleAppsDriveLabelsV2UserCapabilities::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Users::class, 'Google_Service_DriveLabels_Resource_Users');