class RowAccessPolicies extends Resource (View source)

The "rowAccessPolicies" collection of methods.

Typical usage is:

 $bigqueryService = new Google\Service\Bigquery(...);
 $rowAccessPolicies = $bigqueryService->rowAccessPolicies;

Methods

getIamPolicy(string $resource, GetIamPolicyRequest $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.

listRowAccessPolicies(string $projectId, string $datasetId, string $tableId, array $optParams = [])

Lists all row access policies on the specified table.

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

Details

Policy getIamPolicy(string $resource, GetIamPolicyRequest $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.

(rowAccessPolicies.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListRowAccessPoliciesResponse listRowAccessPolicies(string $projectId, string $datasetId, string $tableId, array $optParams = [])

Lists all row access policies on the specified table.

(rowAccessPolicies.listRowAccessPolicies)

Parameters

string $projectId

Required. Project ID of the row access policies to list.

string $datasetId

Required. Dataset ID of row access policies to list.

string $tableId

Required. Table ID of the table to list row access policies.

array $optParams

Optional parameters.

Return Value

ListRowAccessPoliciesResponse

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

This operation may "fail open" without warning. (rowAccessPolicies.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception