kubernetes_asyncio.client.models.v1_tcp_socket_action 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_tcp_socket_action.V1TCPSocketAction(host=None, port=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 = {'host': 'host', 'port': 'port'}
property host

Gets the host of this V1TCPSocketAction. # noqa: E501

Optional: Host name to connect to, defaults to the pod IP. # noqa: E501

Returns:

The host of this V1TCPSocketAction. # noqa: E501

Return type:

str

openapi_types = {'host': 'str', 'port': 'object'}
property port

Gets the port of this V1TCPSocketAction. # noqa: E501

Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. # noqa: E501

Returns:

The port of this V1TCPSocketAction. # noqa: E501

Return type:

object

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model