pub struct GoogleCloudAiplatformV1DeployModelRequest {
pub traffic_split: Option<HashMap<String, i32>>,
pub deployed_model: Option<GoogleCloudAiplatformV1DeployedModel>,
}Expand description
Request message for EndpointService.DeployModel.
§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§
§traffic_split: Option<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 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 is not updated.
deployed_model: Option<GoogleCloudAiplatformV1DeployedModel>Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1DeployModelRequest
impl Clone for GoogleCloudAiplatformV1DeployModelRequest
Source§fn clone(&self) -> GoogleCloudAiplatformV1DeployModelRequest
fn clone(&self) -> GoogleCloudAiplatformV1DeployModelRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1DeployModelRequest
impl Default for GoogleCloudAiplatformV1DeployModelRequest
Source§fn default() -> GoogleCloudAiplatformV1DeployModelRequest
fn default() -> GoogleCloudAiplatformV1DeployModelRequest
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1DeployModelRequest
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1DeployModelRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudAiplatformV1DeployModelRequest
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1DeployModelRequest
impl RefUnwindSafe for GoogleCloudAiplatformV1DeployModelRequest
impl Send for GoogleCloudAiplatformV1DeployModelRequest
impl Sync for GoogleCloudAiplatformV1DeployModelRequest
impl Unpin for GoogleCloudAiplatformV1DeployModelRequest
impl UnwindSafe for GoogleCloudAiplatformV1DeployModelRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more