public class IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken extends IAMCredentialsRequest<GenerateAccessTokenResponse>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
GenerateAccessToken(String name,
GenerateAccessTokenRequest content)
Generates an OAuth 2.0 access token for a service account.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected GenerateAccessToken(String name, GenerateAccessTokenRequest content)
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation. GenerateAccessToken#initialize(com.google.api.client.googleapis.services.
AbstractGoogleClientRequest)
must be called to initialize this instance immediately after
invoking the constructor.
name
- Required. The resource name of the service account for which the credentials are requested, in the
following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-`
wildcard character is required; replacing it with a project ID is invalid.content
- the GenerateAccessTokenRequest
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken set$Xgafv(String $Xgafv)
IAMCredentialsRequest
set$Xgafv
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setAccessToken(String accessToken)
IAMCredentialsRequest
setAccessToken
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setAlt(String alt)
IAMCredentialsRequest
setAlt
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setCallback(String callback)
IAMCredentialsRequest
setCallback
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setFields(String fields)
IAMCredentialsRequest
setFields
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setKey(String key)
IAMCredentialsRequest
setKey
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setOauthToken(String oauthToken)
IAMCredentialsRequest
setOauthToken
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setPrettyPrint(Boolean prettyPrint)
IAMCredentialsRequest
setPrettyPrint
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setQuotaUser(String quotaUser)
IAMCredentialsRequest
setQuotaUser
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setUploadType(String uploadType)
IAMCredentialsRequest
setUploadType
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setUploadProtocol(String uploadProtocol)
IAMCredentialsRequest
setUploadProtocol
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
public String getName()
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken setName(String name)
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken set(String parameterName, Object value)
set
in class IAMCredentialsRequest<GenerateAccessTokenResponse>
Copyright © 2011–2024 Google. All rights reserved.