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

src.sqladmin.v1beta4.BackupRun.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.sqladmin.v1beta4

final case class BackupRun private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  backupKind: besom.types.Output[String],
  description: besom.types.Output[String],
  diskEncryptionConfiguration: besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.DiskEncryptionConfigurationResponse],
  diskEncryptionStatus: besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.DiskEncryptionStatusResponse],
  endTime: besom.types.Output[String],
  enqueuedTime: besom.types.Output[String],
  error: besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.OperationErrorResponse],
  instance: besom.types.Output[String],
  kind: besom.types.Output[String],
  location: besom.types.Output[String],
  project: besom.types.Output[String],
  selfLink: besom.types.Output[String],
  startTime: besom.types.Output[String],
  status: besom.types.Output[String],
  timeZone: besom.types.Output[String],
  `type`: besom.types.Output[String],
  windowStartTime: besom.types.Output[String]
) extends besom.CustomResource

object BackupRun extends besom.ResourceCompanion[BackupRun]:
  /** Resource constructor for BackupRun. 
    * 
    * @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 [[BackupRunArgs]] 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 = BackupRun(
    *          "my-resource",
    *          BackupRunArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: BackupRunArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[BackupRun] =
    ctx.readOrRegisterResource[BackupRun, BackupRunArgs]("google-native:sqladmin/v1beta4:BackupRun", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:sqladmin/v1beta4:BackupRun"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[BackupRun])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def backupKind : besom.types.Output[String] = output.flatMap(_.backupKind)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def diskEncryptionConfiguration : besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.DiskEncryptionConfigurationResponse] = output.flatMap(_.diskEncryptionConfiguration)
      def diskEncryptionStatus : besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.DiskEncryptionStatusResponse] = output.flatMap(_.diskEncryptionStatus)
      def endTime : besom.types.Output[String] = output.flatMap(_.endTime)
      def enqueuedTime : besom.types.Output[String] = output.flatMap(_.enqueuedTime)
      def error : besom.types.Output[besom.api.googlenative.sqladmin.v1beta4.outputs.OperationErrorResponse] = output.flatMap(_.error)
      def instance : besom.types.Output[String] = output.flatMap(_.instance)
      def kind : besom.types.Output[String] = output.flatMap(_.kind)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
      def startTime : besom.types.Output[String] = output.flatMap(_.startTime)
      def status : besom.types.Output[String] = output.flatMap(_.status)
      def timeZone : besom.types.Output[String] = output.flatMap(_.timeZone)
      def `type` : besom.types.Output[String] = output.flatMap(_.`type`)
      def windowStartTime : besom.types.Output[String] = output.flatMap(_.windowStartTime)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy