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
Implements
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Oauthtoken parameter list.
Declaration
protected override void InitParameters()