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

com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.GetMigrationJobResult.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property createTime The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
 * @property destination The resource name (URI) of the destination connection profile.
 * @property destinationDatabase The database engine type and provider of the destination.
 * @property displayName The migration job display name.
 * @property dumpPath The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
 * @property duration The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 * @property endTime If the migration job is completed, the time when it was completed.
 * @property error The error details in case of state FAILED.
 * @property labels The resource labels for migration job 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 name The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
 * @property phase The current migration job phase.
 * @property reverseSshConnectivity The details needed to communicate to the source over Reverse SSH tunnel connectivity.
 * @property source The resource name (URI) of the source connection profile.
 * @property sourceDatabase The database engine type and provider of the source.
 * @property state The current migration job state.
 * @property staticIpConnectivity static ip connectivity data (default, no additional details needed).
 * @property type The migration job type.
 * @property updateTime The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
 * @property vpcPeeringConnectivity The details of the VPC network that the source database is located in.
 */
public data class GetMigrationJobResult(
    public val createTime: String,
    public val destination: String,
    public val destinationDatabase: DatabaseTypeResponse,
    public val displayName: String,
    public val dumpPath: String,
    public val duration: String,
    public val endTime: String,
    public val error: StatusResponse,
    public val labels: Map,
    public val name: String,
    public val phase: String,
    public val reverseSshConnectivity: ReverseSshConnectivityResponse,
    public val source: String,
    public val sourceDatabase: DatabaseTypeResponse,
    public val state: String,
    public val staticIpConnectivity: StaticIpConnectivityResponse,
    public val type: String,
    public val updateTime: String,
    public val vpcPeeringConnectivity: VpcPeeringConnectivityResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.datamigration.v1beta1.outputs.GetMigrationJobResult): GetMigrationJobResult = GetMigrationJobResult(
            createTime = javaType.createTime(),
            destination = javaType.destination(),
            destinationDatabase = javaType.destinationDatabase().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.DatabaseTypeResponse.Companion.toKotlin(args0)
            }),
            displayName = javaType.displayName(),
            dumpPath = javaType.dumpPath(),
            duration = javaType.duration(),
            endTime = javaType.endTime(),
            error = javaType.error().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.StatusResponse.Companion.toKotlin(args0)
            }),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            name = javaType.name(),
            phase = javaType.phase(),
            reverseSshConnectivity = javaType.reverseSshConnectivity().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.ReverseSshConnectivityResponse.Companion.toKotlin(args0)
            }),
            source = javaType.source(),
            sourceDatabase = javaType.sourceDatabase().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.DatabaseTypeResponse.Companion.toKotlin(args0)
            }),
            state = javaType.state(),
            staticIpConnectivity = javaType.staticIpConnectivity().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.StaticIpConnectivityResponse.Companion.toKotlin(args0)
            }),
            type = javaType.type(),
            updateTime = javaType.updateTime(),
            vpcPeeringConnectivity = javaType.vpcPeeringConnectivity().let({ args0 ->
                com.pulumi.googlenative.datamigration.v1beta1.kotlin.outputs.VpcPeeringConnectivityResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy