pub struct ExtensionsClient { /* private fields */ }
Expand description
The Actions API client. Read more at https://coralogix.com/docs/coralogix-action-extension/
Implementations§
Source§impl ExtensionsClient
impl ExtensionsClient
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 Extensions API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
Sourcepub async fn get_all(
&self,
filter: Option<ExtensionFilter>,
include_hidden_extensions: bool,
) -> Result<GetAllExtensionsResponse>
pub async fn get_all( &self, filter: Option<ExtensionFilter>, include_hidden_extensions: bool, ) -> Result<GetAllExtensionsResponse>
Get all extensions
§Arguments
filter
- TheExtensionFilter
used to filter the extensions.include_hidden_extensions
- Whether to include hidden extensions.
Sourcepub async fn get(&self, id: String) -> Result<GetExtensionResponse>
pub async fn get(&self, id: String) -> Result<GetExtensionResponse>
Sourcepub async fn get_deployed(&self) -> Result<GetDeployedExtensionsResponse>
pub async fn get_deployed(&self) -> Result<GetDeployedExtensionsResponse>
Get all deplyoyed extensions
Sourcepub async fn deploy(
&self,
id: String,
version: String,
applications: Vec<String>,
subsystems: Vec<String>,
item_ids: Vec<String>,
extension_deployment: Option<ExtensionDeployment>,
) -> Result<DeployExtensionResponse>
pub async fn deploy( &self, id: String, version: String, applications: Vec<String>, subsystems: Vec<String>, item_ids: Vec<String>, extension_deployment: Option<ExtensionDeployment>, ) -> Result<DeployExtensionResponse>
Deploy an extension
§Arguments
id
- The ID of the extension to deploy.version
- The version of the extension to deploy.applications
- The applications to deploy the extension to.subsystems
- The subsystems to deploy the extension to.item_ids
- The item IDs to deploy the extension to.extension_deployment
- The extension deployment to deploy.extension_deployment
- The extension deployment to deploy.extension_deployment
- The extension deployment to deploy.
Sourcepub async fn undeploy(
&self,
id: String,
kept_extension_items: Vec<String>,
) -> Result<UndeployExtensionResponse>
pub async fn undeploy( &self, id: String, kept_extension_items: Vec<String>, ) -> Result<UndeployExtensionResponse>
Undeploy an extension
§Arguments
id
- The ID of the extension to undeploy.kept_extension_items
- The extension items to keep.
Sourcepub async fn update(
&self,
id: String,
version: String,
item_ids: Vec<String>,
applications: Vec<String>,
subsystems: Vec<String>,
extension_deployment: Option<ExtensionDeployment>,
) -> Result<UpdateExtensionResponse>
pub async fn update( &self, id: String, version: String, item_ids: Vec<String>, applications: Vec<String>, subsystems: Vec<String>, extension_deployment: Option<ExtensionDeployment>, ) -> Result<UpdateExtensionResponse>
Update a deployed extension
§Arguments
id
- The ID of the extension to update.version
- The version of the extension to update.item_ids
- The item IDs to update the extension to.applications
- The applications to update the extension to.subsystems
- The subsystems to update the extension to.extension_deployment
- The extension deployment to update.
Auto Trait Implementations§
impl !Freeze for ExtensionsClient
impl !RefUnwindSafe for ExtensionsClient
impl Send for ExtensionsClient
impl Sync for ExtensionsClient
impl Unpin for ExtensionsClient
impl !UnwindSafe for ExtensionsClient
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