All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.serviceaccount.kotlin.outputs.GetAccountAccessTokenResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.serviceaccount.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getAccountAccessToken.
 * @property accessToken The `access_token` representing the new generated identity.
 * @property delegates
 * @property id The provider-assigned unique ID for this managed resource.
 * @property lifetime
 * @property scopes
 * @property targetServiceAccount
 */
public data class GetAccountAccessTokenResult(
    public val accessToken: String,
    public val delegates: List? = null,
    public val id: String,
    public val lifetime: String? = null,
    public val scopes: List,
    public val targetServiceAccount: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.serviceaccount.outputs.GetAccountAccessTokenResult): GetAccountAccessTokenResult = GetAccountAccessTokenResult(
            accessToken = javaType.accessToken(),
            delegates = javaType.delegates().map({ args0 -> args0 }),
            id = javaType.id(),
            lifetime = javaType.lifetime().map({ args0 -> args0 }).orElse(null),
            scopes = javaType.scopes().map({ args0 -> args0 }),
            targetServiceAccount = javaType.targetServiceAccount(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy