Struct google_api_proto::google::cloud::aiplatform::v1beta1::resource_pool::AutoscalingSpec
source · pub struct AutoscalingSpec {
pub min_replica_count: Option<i64>,
pub max_replica_count: Option<i64>,
}
Expand description
The min/max number of replicas allowed if enabling autoscaling
Fields§
§min_replica_count: Option<i64>
Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
max_replica_count: Option<i64>
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
Implementations§
source§impl AutoscalingSpec
impl AutoscalingSpec
sourcepub fn min_replica_count(&self) -> i64
pub fn min_replica_count(&self) -> i64
Returns the value of min_replica_count
, or the default value if min_replica_count
is unset.
sourcepub fn max_replica_count(&self) -> i64
pub fn max_replica_count(&self) -> i64
Returns the value of max_replica_count
, or the default value if max_replica_count
is unset.
Trait Implementations§
source§impl Clone for AutoscalingSpec
impl Clone for AutoscalingSpec
source§fn clone(&self) -> AutoscalingSpec
fn clone(&self) -> AutoscalingSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoscalingSpec
impl Debug for AutoscalingSpec
source§impl Default for AutoscalingSpec
impl Default for AutoscalingSpec
source§impl Message for AutoscalingSpec
impl Message for AutoscalingSpec
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 AutoscalingSpec
impl PartialEq for AutoscalingSpec
source§fn eq(&self, other: &AutoscalingSpec) -> bool
fn eq(&self, other: &AutoscalingSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for AutoscalingSpec
impl StructuralPartialEq for AutoscalingSpec
Auto Trait Implementations§
impl Freeze for AutoscalingSpec
impl RefUnwindSafe for AutoscalingSpec
impl Send for AutoscalingSpec
impl Sync for AutoscalingSpec
impl Unpin for AutoscalingSpec
impl UnwindSafe for AutoscalingSpec
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