kubernetes_asyncio.client.models.v1_network_policy_peer module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_network_policy_peer.V1NetworkPolicyPeer(ip_block=None, namespace_selector=None, pod_selector=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'ip_block': 'ipBlock', 'namespace_selector': 'namespaceSelector', 'pod_selector': 'podSelector'}
property ip_block

Gets the ip_block of this V1NetworkPolicyPeer. # noqa: E501

Returns:

The ip_block of this V1NetworkPolicyPeer. # noqa: E501

Return type:

V1IPBlock

property namespace_selector

Gets the namespace_selector of this V1NetworkPolicyPeer. # noqa: E501

Returns:

The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501

Return type:

V1LabelSelector

openapi_types = {'ip_block': 'V1IPBlock', 'namespace_selector': 'V1LabelSelector', 'pod_selector': 'V1LabelSelector'}
property pod_selector

Gets the pod_selector of this V1NetworkPolicyPeer. # noqa: E501

Returns:

The pod_selector of this V1NetworkPolicyPeer. # noqa: E501

Return type:

V1LabelSelector

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model