[][src]Struct gcp_client::google::cloud::ml::v1::Version

pub struct Version {
    pub name: String,
    pub description: String,
    pub is_default: bool,
    pub deployment_uri: String,
    pub create_time: Option<Timestamp>,
    pub last_use_time: Option<Timestamp>,
    pub runtime_version: String,
    pub manual_scaling: Option<ManualScaling>,
}

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.

Fields

name: 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.

description: String

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

is_default: 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.

deployment_uri: String

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

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.

create_time: Option<Timestamp>

Output only. The time the version was created.

last_use_time: Option<Timestamp>

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

runtime_version: 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<ManualScaling>

Optional. Manually select the number of nodes to use for serving the model. If unset (i.e., by default), the number of nodes used to serve the model automatically scales with traffic. However, care should be taken to ramp up traffic according to the model's ability to scale. If your model needs to handle bursts of traffic beyond it's ability to scale, it is recommended you set this field appropriately.

Trait Implementations

impl Clone for Version[src]

impl Debug for Version[src]

impl Default for Version[src]

impl Message for Version[src]

impl PartialEq<Version> for Version[src]

impl StructuralPartialEq for Version[src]

Auto Trait Implementations

impl RefUnwindSafe for Version

impl Send for Version

impl Sync for Version

impl Unpin for Version

impl UnwindSafe for Version

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]