src.compute.v1.MachineImage.scala Maven / Gradle / Ivy
The newest version!
package besom.api.googlenative.compute.v1
final case class MachineImage private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
creationTimestamp: besom.types.Output[String],
description: besom.types.Output[String],
guestFlush: besom.types.Output[Boolean],
instanceProperties: besom.types.Output[besom.api.googlenative.compute.v1.outputs.InstancePropertiesResponse],
kind: besom.types.Output[String],
machineImageEncryptionKey: besom.types.Output[besom.api.googlenative.compute.v1.outputs.CustomerEncryptionKeyResponse],
name: besom.types.Output[String],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
satisfiesPzs: besom.types.Output[Boolean],
savedDisks: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.SavedDiskResponse]],
selfLink: besom.types.Output[String],
sourceDiskEncryptionKeys: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.SourceDiskEncryptionKeyResponse]],
sourceInstance: besom.types.Output[String],
sourceInstanceProperties: besom.types.Output[besom.api.googlenative.compute.v1.outputs.SourceInstancePropertiesResponse],
status: besom.types.Output[String],
storageLocations: besom.types.Output[scala.collection.immutable.List[String]],
totalStorageBytes: besom.types.Output[String]
) extends besom.CustomResource
object MachineImage extends besom.ResourceCompanion[MachineImage]:
/** Resource constructor for MachineImage.
*
* @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
* NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
* issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
* string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
*
* @param args [[MachineImageArgs]] The configuration to use to create this resource.
*
* @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource.
* Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
*
* {{{
* val res = MachineImage(
* "my-resource",
* MachineImageArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: MachineImageArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[MachineImage] =
ctx.readOrRegisterResource[MachineImage, MachineImageArgs]("google-native:compute/v1:MachineImage", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:compute/v1:MachineImage"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[MachineImage] =
besom.internal.ResourceDecoder.derived[MachineImage]
given decoder(using besom.types.Context): besom.types.Decoder[MachineImage] =
besom.internal.Decoder.customResourceDecoder[MachineImage]
given outputOps: {} with
extension(output: besom.types.Output[MachineImage])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def creationTimestamp : besom.types.Output[String] = output.flatMap(_.creationTimestamp)
def description : besom.types.Output[String] = output.flatMap(_.description)
def guestFlush : besom.types.Output[Boolean] = output.flatMap(_.guestFlush)
def instanceProperties : besom.types.Output[besom.api.googlenative.compute.v1.outputs.InstancePropertiesResponse] = output.flatMap(_.instanceProperties)
def kind : besom.types.Output[String] = output.flatMap(_.kind)
def machineImageEncryptionKey : besom.types.Output[besom.api.googlenative.compute.v1.outputs.CustomerEncryptionKeyResponse] = output.flatMap(_.machineImageEncryptionKey)
def name : besom.types.Output[String] = output.flatMap(_.name)
def project : besom.types.Output[String] = output.flatMap(_.project)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def satisfiesPzs : besom.types.Output[Boolean] = output.flatMap(_.satisfiesPzs)
def savedDisks : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.SavedDiskResponse]] = output.flatMap(_.savedDisks)
def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
def sourceDiskEncryptionKeys : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.SourceDiskEncryptionKeyResponse]] = output.flatMap(_.sourceDiskEncryptionKeys)
def sourceInstance : besom.types.Output[String] = output.flatMap(_.sourceInstance)
def sourceInstanceProperties : besom.types.Output[besom.api.googlenative.compute.v1.outputs.SourceInstancePropertiesResponse] = output.flatMap(_.sourceInstanceProperties)
def status : besom.types.Output[String] = output.flatMap(_.status)
def storageLocations : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.storageLocations)
def totalStorageBytes : besom.types.Output[String] = output.flatMap(_.totalStorageBytes)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy