* $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...); * $policies = $prod_tt_sasportalService->policies; * */ class Policies extends \Google\Service\Resource { /** * Gets the access control policy for a resource. Returns an empty policy if the * resource exists and does not have a policy set. (policies.get) * * @param SasPortalGetPolicyRequest $postBody * @param array $optParams Optional parameters. * @return SasPortalPolicy */ public function get(SasPortalGetPolicyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('get', [$params], SasPortalPolicy::class); } /** * Sets the access control policy on the specified resource. Replaces any * existing policy. (policies.set) * * @param SasPortalSetPolicyRequest $postBody * @param array $optParams Optional parameters. * @return SasPortalPolicy */ public function set(SasPortalSetPolicyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('set', [$params], SasPortalPolicy::class); } /** * Returns permissions that a caller has on the specified resource. * (policies.test) * * @param SasPortalTestPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return SasPortalTestPermissionsResponse */ public function test(SasPortalTestPermissionsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('test', [$params], SasPortalTestPermissionsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Policies::class, 'Google_Service_SASPortalTesting_Resource_Policies');