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

src.cloudiot.v1.Device.scala Maven / Gradle / Ivy

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

final case class Device private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  blocked: besom.types.Output[Boolean],
  config: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.DeviceConfigResponse],
  credentials: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.DeviceCredentialResponse]],
  gatewayConfig: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.GatewayConfigResponse],
  lastConfigAckTime: besom.types.Output[String],
  lastConfigSendTime: besom.types.Output[String],
  lastErrorStatus: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.StatusResponse],
  lastErrorTime: besom.types.Output[String],
  lastEventTime: besom.types.Output[String],
  lastHeartbeatTime: besom.types.Output[String],
  lastStateTime: besom.types.Output[String],
  location: besom.types.Output[String],
  logLevel: besom.types.Output[String],
  metadata: besom.types.Output[scala.Predef.Map[String, String]],
  name: besom.types.Output[String],
  numId: besom.types.Output[String],
  project: besom.types.Output[String],
  registryId: besom.types.Output[String],
  state: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.DeviceStateResponse]
) extends besom.CustomResource

object Device extends besom.ResourceCompanion[Device]:
  /** Resource constructor for Device. 
    * 
    * @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 [[DeviceArgs]] 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 = Device(
    *          "my-resource",
    *          DeviceArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: DeviceArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[Device] =
    ctx.readOrRegisterResource[Device, DeviceArgs]("google-native:cloudiot/v1:Device", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:cloudiot/v1:Device"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[Device])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def blocked : besom.types.Output[Boolean] = output.flatMap(_.blocked)
      def config : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.DeviceConfigResponse] = output.flatMap(_.config)
      def credentials : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.DeviceCredentialResponse]] = output.flatMap(_.credentials)
      def gatewayConfig : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.GatewayConfigResponse] = output.flatMap(_.gatewayConfig)
      def lastConfigAckTime : besom.types.Output[String] = output.flatMap(_.lastConfigAckTime)
      def lastConfigSendTime : besom.types.Output[String] = output.flatMap(_.lastConfigSendTime)
      def lastErrorStatus : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.StatusResponse] = output.flatMap(_.lastErrorStatus)
      def lastErrorTime : besom.types.Output[String] = output.flatMap(_.lastErrorTime)
      def lastEventTime : besom.types.Output[String] = output.flatMap(_.lastEventTime)
      def lastHeartbeatTime : besom.types.Output[String] = output.flatMap(_.lastHeartbeatTime)
      def lastStateTime : besom.types.Output[String] = output.flatMap(_.lastStateTime)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def logLevel : besom.types.Output[String] = output.flatMap(_.logLevel)
      def metadata : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.metadata)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def numId : besom.types.Output[String] = output.flatMap(_.numId)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def registryId : besom.types.Output[String] = output.flatMap(_.registryId)
      def state : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.DeviceStateResponse] = output.flatMap(_.state)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy