com.google.cloud.bigquery.Acl.Group

Here are the examples of the java api class com.google.cloud.bigquery.Acl.Group taken from open source projects.

1. AclTest#testGroupEntity()

Project: gcloud-java
Source File: AclTest.java
View license
@Test
public void testGroupEntity() {
    Group entity = new Group("g1");
    assertEquals("g1", entity.identifier());
    assertEquals(Type.GROUP, entity.type());
    Dataset.Access pb = entity.toPb();
    assertEquals(entity, Entity.fromPb(pb));
}

2. AclTest#testSpecialGroupEntity()

Project: gcloud-java
Source File: AclTest.java
View license
@Test
public void testSpecialGroupEntity() {
    Group entity = Group.ofAllAuthenticatedUsers();
    assertEquals("allAuthenticatedUsers", entity.identifier());
    entity = Group.ofProjectWriters();
    assertEquals("projectWriters", entity.identifier());
    entity = Group.ofProjectReaders();
    assertEquals("projectReaders", entity.identifier());
    entity = Group.ofProjectOwners();
    assertEquals("projectOwners", entity.identifier());
}