com.pulumi.gcp.netapp.kotlin.outputs.VolumeRestoreParameters.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.netapp.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property sourceBackup Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/backupVaults/{{backupVaultId}}/backups/{{backup}}`.
* @property sourceSnapshot Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/volumes/{{volume}}/snapshots/{{snapshot}}`.
*/
public data class VolumeRestoreParameters(
public val sourceBackup: String? = null,
public val sourceSnapshot: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.netapp.outputs.VolumeRestoreParameters): VolumeRestoreParameters = VolumeRestoreParameters(
sourceBackup = javaType.sourceBackup().map({ args0 -> args0 }).orElse(null),
sourceSnapshot = javaType.sourceSnapshot().map({ args0 -> args0 }).orElse(null),
)
}
}