src.index.CredentialArgs.scala Maven / Gradle / Ivy
package besom.api.ngrok
final case class CredentialArgs private(
acls: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
description: besom.types.Output[scala.Option[String]],
metadata: besom.types.Output[scala.Option[String]]
)
object CredentialArgs:
def apply(
acls: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
description: besom.types.Input.Optional[String] = scala.None,
metadata: besom.types.Input.Optional[String] = scala.None
)(using besom.types.Context): CredentialArgs =
new CredentialArgs(
acls = acls.asOptionOutput(isSecret = false),
description = description.asOptionOutput(isSecret = false),
metadata = metadata.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[CredentialArgs] =
besom.internal.Encoder.derived[CredentialArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[CredentialArgs] =
besom.internal.ArgsEncoder.derived[CredentialArgs]
© 2015 - 2024 Weber Informatics LLC | Privacy Policy