kubernetes_asyncio.client.models.v1_api_group 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_api_group.V1APIGroup(api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cidrs=None, versions=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 api_version

Gets the api_version of this V1APIGroup. # 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 V1APIGroup. # noqa: E501

Return type:

str

attribute_map = {'api_version': 'apiVersion', 'kind': 'kind', 'name': 'name', 'preferred_version': 'preferredVersion', 'server_address_by_client_cidrs': 'serverAddressByClientCIDRs', 'versions': 'versions'}
property kind

Gets the kind of this V1APIGroup. # 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 V1APIGroup. # noqa: E501

Return type:

str

property name

Gets the name of this V1APIGroup. # noqa: E501

name is the name of the group. # noqa: E501

Returns:

The name of this V1APIGroup. # noqa: E501

Return type:

str

openapi_types = {'api_version': 'str', 'kind': 'str', 'name': 'str', 'preferred_version': 'V1GroupVersionForDiscovery', 'server_address_by_client_cidrs': 'list[V1ServerAddressByClientCIDR]', 'versions': 'list[V1GroupVersionForDiscovery]'}
property preferred_version

Gets the preferred_version of this V1APIGroup. # noqa: E501

Returns:

The preferred_version of this V1APIGroup. # noqa: E501

Return type:

V1GroupVersionForDiscovery

property server_address_by_client_cidrs

Gets the server_address_by_client_cidrs of this V1APIGroup. # noqa: E501

a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501

Returns:

The server_address_by_client_cidrs of this V1APIGroup. # noqa: E501

Return type:

list[V1ServerAddressByClientCIDR]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property versions

Gets the versions of this V1APIGroup. # noqa: E501

versions are the versions supported in this group. # noqa: E501

Returns:

The versions of this V1APIGroup. # noqa: E501

Return type:

list[V1GroupVersionForDiscovery]