Show / Hide Table of Contents

Class ProjectsResource.ServiceAccountsResource

The "serviceAccounts" collection of methods.

Inheritance
object
ProjectsResource.ServiceAccountsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.IAMCredentials.v1
Assembly: Google.Apis.IAMCredentials.v1.dll
Syntax
public class ProjectsResource.ServiceAccountsResource

Constructors

ServiceAccountsResource(IClientService)

Constructs a new resource.

Declaration
public ServiceAccountsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

GenerateAccessToken(GenerateAccessTokenRequest, string)

Generates an OAuth 2.0 access token for a service account.

Declaration
public virtual ProjectsResource.ServiceAccountsResource.GenerateAccessTokenRequest GenerateAccessToken(GenerateAccessTokenRequest body, string name)
Parameters
Type Name Description
GenerateAccessTokenRequest body

The body of the request.

string 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.

Returns
Type Description
ProjectsResource.ServiceAccountsResource.GenerateAccessTokenRequest

GenerateIdToken(GenerateIdTokenRequest, string)

Generates an OpenID Connect ID token for a service account.

Declaration
public virtual ProjectsResource.ServiceAccountsResource.GenerateIdTokenRequest GenerateIdToken(GenerateIdTokenRequest body, string name)
Parameters
Type Name Description
GenerateIdTokenRequest body

The body of the request.

string 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.

Returns
Type Description
ProjectsResource.ServiceAccountsResource.GenerateIdTokenRequest

GetAllowedLocations(string)

Returns the trust boundary info for a given service account.

Declaration
public virtual ProjectsResource.ServiceAccountsResource.GetAllowedLocationsRequest GetAllowedLocations(string name)
Parameters
Type Name Description
string name

Required. Resource name of service account.

Returns
Type Description
ProjectsResource.ServiceAccountsResource.GetAllowedLocationsRequest

SignBlob(SignBlobRequest, string)

Signs a blob using a service account's system-managed private key.

Declaration
public virtual ProjectsResource.ServiceAccountsResource.SignBlobRequest SignBlob(SignBlobRequest body, string name)
Parameters
Type Name Description
SignBlobRequest body

The body of the request.

string 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.

Returns
Type Description
ProjectsResource.ServiceAccountsResource.SignBlobRequest

SignJwt(SignJwtRequest, string)

Signs a JWT using a service account's system-managed private key.

Declaration
public virtual ProjectsResource.ServiceAccountsResource.SignJwtRequest SignJwt(SignJwtRequest body, string name)
Parameters
Type Name Description
SignJwtRequest body

The body of the request.

string 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.

Returns
Type Description
ProjectsResource.ServiceAccountsResource.SignJwtRequest
In this article
Back to top Generated by DocFX