| Package | Description | 
|---|---|
| com.google.cloud | 
 Core classes for the  
google-cloud library. | 
| Modifier and Type | Field and Description | 
|---|---|
protected static com.google.api.core.ApiFunction<Identity,String> | 
Policy.Marshaller.IDENTITY_STR_VALUE_FUNCTION  | 
protected static com.google.api.core.ApiFunction<String,Identity> | 
Policy.Marshaller.IDENTITY_VALUE_OF_FUNCTION  | 
| Modifier and Type | Method and Description | 
|---|---|
static Identity | 
Identity.allAuthenticatedUsers()
Returns a new identity representing anyone who is authenticated with a Google account or a
 service account. 
 | 
static Identity | 
Identity.allUsers()
Returns a new identity representing anyone who is on the internet; with or without a Google
 account. 
 | 
static Identity | 
Identity.domain(String domain)
Returns a new domain identity. 
 | 
static Identity | 
Identity.group(String email)
Returns a new group identity. 
 | 
static Identity | 
Identity.projectEditor(String projectId)
Returns a new project editor identity. 
 | 
static Identity | 
Identity.projectOwner(String projectId)
Returns a new project owner identity. 
 | 
static Identity | 
Identity.projectViewer(String projectId)
Returns a new project viewer identity. 
 | 
static Identity | 
Identity.serviceAccount(String email)
Returns a new service account identity. 
 | 
static Identity | 
Identity.user(String email)
Returns a new user identity. 
 | 
static Identity | 
Identity.valueOf(String identityStr)
Converts a string to an  
Identity. | 
| Modifier and Type | Method and Description | 
|---|---|
Map<Role,Set<Identity>> | 
Policy.getBindings()
Returns the map of bindings that comprises the policy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Policy.Builder | 
Policy.Builder.addIdentity(Role role,
           Identity first,
           Identity... others)
Adds one or more identities to the policy under the role specified. 
 | 
Policy.Builder | 
Policy.Builder.addIdentity(Role role,
           Identity first,
           Identity... others)
Adds one or more identities to the policy under the role specified. 
 | 
Policy.Builder | 
Policy.Builder.removeIdentity(Role role,
              Identity first,
              Identity... others)
Removes one or more identities from an existing binding. 
 | 
Policy.Builder | 
Policy.Builder.removeIdentity(Role role,
              Identity first,
              Identity... others)
Removes one or more identities from an existing binding. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Policy.Builder | 
Policy.Builder.setBindings(Map<Role,Set<Identity>> bindings)
Replaces the builder's map of bindings with the given map of bindings. 
 | 
Copyright © 2019 Google LLC. All rights reserved.