Class EngineModel
Represents a machine learning solution.
A model can have multiple versions, each of which is a deployed, trained model ready to receive prediction requests. The model itself is just a container.
Example Usage - Ml Model Basic
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var @default = new Gcp.ML.EngineModel("default", new Gcp.ML.EngineModelArgs
{
Description = "My model",
Regions = "us-central1",
});
}
}
Example Usage - Ml Model Full
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var @default = new Gcp.ML.EngineModel("default", new Gcp.ML.EngineModelArgs
{
Description = "My model",
Labels =
{
{ "my_model", "foo" },
},
OnlinePredictionConsoleLogging = true,
OnlinePredictionLogging = true,
Regions = "us-central1",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.ML
Assembly: Pulumi.Gcp.dll
Syntax
public class EngineModel : CustomResource
Constructors
View SourceEngineModel(String, EngineModelArgs, CustomResourceOptions)
Create a EngineModel resource with the given unique name, arguments, and options.
Declaration
public EngineModel(string name, EngineModelArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EngineModelArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDefaultVersion
The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.
Declaration
public Output<EngineModelDefaultVersion> DefaultVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<EngineModelDefaultVersion> |
Description
The description specified for the model when it was created.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
One or more labels that you can add, to organize your models.
Declaration
public Output<ImmutableDictionary<string, string>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Name
The name specified for the version when it was created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OnlinePredictionConsoleLogging
If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
Declaration
public Output<bool?> OnlinePredictionConsoleLogging { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
OnlinePredictionLogging
If true, online prediction access logs are sent to StackDriver Logging.
Declaration
public Output<bool?> OnlinePredictionLogging { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Regions
The list of regions where the model is going to be deployed. Currently only one region per model is supported
Declaration
public Output<string> Regions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, EngineModelState, CustomResourceOptions)
Get an existing EngineModel resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EngineModel Get(string name, Input<string> id, EngineModelState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EngineModelState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EngineModel |