Class 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
    • 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 object
        role - the role to associate to the entity 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object