public class Iam
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.
For more information about this service, see the API Documentation
This service uses IamRequestInitializer to initialize global parameters via its
Iam.Builder.
| Modifier and Type | Class and Description |
|---|---|
static class |
Iam.Builder
Builder for
Iam. |
class |
Iam.IamPolicies
The "iamPolicies" collection of methods.
|
class |
Iam.Organizations
The "organizations" collection of methods.
|
class |
Iam.Permissions
The "permissions" collection of methods.
|
class |
Iam.Projects
The "projects" collection of methods.
|
class |
Iam.Roles
The "roles" collection of methods.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static java.lang.String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
static java.lang.String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static java.lang.String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
| Constructor and Description |
|---|
Iam(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iam.IamPolicies |
iamPolicies()
An accessor for creating requests from the IamPolicies collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Iam.Organizations |
organizations()
An accessor for creating requests from the Organizations collection.
|
Iam.Permissions |
permissions()
An accessor for creating requests from the Permissions collection.
|
Iam.Projects |
projects()
An accessor for creating requests from the Projects collection.
|
Iam.Roles |
roles()
An accessor for creating requests from the Roles collection.
|
getJsonFactory, getObjectParserpublic static final java.lang.String DEFAULT_ROOT_URL
public static final java.lang.String DEFAULT_SERVICE_PATH
public static final java.lang.String DEFAULT_BATCH_PATH
public static final java.lang.String DEFAULT_BASE_URL
public Iam(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Iam.Builder if you need to specify any of the optional parameters.
transport - HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransportnewCompatibleTransport from
com.google.api.client.extensions.android.http.AndroidHttpcom.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory - JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactorycom.google.api.client.json.gson.GsonFactorycom.google.api.client.extensions.android.json.AndroidJsonFactoryhttpRequestInitializer - HTTP request initializer or null for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
throws java.io.IOException
initialize in class com.google.api.client.googleapis.services.AbstractGoogleClientjava.io.IOExceptionpublic Iam.IamPolicies iamPolicies()
The typical use is:
Iam iam = new Iam(...);Iam.IamPolicies.List request = iam.iamPolicies().list(parameters ...)
public Iam.Organizations organizations()
The typical use is:
Iam iam = new Iam(...);Iam.Organizations.List request = iam.organizations().list(parameters ...)
public Iam.Permissions permissions()
The typical use is:
Iam iam = new Iam(...);Iam.Permissions.List request = iam.permissions().list(parameters ...)
public Iam.Projects projects()
The typical use is:
Iam iam = new Iam(...);Iam.Projects.List request = iam.projects().list(parameters ...)
public Iam.Roles roles()
The typical use is:
Iam iam = new Iam(...);Iam.Roles.List request = iam.roles().list(parameters ...)