Struct google_vault1::api::MatterMethods [−][src]
A builder providing access to all methods supported on matter resources.
It is not used directly, but through the Vault hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_vault1 as vault1; use std::default::Default; use oauth2; use vault1::Vault; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = Vault::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_permissions(...)`, `close(...)`, `count(...)`, `create(...)`, `delete(...)`, `exports_create(...)`, `exports_delete(...)`, `exports_get(...)`, `exports_list(...)`, `get(...)`, `holds_accounts_create(...)`, `holds_accounts_delete(...)`, `holds_accounts_list(...)`, `holds_add_held_accounts(...)`, `holds_create(...)`, `holds_delete(...)`, `holds_get(...)`, `holds_list(...)`, `holds_remove_held_accounts(...)`, `holds_update(...)`, `list(...)`, `remove_permissions(...)`, `reopen(...)`, `saved_queries_create(...)`, `saved_queries_delete(...)`, `saved_queries_get(...)`, `saved_queries_list(...)`, `undelete(...)` and `update(...)` // to build up your call. let rb = hub.matters();
Implementations
impl<'a> MatterMethods<'a>[src]
pub fn exports_create(
&self,
request: Export,
matter_id: &str
) -> MatterExportCreateCall<'a>[src]
&self,
request: Export,
matter_id: &str
) -> MatterExportCreateCall<'a>
Create a builder to help you perform the following task:
Creates an Export.
Arguments
request- No description provided.matterId- The matter ID.
pub fn exports_delete(
&self,
matter_id: &str,
export_id: &str
) -> MatterExportDeleteCall<'a>[src]
&self,
matter_id: &str,
export_id: &str
) -> MatterExportDeleteCall<'a>
Create a builder to help you perform the following task:
Deletes an Export.
Arguments
matterId- The matter ID.exportId- The export ID.
pub fn exports_get(
&self,
matter_id: &str,
export_id: &str
) -> MatterExportGetCall<'a>[src]
&self,
matter_id: &str,
export_id: &str
) -> MatterExportGetCall<'a>
Create a builder to help you perform the following task:
Gets an Export.
Arguments
matterId- The matter ID.exportId- The export ID.
pub fn exports_list(&self, matter_id: &str) -> MatterExportListCall<'a>[src]
Create a builder to help you perform the following task:
Lists Exports.
Arguments
matterId- The matter ID.
pub fn holds_accounts_create(
&self,
request: HeldAccount,
matter_id: &str,
hold_id: &str
) -> MatterHoldAccountCreateCall<'a>[src]
&self,
request: HeldAccount,
matter_id: &str,
hold_id: &str
) -> MatterHoldAccountCreateCall<'a>
Create a builder to help you perform the following task:
Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.
Arguments
request- No description provided.matterId- The matter ID.holdId- The hold ID.
pub fn holds_accounts_delete(
&self,
matter_id: &str,
hold_id: &str,
account_id: &str
) -> MatterHoldAccountDeleteCall<'a>[src]
&self,
matter_id: &str,
hold_id: &str,
account_id: &str
) -> MatterHoldAccountDeleteCall<'a>
Create a builder to help you perform the following task:
Removes a HeldAccount from a hold. If this request leaves the hold with no held accounts, the hold will not apply to any accounts.
Arguments
matterId- The matter ID.holdId- The hold ID.accountId- The ID of the account to remove from the hold.
pub fn holds_accounts_list(
&self,
matter_id: &str,
hold_id: &str
) -> MatterHoldAccountListCall<'a>[src]
&self,
matter_id: &str,
hold_id: &str
) -> MatterHoldAccountListCall<'a>
Create a builder to help you perform the following task:
Lists HeldAccounts for a hold. This will only list individually specified held accounts. If the hold is on an OU, then use Admin SDK to enumerate its members.
Arguments
matterId- The matter ID.holdId- The hold ID.
pub fn holds_add_held_accounts(
&self,
request: AddHeldAccountsRequest,
matter_id: &str,
hold_id: &str
) -> MatterHoldAddHeldAccountCall<'a>[src]
&self,
request: AddHeldAccountsRequest,
matter_id: &str,
hold_id: &str
) -> MatterHoldAddHeldAccountCall<'a>
Create a builder to help you perform the following task:
Adds HeldAccounts to a hold. Returns a list of accounts that have been successfully added. Accounts can only be added to an existing account-based hold.
Arguments
request- No description provided.matterId- The matter ID.holdId- The hold ID.
pub fn holds_create(
&self,
request: Hold,
matter_id: &str
) -> MatterHoldCreateCall<'a>[src]
&self,
request: Hold,
matter_id: &str
) -> MatterHoldCreateCall<'a>
Create a builder to help you perform the following task:
Creates a hold in the given matter.
Arguments
request- No description provided.matterId- The matter ID.
pub fn holds_delete(
&self,
matter_id: &str,
hold_id: &str
) -> MatterHoldDeleteCall<'a>[src]
&self,
matter_id: &str,
hold_id: &str
) -> MatterHoldDeleteCall<'a>
Create a builder to help you perform the following task:
Removes a hold by ID. This will release any HeldAccounts on this Hold.
Arguments
matterId- The matter ID.holdId- The hold ID.
pub fn holds_get(&self, matter_id: &str, hold_id: &str) -> MatterHoldGetCall<'a>[src]
Create a builder to help you perform the following task:
Gets a hold by ID.
Arguments
matterId- The matter ID.holdId- The hold ID.
pub fn holds_list(&self, matter_id: &str) -> MatterHoldListCall<'a>[src]
Create a builder to help you perform the following task:
Lists holds within a matter. An empty page token in ListHoldsResponse denotes no more holds to list.
Arguments
matterId- The matter ID.
pub fn holds_remove_held_accounts(
&self,
request: RemoveHeldAccountsRequest,
matter_id: &str,
hold_id: &str
) -> MatterHoldRemoveHeldAccountCall<'a>[src]
&self,
request: RemoveHeldAccountsRequest,
matter_id: &str,
hold_id: &str
) -> MatterHoldRemoveHeldAccountCall<'a>
Create a builder to help you perform the following task:
Removes HeldAccounts from a hold. Returns a list of statuses in the same order as the request. If this request leaves the hold with no held accounts, the hold will not apply to any accounts.
Arguments
request- No description provided.matterId- The matter ID.holdId- The hold ID.
pub fn holds_update(
&self,
request: Hold,
matter_id: &str,
hold_id: &str
) -> MatterHoldUpdateCall<'a>[src]
&self,
request: Hold,
matter_id: &str,
hold_id: &str
) -> MatterHoldUpdateCall<'a>
Create a builder to help you perform the following task:
Updates the OU and/or query parameters of a hold. You cannot add accounts to a hold that covers an OU, nor can you add OUs to a hold that covers individual accounts. Accounts listed in the hold will be ignored.
Arguments
request- No description provided.matterId- The matter ID.holdId- The ID of the hold.
pub fn saved_queries_create(
&self,
request: SavedQuery,
matter_id: &str
) -> MatterSavedQueryCreateCall<'a>[src]
&self,
request: SavedQuery,
matter_id: &str
) -> MatterSavedQueryCreateCall<'a>
Create a builder to help you perform the following task:
Creates a saved query.
Arguments
request- No description provided.matterId- The matter ID of the parent matter for which the saved query is to be created.
pub fn saved_queries_delete(
&self,
matter_id: &str,
saved_query_id: &str
) -> MatterSavedQueryDeleteCall<'a>[src]
&self,
matter_id: &str,
saved_query_id: &str
) -> MatterSavedQueryDeleteCall<'a>
Create a builder to help you perform the following task:
Deletes a saved query by Id.
Arguments
matterId- The matter ID of the parent matter for which the saved query is to be deleted.savedQueryId- ID of the saved query to be deleted.
pub fn saved_queries_get(
&self,
matter_id: &str,
saved_query_id: &str
) -> MatterSavedQueryGetCall<'a>[src]
&self,
matter_id: &str,
saved_query_id: &str
) -> MatterSavedQueryGetCall<'a>
Create a builder to help you perform the following task:
Retrieves a saved query by Id.
Arguments
matterId- The matter ID of the parent matter for which the saved query is to be retrieved.savedQueryId- ID of the saved query to be retrieved.
pub fn saved_queries_list(
&self,
matter_id: &str
) -> MatterSavedQueryListCall<'a>[src]
&self,
matter_id: &str
) -> MatterSavedQueryListCall<'a>
Create a builder to help you perform the following task:
Lists saved queries within a matter. An empty page token in ListSavedQueriesResponse denotes no more saved queries to list.
Arguments
matterId- The matter ID of the parent matter for which the saved queries are to be retrieved.
pub fn add_permissions(
&self,
request: AddMatterPermissionsRequest,
matter_id: &str
) -> MatterAddPermissionCall<'a>[src]
&self,
request: AddMatterPermissionsRequest,
matter_id: &str
) -> MatterAddPermissionCall<'a>
Create a builder to help you perform the following task:
Adds an account as a matter collaborator.
Arguments
request- No description provided.matterId- The matter ID.
pub fn close(
&self,
request: CloseMatterRequest,
matter_id: &str
) -> MatterCloseCall<'a>[src]
&self,
request: CloseMatterRequest,
matter_id: &str
) -> MatterCloseCall<'a>
Create a builder to help you perform the following task:
Closes the specified matter. Returns matter with updated state.
Arguments
request- No description provided.matterId- The matter ID.
pub fn count(
&self,
request: CountArtifactsRequest,
matter_id: &str
) -> MatterCountCall<'a>[src]
&self,
request: CountArtifactsRequest,
matter_id: &str
) -> MatterCountCall<'a>
Create a builder to help you perform the following task:
Counts the artifacts within the context of a matter and returns a detailed breakdown of metrics.
Arguments
request- No description provided.matterId- The matter ID.
pub fn create(&self, request: Matter) -> MatterCreateCall<'a>[src]
Create a builder to help you perform the following task:
Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
Arguments
request- No description provided.
pub fn delete(&self, matter_id: &str) -> MatterDeleteCall<'a>[src]
Create a builder to help you perform the following task:
Deletes the specified matter. Returns matter with updated state.
Arguments
matterId- The matter ID
pub fn get(&self, matter_id: &str) -> MatterGetCall<'a>[src]
Create a builder to help you perform the following task:
Gets the specified matter.
Arguments
matterId- The matter ID.
pub fn list(&self) -> MatterListCall<'a>[src]
Create a builder to help you perform the following task:
Lists matters the user has access to.
pub fn remove_permissions(
&self,
request: RemoveMatterPermissionsRequest,
matter_id: &str
) -> MatterRemovePermissionCall<'a>[src]
&self,
request: RemoveMatterPermissionsRequest,
matter_id: &str
) -> MatterRemovePermissionCall<'a>
Create a builder to help you perform the following task:
Removes an account as a matter collaborator.
Arguments
request- No description provided.matterId- The matter ID.
pub fn reopen(
&self,
request: ReopenMatterRequest,
matter_id: &str
) -> MatterReopenCall<'a>[src]
&self,
request: ReopenMatterRequest,
matter_id: &str
) -> MatterReopenCall<'a>
Create a builder to help you perform the following task:
Reopens the specified matter. Returns matter with updated state.
Arguments
request- No description provided.matterId- The matter ID.
pub fn undelete(
&self,
request: UndeleteMatterRequest,
matter_id: &str
) -> MatterUndeleteCall<'a>[src]
&self,
request: UndeleteMatterRequest,
matter_id: &str
) -> MatterUndeleteCall<'a>
Create a builder to help you perform the following task:
Undeletes the specified matter. Returns matter with updated state.
Arguments
request- No description provided.matterId- The matter ID.
pub fn update(&self, request: Matter, matter_id: &str) -> MatterUpdateCall<'a>[src]
Create a builder to help you perform the following task:
Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.
Arguments
request- No description provided.matterId- The matter ID.
Trait Implementations
impl<'a> MethodsBuilder for MatterMethods<'a>[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for MatterMethods<'a>
impl<'a> Send for MatterMethods<'a>
impl<'a> Sync for MatterMethods<'a>
impl<'a> Unpin for MatterMethods<'a>
impl<'a> !UnwindSafe for MatterMethods<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,