Struct okta::network_zones::NetworkZones
source · [−]pub struct NetworkZones {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl NetworkZones
impl NetworkZones
sourcepub async fn list(
&self,
after: &str,
limit: i64,
filter: &str
) -> Result<Vec<NetworkZone>>
pub async fn list(
&self,
after: &str,
limit: i64,
filter: &str
) -> Result<Vec<NetworkZone>>
List Network Zones.
This function performs a GET
to the /api/v1/zones
endpoint.
Enumerates network zones added to your organization with pagination. A subset of zones can be returned that match a supported filter expression or query.
Parameters:
after: &str
– Specifies the pagination cursor for the next page of network zones.limit: i64
– Specifies the number of results for a page.filter: &str
– Filters zones by usage or id expression.
sourcepub async fn list_all(&self, filter: &str) -> Result<Vec<NetworkZone>>
pub async fn list_all(&self, filter: &str) -> Result<Vec<NetworkZone>>
List Network Zones.
This function performs a GET
to the /api/v1/zones
endpoint.
As opposed to list
, this function returns all the pages of the request at once.
Enumerates network zones added to your organization with pagination. A subset of zones can be returned that match a supported filter expression or query.
sourcepub async fn create(&self, body: &NetworkZone) -> Result<NetworkZone>
pub async fn create(&self, body: &NetworkZone) -> Result<NetworkZone>
Add Network Zone.
This function performs a POST
to the /api/v1/zones
endpoint.
Adds a new network zone to your Okta organization.
sourcepub async fn get(&self, zone_id: &str) -> Result<NetworkZone>
pub async fn get(&self, zone_id: &str) -> Result<NetworkZone>
Get Network Zone.
This function performs a GET
to the /api/v1/zones/{zoneId}
endpoint.
Fetches a network zone from your Okta organization by id
.
Parameters:
zone_id: &str
sourcepub async fn update(
&self,
zone_id: &str,
body: &NetworkZone
) -> Result<NetworkZone>
pub async fn update(
&self,
zone_id: &str,
body: &NetworkZone
) -> Result<NetworkZone>
Update Network Zone.
This function performs a PUT
to the /api/v1/zones/{zoneId}
endpoint.
Updates a network zone in your organization.
Parameters:
zone_id: &str
sourcepub async fn delete(&self, zone_id: &str) -> Result<()>
pub async fn delete(&self, zone_id: &str) -> Result<()>
Delete Network Zone.
This function performs a DELETE
to the /api/v1/zones/{zoneId}
endpoint.
Removes network zone.
Parameters:
zone_id: &str
sourcepub async fn activate(&self, zone_id: &str) -> Result<NetworkZone>
pub async fn activate(&self, zone_id: &str) -> Result<NetworkZone>
Activate Network Zone.
This function performs a POST
to the /api/v1/zones/{zoneId}/lifecycle/activate
endpoint.
Activate Network Zone
Parameters:
zone_id: &str
sourcepub async fn deactivate(&self, zone_id: &str) -> Result<NetworkZone>
pub async fn deactivate(&self, zone_id: &str) -> Result<NetworkZone>
Deactivate Network Zone.
This function performs a POST
to the /api/v1/zones/{zoneId}/lifecycle/deactivate
endpoint.
Deactivates a network zone.
Parameters:
zone_id: &str
Auto Trait Implementations
impl !RefUnwindSafe for NetworkZones
impl Send for NetworkZones
impl Sync for NetworkZones
impl Unpin for NetworkZones
impl !UnwindSafe for NetworkZones
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more