[−][src]Struct google_compute1::TargetPoolMethods
A builder providing access to all methods supported on targetPool 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_health_check(...)`, `add_instance(...)`, `aggregated_list(...)`, `delete(...)`, `get(...)`, `get_health(...)`, `insert(...)`, `list(...)`, `remove_health_check(...)`, `remove_instance(...)` and `set_backup(...)` // to build up your call. let rb = hub.target_pools();
Methods
impl<'a, C, A> TargetPoolMethods<'a, C, A>
[src]
pub fn remove_health_check(
&self,
request: TargetPoolsRemoveHealthCheckRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolRemoveHealthCheckCall<'a, C, A>
[src]
&self,
request: TargetPoolsRemoveHealthCheckRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolRemoveHealthCheckCall<'a, C, A>
Create a builder to help you perform the following task:
Removes health check URL from a target pool.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region for this request.targetPool
- Name of the target pool to remove health checks from.
pub fn aggregated_list(
&self,
project: &str
) -> TargetPoolAggregatedListCall<'a, C, A>
[src]
&self,
project: &str
) -> TargetPoolAggregatedListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves an aggregated list of target pools.
Arguments
project
- Project ID for this request.
pub fn set_backup(
&self,
request: TargetReference,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolSetBackupCall<'a, C, A>
[src]
&self,
request: TargetReference,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolSetBackupCall<'a, C, A>
Create a builder to help you perform the following task:
Changes a backup target pool's configurations.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to set a backup pool for.
pub fn add_instance(
&self,
request: TargetPoolsAddInstanceRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolAddInstanceCall<'a, C, A>
[src]
&self,
request: TargetPoolsAddInstanceRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolAddInstanceCall<'a, C, A>
Create a builder to help you perform the following task:
Adds an instance to a target pool.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to add instances to.
pub fn list(&self, project: &str, region: &str) -> TargetPoolListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves a list of target pools available to the specified project and region.
Arguments
project
- Project ID for this request.region
- Name of the region scoping this request.
pub fn add_health_check(
&self,
request: TargetPoolsAddHealthCheckRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolAddHealthCheckCall<'a, C, A>
[src]
&self,
request: TargetPoolsAddHealthCheckRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolAddHealthCheckCall<'a, C, A>
Create a builder to help you perform the following task:
Adds health check URLs to a target pool.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the target pool to add a health check to.
pub fn insert(
&self,
request: TargetPool,
project: &str,
region: &str
) -> TargetPoolInsertCall<'a, C, A>
[src]
&self,
request: TargetPool,
project: &str,
region: &str
) -> TargetPoolInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a target pool in the specified project and region using the data included in the request.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.
pub fn get_health(
&self,
request: InstanceReference,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolGetHealthCall<'a, C, A>
[src]
&self,
request: InstanceReference,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolGetHealthCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to which the queried instance belongs.
pub fn get(
&self,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolGetCall<'a, C, A>
[src]
&self,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the specified target pool. Gets a list of available target pools by making a list() request.
Arguments
project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to return.
pub fn remove_instance(
&self,
request: TargetPoolsRemoveInstanceRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolRemoveInstanceCall<'a, C, A>
[src]
&self,
request: TargetPoolsRemoveInstanceRequest,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolRemoveInstanceCall<'a, C, A>
Create a builder to help you perform the following task:
Removes instance URL from a target pool.
Arguments
request
- No description provided.project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to remove instances from.
pub fn delete(
&self,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolDeleteCall<'a, C, A>
[src]
&self,
project: &str,
region: &str,
target_pool: &str
) -> TargetPoolDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified target pool.
Arguments
project
- Project ID for this request.region
- Name of the region scoping this request.targetPool
- Name of the TargetPool resource to delete.
Trait Implementations
impl<'a, C, A> MethodsBuilder for TargetPoolMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for TargetPoolMethods<'a, C, A>
impl<'a, C, A> Unpin for TargetPoolMethods<'a, C, A>
impl<'a, C, A> !Sync for TargetPoolMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for TargetPoolMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for TargetPoolMethods<'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,