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 class
Acl.DatasetAclEntity
Class for a BigQuery DatasetAclEntity ACL entity.static class
Acl.Domain
Class for a BigQuery Domain entity.static class
Acl.Entity
Base class for BigQuery entities that can be grant access to the dataset.static class
Acl.Group
Class for a BigQuery Group entity.static class
Acl.IamMember
Class for a BigQuery IamMember entity.static class
Acl.Role
Dataset roles supported by BigQuery.static class
Acl.Routine
Class for a BigQuery Routine entity.static class
Acl.User
Class for a BigQuery User entity.static class
Acl.View
Class for a BigQuery View entity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Acl.Entity
getEntity()
Acl.Role
getRole()
int
hashCode()
static Acl
of(Acl.DatasetAclEntity datasetAclEntity)
static Acl
of(Acl.Entity entity, Acl.Role role)
static Acl
of(Acl.Routine routine)
static Acl
of(Acl.View view)
String
toString()
-
-
-
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 theentity
object- 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.
-
-