Struct google_ml1::GoogleCloudMlV1__Version[][src]

pub struct GoogleCloudMlV1__Version {
    pub error_message: Option<String>,
    pub description: Option<String>,
    pub runtime_version: Option<String>,
    pub manual_scaling: Option<GoogleCloudMlV1__ManualScaling>,
    pub auto_scaling: Option<GoogleCloudMlV1__AutoScaling>,
    pub labels: Option<HashMap<String, String>>,
    pub state: Option<String>,
    pub etag: Option<String>,
    pub last_use_time: Option<String>,
    pub deployment_uri: Option<String>,
    pub create_time: Option<String>,
    pub is_default: Option<bool>,
    pub name: Option<String>,
}

Represents a version of the model.

Each version is a trained model deployed in the cloud, ready to handle prediction requests. A model can have multiple versions. You can get information about all of the versions of a given model by calling projects.models.versions.list.

LINT.IfChange

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Output only. The details of a failure or a cancellation.

Optional. The description specified for the version when it was created.

Optional. The Google Cloud ML runtime version to use for this deployment. If not set, Google Cloud ML will choose a version.

Manually select the number of nodes to use for serving the model. You should generally use auto_scaling with an appropriate min_nodes instead, but this option is available if you want more predictable billing. Beware that latency and error rates will increase if the traffic exceeds that capability of the system to serve it based on the selected number of nodes.

Automatically scale the number of nodes used to serve the model in response to increases and decreases in traffic. Care should be taken to ramp up traffic according to the model's ability to scale or you will start seeing increases in latency and 429 response codes.

Optional. One or more labels that you can add, to organize your model versions. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels.

Output only. The state of a version.

etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a model from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform model updates in order to avoid race conditions: An etag is returned in the response to GetVersion, and systems are expected to put that etag in the request to UpdateVersion to ensure that their change will be applied to the model as intended.

Output only. The time the version was last used for prediction.

Required. The Google Cloud Storage location of the trained model used to create the version. See the overview of model deployment for more information.

When passing Version to projects.models.versions.create the model service uses the specified location as the source of the model. Once deployed, the model version is hosted by the prediction service, so this location is useful only as a historical record. The total number of model files can't exceed 1000.

Output only. The time the version was created.

Output only. If true, this version will be used to handle prediction requests that do not specify a version.

You can change the default version by calling projects.methods.versions.setDefault.

Required.The name specified for the version when it was created.

The version name must be unique within the model it is created in.

Trait Implementations

impl Default for GoogleCloudMlV1__Version
[src]

Returns the "default value" for a type. Read more

impl Clone for GoogleCloudMlV1__Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GoogleCloudMlV1__Version
[src]

Formats the value using the given formatter. Read more

impl RequestValue for GoogleCloudMlV1__Version
[src]

impl ResponseResult for GoogleCloudMlV1__Version
[src]

Auto Trait Implementations