models.object_meta module

class models.object_meta.ObjectMeta(annotations=None, name=None, labels=None, namespace=None, uuid=None)[source]

Bases: object

Implementation of the ‘ObjectMeta’ model.

Attributes:
annotations (list of ObjectMeta_AnnotationsEntry): Annotations added

to the object.

name (string): Name must be unique within a namespace. Is required when creating

resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.

labels (list of ObjectMeta_LabelsEntry): A set of key-value pairs,

capturing the labels of a k8s object.

namespace (string): Namespace defines the space within each name must

be unique. An empty namespace is equivalent to the “default” namespace, but “default” is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.

uuid (string): UUID of the object queried.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

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.

Returns:

object: An instance of this structure class.