/// <summary>Constructs a new Token request.</summary> public TokenRequest(Google.Apis.Services.IClientService service, Google.Apis.CloudSecurityToken.v1beta.Data.GoogleIdentityStsV1betaExchangeTokenRequest body) : base(service) { Body = body; InitParameters(); }
/// <summary> /// Exchanges a credential for a Google OAuth 2.0 access token. The token asserts an external identity within a /// workload identity pool, or it applies a Credential Access Boundary to a Google access token. When you call /// this method, do not send the `Authorization` HTTP header in the request. This method does not require the /// `Authorization` header, and using the header can cause the request to fail. /// </summary> /// <param name="body">The body of the request.</param> public virtual TokenRequest Token(Google.Apis.CloudSecurityToken.v1beta.Data.GoogleIdentityStsV1betaExchangeTokenRequest body) { return(new TokenRequest(service, body)); }