Show / Hide Table of Contents

Class V1Resource.OauthtokenRequest

Exchanges a credential that represents the resource owner's authorization for a Google-generated [OAuth 2.0 access token] (https://www.rfc-editor.org/rfc/rfc6749#section-5) or [refreshes an accesstoken] (https://www.rfc-editor.org/rfc/rfc6749#section-6) following [the OAuth 2.0 authorization framework] (https://tools.ietf.org/html/rfc8693) The credential can be one of the following: - An authorization code issued by the workforce identity federation authorization endpoint - A refresh token issued by this endpoint This endpoint is only meant to be called by the Google Cloud CLI. Also note that this API only accepts the authorization code issued for workforce pools.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>
V1Resource.OauthtokenRequest
Implements
IClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>
IClientServiceRequest
Inherited Members
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Xgafv
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.AccessToken
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Alt
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Callback
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Fields
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Key
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.OauthToken
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.PrettyPrint
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.QuotaUser
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.UploadType
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.UploadProtocol
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Execute()
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ExecuteAsStream()
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ExecuteAsync()
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.CreateRequest(bool?)
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.GenerateRequestUri()
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ETagAction
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ModifyRequest
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.ValidateParameters
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.RequestParameters
ClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSecurityToken.v1
Assembly: Google.Apis.CloudSecurityToken.v1.dll
Syntax
public class V1Resource.OauthtokenRequest : CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>, IClientServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>, IClientServiceRequest

Constructors

OauthtokenRequest(IClientService, GoogleIdentityStsV1ExchangeOauthTokenRequest)

Constructs a new Oauthtoken request.

Declaration
public OauthtokenRequest(IClientService service, GoogleIdentityStsV1ExchangeOauthTokenRequest body)
Parameters
Type Name Description
IClientService service
GoogleIdentityStsV1ExchangeOauthTokenRequest body

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSecurityToken.v1.Data.GoogleIdentityStsV1ExchangeOauthTokenResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSecurityToken.v1.Data.GoogleIdentityStsV1ExchangeOauthTokenResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSecurityToken.v1.Data.GoogleIdentityStsV1ExchangeOauthTokenResponse>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSecurityToken.v1.Data.GoogleIdentityStsV1ExchangeOauthTokenResponse>.GetBody()

InitParameters()

Initializes Oauthtoken parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeOauthTokenResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX