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

com.pulumi.digitalocean.kotlin.outputs.GetDatabaseReplicaResult.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.outputs

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

/**
 * A collection of values returned by getDatabaseReplica.
 * @property clusterId
 * @property database Name of the replica's default database.
 * @property host Database replica's hostname.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property password Password for the replica's default user.
 * @property port Network port that the database replica is listening on.
 * @property privateHost Same as `host`, but only accessible from resources within the account and in the same region.
 * @property privateNetworkUuid
 * @property privateUri Same as `uri`, but only accessible from resources within the account and in the same region.
 * @property region
 * @property storageSizeMib
 * @property tags A list of tag names to be applied to the database replica.
 * @property uri The full URI for connecting to the database replica.
 * @property user Username for the replica's default user.
 * @property uuid The UUID of the database replica.
 */
public data class GetDatabaseReplicaResult(
    public val clusterId: String,
    public val database: String,
    public val host: String,
    public val id: String,
    public val name: String,
    public val password: String,
    public val port: Int,
    public val privateHost: String,
    public val privateNetworkUuid: String,
    public val privateUri: String,
    public val region: String,
    public val storageSizeMib: String,
    public val tags: List? = null,
    public val uri: String,
    public val user: String,
    public val uuid: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetDatabaseReplicaResult): GetDatabaseReplicaResult = GetDatabaseReplicaResult(
            clusterId = javaType.clusterId(),
            database = javaType.database(),
            host = javaType.host(),
            id = javaType.id(),
            name = javaType.name(),
            password = javaType.password(),
            port = javaType.port(),
            privateHost = javaType.privateHost(),
            privateNetworkUuid = javaType.privateNetworkUuid(),
            privateUri = javaType.privateUri(),
            region = javaType.region(),
            storageSizeMib = javaType.storageSizeMib(),
            tags = javaType.tags().map({ args0 -> args0 }),
            uri = javaType.uri(),
            user = javaType.user(),
            uuid = javaType.uuid(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy