Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_daemon_set_condition.py237 linesDownload Raw Back to models
1# coding: utf-82 3"""4    Kubernetes5 6    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E5017 8    The version of the OpenAPI document: release-1.359    Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re  # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1DaemonSetCondition(object):22    """NOTE: This class is auto generated by OpenAPI Generator.23    Ref: https://openapi-generator.tech24 25    Do not edit the class manually.26    """27 28    """29    Attributes:30      openapi_types (dict): The key is attribute name31                            and the value is attribute type.32      attribute_map (dict): The key is attribute name33                            and the value is json key in definition.34    """35    openapi_types = {36        'last_transition_time': 'datetime',37        'message': 'str',38        'reason': 'str',39        'status': 'str',40        'type': 'str'41    }42 43    attribute_map = {44        'last_transition_time': 'lastTransitionTime',45        'message': 'message',46        'reason': 'reason',47        'status': 'status',48        'type': 'type'49    }50 51    def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None):  # noqa: E50152        """V1DaemonSetCondition - a model defined in OpenAPI"""  # noqa: E50153        if local_vars_configuration is None:54            local_vars_configuration = Configuration()55        self.local_vars_configuration = local_vars_configuration56 57        self._last_transition_time = None58        self._message = None59        self._reason = None60        self._status = None61        self._type = None62        self.discriminator = None63 64        if last_transition_time is not None:65            self.last_transition_time = last_transition_time66        if message is not None:67            self.message = message68        if reason is not None:69            self.reason = reason70        self.status = status71        self.type = type72 73    @property74    def last_transition_time(self):75        """Gets the last_transition_time of this V1DaemonSetCondition.  # noqa: E50176 77        Last time the condition transitioned from one status to another.  # noqa: E50178 79        :return: The last_transition_time of this V1DaemonSetCondition.  # noqa: E50180        :rtype: datetime81        """82        return self._last_transition_time83 84    @last_transition_time.setter85    def last_transition_time(self, last_transition_time):86        """Sets the last_transition_time of this V1DaemonSetCondition.87 88        Last time the condition transitioned from one status to another.  # noqa: E50189 90        :param last_transition_time: The last_transition_time of this V1DaemonSetCondition.  # noqa: E50191        :type: datetime92        """93 94        self._last_transition_time = last_transition_time95 96    @property97    def message(self):98        """Gets the message of this V1DaemonSetCondition.  # noqa: E50199 100        A human readable message indicating details about the transition.  # noqa: E501101 102        :return: The message of this V1DaemonSetCondition.  # noqa: E501103        :rtype: str104        """105        return self._message106 107    @message.setter108    def message(self, message):109        """Sets the message of this V1DaemonSetCondition.110 111        A human readable message indicating details about the transition.  # noqa: E501112 113        :param message: The message of this V1DaemonSetCondition.  # noqa: E501114        :type: str115        """116 117        self._message = message118 119    @property120    def reason(self):121        """Gets the reason of this V1DaemonSetCondition.  # noqa: E501122 123        The reason for the condition's last transition.  # noqa: E501124 125        :return: The reason of this V1DaemonSetCondition.  # noqa: E501126        :rtype: str127        """128        return self._reason129 130    @reason.setter131    def reason(self, reason):132        """Sets the reason of this V1DaemonSetCondition.133 134        The reason for the condition's last transition.  # noqa: E501135 136        :param reason: The reason of this V1DaemonSetCondition.  # noqa: E501137        :type: str138        """139 140        self._reason = reason141 142    @property143    def status(self):144        """Gets the status of this V1DaemonSetCondition.  # noqa: E501145 146        Status of the condition, one of True, False, Unknown.  # noqa: E501147 148        :return: The status of this V1DaemonSetCondition.  # noqa: E501149        :rtype: str150        """151        return self._status152 153    @status.setter154    def status(self, status):155        """Sets the status of this V1DaemonSetCondition.156 157        Status of the condition, one of True, False, Unknown.  # noqa: E501158 159        :param status: The status of this V1DaemonSetCondition.  # noqa: E501160        :type: str161        """162        if self.local_vars_configuration.client_side_validation and status is None:  # noqa: E501163            raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501164 165        self._status = status166 167    @property168    def type(self):169        """Gets the type of this V1DaemonSetCondition.  # noqa: E501170 171        Type of DaemonSet condition.  # noqa: E501172 173        :return: The type of this V1DaemonSetCondition.  # noqa: E501174        :rtype: str175        """176        return self._type177 178    @type.setter179    def type(self, type):180        """Sets the type of this V1DaemonSetCondition.181 182        Type of DaemonSet condition.  # noqa: E501183 184        :param type: The type of this V1DaemonSetCondition.  # noqa: E501185        :type: str186        """187        if self.local_vars_configuration.client_side_validation and type is None:  # noqa: E501188            raise ValueError("Invalid value for `type`, must not be `None`")  # noqa: E501189 190        self._type = type191 192    def to_dict(self):193        """Returns the model properties as a dict"""194        result = {}195 196        for attr, _ in six.iteritems(self.openapi_types):197            value = getattr(self, attr)198            if isinstance(value, list):199                result[attr] = list(map(200                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,201                    value202                ))203            elif hasattr(value, "to_dict"):204                result[attr] = value.to_dict()205            elif isinstance(value, dict):206                result[attr] = dict(map(207                    lambda item: (item[0], item[1].to_dict())208                    if hasattr(item[1], "to_dict") else item,209                    value.items()210                ))211            else:212                result[attr] = value213 214        return result215 216    def to_str(self):217        """Returns the string representation of the model"""218        return pprint.pformat(self.to_dict())219 220    def __repr__(self):221        """For `print` and `pprint`"""222        return self.to_str()223 224    def __eq__(self, other):225        """Returns true if both objects are equal"""226        if not isinstance(other, V1DaemonSetCondition):227            return False228 229        return self.to_dict() == other.to_dict()230 231    def __ne__(self, other):232        """Returns true if both objects are not equal"""233        if not isinstance(other, V1DaemonSetCondition):234            return True235 236        return self.to_dict() != other.to_dict()237 
codekingpro/portable-devtools · Team Ai