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

src.apigee.v1.ApiArgs.scala Maven / Gradle / Ivy

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

final case class ApiArgs private(
  action: besom.types.Output[scala.Option[String]],
  contentType: besom.types.Output[scala.Option[String]],
  data: besom.types.Output[scala.Option[String]],
  extensions: besom.types.Output[scala.Option[scala.collection.immutable.List[scala.Predef.Map[String, String]]]],
  file: besom.types.Output[scala.Option[besom.types.AssetOrArchive]],
  name: besom.types.Output[scala.Option[String]],
  organizationId: besom.types.Output[String],
  validate: besom.types.Output[scala.Option[Boolean]]
)

object ApiArgs:
  def apply(
    action: besom.types.Input.Optional[String] = scala.None,
    contentType: besom.types.Input.Optional[String] = scala.None,
    data: besom.types.Input.Optional[String] = scala.None,
    extensions: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[scala.Predef.Map[String, String]]]] = scala.None,
    file: besom.types.Input.Optional[besom.types.AssetOrArchive] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    organizationId: besom.types.Input[String],
    validate: besom.types.Input.Optional[Boolean] = scala.None
  )(using besom.types.Context): ApiArgs =
    new ApiArgs(
      action = action.asOptionOutput(isSecret = false),
      contentType = contentType.asOptionOutput(isSecret = false),
      data = data.asOptionOutput(isSecret = false),
      extensions = extensions.asOptionOutput(isSecret = false),
      file = file.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      organizationId = organizationId.asOutput(isSecret = false),
      validate = validate.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy