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

src.index.ProviderArgs.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 ProviderArgs private(
  apiBaseUrl: besom.types.Output[scala.Option[String]],
  apiKey: besom.types.Output[String]
)

object ProviderArgs:
  def apply(
    apiBaseUrl: besom.types.Input.Optional[String] = scala.None,
    apiKey: besom.types.Input[String]
  )(using besom.types.Context): ProviderArgs =
    new ProviderArgs(
      apiBaseUrl = apiBaseUrl.asOptionOutput(isSecret = false),
      apiKey = apiKey.asOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[ProviderArgs] =
    besom.internal.Encoder.derived[ProviderArgs]
  given providerArgsEncoder(using besom.types.Context): besom.types.ProviderArgsEncoder[ProviderArgs] =
    besom.internal.ProviderArgsEncoder.derived[ProviderArgs]






© 2015 - 2024 Weber Informatics LLC | Privacy Policy