# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class V1ManagedFieldsEntry(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'api_version': 'str', 'fields': 'object', 'manager': 'str', 'operation': 'str', 'time': 'datetime' } attribute_map = { 'api_version': 'apiVersion', 'fields': 'fields', 'manager': 'manager', 'operation': 'operation', 'time': 'time' } def __init__(self, api_version=None, fields=None, manager=None, operation=None, time=None): """ V1ManagedFieldsEntry - a model defined in Swagger """ self._api_version = None self._fields = None self._manager = None self._operation = None self._time = None self.discriminator = None if api_version is not None: self.api_version = api_version if fields is not None: self.fields = fields if manager is not None: self.manager = manager if operation is not None: self.operation = operation if time is not None: self.time = time @property def api_version(self): """ Gets the api_version of this V1ManagedFieldsEntry. APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. :return: The api_version of this V1ManagedFieldsEntry. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ManagedFieldsEntry. APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. :param api_version: The api_version of this V1ManagedFieldsEntry. :type: str """ self._api_version = api_version @property def fields(self): """ Gets the fields of this V1ManagedFieldsEntry. Fields identifies a set of fields. :return: The fields of this V1ManagedFieldsEntry. :rtype: object """ return self._fields @fields.setter def fields(self, fields): """ Sets the fields of this V1ManagedFieldsEntry. Fields identifies a set of fields. :param fields: The fields of this V1ManagedFieldsEntry. :type: object """ self._fields = fields @property def manager(self): """ Gets the manager of this V1ManagedFieldsEntry. Manager is an identifier of the workflow managing these fields. :return: The manager of this V1ManagedFieldsEntry. :rtype: str """ return self._manager @manager.setter def manager(self, manager): """ Sets the manager of this V1ManagedFieldsEntry. Manager is an identifier of the workflow managing these fields. :param manager: The manager of this V1ManagedFieldsEntry. :type: str """ self._manager = manager @property def operation(self): """ Gets the operation of this V1ManagedFieldsEntry. Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. :return: The operation of this V1ManagedFieldsEntry. :rtype: str """ return self._operation @operation.setter def operation(self, operation): """ Sets the operation of this V1ManagedFieldsEntry. Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. :param operation: The operation of this V1ManagedFieldsEntry. :type: str """ self._operation = operation @property def time(self): """ Gets the time of this V1ManagedFieldsEntry. Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' :return: The time of this V1ManagedFieldsEntry. :rtype: datetime """ return self._time @time.setter def time(self, time): """ Sets the time of this V1ManagedFieldsEntry. Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' :param time: The time of this V1ManagedFieldsEntry. :type: datetime """ self._time = time def to_dict(self): """ Returns the model properties as a dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """ Returns the string representation of the model """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() def __eq__(self, other): """ Returns true if both objects are equal """ if not isinstance(other, V1ManagedFieldsEntry): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """ Returns true if both objects are not equal """ return not self == other