
src.ml.v1.Model.scala Maven / Gradle / Ivy
package besom.api.googlenative.ml.v1
final case class Model private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
defaultVersion: besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1VersionResponse],
description: besom.types.Output[String],
etag: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
name: besom.types.Output[String],
onlinePredictionConsoleLogging: besom.types.Output[Boolean],
onlinePredictionLogging: besom.types.Output[Boolean],
project: besom.types.Output[String],
regions: besom.types.Output[scala.collection.immutable.List[String]]
) extends besom.CustomResource
object Model extends besom.ResourceCompanion[Model]:
/** Resource constructor for Model.
*
* @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 [[ModelArgs]] The configuration to use to create this resource. This resource has a default configuration.
*
* @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 = Model(
* "my-resource",
* ModelArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: ModelArgs = ModelArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Model] =
ctx.readOrRegisterResource[Model, ModelArgs]("google-native:ml/v1:Model", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:ml/v1:Model"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Model] =
besom.internal.ResourceDecoder.derived[Model]
given decoder(using besom.types.Context): besom.types.Decoder[Model] =
besom.internal.Decoder.customResourceDecoder[Model]
given outputOps: {} with
extension(output: besom.types.Output[Model])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def defaultVersion : besom.types.Output[besom.api.googlenative.ml.v1.outputs.GoogleCloudMlV1VersionResponse] = output.flatMap(_.defaultVersion)
def description : besom.types.Output[String] = output.flatMap(_.description)
def etag : besom.types.Output[String] = output.flatMap(_.etag)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def name : besom.types.Output[String] = output.flatMap(_.name)
def onlinePredictionConsoleLogging : besom.types.Output[Boolean] = output.flatMap(_.onlinePredictionConsoleLogging)
def onlinePredictionLogging : besom.types.Output[Boolean] = output.flatMap(_.onlinePredictionLogging)
def project : besom.types.Output[String] = output.flatMap(_.project)
def regions : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.regions)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy