Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_flow_schema_condition.py235 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 V1FlowSchemaCondition(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        """V1FlowSchemaCondition - 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        if status is not None:71            self.status = status72        if type is not None:73            self.type = type74 75    @property76    def last_transition_time(self):77        """Gets the last_transition_time of this V1FlowSchemaCondition.  # noqa: E50178 79        `lastTransitionTime` is the last time the condition transitioned from one status to another.  # noqa: E50180 81        :return: The last_transition_time of this V1FlowSchemaCondition.  # noqa: E50182        :rtype: datetime83        """84        return self._last_transition_time85 86    @last_transition_time.setter87    def last_transition_time(self, last_transition_time):88        """Sets the last_transition_time of this V1FlowSchemaCondition.89 90        `lastTransitionTime` is the last time the condition transitioned from one status to another.  # noqa: E50191 92        :param last_transition_time: The last_transition_time of this V1FlowSchemaCondition.  # noqa: E50193        :type: datetime94        """95 96        self._last_transition_time = last_transition_time97 98    @property99    def message(self):100        """Gets the message of this V1FlowSchemaCondition.  # noqa: E501101 102        `message` is a human-readable message indicating details about last transition.  # noqa: E501103 104        :return: The message of this V1FlowSchemaCondition.  # noqa: E501105        :rtype: str106        """107        return self._message108 109    @message.setter110    def message(self, message):111        """Sets the message of this V1FlowSchemaCondition.112 113        `message` is a human-readable message indicating details about last transition.  # noqa: E501114 115        :param message: The message of this V1FlowSchemaCondition.  # noqa: E501116        :type: str117        """118 119        self._message = message120 121    @property122    def reason(self):123        """Gets the reason of this V1FlowSchemaCondition.  # noqa: E501124 125        `reason` is a unique, one-word, CamelCase reason for the condition's last transition.  # noqa: E501126 127        :return: The reason of this V1FlowSchemaCondition.  # noqa: E501128        :rtype: str129        """130        return self._reason131 132    @reason.setter133    def reason(self, reason):134        """Sets the reason of this V1FlowSchemaCondition.135 136        `reason` is a unique, one-word, CamelCase reason for the condition's last transition.  # noqa: E501137 138        :param reason: The reason of this V1FlowSchemaCondition.  # noqa: E501139        :type: str140        """141 142        self._reason = reason143 144    @property145    def status(self):146        """Gets the status of this V1FlowSchemaCondition.  # noqa: E501147 148        `status` is the status of the condition. Can be True, False, Unknown. Required.  # noqa: E501149 150        :return: The status of this V1FlowSchemaCondition.  # noqa: E501151        :rtype: str152        """153        return self._status154 155    @status.setter156    def status(self, status):157        """Sets the status of this V1FlowSchemaCondition.158 159        `status` is the status of the condition. Can be True, False, Unknown. Required.  # noqa: E501160 161        :param status: The status of this V1FlowSchemaCondition.  # noqa: E501162        :type: str163        """164 165        self._status = status166 167    @property168    def type(self):169        """Gets the type of this V1FlowSchemaCondition.  # noqa: E501170 171        `type` is the type of the condition. Required.  # noqa: E501172 173        :return: The type of this V1FlowSchemaCondition.  # noqa: E501174        :rtype: str175        """176        return self._type177 178    @type.setter179    def type(self, type):180        """Sets the type of this V1FlowSchemaCondition.181 182        `type` is the type of the condition. Required.  # noqa: E501183 184        :param type: The type of this V1FlowSchemaCondition.  # noqa: E501185        :type: str186        """187 188        self._type = type189 190    def to_dict(self):191        """Returns the model properties as a dict"""192        result = {}193 194        for attr, _ in six.iteritems(self.openapi_types):195            value = getattr(self, attr)196            if isinstance(value, list):197                result[attr] = list(map(198                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,199                    value200                ))201            elif hasattr(value, "to_dict"):202                result[attr] = value.to_dict()203            elif isinstance(value, dict):204                result[attr] = dict(map(205                    lambda item: (item[0], item[1].to_dict())206                    if hasattr(item[1], "to_dict") else item,207                    value.items()208                ))209            else:210                result[attr] = value211 212        return result213 214    def to_str(self):215        """Returns the string representation of the model"""216        return pprint.pformat(self.to_dict())217 218    def __repr__(self):219        """For `print` and `pprint`"""220        return self.to_str()221 222    def __eq__(self, other):223        """Returns true if both objects are equal"""224        if not isinstance(other, V1FlowSchemaCondition):225            return False226 227        return self.to_dict() == other.to_dict()228 229    def __ne__(self, other):230        """Returns true if both objects are not equal"""231        if not isinstance(other, V1FlowSchemaCondition):232            return True233 234        return self.to_dict() != other.to_dict()235 
codekingpro/portable-devtools · Team Ai