ProjectsLocationsDataPolicies
class ProjectsLocationsDataPolicies extends Resource (View source)
The "dataPolicies" collection of methods.
Typical usage is:
$bigquerydatapolicyService = new Google\Service\BigQueryDataPolicyService(...);
$dataPolicies = $bigquerydatapolicyService->projects_locations_dataPolicies;
Methods
Creates a new data policy under a project with the given dataPolicyId
(used
as the display name), policy tag, and data policy type. (dataPolicies.create)
Deletes the data policy specified by its resource name. (dataPolicies.delete)
Gets the data policy specified by its resource name. (dataPolicies.get)
Gets the IAM policy for the specified data policy.
List all of the data policies in the specified parent project.
Updates the metadata for an existing data policy. The target data policy can be specified by the resource name. (dataPolicies.patch)
Renames the id (display name) of the specified data policy.
Sets the IAM policy for the specified data policy.
Returns the caller's permission on the specified data policy resource.
Details
DataPolicy
create(string $parent, DataPolicy $postBody, array $optParams = [])
Creates a new data policy under a project with the given dataPolicyId
(used
as the display name), policy tag, and data policy type. (dataPolicies.create)
BigquerydatapolicyEmpty
delete(string $name, array $optParams = [])
Deletes the data policy specified by its resource name. (dataPolicies.delete)
DataPolicy
get(string $name, array $optParams = [])
Gets the data policy specified by its resource name. (dataPolicies.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the IAM policy for the specified data policy.
(dataPolicies.getIamPolicy)
ListDataPoliciesResponse
listProjectsLocationsDataPolicies(string $parent, array $optParams = [])
List all of the data policies in the specified parent project.
(dataPolicies.listProjectsLocationsDataPolicies)
DataPolicy
patch(string $name, DataPolicy $postBody, array $optParams = [])
Updates the metadata for an existing data policy. The target data policy can be specified by the resource name. (dataPolicies.patch)
DataPolicy
rename(string $name, RenameDataPolicyRequest $postBody, array $optParams = [])
Renames the id (display name) of the specified data policy.
(dataPolicies.rename)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the IAM policy for the specified data policy.
(dataPolicies.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns the caller's permission on the specified data policy resource.
(dataPolicies.testIamPermissions)