com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.sql.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getDatabaseInstance.
* @property availableMaintenanceVersions
* @property clones
* @property connectionName
* @property databaseVersion
* @property deletionProtection
* @property dnsName
* @property encryptionKeyName
* @property firstIpAddress
* @property id The provider-assigned unique ID for this managed resource.
* @property instanceType
* @property ipAddresses
* @property maintenanceVersion
* @property masterInstanceName
* @property name
* @property privateIpAddress
* @property project
* @property pscServiceAttachmentLink
* @property publicIpAddress
* @property region
* @property replicaConfigurations
* @property restoreBackupContexts
* @property rootPassword
* @property selfLink
* @property serverCaCerts
* @property serviceAccountEmailAddress
* @property settings
*/
public data class GetDatabaseInstanceResult(
public val availableMaintenanceVersions: List,
public val clones: List,
public val connectionName: String,
public val databaseVersion: String,
public val deletionProtection: Boolean,
public val dnsName: String,
public val encryptionKeyName: String,
public val firstIpAddress: String,
public val id: String,
public val instanceType: String,
public val ipAddresses: List,
public val maintenanceVersion: String,
public val masterInstanceName: String,
public val name: String,
public val privateIpAddress: String,
public val project: String? = null,
public val pscServiceAttachmentLink: String,
public val publicIpAddress: String,
public val region: String,
public val replicaConfigurations: List,
public val restoreBackupContexts: List,
public val rootPassword: String,
public val selfLink: String,
public val serverCaCerts: List,
public val serviceAccountEmailAddress: String,
public val settings: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstanceResult): GetDatabaseInstanceResult = GetDatabaseInstanceResult(
availableMaintenanceVersions = javaType.availableMaintenanceVersions().map({ args0 -> args0 }),
clones = javaType.clones().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceClone.Companion.toKotlin(args0)
})
}),
connectionName = javaType.connectionName(),
databaseVersion = javaType.databaseVersion(),
deletionProtection = javaType.deletionProtection(),
dnsName = javaType.dnsName(),
encryptionKeyName = javaType.encryptionKeyName(),
firstIpAddress = javaType.firstIpAddress(),
id = javaType.id(),
instanceType = javaType.instanceType(),
ipAddresses = javaType.ipAddresses().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceIpAddress.Companion.toKotlin(args0)
})
}),
maintenanceVersion = javaType.maintenanceVersion(),
masterInstanceName = javaType.masterInstanceName(),
name = javaType.name(),
privateIpAddress = javaType.privateIpAddress(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
pscServiceAttachmentLink = javaType.pscServiceAttachmentLink(),
publicIpAddress = javaType.publicIpAddress(),
region = javaType.region(),
replicaConfigurations = javaType.replicaConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceReplicaConfiguration.Companion.toKotlin(args0)
})
}),
restoreBackupContexts = javaType.restoreBackupContexts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceRestoreBackupContext.Companion.toKotlin(args0)
})
}),
rootPassword = javaType.rootPassword(),
selfLink = javaType.selfLink(),
serverCaCerts = javaType.serverCaCerts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceServerCaCert.Companion.toKotlin(args0)
})
}),
serviceAccountEmailAddress = javaType.serviceAccountEmailAddress(),
settings = javaType.settings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSetting.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy