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.
- 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:
- async update(**params)[source]¶
Update the network policy.
- Parameters:
params (
Unpack[SDKNetworkPolicyUpdateParams]) – SeeSDKNetworkPolicyUpdateParamsfor available parameters- Returns:
Updated network policy view
- Return type:
- async delete(**options)[source]¶
Delete the network policy.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type:
NetworkPolicy resource class for synchronous operations.
- class runloop_api_client.sdk.network_policy.NetworkPolicy(client, network_policy_id)[source]¶
Synchronous wrapper around a network policy resource.
- 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:
- update(**params)[source]¶
Update the network policy.
- Parameters:
params (
Unpack[SDKNetworkPolicyUpdateParams]) – SeeSDKNetworkPolicyUpdateParamsfor available parameters- Returns:
Updated network policy view
- Return type:
- delete(**options)[source]¶
Delete the network policy.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type: