Struct google_api_proto::google::cloud::compute::v1::InstanceGroup
source · pub struct InstanceGroup {Show 13 fields
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub fingerprint: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub named_ports: Vec<NamedPort>,
pub network: Option<String>,
pub region: Option<String>,
pub self_link: Option<String>,
pub size: Option<i32>,
pub subnetwork: Option<String>,
pub zone: Option<String>,
}
Expand description
Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.
Fields§
§creation_timestamp: Option<String>
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
fingerprint: Option<String>
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
id: Option<u64>
[Output Only] A unique identifier for this instance group, generated by the server.
kind: Option<String>
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
name: Option<String>
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
named_ports: Vec<NamedPort>
Assigns a name to a port number. For example: {name: “http”, port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: “app1”, port: 8080}, {name: “app1”, port: 8081}, {name: “app2”, port: 8082}] Named ports apply to all instances in this instance group.
network: Option<String>
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
region: Option<String>
[Output Only] The URL of the region where the instance group is located (for regional resources).
self_link: Option<String>
[Output Only] The URL for this instance group. The server generates this URL.
size: Option<i32>
[Output Only] The total number of instances in the instance group.
subnetwork: Option<String>
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
zone: Option<String>
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
Implementations§
source§impl InstanceGroup
impl InstanceGroup
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 region(&self) -> &str
pub fn region(&self) -> &str
Returns the value of region
, or the default value if region
is unset.
sourcepub fn network(&self) -> &str
pub fn network(&self) -> &str
Returns the value of network
, or the default value if network
is unset.
sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Returns the value of fingerprint
, or the default value if fingerprint
is unset.
sourcepub fn subnetwork(&self) -> &str
pub fn subnetwork(&self) -> &str
Returns the value of subnetwork
, or the default value if subnetwork
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 InstanceGroup
impl Clone for InstanceGroup
source§fn clone(&self) -> InstanceGroup
fn clone(&self) -> InstanceGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceGroup
impl Debug for InstanceGroup
source§impl Default for InstanceGroup
impl Default for InstanceGroup
source§impl Message for InstanceGroup
impl Message for InstanceGroup
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 InstanceGroup
impl PartialEq for InstanceGroup
source§fn eq(&self, other: &InstanceGroup) -> bool
fn eq(&self, other: &InstanceGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceGroup
Auto Trait Implementations§
impl Freeze for InstanceGroup
impl RefUnwindSafe for InstanceGroup
impl Send for InstanceGroup
impl Sync for InstanceGroup
impl Unpin for InstanceGroup
impl UnwindSafe for InstanceGroup
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