Struct k8s_openapi::v1_9::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

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 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

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

Specification of the desired behavior for this NetworkPolicy.

Methods

impl NetworkPolicy
[src]

create a NetworkPolicy

Use CreateNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

delete collection of NetworkPolicy

Use DeleteNetworkingV1CollectionNamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

delete a NetworkPolicy

Use DeleteNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

list or watch objects of kind NetworkPolicy

Use ListNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

list or watch objects of kind NetworkPolicy

Use ListNetworkingV1NetworkPolicyForAllNamespacesResponse to parse the HTTP response.

impl NetworkPolicy
[src]

partially update the specified NetworkPolicy

Use PatchNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

read the specified NetworkPolicy

Use ReadNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

replace the specified NetworkPolicy

Use ReplaceNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

watch changes to an object of kind NetworkPolicy

Use WatchNetworkingV1NamespacedNetworkPolicyResponse to parse the HTTP response.

impl NetworkPolicy
[src]

watch individual changes to a list of NetworkPolicy

Use WatchNetworkingV1NamespacedNetworkPolicyListResponse to parse the HTTP response.

impl NetworkPolicy
[src]

watch individual changes to a list of NetworkPolicy

Use WatchNetworkingV1NetworkPolicyListForAllNamespacesResponse to parse the HTTP response.

Trait Implementations

impl Clone for NetworkPolicy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NetworkPolicy
[src]

Formats the value using the given formatter. Read more

impl Default for NetworkPolicy
[src]

Returns the "default value" for a type. Read more

impl PartialEq for NetworkPolicy
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for NetworkPolicy
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for NetworkPolicy
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations