pub struct InstanceGroup {Show 13 fields
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub fingerprint: Option<Vec<u8>>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub named_ports: Option<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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- add instances instance groups (none)
- aggregated list instance groups (none)
- delete instance groups (none)
- get instance groups (response)
- insert instance groups (request)
- list instance groups (none)
- list instances instance groups (none)
- remove instances instance groups (none)
- set named ports instance groups (none)
- get region instance groups (response)
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<Vec<u8>>
[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: Option<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).
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§fn default() -> InstanceGroup
fn default() -> InstanceGroup
Source§impl<'de> Deserialize<'de> for InstanceGroup
impl<'de> Deserialize<'de> for InstanceGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for InstanceGroup
impl Serialize for InstanceGroup
impl RequestValue for InstanceGroup
impl Resource for InstanceGroup
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more