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

src.index.SshHostCertificateArgs.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 SshHostCertificateArgs private(
  certificate: besom.types.Output[scala.Option[String]],
  description: besom.types.Output[scala.Option[String]],
  keyType: besom.types.Output[scala.Option[String]],
  metadata: besom.types.Output[scala.Option[String]],
  principals: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
  publicKey: besom.types.Output[String],
  sshCertificateAuthorityId: besom.types.Output[String],
  validAfter: besom.types.Output[scala.Option[String]],
  validUntil: besom.types.Output[scala.Option[String]]
)

object SshHostCertificateArgs:
  def apply(
    certificate: besom.types.Input.Optional[String] = scala.None,
    description: besom.types.Input.Optional[String] = scala.None,
    keyType: besom.types.Input.Optional[String] = scala.None,
    metadata: besom.types.Input.Optional[String] = scala.None,
    principals: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
    publicKey: besom.types.Input[String],
    sshCertificateAuthorityId: besom.types.Input[String],
    validAfter: besom.types.Input.Optional[String] = scala.None,
    validUntil: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): SshHostCertificateArgs =
    new SshHostCertificateArgs(
      certificate = certificate.asOptionOutput(isSecret = false),
      description = description.asOptionOutput(isSecret = false),
      keyType = keyType.asOptionOutput(isSecret = false),
      metadata = metadata.asOptionOutput(isSecret = false),
      principals = principals.asOptionOutput(isSecret = false),
      publicKey = publicKey.asOutput(isSecret = false),
      sshCertificateAuthorityId = sshCertificateAuthorityId.asOutput(isSecret = false),
      validAfter = validAfter.asOptionOutput(isSecret = false),
      validUntil = validUntil.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2024 Weber Informatics LLC | Privacy Policy