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

src.pubsub.v1.SchemaArgs.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 SchemaArgs private(
  definition: besom.types.Output[scala.Option[String]],
  name: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  schemaId: besom.types.Output[scala.Option[String]],
  `type`: besom.types.Output[scala.Option[besom.api.googlenative.pubsub.v1.enums.SchemaType]]
)

object SchemaArgs:
  def apply(
    definition: besom.types.Input.Optional[String] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    schemaId: besom.types.Input.Optional[String] = scala.None,
    `type`: besom.types.Input.Optional[besom.api.googlenative.pubsub.v1.enums.SchemaType] = scala.None
  )(using besom.types.Context): SchemaArgs =
    new SchemaArgs(
      definition = definition.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      schemaId = schemaId.asOptionOutput(isSecret = false),
      `type` = `type`.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy