Struct google_autoscaler1_beta2::AutoscalerMethods
[−]
[src]
pub struct AutoscalerMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }
A builder providing access to all methods supported on autoscaler resources.
It is not used directly, but through the AutoscalerHub
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate yup_oauth2 as oauth2; extern crate google_autoscaler1_beta2 as autoscaler1_beta2; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use autoscaler1_beta2::AutoscalerHub; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::new(), <MemoryStorage as Default>::default(), None); let mut hub = AutoscalerHub::new(hyper::Client::new(), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.autoscalers();
Methods
impl<'a, C, A> AutoscalerMethods<'a, C, A>
[src]
fn list(&self, project: &str, zone: &str) -> AutoscalerListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all Autoscaler resources in this zone.
Arguments
project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.
fn update(&self,
request: Autoscaler,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerUpdateCall<'a, C, A>
request: Autoscaler,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Update the entire content of the Autoscaler resource.
Arguments
request
- No description provided.project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.autoscaler
- Name of the Autoscaler resource.
fn patch(&self,
request: Autoscaler,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerPatchCall<'a, C, A>
request: Autoscaler,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Update the entire content of the Autoscaler resource. This method supports patch semantics.
Arguments
request
- No description provided.project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.autoscaler
- Name of the Autoscaler resource.
fn delete(&self,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerDeleteCall<'a, C, A>
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified Autoscaler resource.
Arguments
project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.autoscaler
- Name of the Autoscaler resource.
fn insert(&self,
request: Autoscaler,
project: &str,
zone: &str)
-> AutoscalerInsertCall<'a, C, A>
request: Autoscaler,
project: &str,
zone: &str)
-> AutoscalerInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Adds new Autoscaler resource.
Arguments
request
- No description provided.project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.
fn get(&self,
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerGetCall<'a, C, A>
project: &str,
zone: &str,
autoscaler: &str)
-> AutoscalerGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the specified Autoscaler resource.
Arguments
project
- Project ID of Autoscaler resource.zone
- Zone name of Autoscaler resource.autoscaler
- Name of the Autoscaler resource.