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

com.pulumi.googlenative.file.v1.kotlin.outputs.GetSnapshotResult.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.`file`.v1.kotlin.outputs

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

/**
 *
 * @property createTime The time when the snapshot was created.
 * @property description A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
 * @property filesystemUsedBytes The amount of bytes needed to allocate a full copy of the snapshot content
 * @property labels Resource labels to represent user provided metadata.
 * @property name The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
 * @property state The snapshot state.
 */
public data class GetSnapshotResult(
    public val createTime: String,
    public val description: String,
    public val filesystemUsedBytes: String,
    public val labels: Map,
    public val name: String,
    public val state: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.`file`.v1.outputs.GetSnapshotResult): GetSnapshotResult = GetSnapshotResult(
            createTime = javaType.createTime(),
            description = javaType.description(),
            filesystemUsedBytes = javaType.filesystemUsedBytes(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            name = javaType.name(),
            state = javaType.state(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy