Struct google_api_proto::google::cloud::compute::v1::InstanceGroupManagerResizeRequest
source · pub struct InstanceGroupManagerResizeRequest {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub requested_run_duration: Option<Duration>,
pub resize_by: Option<i32>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
pub state: Option<String>,
pub status: Option<InstanceGroupManagerResizeRequestStatus>,
pub zone: Option<String>,
}
Expand description
InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager.
Fields§
§creation_timestamp: Option<String>
[Output Only] The creation timestamp for this resize request in RFC3339 text format.
description: Option<String>
An optional description of this resource.
id: Option<u64>
[Output Only] A unique identifier for this resource type. The server generates this identifier.
kind: Option<String>
[Output Only] The resource type, which is always compute#instanceGroupManagerResizeRequest for resize requests.
name: Option<String>
The name of this resize request. The name must be 1-63 characters long, and comply with RFC1035.
requested_run_duration: Option<Duration>
Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.
resize_by: Option<i32>
The number of instances to be created by this resize request. The group’s target size will be increased by this number.
self_link: Option<String>
[Output Only] The URL for this resize request. The server defines this URL.
self_link_with_id: Option<String>
[Output Only] Server-defined URL for this resource with the resource id.
state: Option<String>
[Output only] Current state of the request. Check the State enum for the list of possible values.
status: Option<InstanceGroupManagerResizeRequestStatus>
[Output only] Status of the request.
zone: Option<String>
[Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests.
Implementations§
source§impl InstanceGroupManagerResizeRequest
impl InstanceGroupManagerResizeRequest
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn self_link_with_id(&self) -> &str
pub fn self_link_with_id(&self) -> &str
Returns the value of self_link_with_id
, or the default value if self_link_with_id
is unset.
sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state
, or the default value if state
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for InstanceGroupManagerResizeRequest
impl Clone for InstanceGroupManagerResizeRequest
source§fn clone(&self) -> InstanceGroupManagerResizeRequest
fn clone(&self) -> InstanceGroupManagerResizeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for InstanceGroupManagerResizeRequest
impl Message for InstanceGroupManagerResizeRequest
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 InstanceGroupManagerResizeRequest
impl PartialEq for InstanceGroupManagerResizeRequest
source§fn eq(&self, other: &InstanceGroupManagerResizeRequest) -> bool
fn eq(&self, other: &InstanceGroupManagerResizeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceGroupManagerResizeRequest
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerResizeRequest
impl RefUnwindSafe for InstanceGroupManagerResizeRequest
impl Send for InstanceGroupManagerResizeRequest
impl Sync for InstanceGroupManagerResizeRequest
impl Unpin for InstanceGroupManagerResizeRequest
impl UnwindSafe for InstanceGroupManagerResizeRequest
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