Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
EngineModel
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.ML
Assembly: Pulumi.Gcp.dll
Syntax
public class EngineModel : CustomResource

Constructors

View Source

EngineModel(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 Source

DefaultVersion

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>
View Source

Description

The description specified for the model when it was created.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Name

The name specified for the version when it was created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.