Struct k8s_openapi::v1_8::api::networking::v1::NetworkPolicy [−][src]
pub struct NetworkPolicy {
pub api_version: Option<String>,
pub kind: Option<String>,
pub metadata: Option<ObjectMeta>,
pub spec: Option<NetworkPolicySpec>,
}NetworkPolicy describes what network traffic is allowed for a set of Pods
Fields
api_version: Option<String>
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
kind: Option<String>
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<NetworkPolicySpec>
Specification of the desired behavior for this NetworkPolicy.
Methods
impl NetworkPolicy[src]
impl NetworkPolicypub fn create_networking_v1_namespaced_network_policy(
namespace: &str,
body: &NetworkPolicy,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn create_networking_v1_namespaced_network_policy(
namespace: &str,
body: &NetworkPolicy,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>create a NetworkPolicy
Use CreateNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn delete_networking_v1_collection_namespaced_network_policy(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_networking_v1_collection_namespaced_network_policy(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>delete collection of NetworkPolicy
Use DeleteNetworkingV1CollectionNamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn delete_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>delete a NetworkPolicy
Use DeleteNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn list_networking_v1_namespaced_network_policy(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn list_networking_v1_namespaced_network_policy(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>list or watch objects of kind NetworkPolicy
Use ListNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn list_networking_v1_network_policy_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn list_networking_v1_network_policy_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>list or watch objects of kind NetworkPolicy
Use ListNetworkingV1NetworkPolicyForAllNamespacesResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn patch_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update the specified NetworkPolicy
Use PatchNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn read_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read the specified NetworkPolicy
Use ReadNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn replace_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
body: &NetworkPolicy,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
body: &NetworkPolicy,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace the specified NetworkPolicy
Use ReplaceNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn watch_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_networking_v1_namespaced_network_policy(
name: &str,
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch changes to an object of kind NetworkPolicy
Use WatchNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn watch_networking_v1_namespaced_network_policy_list(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_networking_v1_namespaced_network_policy_list(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch individual changes to a list of NetworkPolicy
Use WatchNetworkingV1NamespacedNetworkPolicyListResponse to parse the HTTP response.
impl NetworkPolicy[src]
impl NetworkPolicypub fn watch_networking_v1_network_policy_list_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_networking_v1_network_policy_list_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch individual changes to a list of NetworkPolicy
Use WatchNetworkingV1NetworkPolicyListForAllNamespacesResponse to parse the HTTP response.
Trait Implementations
impl Clone for NetworkPolicy[src]
impl Clone for NetworkPolicyfn clone(&self) -> NetworkPolicy[src]
fn clone(&self) -> NetworkPolicyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for NetworkPolicy[src]
impl Debug for NetworkPolicyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for NetworkPolicy[src]
impl Default for NetworkPolicyfn default() -> NetworkPolicy[src]
fn default() -> NetworkPolicyReturns the "default value" for a type. Read more
impl PartialEq for NetworkPolicy[src]
impl PartialEq for NetworkPolicyfn eq(&self, other: &NetworkPolicy) -> bool[src]
fn eq(&self, other: &NetworkPolicy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NetworkPolicy) -> bool[src]
fn ne(&self, other: &NetworkPolicy) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for NetworkPolicy[src]
impl<'de> Deserialize<'de> for NetworkPolicyfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for NetworkPolicy[src]
impl Serialize for NetworkPolicyAuto Trait Implementations
impl Send for NetworkPolicy
impl Send for NetworkPolicyimpl Sync for NetworkPolicy
impl Sync for NetworkPolicy