pub struct LienMethods<'a, C>where
C: '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_cloudresourcemanager1 as cloudresourcemanager1;
use cloudresourcemanager1::{CloudResourceManager, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = CloudResourceManager::new(client, 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, C> LienMethods<'a, C>
impl<'a, C> LienMethods<'a, C>
Sourcepub fn create(&self, request: Lien) -> LienCreateCall<'a, C>
pub fn create(&self, request: Lien) -> LienCreateCall<'a, C>
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, C>
pub fn delete(&self, name: &str) -> LienDeleteCall<'a, C>
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, C>
pub fn get(&self, name: &str) -> LienGetCall<'a, C>
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, C>
pub fn list(&self) -> LienListCall<'a, C>
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.