ml

package
v5.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

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

## Example Usage ### Ml Model Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v5/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/v5/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

func (*EngineModel) ToEngineModelPtrOutput

func (i *EngineModel) ToEngineModelPtrOutput() EngineModelPtrOutput

func (*EngineModel) ToEngineModelPtrOutputWithContext

func (i *EngineModel) ToEngineModelPtrOutputWithContext(ctx context.Context) EngineModelPtrOutput

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 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 (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) 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) Name

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

type EngineModelDefaultVersionPtrOutput

type EngineModelDefaultVersionPtrOutput struct{ *pulumi.OutputState }

func (EngineModelDefaultVersionPtrOutput) Elem

func (EngineModelDefaultVersionPtrOutput) ElementType

func (EngineModelDefaultVersionPtrOutput) Name

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 (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) ElementType

func (EngineModelOutput) ElementType() reflect.Type

func (EngineModelOutput) ToEngineModelOutput

func (o EngineModelOutput) ToEngineModelOutput() EngineModelOutput

func (EngineModelOutput) ToEngineModelOutputWithContext

func (o EngineModelOutput) ToEngineModelOutputWithContext(ctx context.Context) EngineModelOutput

func (EngineModelOutput) ToEngineModelPtrOutput

func (o EngineModelOutput) ToEngineModelPtrOutput() EngineModelPtrOutput

func (EngineModelOutput) ToEngineModelPtrOutputWithContext

func (o EngineModelOutput) ToEngineModelPtrOutputWithContext(ctx context.Context) EngineModelPtrOutput

type EngineModelPtrInput

type EngineModelPtrInput interface {
	pulumi.Input

	ToEngineModelPtrOutput() EngineModelPtrOutput
	ToEngineModelPtrOutputWithContext(ctx context.Context) EngineModelPtrOutput
}

type EngineModelPtrOutput

type EngineModelPtrOutput struct{ *pulumi.OutputState }

func (EngineModelPtrOutput) Elem added in v5.21.0

func (EngineModelPtrOutput) ElementType

func (EngineModelPtrOutput) ElementType() reflect.Type

func (EngineModelPtrOutput) ToEngineModelPtrOutput

func (o EngineModelPtrOutput) ToEngineModelPtrOutput() EngineModelPtrOutput

func (EngineModelPtrOutput) ToEngineModelPtrOutputWithContext

func (o EngineModelPtrOutput) ToEngineModelPtrOutputWithContext(ctx context.Context) EngineModelPtrOutput

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL