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

src.run.v2.Service.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.run.v2

final case class Service private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  annotations: besom.types.Output[scala.Predef.Map[String, String]],
  binaryAuthorization: besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2BinaryAuthorizationResponse],
  client: besom.types.Output[String],
  clientVersion: besom.types.Output[String],
  conditions: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ConditionResponse]],
  createTime: besom.types.Output[String],
  creator: besom.types.Output[String],
  customAudiences: besom.types.Output[scala.collection.immutable.List[String]],
  deleteTime: besom.types.Output[String],
  description: besom.types.Output[String],
  etag: besom.types.Output[String],
  expireTime: besom.types.Output[String],
  generation: besom.types.Output[String],
  ingress: besom.types.Output[String],
  labels: besom.types.Output[scala.Predef.Map[String, String]],
  lastModifier: besom.types.Output[String],
  latestCreatedRevision: besom.types.Output[String],
  latestReadyRevision: besom.types.Output[String],
  launchStage: besom.types.Output[String],
  location: besom.types.Output[String],
  name: besom.types.Output[String],
  observedGeneration: besom.types.Output[String],
  project: besom.types.Output[String],
  reconciling: besom.types.Output[Boolean],
  satisfiesPzs: besom.types.Output[Boolean],
  scaling: besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ServiceScalingResponse],
  serviceId: besom.types.Output[String],
  template: besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2RevisionTemplateResponse],
  terminalCondition: besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ConditionResponse],
  traffic: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2TrafficTargetResponse]],
  trafficStatuses: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2TrafficTargetStatusResponse]],
  uid: besom.types.Output[String],
  updateTime: besom.types.Output[String],
  uri: besom.types.Output[String]
) extends besom.CustomResource

object Service extends besom.ResourceCompanion[Service]:
  /** Resource constructor for Service. 
    * 
    * @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
    *        NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
    *        issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
    *        string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
    *
    * @param args [[ServiceArgs]] The configuration to use to create this resource. 
    *
    * @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource. 
    *        Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
    *  
    *        {{{
    *        val res = Service(
    *          "my-resource",
    *          ServiceArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: ServiceArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[Service] =
    ctx.readOrRegisterResource[Service, ServiceArgs]("google-native:run/v2:Service", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:run/v2:Service"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[Service])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def annotations : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.annotations)
      def binaryAuthorization : besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2BinaryAuthorizationResponse] = output.flatMap(_.binaryAuthorization)
      def client : besom.types.Output[String] = output.flatMap(_.client)
      def clientVersion : besom.types.Output[String] = output.flatMap(_.clientVersion)
      def conditions : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ConditionResponse]] = output.flatMap(_.conditions)
      def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
      def creator : besom.types.Output[String] = output.flatMap(_.creator)
      def customAudiences : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.customAudiences)
      def deleteTime : besom.types.Output[String] = output.flatMap(_.deleteTime)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def etag : besom.types.Output[String] = output.flatMap(_.etag)
      def expireTime : besom.types.Output[String] = output.flatMap(_.expireTime)
      def generation : besom.types.Output[String] = output.flatMap(_.generation)
      def ingress : besom.types.Output[String] = output.flatMap(_.ingress)
      def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
      def lastModifier : besom.types.Output[String] = output.flatMap(_.lastModifier)
      def latestCreatedRevision : besom.types.Output[String] = output.flatMap(_.latestCreatedRevision)
      def latestReadyRevision : besom.types.Output[String] = output.flatMap(_.latestReadyRevision)
      def launchStage : besom.types.Output[String] = output.flatMap(_.launchStage)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def observedGeneration : besom.types.Output[String] = output.flatMap(_.observedGeneration)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def reconciling : besom.types.Output[Boolean] = output.flatMap(_.reconciling)
      def satisfiesPzs : besom.types.Output[Boolean] = output.flatMap(_.satisfiesPzs)
      def scaling : besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ServiceScalingResponse] = output.flatMap(_.scaling)
      def serviceId : besom.types.Output[String] = output.flatMap(_.serviceId)
      def template : besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2RevisionTemplateResponse] = output.flatMap(_.template)
      def terminalCondition : besom.types.Output[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2ConditionResponse] = output.flatMap(_.terminalCondition)
      def traffic : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2TrafficTargetResponse]] = output.flatMap(_.traffic)
      def trafficStatuses : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.run.v2.outputs.GoogleCloudRunV2TrafficTargetStatusResponse]] = output.flatMap(_.trafficStatuses)
      def uid : besom.types.Output[String] = output.flatMap(_.uid)
      def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
      def uri : besom.types.Output[String] = output.flatMap(_.uri)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy