[][src]Struct google_compute1::NetworkEndpointGroupMethods

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

A builder providing access to all methods supported on networkEndpointGroup 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 `aggregated_list(...)`, `attach_network_endpoints(...)`, `delete(...)`, `detach_network_endpoints(...)`, `get(...)`, `insert(...)`, `list(...)`, `list_network_endpoints(...)` and `test_iam_permissions(...)`
// to build up your call.
let rb = hub.network_endpoint_groups();

Methods

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

pub fn delete(
    &self,
    project: &str,
    zone: &str,
    network_endpoint_group: &str
) -> NetworkEndpointGroupDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.

Arguments

  • project - Project ID for this request.
  • zone - The name of the zone where the network endpoint group is located. It should comply with RFC1035.
  • networkEndpointGroup - The name of the network endpoint group to delete. It should comply with RFC1035.

pub fn detach_network_endpoints(
    &self,
    request: NetworkEndpointGroupsDetachEndpointsRequest,
    project: &str,
    zone: &str,
    network_endpoint_group: &str
) -> NetworkEndpointGroupDetachNetworkEndpointCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Detach a list of network endpoints from the specified network endpoint group.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • zone - The name of the zone where the network endpoint group is located. It should comply with RFC1035.
  • networkEndpointGroup - The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.

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

Create a builder to help you perform the following task:

Retrieves the list of network endpoint 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 network endpoint group is located. It should comply with RFC1035.

pub fn insert(
    &self,
    request: NetworkEndpointGroup,
    project: &str,
    zone: &str
) -> NetworkEndpointGroupInsertCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a network endpoint 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 network endpoint group. It should comply with RFC1035.

pub fn test_iam_permissions(
    &self,
    request: TestPermissionsRequest,
    project: &str,
    zone: &str,
    resource: &str
) -> NetworkEndpointGroupTestIamPermissionCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns permissions that a caller has on the specified resource.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • zone - The name of the zone for this request.
  • resource - Name or id of the resource for this request.

pub fn attach_network_endpoints(
    &self,
    request: NetworkEndpointGroupsAttachEndpointsRequest,
    project: &str,
    zone: &str,
    network_endpoint_group: &str
) -> NetworkEndpointGroupAttachNetworkEndpointCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Attach a list of network endpoints to the specified network endpoint group.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • zone - The name of the zone where the network endpoint group is located. It should comply with RFC1035.
  • networkEndpointGroup - The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.

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

Create a builder to help you perform the following task:

Retrieves the list of network endpoint groups and sorts them by zone.

Arguments

  • project - Project ID for this request.

pub fn list_network_endpoints(
    &self,
    request: NetworkEndpointGroupsListEndpointsRequest,
    project: &str,
    zone: &str,
    network_endpoint_group: &str
) -> NetworkEndpointGroupListNetworkEndpointCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists the network endpoints in the specified network endpoint group.

Arguments

  • request - No description provided.
  • project - Project ID for this request.
  • zone - The name of the zone where the network endpoint group is located. It should comply with RFC1035.
  • networkEndpointGroup - The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.

pub fn get(
    &self,
    project: &str,
    zone: &str,
    network_endpoint_group: &str
) -> NetworkEndpointGroupGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.

Arguments

  • project - Project ID for this request.
  • zone - The name of the zone where the network endpoint group is located. It should comply with RFC1035.
  • networkEndpointGroup - The name of the network endpoint group. It should comply with RFC1035.

Trait Implementations

Auto Trait Implementations

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

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

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

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

impl<'a, C, A> !RefUnwindSafe for NetworkEndpointGroupMethods<'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.