kubernetes_asyncio.client.models.v1_endpoint_slice 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_endpoint_slice.V1EndpointSlice(address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=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.

property address_type

Gets the address_type of this V1EndpointSlice. # noqa: E501

addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType “IPv4” and “IPv6”. No semantics are defined for the “FQDN” type. # noqa: E501

Returns:

The address_type of this V1EndpointSlice. # noqa: E501

Return type:

str

property api_version

Gets the api_version of this V1EndpointSlice. # noqa: E501

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/sig-architecture/api-conventions.md#resources # noqa: E501

Returns:

The api_version of this V1EndpointSlice. # noqa: E501

Return type:

str

attribute_map = {'address_type': 'addressType', 'api_version': 'apiVersion', 'endpoints': 'endpoints', 'kind': 'kind', 'metadata': 'metadata', 'ports': 'ports'}
property endpoints

Gets the endpoints of this V1EndpointSlice. # noqa: E501

endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. # noqa: E501

Returns:

The endpoints of this V1EndpointSlice. # noqa: E501

Return type:

list[V1Endpoint]

property kind

Gets the kind of this V1EndpointSlice. # noqa: E501

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/sig-architecture/api-conventions.md#types-kinds # noqa: E501

Returns:

The kind of this V1EndpointSlice. # noqa: E501

Return type:

str

property metadata

Gets the metadata of this V1EndpointSlice. # noqa: E501

Returns:

The metadata of this V1EndpointSlice. # noqa: E501

Return type:

V1ObjectMeta

openapi_types = {'address_type': 'str', 'api_version': 'str', 'endpoints': 'list[V1Endpoint]', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'ports': 'list[DiscoveryV1EndpointPort]'}
property ports

Gets the ports of this V1EndpointSlice. # noqa: E501

ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. # noqa: E501

Returns:

The ports of this V1EndpointSlice. # noqa: E501

Return type:

list[DiscoveryV1EndpointPort]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model