Network Policy

NetworkPolicy resource class for asynchronous operations.

class runloop_api_client.sdk.async_network_policy.AsyncNetworkPolicy(client, network_policy_id)[source]

Asynchronous wrapper around a network policy resource.

property id: str

Return the network policy ID.

Returns:

Unique network policy ID

Return type:

str

async get_info(**options)[source]

Retrieve the latest network policy details.

Parameters:

options (Unpack[BaseRequestOptions]) – Optional request configuration

Returns:

API response describing the network policy

Return type:

NetworkPolicyView

async update(**params)[source]

Update the network policy.

Parameters:

params (Unpack[SDKNetworkPolicyUpdateParams]) – See SDKNetworkPolicyUpdateParams for available parameters

Returns:

Updated network policy view

Return type:

NetworkPolicyView

async delete(**options)[source]

Delete the network policy.

Parameters:

options (Unpack[LongRequestOptions]) – Optional long-running request configuration

Returns:

API response acknowledging deletion

Return type:

NetworkPolicyView