Class ProjectsResource.ServiceAccountsResource
The "serviceAccounts" collection of methods.
Inherited Members
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: |
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: |
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: |
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: |
Returns
Type | Description |
---|---|
ProjectsResource.ServiceAccountsResource.SignJwtRequest |