pub struct ResourcePolicyInstanceSchedulePolicy {
pub expiration_time: Option<String>,
pub start_time: Option<String>,
pub time_zone: Option<String>,
pub vm_start_schedule: Option<ResourcePolicyInstanceSchedulePolicySchedule>,
pub vm_stop_schedule: Option<ResourcePolicyInstanceSchedulePolicySchedule>,
}
Expand description
An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
Fields§
§expiration_time: Option<String>
The expiration time of the schedule. The timestamp is an RFC3339 string.
start_time: Option<String>
The start time of the schedule. The timestamp is an RFC3339 string.
time_zone: Option<String>
Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
vm_start_schedule: Option<ResourcePolicyInstanceSchedulePolicySchedule>
Specifies the schedule for starting instances.
vm_stop_schedule: Option<ResourcePolicyInstanceSchedulePolicySchedule>
Specifies the schedule for stopping instances.
Implementations§
source§impl ResourcePolicyInstanceSchedulePolicy
impl ResourcePolicyInstanceSchedulePolicy
sourcepub fn time_zone(&self) -> &str
pub fn time_zone(&self) -> &str
Returns the value of time_zone
, or the default value if time_zone
is unset.
sourcepub fn start_time(&self) -> &str
pub fn start_time(&self) -> &str
Returns the value of start_time
, or the default value if start_time
is unset.
sourcepub fn expiration_time(&self) -> &str
pub fn expiration_time(&self) -> &str
Returns the value of expiration_time
, or the default value if expiration_time
is unset.
Trait Implementations§
source§impl Clone for ResourcePolicyInstanceSchedulePolicy
impl Clone for ResourcePolicyInstanceSchedulePolicy
source§fn clone(&self) -> ResourcePolicyInstanceSchedulePolicy
fn clone(&self) -> ResourcePolicyInstanceSchedulePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for ResourcePolicyInstanceSchedulePolicy
impl Message for ResourcePolicyInstanceSchedulePolicy
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 ResourcePolicyInstanceSchedulePolicy
impl PartialEq for ResourcePolicyInstanceSchedulePolicy
source§fn eq(&self, other: &ResourcePolicyInstanceSchedulePolicy) -> bool
fn eq(&self, other: &ResourcePolicyInstanceSchedulePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourcePolicyInstanceSchedulePolicy
Auto Trait Implementations§
impl Freeze for ResourcePolicyInstanceSchedulePolicy
impl RefUnwindSafe for ResourcePolicyInstanceSchedulePolicy
impl Send for ResourcePolicyInstanceSchedulePolicy
impl Sync for ResourcePolicyInstanceSchedulePolicy
impl Unpin for ResourcePolicyInstanceSchedulePolicy
impl UnwindSafe for ResourcePolicyInstanceSchedulePolicy
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