Service Account Functions
object ServiceAccountFunctions
Functions
Link copied to clipboard
Get the service account from a project. For more information see the official API documentation.
Link copied to clipboard
suspend fun getAccountAccessToken(argument: GetAccountAccessTokenPlainArgs): GetAccountAccessTokenResult
This data source provides a google oauth2
access_token
for a different service account than the one initially running the script. For more information see the official documentation as well as iamcredentials.generateAccessToken()
suspend fun getAccountAccessToken(argument: suspend GetAccountAccessTokenPlainArgsBuilder.() -> Unit): GetAccountAccessTokenResult
suspend fun getAccountAccessToken(delegates: List<String>? = null, lifetime: String? = null, scopes: List<String>, targetServiceAccount: String): GetAccountAccessTokenResult
Link copied to clipboard
suspend fun getAccountIdToken(argument: suspend GetAccountIdTokenPlainArgsBuilder.() -> Unit): GetAccountIdTokenResult
suspend fun getAccountIdToken(delegates: List<String>? = null, includeEmail: Boolean? = null, targetAudience: String, targetServiceAccount: String? = null): GetAccountIdTokenResult
Link copied to clipboard
This data source provides a self-signed JWT. Tokens issued from this data source are typically used to call external services that accept JWTs for authentication.
suspend fun getAccountJwt(argument: suspend GetAccountJwtPlainArgsBuilder.() -> Unit): GetAccountJwtResult
suspend fun getAccountJwt(delegates: List<String>? = null, expiresIn: Int? = null, payload: String, targetServiceAccount: String): GetAccountJwtResult
Link copied to clipboard
Get service account public key. For more information, see the official documentation and API.
suspend fun getAccountKey(argument: suspend GetAccountKeyPlainArgsBuilder.() -> Unit): GetAccountKeyResult
suspend fun getAccountKey(name: String, project: String? = null, publicKeyType: String? = null): GetAccountKeyResult