Documentation ¶
Index ¶
- type EngineModel
- type EngineModelArgs
- type EngineModelArray
- type EngineModelArrayInput
- type EngineModelArrayOutput
- func (EngineModelArrayOutput) ElementType() reflect.Type
- func (o EngineModelArrayOutput) Index(i pulumi.IntInput) EngineModelOutput
- func (o EngineModelArrayOutput) ToEngineModelArrayOutput() EngineModelArrayOutput
- func (o EngineModelArrayOutput) ToEngineModelArrayOutputWithContext(ctx context.Context) EngineModelArrayOutput
- 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 EngineModelMap
- type EngineModelMapInput
- type EngineModelMapOutput
- func (EngineModelMapOutput) ElementType() reflect.Type
- func (o EngineModelMapOutput) MapIndex(k pulumi.StringInput) EngineModelOutput
- func (o EngineModelMapOutput) ToEngineModelMapOutput() EngineModelMapOutput
- func (o EngineModelMapOutput) ToEngineModelMapOutputWithContext(ctx context.Context) EngineModelMapOutput
- type EngineModelOutput
- func (o EngineModelOutput) DefaultVersion() EngineModelDefaultVersionPtrOutput
- func (o EngineModelOutput) Description() pulumi.StringPtrOutput
- func (EngineModelOutput) ElementType() reflect.Type
- func (o EngineModelOutput) Labels() pulumi.StringMapOutput
- func (o EngineModelOutput) Name() pulumi.StringOutput
- func (o EngineModelOutput) OnlinePredictionConsoleLogging() pulumi.BoolPtrOutput
- func (o EngineModelOutput) OnlinePredictionLogging() pulumi.BoolPtrOutput
- func (o EngineModelOutput) Project() pulumi.StringOutput
- func (o EngineModelOutput) Regions() pulumi.StringPtrOutput
- func (o EngineModelOutput) ToEngineModelOutput() EngineModelOutput
- func (o EngineModelOutput) ToEngineModelOutputWithContext(ctx context.Context) 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 model. 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.
To get more information about Model, see:
* [API documentation](https://cloud.google.com/ai-platform/prediction/docs/reference/rest/v1/projects.models) * How-to Guides
- [Official Documentation](https://cloud.google.com/ai-platform/prediction/docs/deploying-models)
## Example Usage ### Ml Model Basic
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/ml" "github.com/pulumi/pulumi/sdk/v3/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/v6/go/gcp/ml" "github.com/pulumi/pulumi/sdk/v3/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 ¶
func (*EngineModel) ElementType() reflect.Type
func (*EngineModel) ToEngineModelOutput ¶
func (i *EngineModel) ToEngineModelOutput() EngineModelOutput
func (*EngineModel) ToEngineModelOutputWithContext ¶
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 model. 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 EngineModelArray ¶
type EngineModelArray []EngineModelInput
func (EngineModelArray) ElementType ¶
func (EngineModelArray) ElementType() reflect.Type
func (EngineModelArray) ToEngineModelArrayOutput ¶
func (i EngineModelArray) ToEngineModelArrayOutput() EngineModelArrayOutput
func (EngineModelArray) ToEngineModelArrayOutputWithContext ¶
func (i EngineModelArray) ToEngineModelArrayOutputWithContext(ctx context.Context) EngineModelArrayOutput
type EngineModelArrayInput ¶
type EngineModelArrayInput interface { pulumi.Input ToEngineModelArrayOutput() EngineModelArrayOutput ToEngineModelArrayOutputWithContext(context.Context) EngineModelArrayOutput }
EngineModelArrayInput is an input type that accepts EngineModelArray and EngineModelArrayOutput values. You can construct a concrete instance of `EngineModelArrayInput` via:
EngineModelArray{ EngineModelArgs{...} }
type EngineModelArrayOutput ¶
type EngineModelArrayOutput struct{ *pulumi.OutputState }
func (EngineModelArrayOutput) ElementType ¶
func (EngineModelArrayOutput) ElementType() reflect.Type
func (EngineModelArrayOutput) Index ¶
func (o EngineModelArrayOutput) Index(i pulumi.IntInput) EngineModelOutput
func (EngineModelArrayOutput) ToEngineModelArrayOutput ¶
func (o EngineModelArrayOutput) ToEngineModelArrayOutput() EngineModelArrayOutput
func (EngineModelArrayOutput) ToEngineModelArrayOutputWithContext ¶
func (o EngineModelArrayOutput) ToEngineModelArrayOutputWithContext(ctx context.Context) EngineModelArrayOutput
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 ¶
type EngineModelInput interface { pulumi.Input ToEngineModelOutput() EngineModelOutput ToEngineModelOutputWithContext(ctx context.Context) EngineModelOutput }
type EngineModelMap ¶
type EngineModelMap map[string]EngineModelInput
func (EngineModelMap) ElementType ¶
func (EngineModelMap) ElementType() reflect.Type
func (EngineModelMap) ToEngineModelMapOutput ¶
func (i EngineModelMap) ToEngineModelMapOutput() EngineModelMapOutput
func (EngineModelMap) ToEngineModelMapOutputWithContext ¶
func (i EngineModelMap) ToEngineModelMapOutputWithContext(ctx context.Context) EngineModelMapOutput
type EngineModelMapInput ¶
type EngineModelMapInput interface { pulumi.Input ToEngineModelMapOutput() EngineModelMapOutput ToEngineModelMapOutputWithContext(context.Context) EngineModelMapOutput }
EngineModelMapInput is an input type that accepts EngineModelMap and EngineModelMapOutput values. You can construct a concrete instance of `EngineModelMapInput` via:
EngineModelMap{ "key": EngineModelArgs{...} }
type EngineModelMapOutput ¶
type EngineModelMapOutput struct{ *pulumi.OutputState }
func (EngineModelMapOutput) ElementType ¶
func (EngineModelMapOutput) ElementType() reflect.Type
func (EngineModelMapOutput) MapIndex ¶
func (o EngineModelMapOutput) MapIndex(k pulumi.StringInput) EngineModelOutput
func (EngineModelMapOutput) ToEngineModelMapOutput ¶
func (o EngineModelMapOutput) ToEngineModelMapOutput() EngineModelMapOutput
func (EngineModelMapOutput) ToEngineModelMapOutputWithContext ¶
func (o EngineModelMapOutput) ToEngineModelMapOutputWithContext(ctx context.Context) EngineModelMapOutput
type EngineModelOutput ¶
type EngineModelOutput struct{ *pulumi.OutputState }
func (EngineModelOutput) DefaultVersion ¶ added in v6.23.0
func (o EngineModelOutput) DefaultVersion() EngineModelDefaultVersionPtrOutput
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.
func (EngineModelOutput) Description ¶ added in v6.23.0
func (o EngineModelOutput) Description() pulumi.StringPtrOutput
The description specified for the model when it was created.
func (EngineModelOutput) ElementType ¶
func (EngineModelOutput) ElementType() reflect.Type
func (EngineModelOutput) Labels ¶ added in v6.23.0
func (o EngineModelOutput) Labels() pulumi.StringMapOutput
One or more labels that you can add, to organize your models.
func (EngineModelOutput) Name ¶ added in v6.23.0
func (o EngineModelOutput) Name() pulumi.StringOutput
The name specified for the model.
func (EngineModelOutput) OnlinePredictionConsoleLogging ¶ added in v6.23.0
func (o EngineModelOutput) OnlinePredictionConsoleLogging() pulumi.BoolPtrOutput
If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
func (EngineModelOutput) OnlinePredictionLogging ¶ added in v6.23.0
func (o EngineModelOutput) OnlinePredictionLogging() pulumi.BoolPtrOutput
If true, online prediction access logs are sent to StackDriver Logging.
func (EngineModelOutput) Project ¶ added in v6.23.0
func (o EngineModelOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (EngineModelOutput) Regions ¶ added in v6.23.0
func (o EngineModelOutput) Regions() pulumi.StringPtrOutput
The list of regions where the model is going to be deployed. Currently only one region per model is supported
func (EngineModelOutput) ToEngineModelOutput ¶
func (o EngineModelOutput) ToEngineModelOutput() EngineModelOutput
func (EngineModelOutput) ToEngineModelOutputWithContext ¶
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 model. 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