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

src.index.ApiKeyArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.0.24-core.0.3
Show newest version
package besom.api.ngrok

final case class ApiKeyArgs private(
  description: besom.types.Output[scala.Option[String]],
  metadata: besom.types.Output[scala.Option[String]],
  token: besom.types.Output[scala.Option[String]]
)

object ApiKeyArgs:
  def apply(
    description: besom.types.Input.Optional[String] = scala.None,
    metadata: besom.types.Input.Optional[String] = scala.None,
    token: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): ApiKeyArgs =
    new ApiKeyArgs(
      description = description.asOptionOutput(isSecret = false),
      metadata = metadata.asOptionOutput(isSecret = false),
      token = token.asOptionOutput(isSecret = true)
    )

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






© 2015 - 2024 Weber Informatics LLC | Privacy Policy