
src.tpu.v1alpha1.Node.scala Maven / Gradle / Ivy
package besom.api.googlenative.tpu.v1alpha1
final case class Node private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
acceleratorType: besom.types.Output[String],
apiVersion: besom.types.Output[String],
cidrBlock: besom.types.Output[String],
createTime: besom.types.Output[String],
description: besom.types.Output[String],
health: besom.types.Output[String],
healthDescription: besom.types.Output[String],
ipAddress: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
name: besom.types.Output[String],
network: besom.types.Output[String],
networkEndpoints: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.tpu.v1alpha1.outputs.NetworkEndpointResponse]],
nodeId: besom.types.Output[scala.Option[String]],
port: besom.types.Output[String],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
schedulingConfig: besom.types.Output[besom.api.googlenative.tpu.v1alpha1.outputs.SchedulingConfigResponse],
serviceAccount: besom.types.Output[String],
state: besom.types.Output[String],
symptoms: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.tpu.v1alpha1.outputs.SymptomResponse]],
tensorflowVersion: besom.types.Output[String],
useServiceNetworking: besom.types.Output[Boolean]
) extends besom.CustomResource
object Node extends besom.ResourceCompanion[Node]:
/** Resource constructor for Node.
*
* @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 [[NodeArgs]] 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 = Node(
* "my-resource",
* NodeArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: NodeArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Node] =
ctx.readOrRegisterResource[Node, NodeArgs]("google-native:tpu/v1alpha1:Node", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:tpu/v1alpha1:Node"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Node] =
besom.internal.ResourceDecoder.derived[Node]
given decoder(using besom.types.Context): besom.types.Decoder[Node] =
besom.internal.Decoder.customResourceDecoder[Node]
given outputOps: {} with
extension(output: besom.types.Output[Node])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def acceleratorType : besom.types.Output[String] = output.flatMap(_.acceleratorType)
def apiVersion : besom.types.Output[String] = output.flatMap(_.apiVersion)
def cidrBlock : besom.types.Output[String] = output.flatMap(_.cidrBlock)
def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def description : besom.types.Output[String] = output.flatMap(_.description)
def health : besom.types.Output[String] = output.flatMap(_.health)
def healthDescription : besom.types.Output[String] = output.flatMap(_.healthDescription)
def ipAddress : besom.types.Output[String] = output.flatMap(_.ipAddress)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def location : besom.types.Output[String] = output.flatMap(_.location)
def name : besom.types.Output[String] = output.flatMap(_.name)
def network : besom.types.Output[String] = output.flatMap(_.network)
def networkEndpoints : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.tpu.v1alpha1.outputs.NetworkEndpointResponse]] = output.flatMap(_.networkEndpoints)
def nodeId : besom.types.Output[scala.Option[String]] = output.flatMap(_.nodeId)
def port : besom.types.Output[String] = output.flatMap(_.port)
def project : besom.types.Output[String] = output.flatMap(_.project)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def schedulingConfig : besom.types.Output[besom.api.googlenative.tpu.v1alpha1.outputs.SchedulingConfigResponse] = output.flatMap(_.schedulingConfig)
def serviceAccount : besom.types.Output[String] = output.flatMap(_.serviceAccount)
def state : besom.types.Output[String] = output.flatMap(_.state)
def symptoms : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.tpu.v1alpha1.outputs.SymptomResponse]] = output.flatMap(_.symptoms)
def tensorflowVersion : besom.types.Output[String] = output.flatMap(_.tensorflowVersion)
def useServiceNetworking : besom.types.Output[Boolean] = output.flatMap(_.useServiceNetworking)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy