pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Storage
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_storage1 as storage1;
use storage1::{Storage, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).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_http1()
.build()
);
let mut hub = Storage::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `hmac_keys_create(...)`, `hmac_keys_delete(...)`, `hmac_keys_get(...)`, `hmac_keys_list(...)`, `hmac_keys_update(...)` and `service_account_get(...)`
// to build up your call.
let rb = hub.projects();
Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn hmac_keys_create(
&self,
project_id: &str,
service_account_email: &str,
) -> ProjectHmacKeyCreateCall<'a, C>
pub fn hmac_keys_create( &self, project_id: &str, service_account_email: &str, ) -> ProjectHmacKeyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new HMAC key for the specified service account.
§Arguments
projectId
- Project ID owning the service account.serviceAccountEmail
- Email address of the service account.
Sourcepub fn hmac_keys_delete(
&self,
project_id: &str,
access_id: &str,
) -> ProjectHmacKeyDeleteCall<'a, C>
pub fn hmac_keys_delete( &self, project_id: &str, access_id: &str, ) -> ProjectHmacKeyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an HMAC key.
§Arguments
projectId
- Project ID owning the requested keyaccessId
- Name of the HMAC key to be deleted.
Sourcepub fn hmac_keys_get(
&self,
project_id: &str,
access_id: &str,
) -> ProjectHmacKeyGetCall<'a, C>
pub fn hmac_keys_get( &self, project_id: &str, access_id: &str, ) -> ProjectHmacKeyGetCall<'a, C>
Create a builder to help you perform the following task:
Retrieves an HMAC key’s metadata
§Arguments
projectId
- Project ID owning the service account of the requested key.accessId
- Name of the HMAC key.
Sourcepub fn hmac_keys_list(&self, project_id: &str) -> ProjectHmacKeyListCall<'a, C>
pub fn hmac_keys_list(&self, project_id: &str) -> ProjectHmacKeyListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of HMAC keys matching the criteria.
§Arguments
projectId
- Name of the project in which to look for HMAC keys.
Sourcepub fn hmac_keys_update(
&self,
request: HmacKeyMetadata,
project_id: &str,
access_id: &str,
) -> ProjectHmacKeyUpdateCall<'a, C>
pub fn hmac_keys_update( &self, request: HmacKeyMetadata, project_id: &str, access_id: &str, ) -> ProjectHmacKeyUpdateCall<'a, C>
Create a builder to help you perform the following task:
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.
§Arguments
request
- No description provided.projectId
- Project ID owning the service account of the updated key.accessId
- Name of the HMAC key being updated.
Sourcepub fn service_account_get(
&self,
project_id: &str,
) -> ProjectServiceAccountGetCall<'a, C>
pub fn service_account_get( &self, project_id: &str, ) -> ProjectServiceAccountGetCall<'a, C>
Create a builder to help you perform the following task:
Get the email address of this project’s Google Cloud Storage service account.
§Arguments
projectId
- Project ID
Trait Implementations§
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ProjectMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>
impl<'a, C> Send for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ProjectMethods<'a, C>
impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more