[−][src]Struct google_compute1::InstanceGroupMethods
A builder providing access to all methods supported on instanceGroup resources.
It is not used directly, but through the Compute
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_compute1 as compute1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use compute1::Compute; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = Compute::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_instances(...)`, `aggregated_list(...)`, `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `list_instances(...)`, `remove_instances(...)` and `set_named_ports(...)` // to build up your call. let rb = hub.instance_groups();
Methods
impl<'a, C, A> InstanceGroupMethods<'a, C, A>
[src]
pub fn insert(
&self,
request: InstanceGroup,
project: &str,
zone: &str
) -> InstanceGroupInsertCall<'a, C, A>
[src]
&self,
request: InstanceGroup,
project: &str,
zone: &str
) -> InstanceGroupInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates an instance group in the specified project using the parameters that are included in the request.
Arguments
request
- No description provided.project
- Project ID for this request.zone
- The name of the zone where you want to create the instance group.
pub fn add_instances(
&self,
request: InstanceGroupsAddInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupAddInstanceCall<'a, C, A>
[src]
&self,
request: InstanceGroupsAddInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupAddInstanceCall<'a, C, A>
Create a builder to help you perform the following task:
Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
Arguments
request
- No description provided.project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group where you are adding instances.
pub fn remove_instances(
&self,
request: InstanceGroupsRemoveInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupRemoveInstanceCall<'a, C, A>
[src]
&self,
request: InstanceGroupsRemoveInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupRemoveInstanceCall<'a, C, A>
Create a builder to help you perform the following task:
Removes one or more instances from the specified instance group, but does not delete those instances.
If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
Arguments
request
- No description provided.project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group where the specified instances will be removed.
pub fn delete(
&self,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupDeleteCall<'a, C, A>
[src]
&self,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.
Arguments
project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group to delete.
pub fn set_named_ports(
&self,
request: InstanceGroupsSetNamedPortsRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupSetNamedPortCall<'a, C, A>
[src]
&self,
request: InstanceGroupsSetNamedPortsRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupSetNamedPortCall<'a, C, A>
Create a builder to help you perform the following task:
Sets the named ports for the specified instance group.
Arguments
request
- No description provided.project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group where the named ports are updated.
pub fn aggregated_list(
&self,
project: &str
) -> InstanceGroupAggregatedListCall<'a, C, A>
[src]
&self,
project: &str
) -> InstanceGroupAggregatedListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the list of instance groups and sorts them by zone.
Arguments
project
- Project ID for this request.
pub fn list_instances(
&self,
request: InstanceGroupsListInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupListInstanceCall<'a, C, A>
[src]
&self,
request: InstanceGroupsListInstancesRequest,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupListInstanceCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the instances in the specified instance group.
Arguments
request
- No description provided.project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group from which you want to generate a list of included instances.
pub fn get(
&self,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupGetCall<'a, C, A>
[src]
&self,
project: &str,
zone: &str,
instance_group: &str
) -> InstanceGroupGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the specified instance group. Gets a list of available instance groups by making a list() request.
Arguments
project
- Project ID for this request.zone
- The name of the zone where the instance group is located.instanceGroup
- The name of the instance group.
pub fn list(&self, project: &str, zone: &str) -> InstanceGroupListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves the list of instance groups that are located in the specified project and zone.
Arguments
project
- Project ID for this request.zone
- The name of the zone where the instance group is located.
Trait Implementations
impl<'a, C, A> MethodsBuilder for InstanceGroupMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for InstanceGroupMethods<'a, C, A>
impl<'a, C, A> Unpin for InstanceGroupMethods<'a, C, A>
impl<'a, C, A> !Sync for InstanceGroupMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for InstanceGroupMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for InstanceGroupMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,