Struct gapi_grpc::google::cloud::aiplatform::v1beta1::DeployModelRequest[][src]

pub struct DeployModelRequest {
    pub endpoint: String,
    pub deployed_model: Option<DeployedModel>,
    pub traffic_split: HashMap<String, i32>,
}

Request message for [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel].

Fields

endpoint: String

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

deployed_model: Option<DeployedModel>

Required. The DeployedModel to be created within the Endpoint. Note that [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint].

traffic_split: HashMap<String, i32>

A map from a DeployedModel’s ID to the percentage of this Endpoint’s traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint’s [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] will be overwritten with it. To refer to the ID of the just being deployed Model, a “0” should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint’s [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] is not updated.

Trait Implementations

impl Clone for DeployModelRequest[src]

impl Debug for DeployModelRequest[src]

impl Default for DeployModelRequest[src]

impl Message for DeployModelRequest[src]

impl PartialEq<DeployModelRequest> for DeployModelRequest[src]

impl StructuralPartialEq for DeployModelRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for DeployModelRequest

impl Send for DeployModelRequest

impl Sync for DeployModelRequest

impl Unpin for DeployModelRequest

impl UnwindSafe for DeployModelRequest

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]