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

src.compute.beta.Snapshot.scala Maven / Gradle / Ivy

The newest version!
package besom.api.googlenative.compute.beta

final case class Snapshot private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  architecture: besom.types.Output[String],
  autoCreated: besom.types.Output[Boolean],
  chainName: besom.types.Output[String],
  creationSizeBytes: besom.types.Output[String],
  creationTimestamp: besom.types.Output[String],
  description: besom.types.Output[String],
  diskSizeGb: besom.types.Output[String],
  downloadBytes: besom.types.Output[String],
  enableConfidentialCompute: besom.types.Output[Boolean],
  guestFlush: besom.types.Output[Boolean],
  guestOsFeatures: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.beta.outputs.GuestOsFeatureResponse]],
  kind: besom.types.Output[String],
  labelFingerprint: besom.types.Output[String],
  labels: besom.types.Output[scala.Predef.Map[String, String]],
  licenseCodes: besom.types.Output[scala.collection.immutable.List[String]],
  licenses: besom.types.Output[scala.collection.immutable.List[String]],
  locationHint: besom.types.Output[String],
  name: besom.types.Output[String],
  project: besom.types.Output[String],
  requestId: besom.types.Output[scala.Option[String]],
  satisfiesPzs: besom.types.Output[Boolean],
  selfLink: besom.types.Output[String],
  snapshotEncryptionKey: besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse],
  snapshotType: besom.types.Output[String],
  sourceDisk: besom.types.Output[String],
  sourceDiskEncryptionKey: besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse],
  sourceDiskForRecoveryCheckpoint: besom.types.Output[String],
  sourceDiskId: besom.types.Output[String],
  sourceInstantSnapshot: besom.types.Output[String],
  sourceInstantSnapshotEncryptionKey: besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse],
  sourceInstantSnapshotId: besom.types.Output[String],
  sourceSnapshotSchedulePolicy: besom.types.Output[String],
  sourceSnapshotSchedulePolicyId: besom.types.Output[String],
  status: besom.types.Output[String],
  storageBytes: besom.types.Output[String],
  storageBytesStatus: besom.types.Output[String],
  storageLocations: besom.types.Output[scala.collection.immutable.List[String]],
  userLicenses: besom.types.Output[scala.collection.immutable.List[String]]
) extends besom.CustomResource

object Snapshot extends besom.ResourceCompanion[Snapshot]:
  /** Resource constructor for Snapshot. 
    * 
    * @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 [[SnapshotArgs]] The configuration to use to create this resource. This resource has a default configuration.
    *
    * @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 = Snapshot(
    *          "my-resource",
    *          SnapshotArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: SnapshotArgs = SnapshotArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[Snapshot] =
    ctx.readOrRegisterResource[Snapshot, SnapshotArgs]("google-native:compute/beta:Snapshot", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:compute/beta:Snapshot"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Snapshot] =
    besom.internal.ResourceDecoder.derived[Snapshot]

  given decoder(using besom.types.Context): besom.types.Decoder[Snapshot] =
    besom.internal.Decoder.customResourceDecoder[Snapshot]


  given outputOps: {} with
    extension(output: besom.types.Output[Snapshot])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def architecture : besom.types.Output[String] = output.flatMap(_.architecture)
      def autoCreated : besom.types.Output[Boolean] = output.flatMap(_.autoCreated)
      def chainName : besom.types.Output[String] = output.flatMap(_.chainName)
      def creationSizeBytes : besom.types.Output[String] = output.flatMap(_.creationSizeBytes)
      def creationTimestamp : besom.types.Output[String] = output.flatMap(_.creationTimestamp)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def diskSizeGb : besom.types.Output[String] = output.flatMap(_.diskSizeGb)
      def downloadBytes : besom.types.Output[String] = output.flatMap(_.downloadBytes)
      def enableConfidentialCompute : besom.types.Output[Boolean] = output.flatMap(_.enableConfidentialCompute)
      def guestFlush : besom.types.Output[Boolean] = output.flatMap(_.guestFlush)
      def guestOsFeatures : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.beta.outputs.GuestOsFeatureResponse]] = output.flatMap(_.guestOsFeatures)
      def kind : besom.types.Output[String] = output.flatMap(_.kind)
      def labelFingerprint : besom.types.Output[String] = output.flatMap(_.labelFingerprint)
      def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
      def licenseCodes : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.licenseCodes)
      def licenses : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.licenses)
      def locationHint : besom.types.Output[String] = output.flatMap(_.locationHint)
      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 selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
      def snapshotEncryptionKey : besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse] = output.flatMap(_.snapshotEncryptionKey)
      def snapshotType : besom.types.Output[String] = output.flatMap(_.snapshotType)
      def sourceDisk : besom.types.Output[String] = output.flatMap(_.sourceDisk)
      def sourceDiskEncryptionKey : besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse] = output.flatMap(_.sourceDiskEncryptionKey)
      def sourceDiskForRecoveryCheckpoint : besom.types.Output[String] = output.flatMap(_.sourceDiskForRecoveryCheckpoint)
      def sourceDiskId : besom.types.Output[String] = output.flatMap(_.sourceDiskId)
      def sourceInstantSnapshot : besom.types.Output[String] = output.flatMap(_.sourceInstantSnapshot)
      def sourceInstantSnapshotEncryptionKey : besom.types.Output[besom.api.googlenative.compute.beta.outputs.CustomerEncryptionKeyResponse] = output.flatMap(_.sourceInstantSnapshotEncryptionKey)
      def sourceInstantSnapshotId : besom.types.Output[String] = output.flatMap(_.sourceInstantSnapshotId)
      def sourceSnapshotSchedulePolicy : besom.types.Output[String] = output.flatMap(_.sourceSnapshotSchedulePolicy)
      def sourceSnapshotSchedulePolicyId : besom.types.Output[String] = output.flatMap(_.sourceSnapshotSchedulePolicyId)
      def status : besom.types.Output[String] = output.flatMap(_.status)
      def storageBytes : besom.types.Output[String] = output.flatMap(_.storageBytes)
      def storageBytesStatus : besom.types.Output[String] = output.flatMap(_.storageBytesStatus)
      def storageLocations : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.storageLocations)
      def userLicenses : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.userLicenses)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy