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

src.index.inputs.EndpointConfigurationOidcArgs.scala Maven / Gradle / Ivy

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

final case class EndpointConfigurationOidcArgs private(
  clientId: besom.types.Output[scala.Option[String]],
  clientSecret: besom.types.Output[scala.Option[String]],
  cookiePrefix: besom.types.Output[scala.Option[String]],
  enabled: besom.types.Output[scala.Option[Boolean]],
  inactivityTimeout: besom.types.Output[scala.Option[Int]],
  issuer: besom.types.Output[scala.Option[String]],
  maximumDuration: besom.types.Output[scala.Option[Int]],
  optionsPassthrough: besom.types.Output[scala.Option[Boolean]],
  scopes: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]]
)

object EndpointConfigurationOidcArgs:
  def apply(
    clientId: besom.types.Input.Optional[String] = scala.None,
    clientSecret: besom.types.Input.Optional[String] = scala.None,
    cookiePrefix: besom.types.Input.Optional[String] = scala.None,
    enabled: besom.types.Input.Optional[Boolean] = scala.None,
    inactivityTimeout: besom.types.Input.Optional[Int] = scala.None,
    issuer: besom.types.Input.Optional[String] = scala.None,
    maximumDuration: besom.types.Input.Optional[Int] = scala.None,
    optionsPassthrough: besom.types.Input.Optional[Boolean] = scala.None,
    scopes: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None
  )(using besom.types.Context): EndpointConfigurationOidcArgs =
    new EndpointConfigurationOidcArgs(
      clientId = clientId.asOptionOutput(isSecret = false),
      clientSecret = clientSecret.asOptionOutput(isSecret = true),
      cookiePrefix = cookiePrefix.asOptionOutput(isSecret = false),
      enabled = enabled.asOptionOutput(isSecret = false),
      inactivityTimeout = inactivityTimeout.asOptionOutput(isSecret = false),
      issuer = issuer.asOptionOutput(isSecret = false),
      maximumDuration = maximumDuration.asOptionOutput(isSecret = false),
      optionsPassthrough = optionsPassthrough.asOptionOutput(isSecret = false),
      scopes = scopes.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2024 Weber Informatics LLC | Privacy Policy