Struct google_api_proto::google::cloud::aiplatform::v1beta1::UndeployModelRequest
source · pub struct UndeployModelRequest {
pub endpoint: String,
pub deployed_model_id: String,
pub traffic_split: BTreeMap<String, i32>,
}
Expand description
Request message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel].
Fields§
§endpoint: String
Required. The name of the Endpoint resource from which to undeploy a Model.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
deployed_model_id: String
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
traffic_split: BTreeMap<String, i32>
If this field is provided, then the Endpoint’s [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.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.
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 moresource§impl Debug for UndeployModelRequest
impl Debug for UndeployModelRequest
source§impl Default for UndeployModelRequest
impl Default for UndeployModelRequest
source§impl Message for UndeployModelRequest
impl Message for UndeployModelRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UndeployModelRequest
impl PartialEq for UndeployModelRequest
source§fn eq(&self, other: &UndeployModelRequest) -> bool
fn eq(&self, other: &UndeployModelRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UndeployModelRequest
Auto Trait Implementations§
impl Freeze for UndeployModelRequest
impl RefUnwindSafe for UndeployModelRequest
impl Send for UndeployModelRequest
impl Sync for UndeployModelRequest
impl Unpin for UndeployModelRequest
impl UnwindSafe for UndeployModelRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request