src.index.SshUserCertificateArgs.scala Maven / Gradle / Ivy
package besom.api.ngrok
final case class SshUserCertificateArgs private(
certificate: besom.types.Output[scala.Option[String]],
criticalOptions: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
description: besom.types.Output[scala.Option[String]],
extensions: besom.types.Output[scala.Option[scala.Predef.Map[String, 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 SshUserCertificateArgs:
def apply(
certificate: besom.types.Input.Optional[String] = scala.None,
criticalOptions: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
description: besom.types.Input.Optional[String] = scala.None,
extensions: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[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): SshUserCertificateArgs =
new SshUserCertificateArgs(
certificate = certificate.asOptionOutput(isSecret = false),
criticalOptions = criticalOptions.asOptionOutput(isSecret = false),
description = description.asOptionOutput(isSecret = false),
extensions = extensions.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[SshUserCertificateArgs] =
besom.internal.Encoder.derived[SshUserCertificateArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[SshUserCertificateArgs] =
besom.internal.ArgsEncoder.derived[SshUserCertificateArgs]
© 2015 - 2024 Weber Informatics LLC | Privacy Policy