Struct google_cloudresourcemanager3::api::LienMethods
source · pub struct LienMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
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 google_cloudresourcemanager3 as cloudresourcemanager3;
use std::default::Default;
use cloudresourcemanager3::{CloudResourceManager, 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 = CloudResourceManager::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 `create(...)`, `delete(...)`, `get(...)` and `list(...)`
// to build up your call.
let rb = hub.liens();
Implementations§
source§impl<'a, S> LienMethods<'a, S>
impl<'a, S> LienMethods<'a, S>
sourcepub fn create(&self, request: Lien) -> LienCreateCall<'a, S>
pub fn create(&self, request: Lien) -> LienCreateCall<'a, S>
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.
sourcepub fn delete(&self, name: &str) -> LienDeleteCall<'a, S>
pub fn delete(&self, name: &str) -> LienDeleteCall<'a, S>
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
- Required. The name/identifier of the Lien to delete.
sourcepub fn get(&self, name: &str) -> LienGetCall<'a, S>
pub fn get(&self, name: &str) -> LienGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieve 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.get
§Arguments
name
- Required. The name/identifier of the Lien.
sourcepub fn list(&self) -> LienListCall<'a, S>
pub fn list(&self) -> LienListCall<'a, S>
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
.