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

com.pulumi.googlenative.datamigration.v1.kotlin.outputs.GetConnectionProfileResult.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.datamigration.v1.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property alloydb An AlloyDB cluster connection profile.
 * @property cloudsql A CloudSQL database connection profile.
 * @property createTime The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
 * @property displayName The connection profile display name.
 * @property error The error details in case of state FAILED.
 * @property labels The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
 * @property mysql A MySQL database connection profile.
 * @property name The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
 * @property oracle An Oracle database connection profile.
 * @property postgresql A PostgreSQL database connection profile.
 * @property provider The database provider.
 * @property state The current connection profile state (e.g. DRAFT, READY, or FAILED).
 * @property updateTime The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
 */
public data class GetConnectionProfileResult(
    public val alloydb: AlloyDbConnectionProfileResponse,
    public val cloudsql: CloudSqlConnectionProfileResponse,
    public val createTime: String,
    public val displayName: String,
    public val error: StatusResponse,
    public val labels: Map,
    public val mysql: MySqlConnectionProfileResponse,
    public val name: String,
    public val oracle: OracleConnectionProfileResponse,
    public val postgresql: PostgreSqlConnectionProfileResponse,
    public val provider: String,
    public val state: String,
    public val updateTime: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.datamigration.v1.outputs.GetConnectionProfileResult): GetConnectionProfileResult = GetConnectionProfileResult(
            alloydb = javaType.alloydb().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.AlloyDbConnectionProfileResponse.Companion.toKotlin(args0)
            }),
            cloudsql = javaType.cloudsql().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.CloudSqlConnectionProfileResponse.Companion.toKotlin(args0)
            }),
            createTime = javaType.createTime(),
            displayName = javaType.displayName(),
            error = javaType.error().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.StatusResponse.Companion.toKotlin(args0)
            }),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            mysql = javaType.mysql().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.MySqlConnectionProfileResponse.Companion.toKotlin(args0)
            }),
            name = javaType.name(),
            oracle = javaType.oracle().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.OracleConnectionProfileResponse.Companion.toKotlin(args0)
            }),
            postgresql = javaType.postgresql().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1.kotlin.outputs.PostgreSqlConnectionProfileResponse.Companion.toKotlin(args0)
            }),
            provider = javaType.provider(),
            state = javaType.state(),
            updateTime = javaType.updateTime(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy