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

com.pulumi.gcp.filestore.kotlin.outputs.InstanceFileShares.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.filestore.kotlin.outputs

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

/**
 *
 * @property capacityGb File share capacity in GiB. This must be at least 1024 GiB
 * for the standard tier, or 2560 GiB for the premium tier.
 * @property name The name of the fileshare (16 characters or less)
 * @property nfsExportOptions Nfs Export Options. There is a limit of 10 export options per file share.
 * Structure is documented below.
 * @property sourceBackup The resource name of the backup, in the format
 * projects/{projectId}/locations/{locationId}/backups/{backupId},
 * that this file share has been restored from.
 */
public data class InstanceFileShares(
    public val capacityGb: Int,
    public val name: String,
    public val nfsExportOptions: List? = null,
    public val sourceBackup: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.filestore.outputs.InstanceFileShares): InstanceFileShares = InstanceFileShares(
            capacityGb = javaType.capacityGb(),
            name = javaType.name(),
            nfsExportOptions = javaType.nfsExportOptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.filestore.kotlin.outputs.InstanceFileSharesNfsExportOption.Companion.toKotlin(args0)
                })
            }),
            sourceBackup = javaType.sourceBackup().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy