#[non_exhaustive]pub struct UndeployModelRequest {
pub endpoint: String,
pub deployed_model_id: String,
pub traffic_split: HashMap<String, i32>,
/* private fields */
}Expand description
Request message for EndpointService.UndeployModel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: StringRequired. The name of the Endpoint resource from which to undeploy a Model.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
deployed_model_id: StringRequired. The ID of the DeployedModel to be undeployed from the Endpoint.
traffic_split: HashMap<String, i32>If this field is provided, then the Endpoint’s traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn’t have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.
Implementations§
Source§impl UndeployModelRequest
impl UndeployModelRequest
pub fn new() -> Self
Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint.
Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
Sourcepub fn set_traffic_split<T, K, V>(self, v: T) -> Self
pub fn set_traffic_split<T, K, V>(self, v: T) -> Self
Sets the value of traffic_split.
Trait Implementations§
Source§impl Clone for UndeployModelRequest
impl Clone for UndeployModelRequest
Source§fn clone(&self) -> UndeployModelRequest
fn clone(&self) -> UndeployModelRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more