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

src.pubsub.v1.SnapshotArgs.scala Maven / Gradle / Ivy

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

final case class SnapshotArgs private(
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  project: besom.types.Output[scala.Option[String]],
  snapshotId: besom.types.Output[String],
  subscription: besom.types.Output[String]
)

object SnapshotArgs:
  def apply(
    labels: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    snapshotId: besom.types.Input[String],
    subscription: besom.types.Input[String]
  )(using besom.types.Context): SnapshotArgs =
    new SnapshotArgs(
      labels = labels.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      snapshotId = snapshotId.asOutput(isSecret = false),
      subscription = subscription.asOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[SnapshotArgs] =
    besom.internal.Encoder.derived[SnapshotArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[SnapshotArgs] =
    besom.internal.ArgsEncoder.derived[SnapshotArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy