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

com.pulumi.gcp.organizations.kotlin.outputs.GetBillingAccountResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.organizations.kotlin.outputs

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

/**
 * A collection of values returned by getBillingAccount.
 * @property billingAccount
 * @property displayName
 * @property id The provider-assigned unique ID for this managed resource.
 * @property lookupProjects
 * @property name The resource name of the billing account in the form `billingAccounts/{billing_account_id}`.
 * @property open
 * @property projectIds The IDs of any projects associated with the billing account. `lookup_projects` must not be false
 * for this to be populated.
 */
public data class GetBillingAccountResult(
    public val billingAccount: String? = null,
    public val displayName: String,
    public val id: String,
    public val lookupProjects: Boolean? = null,
    public val name: String,
    public val `open`: Boolean,
    public val projectIds: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.organizations.outputs.GetBillingAccountResult): GetBillingAccountResult = GetBillingAccountResult(
            billingAccount = javaType.billingAccount().map({ args0 -> args0 }).orElse(null),
            displayName = javaType.displayName(),
            id = javaType.id(),
            lookupProjects = javaType.lookupProjects().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            `open` = javaType.`open`(),
            projectIds = javaType.projectIds().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy