pub struct RegionNetworkEndpointGroupMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on regionNetworkEndpointGroup 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 google_compute1 as compute1;
use std::default::Default;
use compute1::{Compute, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Compute::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `attach_network_endpoints(...)`, `delete(...)`, `detach_network_endpoints(...)`, `get(...)`, `insert(...)`, `list(...)` and `list_network_endpoints(...)`
// to build up your call.
let rb = hub.region_network_endpoint_groups();
Implementations§
source§impl<'a, S> RegionNetworkEndpointGroupMethods<'a, S>
impl<'a, S> RegionNetworkEndpointGroupMethods<'a, S>
sourcepub fn attach_network_endpoints(
&self,
request: RegionNetworkEndpointGroupsAttachEndpointsRequest,
project: &str,
region: &str,
network_endpoint_group: &str
) -> RegionNetworkEndpointGroupAttachNetworkEndpointCall<'a, S>
pub fn attach_network_endpoints( &self, request: RegionNetworkEndpointGroupsAttachEndpointsRequest, project: &str, region: &str, network_endpoint_group: &str ) -> RegionNetworkEndpointGroupAttachNetworkEndpointCall<'a, S>
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.region
- The name of the region where you want to create the network endpoint group. 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.
sourcepub fn delete(
&self,
project: &str,
region: &str,
network_endpoint_group: &str
) -> RegionNetworkEndpointGroupDeleteCall<'a, S>
pub fn delete( &self, project: &str, region: &str, network_endpoint_group: &str ) -> RegionNetworkEndpointGroupDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.
§Arguments
project
- Project ID for this request.region
- The name of the region 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.
sourcepub fn detach_network_endpoints(
&self,
request: RegionNetworkEndpointGroupsDetachEndpointsRequest,
project: &str,
region: &str,
network_endpoint_group: &str
) -> RegionNetworkEndpointGroupDetachNetworkEndpointCall<'a, S>
pub fn detach_network_endpoints( &self, request: RegionNetworkEndpointGroupsDetachEndpointsRequest, project: &str, region: &str, network_endpoint_group: &str ) -> RegionNetworkEndpointGroupDetachNetworkEndpointCall<'a, S>
Create a builder to help you perform the following task:
Detach the network endpoint from the specified network endpoint group.
§Arguments
request
- No description provided.project
- Project ID for this request.region
- The name of the region where the network endpoint group is located. It should comply with RFC1035.networkEndpointGroup
- The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035.
sourcepub fn get(
&self,
project: &str,
region: &str,
network_endpoint_group: &str
) -> RegionNetworkEndpointGroupGetCall<'a, S>
pub fn get( &self, project: &str, region: &str, network_endpoint_group: &str ) -> RegionNetworkEndpointGroupGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the specified network endpoint group.
§Arguments
project
- Project ID for this request.region
- The name of the region 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.
sourcepub fn insert(
&self,
request: NetworkEndpointGroup,
project: &str,
region: &str
) -> RegionNetworkEndpointGroupInsertCall<'a, S>
pub fn insert( &self, request: NetworkEndpointGroup, project: &str, region: &str ) -> RegionNetworkEndpointGroupInsertCall<'a, S>
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.region
- The name of the region where you want to create the network endpoint group. It should comply with RFC1035.
sourcepub fn list(
&self,
project: &str,
region: &str
) -> RegionNetworkEndpointGroupListCall<'a, S>
pub fn list( &self, project: &str, region: &str ) -> RegionNetworkEndpointGroupListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the list of regional network endpoint groups available to the specified project in the given region.
§Arguments
project
- Project ID for this request.region
- The name of the region where the network endpoint group is located. It should comply with RFC1035.
sourcepub fn list_network_endpoints(
&self,
project: &str,
region: &str,
network_endpoint_group: &str
) -> RegionNetworkEndpointGroupListNetworkEndpointCall<'a, S>
pub fn list_network_endpoints( &self, project: &str, region: &str, network_endpoint_group: &str ) -> RegionNetworkEndpointGroupListNetworkEndpointCall<'a, S>
Create a builder to help you perform the following task:
Lists the network endpoints in the specified network endpoint group.
§Arguments
project
- Project ID for this request.region
- The name of the region 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.