models.label_selector module

class models.label_selector.LabelSelector(match_labels=None, name=None, service_name=None)[source]

Bases: object

Implementation of the ‘LabelSelector’ model.

Attributes:
match_labels (list of LabelSelector_MatchLabelsEntry): This field is

an object which consists of key-value pairs of all labels that must be matched by the selector

name (string): Select all objects which have a label with

key : “name” and value specified by this field.

service_name (string): Select all objects which have a label with.

key: “serviceName” and value as specified by this field.

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.