pub struct KeyTrackingService { /* private fields */ }Expand description
Implements a client for the KMS Inventory API.
§Example
let client = KeyTrackingService::builder().build().await?;
// use `client` to make requests to the KMS Inventory API.§Service Description
Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.
§Configuration
To configure KeyTrackingService use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://kmsinventory.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
KeyTrackingService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap KeyTrackingService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl KeyTrackingService
impl KeyTrackingService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for KeyTrackingService.
let client = KeyTrackingService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: KeyTrackingService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: KeyTrackingService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn get_protected_resources_summary(&self) -> GetProtectedResourcesSummary
pub fn get_protected_resources_summary(&self) -> GetProtectedResourcesSummary
Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.
Sourcepub fn search_protected_resources(&self) -> SearchProtectedResources
pub fn search_protected_resources(&self) -> SearchProtectedResources
Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization.
Trait Implementations§
Source§impl Clone for KeyTrackingService
impl Clone for KeyTrackingService
Source§fn clone(&self) -> KeyTrackingService
fn clone(&self) -> KeyTrackingService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more