pub struct SamlClient { /* private fields */ }
Expand description
A client for the SAML Configuration API. Read more at https://coralogix.com/docs/slo-management-api/
Implementations§
source§impl SamlClient
impl SamlClient
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 SAML Configuration.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn get_sp_parameters(
&self,
team_id: u32,
) -> Result<GetSpParametersResponse>
pub async fn get_sp_parameters( &self, team_id: u32, ) -> Result<GetSpParametersResponse>
Retrieves the SP parameters for a given team.
§Arguments
team_id
- The ID of the team to retrieve parameters for.
sourcepub async fn set_idp_parameters(
&self,
team_id: u32,
idp_parameters: Option<IdpParameters>,
) -> Result<()>
pub async fn set_idp_parameters( &self, team_id: u32, idp_parameters: Option<IdpParameters>, ) -> Result<()>
Sets the IDP parameters for a given team.
§Arguments
team_id
- The ID of the team to set parameters for.idp_parameters
- TheIdpParameters
to set.
sourcepub async fn set_active(&self, team_id: u32, is_active: bool) -> Result<()>
pub async fn set_active(&self, team_id: u32, is_active: bool) -> Result<()>
Sets the active status for a given team.
§Arguments
team_id
- The ID of the team to set the active status for.is_active
- The active status to set.
sourcepub async fn get_configuration(
&self,
team_id: u32,
) -> Result<GetConfigurationResponse>
pub async fn get_configuration( &self, team_id: u32, ) -> Result<GetConfigurationResponse>
Retrieves the configuration for a given team.
§Arguments
team_id
- The ID of the team to retrieve the configuration for.
Auto Trait Implementations§
impl !Freeze for SamlClient
impl !RefUnwindSafe for SamlClient
impl Send for SamlClient
impl Sync for SamlClient
impl Unpin for SamlClient
impl !UnwindSafe for SamlClient
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