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

src.index.SshCertificateAuthority.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 SshCertificateAuthority private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  description: besom.types.Output[scala.Option[String]],
  ellipticCurve: besom.types.Output[scala.Option[String]],
  keySize: besom.types.Output[scala.Option[Int]],
  keyType: besom.types.Output[String],
  metadata: besom.types.Output[scala.Option[String]],
  privateKeyType: besom.types.Output[scala.Option[String]],
  publicKey: besom.types.Output[String]
) extends besom.CustomResource

object SshCertificateAuthority extends besom.ResourceCompanion[SshCertificateAuthority]:
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: SshCertificateAuthorityArgs = SshCertificateAuthorityArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[SshCertificateAuthority] =
    ctx.readOrRegisterResource[SshCertificateAuthority, SshCertificateAuthorityArgs]("ngrok:index/sshCertificateAuthority:SshCertificateAuthority", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/sshCertificateAuthority:SshCertificateAuthority"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[SshCertificateAuthority] =
    besom.internal.ResourceDecoder.derived[SshCertificateAuthority]

  given decoder(using besom.types.Context): besom.types.Decoder[SshCertificateAuthority] =
    besom.internal.Decoder.customResourceDecoder[SshCertificateAuthority]


  given outputOps: {} with
    extension(output: besom.types.Output[SshCertificateAuthority])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def ellipticCurve : besom.types.Output[scala.Option[String]] = output.flatMap(_.ellipticCurve)
      def keySize : besom.types.Output[scala.Option[Int]] = output.flatMap(_.keySize)
      def keyType : besom.types.Output[String] = output.flatMap(_.keyType)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def privateKeyType : besom.types.Output[scala.Option[String]] = output.flatMap(_.privateKeyType)
      def publicKey : besom.types.Output[String] = output.flatMap(_.publicKey)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy