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).
- models versions get projects (response)
- models versions create projects (request)
- models versions patch projects (request)
- models versions set default projects (response)
Fields
error_message: Option<String>
Output only. The details of a failure or a cancellation.
description: Option<String>
Optional. The description specified for the version when it was created.
runtime_version: Option<String>
Optional. The Google Cloud ML runtime version to use for this deployment. If not set, Google Cloud ML will choose a version.
manual_scaling: Option<GoogleCloudMlV1__ManualScaling>
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.
auto_scaling: Option<GoogleCloudMlV1__AutoScaling>
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.
labels: Option<HashMap<String, String>>
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.
state: Option<String>
Output only. The state of a version.
etag: Option<String>
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.
last_use_time: Option<String>
Output only. The time the version was last used for prediction.
deployment_uri: Option<String>
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.
create_time: Option<String>
Output only. The time the version was created.
is_default: Option<bool>
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.
name: Option<String>
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]
impl Default for GoogleCloudMlV1__Version
fn default() -> GoogleCloudMlV1__Version
[src]
fn default() -> GoogleCloudMlV1__Version
Returns the "default value" for a type. Read more
impl Clone for GoogleCloudMlV1__Version
[src]
impl Clone for GoogleCloudMlV1__Version
fn clone(&self) -> GoogleCloudMlV1__Version
[src]
fn clone(&self) -> GoogleCloudMlV1__Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GoogleCloudMlV1__Version
[src]
impl Debug for GoogleCloudMlV1__Version
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for GoogleCloudMlV1__Version
[src]
impl RequestValue for GoogleCloudMlV1__Version
impl ResponseResult for GoogleCloudMlV1__Version
[src]
impl ResponseResult for GoogleCloudMlV1__Version
Auto Trait Implementations
impl Send for GoogleCloudMlV1__Version
impl Send for GoogleCloudMlV1__Version
impl Sync for GoogleCloudMlV1__Version
impl Sync for GoogleCloudMlV1__Version