Documentation
¶
Index ¶
- type EngineModel
- type EngineModelArgs
- type EngineModelDefaultVersion
- type EngineModelDefaultVersionArgs
- func (EngineModelDefaultVersionArgs) ElementType() reflect.Type
- func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutput() EngineModelDefaultVersionOutput
- func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutputWithContext(ctx context.Context) EngineModelDefaultVersionOutput
- func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
- func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
- type EngineModelDefaultVersionInput
- type EngineModelDefaultVersionOutput
- func (EngineModelDefaultVersionOutput) ElementType() reflect.Type
- func (o EngineModelDefaultVersionOutput) Name() pulumi.StringOutput
- func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutput() EngineModelDefaultVersionOutput
- func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutputWithContext(ctx context.Context) EngineModelDefaultVersionOutput
- func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
- func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
- type EngineModelDefaultVersionPtrInput
- type EngineModelDefaultVersionPtrOutput
- func (o EngineModelDefaultVersionPtrOutput) Elem() EngineModelDefaultVersionOutput
- func (EngineModelDefaultVersionPtrOutput) ElementType() reflect.Type
- func (o EngineModelDefaultVersionPtrOutput) Name() pulumi.StringPtrOutput
- func (o EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
- func (o EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
- type EngineModelInput
- type EngineModelOutput
- type EngineModelState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineModel ¶
type EngineModel struct { pulumi.CustomResourceState // 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. DefaultVersion EngineModelDefaultVersionPtrOutput `pulumi:"defaultVersion"` // The description specified for the model when it was created. Description pulumi.StringPtrOutput `pulumi:"description"` // One or more labels that you can add, to organize your models. Labels pulumi.StringMapOutput `pulumi:"labels"` // The name specified for the version when it was created. Name pulumi.StringOutput `pulumi:"name"` // If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging OnlinePredictionConsoleLogging pulumi.BoolPtrOutput `pulumi:"onlinePredictionConsoleLogging"` // If true, online prediction access logs are sent to StackDriver Logging. OnlinePredictionLogging pulumi.BoolPtrOutput `pulumi:"onlinePredictionLogging"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The list of regions where the model is going to be deployed. // Currently only one region per model is supported Regions pulumi.StringPtrOutput `pulumi:"regions"` }
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
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/ml" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ml.NewEngineModel(ctx, "_default", &ml.EngineModelArgs{ Description: pulumi.String("My model"), Regions: pulumi.String("us-central1"), }) if err != nil { return err } return nil }) }
``` ### Ml Model Full
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/ml" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ml.NewEngineModel(ctx, "_default", &ml.EngineModelArgs{ Description: pulumi.String("My model"), Labels: pulumi.StringMap{ "my_model": pulumi.String("foo"), }, OnlinePredictionConsoleLogging: pulumi.Bool(true), OnlinePredictionLogging: pulumi.Bool(true), Regions: pulumi.String("us-central1"), }) if err != nil { return err } return nil }) }
```
## Import
Model can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:ml/engineModel:EngineModel default projects/{{project}}/models/{{name}}
```
```sh
$ pulumi import gcp:ml/engineModel:EngineModel default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:ml/engineModel:EngineModel default {{name}}
```
func GetEngineModel ¶
func GetEngineModel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EngineModelState, opts ...pulumi.ResourceOption) (*EngineModel, error)
GetEngineModel gets an existing EngineModel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEngineModel ¶
func NewEngineModel(ctx *pulumi.Context, name string, args *EngineModelArgs, opts ...pulumi.ResourceOption) (*EngineModel, error)
NewEngineModel registers a new resource with the given unique name, arguments, and options.
func (EngineModel) ElementType ¶ added in v4.4.0
func (EngineModel) ElementType() reflect.Type
func (EngineModel) ToEngineModelOutput ¶ added in v4.4.0
func (i EngineModel) ToEngineModelOutput() EngineModelOutput
func (EngineModel) ToEngineModelOutputWithContext ¶ added in v4.4.0
func (i EngineModel) ToEngineModelOutputWithContext(ctx context.Context) EngineModelOutput
type EngineModelArgs ¶
type EngineModelArgs struct { // 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. DefaultVersion EngineModelDefaultVersionPtrInput // The description specified for the model when it was created. Description pulumi.StringPtrInput // One or more labels that you can add, to organize your models. Labels pulumi.StringMapInput // The name specified for the version when it was created. Name pulumi.StringPtrInput // If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging OnlinePredictionConsoleLogging pulumi.BoolPtrInput // If true, online prediction access logs are sent to StackDriver Logging. OnlinePredictionLogging pulumi.BoolPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The list of regions where the model is going to be deployed. // Currently only one region per model is supported Regions pulumi.StringPtrInput }
The set of arguments for constructing a EngineModel resource.
func (EngineModelArgs) ElementType ¶
func (EngineModelArgs) ElementType() reflect.Type
type EngineModelDefaultVersion ¶
type EngineModelDefaultVersion struct { // The name specified for the version when it was created. Name string `pulumi:"name"` }
type EngineModelDefaultVersionArgs ¶
type EngineModelDefaultVersionArgs struct { // The name specified for the version when it was created. Name pulumi.StringInput `pulumi:"name"` }
func (EngineModelDefaultVersionArgs) ElementType ¶
func (EngineModelDefaultVersionArgs) ElementType() reflect.Type
func (EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutput ¶
func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutput() EngineModelDefaultVersionOutput
func (EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutputWithContext ¶
func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionOutputWithContext(ctx context.Context) EngineModelDefaultVersionOutput
func (EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutput ¶
func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
func (EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutputWithContext ¶
func (i EngineModelDefaultVersionArgs) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
type EngineModelDefaultVersionInput ¶
type EngineModelDefaultVersionInput interface { pulumi.Input ToEngineModelDefaultVersionOutput() EngineModelDefaultVersionOutput ToEngineModelDefaultVersionOutputWithContext(context.Context) EngineModelDefaultVersionOutput }
EngineModelDefaultVersionInput is an input type that accepts EngineModelDefaultVersionArgs and EngineModelDefaultVersionOutput values. You can construct a concrete instance of `EngineModelDefaultVersionInput` via:
EngineModelDefaultVersionArgs{...}
type EngineModelDefaultVersionOutput ¶
type EngineModelDefaultVersionOutput struct{ *pulumi.OutputState }
func (EngineModelDefaultVersionOutput) ElementType ¶
func (EngineModelDefaultVersionOutput) ElementType() reflect.Type
func (EngineModelDefaultVersionOutput) Name ¶
func (o EngineModelDefaultVersionOutput) Name() pulumi.StringOutput
The name specified for the version when it was created.
func (EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutput ¶
func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutput() EngineModelDefaultVersionOutput
func (EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutputWithContext ¶
func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionOutputWithContext(ctx context.Context) EngineModelDefaultVersionOutput
func (EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutput ¶
func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
func (EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutputWithContext ¶
func (o EngineModelDefaultVersionOutput) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
type EngineModelDefaultVersionPtrInput ¶
type EngineModelDefaultVersionPtrInput interface { pulumi.Input ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput ToEngineModelDefaultVersionPtrOutputWithContext(context.Context) EngineModelDefaultVersionPtrOutput }
EngineModelDefaultVersionPtrInput is an input type that accepts EngineModelDefaultVersionArgs, EngineModelDefaultVersionPtr and EngineModelDefaultVersionPtrOutput values. You can construct a concrete instance of `EngineModelDefaultVersionPtrInput` via:
EngineModelDefaultVersionArgs{...} or: nil
func EngineModelDefaultVersionPtr ¶
func EngineModelDefaultVersionPtr(v *EngineModelDefaultVersionArgs) EngineModelDefaultVersionPtrInput
type EngineModelDefaultVersionPtrOutput ¶
type EngineModelDefaultVersionPtrOutput struct{ *pulumi.OutputState }
func (EngineModelDefaultVersionPtrOutput) Elem ¶
func (o EngineModelDefaultVersionPtrOutput) Elem() EngineModelDefaultVersionOutput
func (EngineModelDefaultVersionPtrOutput) ElementType ¶
func (EngineModelDefaultVersionPtrOutput) ElementType() reflect.Type
func (EngineModelDefaultVersionPtrOutput) Name ¶
func (o EngineModelDefaultVersionPtrOutput) Name() pulumi.StringPtrOutput
The name specified for the version when it was created.
func (EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutput ¶
func (o EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutput() EngineModelDefaultVersionPtrOutput
func (EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutputWithContext ¶
func (o EngineModelDefaultVersionPtrOutput) ToEngineModelDefaultVersionPtrOutputWithContext(ctx context.Context) EngineModelDefaultVersionPtrOutput
type EngineModelInput ¶ added in v4.4.0
type EngineModelInput interface { pulumi.Input ToEngineModelOutput() EngineModelOutput ToEngineModelOutputWithContext(ctx context.Context) EngineModelOutput }
type EngineModelOutput ¶ added in v4.4.0
type EngineModelOutput struct {
*pulumi.OutputState
}
func (EngineModelOutput) ElementType ¶ added in v4.4.0
func (EngineModelOutput) ElementType() reflect.Type
func (EngineModelOutput) ToEngineModelOutput ¶ added in v4.4.0
func (o EngineModelOutput) ToEngineModelOutput() EngineModelOutput
func (EngineModelOutput) ToEngineModelOutputWithContext ¶ added in v4.4.0
func (o EngineModelOutput) ToEngineModelOutputWithContext(ctx context.Context) EngineModelOutput
type EngineModelState ¶
type EngineModelState struct { // 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. DefaultVersion EngineModelDefaultVersionPtrInput // The description specified for the model when it was created. Description pulumi.StringPtrInput // One or more labels that you can add, to organize your models. Labels pulumi.StringMapInput // The name specified for the version when it was created. Name pulumi.StringPtrInput // If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging OnlinePredictionConsoleLogging pulumi.BoolPtrInput // If true, online prediction access logs are sent to StackDriver Logging. OnlinePredictionLogging pulumi.BoolPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The list of regions where the model is going to be deployed. // Currently only one region per model is supported Regions pulumi.StringPtrInput }
func (EngineModelState) ElementType ¶
func (EngineModelState) ElementType() reflect.Type