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

src.index.SshUserCertificate.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 SshUserCertificate private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  certificate: besom.types.Output[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[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]]
) extends besom.CustomResource

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

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/sshUserCertificate:SshUserCertificate"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[SshUserCertificate])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def certificate : besom.types.Output[String] = output.flatMap(_.certificate)
      def criticalOptions : besom.types.Output[scala.Option[scala.Predef.Map[String, String]]] = output.flatMap(_.criticalOptions)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def extensions : besom.types.Output[scala.Option[scala.Predef.Map[String, String]]] = output.flatMap(_.extensions)
      def keyType : besom.types.Output[String] = output.flatMap(_.keyType)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def principals : besom.types.Output[scala.Option[scala.collection.immutable.List[String]]] = output.flatMap(_.principals)
      def publicKey : besom.types.Output[String] = output.flatMap(_.publicKey)
      def sshCertificateAuthorityId : besom.types.Output[String] = output.flatMap(_.sshCertificateAuthorityId)
      def validAfter : besom.types.Output[scala.Option[String]] = output.flatMap(_.validAfter)
      def validUntil : besom.types.Output[scala.Option[String]] = output.flatMap(_.validUntil)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy