* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...); * $systempolicy = $binaryauthorizationService->systempolicy; * */ class Systempolicy extends \Google\Service\Resource { /** * Gets the current system policy in the specified location. * (systempolicy.getPolicy) * * @param string $name Required. The resource name, in the format * `locations/policy`. Note that the system policy is not associated with a * project. * @param array $optParams Optional parameters. * @return Policy */ public function getPolicy($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('getPolicy', [$params], Policy::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Systempolicy::class, 'Google_Service_BinaryAuthorization_Resource_Systempolicy');