[][src]Struct google_compute1::RegionInstanceGroupManagerMethods

pub struct RegionInstanceGroupManagerMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on regionInstanceGroupManager 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 `abandon_instances(...)`, `delete(...)`, `delete_instances(...)`, `get(...)`, `insert(...)`, `list(...)`, `list_managed_instances(...)`, `patch(...)`, `recreate_instances(...)`, `resize(...)`, `set_instance_template(...)` and `set_target_pools(...)`
// to build up your call.
let rb = hub.region_instance_group_managers();

Methods

impl<'a, C, A> RegionInstanceGroupManagerMethods<'a, C, A>[src]

pub fn delete(
    &self,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified managed instance group and all of the instances in that group.

Arguments

  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group to delete.

pub fn delete_instances(
    &self,
    request: RegionInstanceGroupManagersDeleteInstancesRequest,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerDeleteInstanceCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method.

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 has elapsed before the VM instance is removed or deleted.

You can specify a maximum of 1000 instances with this method per request.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group.

pub fn set_instance_template(
    &self,
    request: RegionInstanceGroupManagersSetTemplateRequest,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerSetInstanceTemplateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - The name of the managed instance group.

pub fn resize(
    &self,
    project: &str,
    region: &str,
    instance_group_manager: &str,
    size: i32
) -> RegionInstanceGroupManagerResizeCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances.

The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method.

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 has elapsed before the VM instance is removed or deleted.

Arguments

  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group.
  • size - Number of instances that should exist in this instance group manager.

pub fn set_target_pools(
    &self,
    request: RegionInstanceGroupManagersSetTargetPoolsRequest,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerSetTargetPoolCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group.

pub fn insert(
    &self,
    request: InstanceGroupManager,
    project: &str,
    region: &str
) -> RegionInstanceGroupManagerInsertCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method.

A regional managed instance group can contain up to 2000 instances.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.

pub fn get(
    &self,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns all of the details about the specified managed instance group.

Arguments

  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group to return.

pub fn list_managed_instances(
    &self,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerListManagedInstanceCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances.

Arguments

  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - The name of the managed instance group.

pub fn patch(
    &self,
    request: InstanceGroupManager,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - The name of the instance group manager.

pub fn recreate_instances(
    &self,
    request: RegionInstanceGroupManagersRecreateRequest,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerRecreateInstanceCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.

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 has elapsed before the VM instance is removed or deleted.

You can specify a maximum of 1000 instances with this method per request.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group.

pub fn list(
    &self,
    project: &str,
    region: &str
) -> RegionInstanceGroupManagerListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the list of managed instance groups that are contained within the specified region.

Arguments

  • project - Project ID for this request.
  • region - Name of the region scoping this request.

pub fn abandon_instances(
    &self,
    request: RegionInstanceGroupManagersAbandonInstancesRequest,
    project: &str,
    region: &str,
    instance_group_manager: &str
) -> RegionInstanceGroupManagerAbandonInstanceCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method.

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 has elapsed before the VM instance is removed or deleted.

You can specify a maximum of 1000 instances with this method per request.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • region - Name of the region scoping this request.
  • instanceGroupManager - Name of the managed instance group.

Trait Implementations

Auto Trait Implementations

impl<'a, C, A> !Send for RegionInstanceGroupManagerMethods<'a, C, A>

impl<'a, C, A> Unpin for RegionInstanceGroupManagerMethods<'a, C, A>

impl<'a, C, A> !Sync for RegionInstanceGroupManagerMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for RegionInstanceGroupManagerMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for RegionInstanceGroupManagerMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.