pub struct IpAccessClient { /* private fields */ }
Expand description
IP Access API client. Read more at https://coralogix.com/docs/user-guides/account-management/account-settings/ip-access-control/
Implementations§
Source§impl IpAccessClient
impl IpAccessClient
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 IP Access API.
§Arguments
auth_context
- TheAuthContext
to use for authentication (team-level).region
- TheCoralogixRegion
to connect to.
Sourcepub async fn create(
&self,
ip_access: Vec<IpAccess>,
support_access: CoralogixCustomerSupportAccess,
) -> Result<CreateCompanyIpAccessSettingsResponse>
pub async fn create( &self, ip_access: Vec<IpAccess>, support_access: CoralogixCustomerSupportAccess, ) -> Result<CreateCompanyIpAccessSettingsResponse>
Creates company IP access settings.
§Arguments
ip_access
- A vector ofIpAccess
settings to apply.support_access
- OptionalCoralogixCustomerSupportAccess
setting to enable or disable access for Coralogix customer support.
Sourcepub async fn replace(
&self,
id: Option<String>,
ip_access: Vec<IpAccess>,
support_access: CoralogixCustomerSupportAccess,
) -> Result<ReplaceCompanyIpAccessSettingsResponse>
pub async fn replace( &self, id: Option<String>, ip_access: Vec<IpAccess>, support_access: CoralogixCustomerSupportAccess, ) -> Result<ReplaceCompanyIpAccessSettingsResponse>
Replaces company IP access settings.
§Arguments
id
- The optional ID of the settings to replace.ip_access
- A vector ofIpAccess
settings to apply.support_access
- OptionalCoralogixCustomerSupportAccess
setting to enable or disable access for Coralogix customer support.
Auto Trait Implementations§
impl !Freeze for IpAccessClient
impl !RefUnwindSafe for IpAccessClient
impl Send for IpAccessClient
impl Sync for IpAccessClient
impl Unpin for IpAccessClient
impl !UnwindSafe for IpAccessClient
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