kubernetes_asyncio.client.models.v1_object_reference 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_object_reference.V1ObjectReference(api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=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 V1ObjectReference. # noqa: E501

API version of the referent. # noqa: E501

Returns:

The api_version of this V1ObjectReference. # noqa: E501

Return type:

str

attribute_map = {'api_version': 'apiVersion', 'field_path': 'fieldPath', 'kind': 'kind', 'name': 'name', 'namespace': 'namespace', 'resource_version': 'resourceVersion', 'uid': 'uid'}
property field_path

Gets the field_path of this V1ObjectReference. # noqa: E501

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: “spec.containers{name}” (where “name” refers to the name of the container that triggered the event) or if no container name is specified “spec.containers[2]” (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. # noqa: E501

Returns:

The field_path of this V1ObjectReference. # noqa: E501

Return type:

str

property kind

Gets the kind of this V1ObjectReference. # noqa: E501

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501

Returns:

The kind of this V1ObjectReference. # noqa: E501

Return type:

str

property name

Gets the name of this V1ObjectReference. # noqa: E501

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501

Returns:

The name of this V1ObjectReference. # noqa: E501

Return type:

str

property namespace

Gets the namespace of this V1ObjectReference. # noqa: E501

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501

Returns:

The namespace of this V1ObjectReference. # noqa: E501

Return type:

str

openapi_types = {'api_version': 'str', 'field_path': 'str', 'kind': 'str', 'name': 'str', 'namespace': 'str', 'resource_version': 'str', 'uid': 'str'}
property resource_version

Gets the resource_version of this V1ObjectReference. # noqa: E501

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501

Returns:

The resource_version of this V1ObjectReference. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property uid

Gets the uid of this V1ObjectReference. # noqa: E501

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids # noqa: E501

Returns:

The uid of this V1ObjectReference. # noqa: E501

Return type:

str