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

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

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

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/sshCredential:SshCredential"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[SshCredential])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def acls : besom.types.Output[scala.Option[scala.collection.immutable.List[String]]] = output.flatMap(_.acls)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def publicKey : besom.types.Output[String] = output.flatMap(_.publicKey)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy