models.object_reference module

class models.object_reference.ObjectReference(api_group=None, api_version=None, kind=None, namespace=None, name=None, resource_version=None, uid=None)[source]

Bases: object

Implementation of the ‘ObjectReference’ model.

ObjectReference contains enough information to let you inspect or modify the referred object.

api_group (string): API group make it easier to extend the Kubernetes

API. The API group is specified in a REST path and in the apiVersion field.

api_version (string): 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.

kind (string): Kind is a string value representing the REST resource

this object represents. Servers may infer this from the endpoint the client submits requests to.

namespace (string): Namespace of the referent. name (string): Name of the referent. resource_version (string): Specific resourceVersion to which this

reference is made, if any.

uid (string): UID of the referent.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary


dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.


object: An instance of this structure class.