Class ProjectsResource.ServiceAccountsResource.GenerateAccessTokenRequest
Generates an OAuth 2.0 access token for a service account.
Inheritance
ProjectsResource.ServiceAccountsResource.GenerateAccessTokenRequest
Inherited Members
Namespace: Google.Apis.IAMCredentials.v1
Assembly: Google.Apis.IAMCredentials.v1.dll
Syntax
public class ProjectsResource.ServiceAccountsResource.GenerateAccessTokenRequest : IAMCredentialsBaseServiceRequest<GenerateAccessTokenResponse>, IClientServiceRequest<GenerateAccessTokenResponse>, IClientServiceRequest
Constructors
GenerateAccessTokenRequest(IClientService, GenerateAccessTokenRequest, string)
Constructs a new GenerateAccessToken request.
Declaration
public GenerateAccessTokenRequest(IClientService service, GenerateAccessTokenRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GenerateAccessTokenRequest | body | |
string | name |
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
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.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
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 GenerateAccessToken parameter list.
Declaration
protected override void InitParameters()