This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

ml

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

class pulumi_gcp.ml.EngineModel(resource_name, opts=None, default_version=None, description=None, labels=None, name=None, online_prediction_console_logging=None, online_prediction_logging=None, project=None, regions=None, __props__=None, __name__=None, __opts__=None)

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.

import pulumi
import pulumi_gcp as gcp

default = gcp.ml.EngineModel("default",
    description="My model",
    regions="us-central1")
import pulumi
import pulumi_gcp as gcp

default = gcp.ml.EngineModel("default",
    description="My model",
    labels={
        "my_model": "foo",
    },
    online_prediction_console_logging=True,
    online_prediction_logging=True,
    regions="us-central1")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • default_version (pulumi.Input[dict]) – 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.

  • description (pulumi.Input[str]) – The description specified for the model when it was created.

  • labels (pulumi.Input[dict]) – One or more labels that you can add, to organize your models.

  • name (pulumi.Input[str]) – The name specified for the version when it was created.

  • online_prediction_console_logging (pulumi.Input[bool]) – If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

  • online_prediction_logging (pulumi.Input[bool]) – If true, online prediction access logs are sent to StackDriver Logging.

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • regions (pulumi.Input[str]) – The list of regions where the model is going to be deployed. Currently only one region per model is supported

The default_version object supports the following:

  • name (pulumi.Input[str]) - The name specified for the version when it was created.

default_version: pulumi.Output[dict] = None

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.

  • name (str) - The name specified for the version when it was created.

description: pulumi.Output[str] = None

The description specified for the model when it was created.

labels: pulumi.Output[dict] = None

One or more labels that you can add, to organize your models.

name: pulumi.Output[str] = None

The name specified for the version when it was created.

online_prediction_console_logging: pulumi.Output[bool] = None

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

online_prediction_logging: pulumi.Output[bool] = None

If true, online prediction access logs are sent to StackDriver Logging.

project: pulumi.Output[str] = None

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

regions: pulumi.Output[str] = None

The list of regions where the model is going to be deployed. Currently only one region per model is supported

static get(resource_name, id, opts=None, default_version=None, description=None, labels=None, name=None, online_prediction_console_logging=None, online_prediction_logging=None, project=None, regions=None)

Get an existing EngineModel resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • default_version (pulumi.Input[dict]) – 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.

  • description (pulumi.Input[str]) – The description specified for the model when it was created.

  • labels (pulumi.Input[dict]) – One or more labels that you can add, to organize your models.

  • name (pulumi.Input[str]) – The name specified for the version when it was created.

  • online_prediction_console_logging (pulumi.Input[bool]) – If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

  • online_prediction_logging (pulumi.Input[bool]) – If true, online prediction access logs are sent to StackDriver Logging.

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • regions (pulumi.Input[str]) – The list of regions where the model is going to be deployed. Currently only one region per model is supported

The default_version object supports the following:

  • name (pulumi.Input[str]) - The name specified for the version when it was created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str