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

com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceClone.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.sql.kotlin.outputs

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

/**
 *
 * @property allocatedIpRange The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
 * @property databaseNames (SQL Server only, use with `point_in_time`) Clone only the specified databases from the source instance. Clone all databases if empty.
 * @property pointInTime The timestamp of the point in time that should be restored.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property preferredZone (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. [clone-unavailable-instance](https://cloud.google.com/sql/docs/postgres/clone-instance#clone-unavailable-instance)
 * @property sourceInstanceName Name of the source instance which will be cloned.
 */
public data class DatabaseInstanceClone(
    public val allocatedIpRange: String? = null,
    public val databaseNames: List? = null,
    public val pointInTime: String? = null,
    public val preferredZone: String? = null,
    public val sourceInstanceName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceClone): DatabaseInstanceClone = DatabaseInstanceClone(
            allocatedIpRange = javaType.allocatedIpRange().map({ args0 -> args0 }).orElse(null),
            databaseNames = javaType.databaseNames().map({ args0 -> args0 }),
            pointInTime = javaType.pointInTime().map({ args0 -> args0 }).orElse(null),
            preferredZone = javaType.preferredZone().map({ args0 -> args0 }).orElse(null),
            sourceInstanceName = javaType.sourceInstanceName(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy