com.pulumi.digitalocean.kotlin.outputs.GetVolumeResult.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 getVolume.
* @property description Text describing a block storage volume.
* @property dropletIds A list of associated Droplet ids.
* @property filesystemLabel Filesystem label currently in-use on the block storage volume.
* @property filesystemType Filesystem type currently in-use on the block storage volume.
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property region
* @property size The size of the block storage volume in GiB.
* @property tags A list of the tags associated to the Volume.
* @property urn The uniform resource name for the storage volume.
*/
public data class GetVolumeResult(
public val description: String? = null,
public val dropletIds: List,
public val filesystemLabel: String,
public val filesystemType: String,
public val id: String,
public val name: String,
public val region: String? = null,
public val size: Int,
public val tags: List,
public val urn: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetVolumeResult): GetVolumeResult = GetVolumeResult(
description = javaType.description().map({ args0 -> args0 }).orElse(null),
dropletIds = javaType.dropletIds().map({ args0 -> args0 }),
filesystemLabel = javaType.filesystemLabel(),
filesystemType = javaType.filesystemType(),
id = javaType.id(),
name = javaType.name(),
region = javaType.region().map({ args0 -> args0 }).orElse(null),
size = javaType.size(),
tags = javaType.tags().map({ args0 -> args0 }),
urn = javaType.urn(),
)
}
}