pub struct ArchiveRetentionClient { /* private fields */ }
Expand description
The Archive Retention API client. Read more at https://coralogix.com/docs/archive-retention/
Implementations§
source§impl ArchiveRetentionClient
impl ArchiveRetentionClient
sourcepub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
pub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
Creates a new client for the Archive Retention API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn get(&self) -> Result<GetRetentionsResponse>
pub async fn get(&self) -> Result<GetRetentionsResponse>
Retrieves the retention settings for a tenant.
sourcepub async fn get_enabled(&self) -> Result<GetRetentionsEnabledResponse>
pub async fn get_enabled(&self) -> Result<GetRetentionsEnabledResponse>
Retrieves the enabled retention settings for a tenant.
sourcepub async fn update(
&self,
retention_update_elements: Vec<RetentionUpdateElement>,
) -> Result<UpdateRetentionsResponse>
pub async fn update( &self, retention_update_elements: Vec<RetentionUpdateElement>, ) -> Result<UpdateRetentionsResponse>
Updates the retention settings for a tenant.
sourcepub async fn activate(&self) -> Result<ActivateRetentionsResponse>
pub async fn activate(&self) -> Result<ActivateRetentionsResponse>
Activates all archive retentions
Auto Trait Implementations§
impl !Freeze for ArchiveRetentionClient
impl !RefUnwindSafe for ArchiveRetentionClient
impl Send for ArchiveRetentionClient
impl Sync for ArchiveRetentionClient
impl Unpin for ArchiveRetentionClient
impl !UnwindSafe for ArchiveRetentionClient
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request