Package com.google.cloud.bigquery
Class Acl
- java.lang.Object
-
- com.google.cloud.bigquery.Acl
-
- All Implemented Interfaces:
Serializable
public final class Acl extends Object implements Serializable
Access Control for a BigQuery Dataset. BigQuery uses ACLs to manage permissions on datasets. ACLs are not directly supported on tables. A table inherits its ACL from the dataset that contains it. Project roles affect your ability to run jobs or manage the project, while dataset roles affect how you can access or modify the data inside a project.- See Also:
- Access Control, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAcl.DatasetAclEntityClass for a BigQuery DatasetAclEntity ACL entity.static classAcl.DomainClass for a BigQuery Domain entity.static classAcl.EntityBase class for BigQuery entities that can be grant access to the dataset.static classAcl.GroupClass for a BigQuery Group entity.static classAcl.IamMemberClass for a BigQuery IamMember entity.static classAcl.RoleDataset roles supported by BigQuery.static classAcl.RoutineClass for a BigQuery Routine entity.static classAcl.UserClass for a BigQuery User entity.static classAcl.ViewClass for a BigQuery View entity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Acl.EntitygetEntity()Acl.RolegetRole()inthashCode()static Aclof(Acl.DatasetAclEntity datasetAclEntity)static Aclof(Acl.Entity entity, Acl.Role role)static Aclof(Acl.Routine routine)static Aclof(Acl.View view)StringtoString()
-
-
-
Method Detail
-
getEntity
public Acl.Entity getEntity()
- Returns:
- Returns the entity for this ACL.
-
getRole
public Acl.Role getRole()
- Returns:
- Returns the role specified by this ACL.
-
of
public static Acl of(Acl.Entity entity, Acl.Role role)
- Parameters:
entity- the entity for this ACL objectrole- the role to associate to theentityobject- Returns:
- Returns an Acl object.
-
of
public static Acl of(Acl.DatasetAclEntity datasetAclEntity)
- Parameters:
datasetAclEntity-- Returns:
- Returns an Acl object for a datasetAclEntity.
-
of
public static Acl of(Acl.View view)
- Parameters:
view-- Returns:
- Returns an Acl object for a view entity.
-
of
public static Acl of(Acl.Routine routine)
- Parameters:
routine-- Returns:
- Returns an Acl object for a routine entity.
-
-