Struct google_cloudresourcemanager1::LienMethods
[−]
[src]
pub struct LienMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on lien resources.
It is not used directly, but through the CloudResourceManager
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_cloudresourcemanager1 as cloudresourcemanager1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use cloudresourcemanager1::CloudResourceManager; 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 = CloudResourceManager::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 `create(...)`, `delete(...)` and `list(...)` // to build up your call. let rb = hub.liens();
Methods
impl<'a, C, A> LienMethods<'a, C, A>
[src]
fn create(&self, request: Lien) -> LienCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Create a Lien which applies to the resource denoted by the parent
field.
Callers of this method will require permission on the parent
resource.
For example, applying to projects/1234
requires permission
resourcemanager.projects.updateLiens
.
NOTE: Some resources may limit the number of Liens which may be applied.
Arguments
request
- No description provided.
fn delete(&self, name: &str) -> LienDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Delete a Lien by name
.
Callers of this method will require permission on the parent
resource.
For example, a Lien with a parent
of projects/1234
requires permission
resourcemanager.projects.updateLiens
.
Arguments
name
- The name/identifier of the Lien to delete.
fn list(&self) -> LienListCall<'a, C, A>
Create a builder to help you perform the following task:
List all Liens applied to the parent
resource.
Callers of this method will require permission on the parent
resource.
For example, a Lien with a parent
of projects/1234
requires permission
resourcemanager.projects.get
.