class Policies extends Resource (View source)

The "policies" collection of methods.

Typical usage is:

 $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...);
 $policies = $prod_tt_sasportalService->policies;

Methods

get(SasPortalGetPolicyRequest $postBody, array $optParams = [])

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)

set(SasPortalSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (policies.set)

test(SasPortalTestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

Details

SasPortalPolicy get(SasPortalGetPolicyRequest $postBody, array $optParams = [])

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)

Parameters

SasPortalGetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

SasPortalPolicy

Exceptions

Exception

SasPortalPolicy set(SasPortalSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (policies.set)

Parameters

SasPortalSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

SasPortalPolicy

Exceptions

Exception

SasPortalTestPermissionsResponse test(SasPortalTestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(policies.test)

Parameters

SasPortalTestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

SasPortalTestPermissionsResponse

Exceptions

Exception