public class Iam.Organizations.Roles.Get extends IamRequest<Role>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Get(java.lang.String name)
Gets a Role definition.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getName()
The `name` parameter's value depends on the target resource for the request, namely
[`roles`](/iam/reference/rest/v1/roles), [`projects`](/iam/reference/rest/v1/projects.roles), or
[`organizations`](/iam/reference/rest/v1/organizations.roles).
|
Iam.Organizations.Roles.Get |
set(java.lang.String parameterName,
java.lang.Object value) |
Iam.Organizations.Roles.Get |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
Iam.Organizations.Roles.Get |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
Iam.Organizations.Roles.Get |
setAlt(java.lang.String alt)
Data format for response.
|
Iam.Organizations.Roles.Get |
setCallback(java.lang.String callback)
JSONP
|
Iam.Organizations.Roles.Get |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Iam.Organizations.Roles.Get |
setKey(java.lang.String key)
API key.
|
Iam.Organizations.Roles.Get |
setName(java.lang.String name)
The `name` parameter's value depends on the target resource for the request, namely
[`roles`](/iam/reference/rest/v1/roles),
[`projects`](/iam/reference/rest/v1/projects.roles), or
[`organizations`](/iam/reference/rest/v1/organizations.roles).
|
Iam.Organizations.Roles.Get |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Iam.Organizations.Roles.Get |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Iam.Organizations.Roles.Get |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Iam.Organizations.Roles.Get |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
Iam.Organizations.Roles.Get |
setUploadType(java.lang.String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Get(java.lang.String name)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Iam.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
name
- The `name` parameter's value depends on the target resource for the
request, namely
[`roles`](/iam/reference/rest/v1/roles),
[`projects`](/iam/reference/rest/v1/projects.roles), or
[`organizations`](/iam/reference/rest/v1/organizations.roles). Each
resource type's `name`
value format is described below:
[`roles.get()`](/iam/reference/rest/v1/roles/get):
`roles/{ROLE_NAME}`.
This method returns results from all
[predefined roles](/iam/docs
/understanding-roles#predefined_roles) in
Cloud IAM. Example request URL:
`https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
[`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
`projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
[custom
roles](/iam/docs/understanding-custom-roles) that have been
created at the project
level. Example request URL:
`https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
[`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
`organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
returns only
[custom roles](/iam/docs/understanding-custom-roles) that
have been created at the
organization level. Example request URL:
`https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or
organization ID.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Role>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Role>
java.io.IOException
public Iam.Organizations.Roles.Get set$Xgafv(java.lang.String $Xgafv)
IamRequest
set$Xgafv
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setAccessToken(java.lang.String accessToken)
IamRequest
setAccessToken
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setAlt(java.lang.String alt)
IamRequest
setAlt
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setCallback(java.lang.String callback)
IamRequest
setCallback
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setFields(java.lang.String fields)
IamRequest
setFields
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setKey(java.lang.String key)
IamRequest
setKey
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setOauthToken(java.lang.String oauthToken)
IamRequest
setOauthToken
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setPrettyPrint(java.lang.Boolean prettyPrint)
IamRequest
setPrettyPrint
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setQuotaUser(java.lang.String quotaUser)
IamRequest
setQuotaUser
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setUploadType(java.lang.String uploadType)
IamRequest
setUploadType
in class IamRequest<Role>
public Iam.Organizations.Roles.Get setUploadProtocol(java.lang.String uploadProtocol)
IamRequest
setUploadProtocol
in class IamRequest<Role>
public java.lang.String getName()
public Iam.Organizations.Roles.Get setName(java.lang.String name)
public Iam.Organizations.Roles.Get set(java.lang.String parameterName, java.lang.Object value)
set
in class IamRequest<Role>