Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_daemon_set_status.py379 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 V1DaemonSetStatus(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        'collision_count': 'int',37        'conditions': 'list[V1DaemonSetCondition]',38        'current_number_scheduled': 'int',39        'desired_number_scheduled': 'int',40        'number_available': 'int',41        'number_misscheduled': 'int',42        'number_ready': 'int',43        'number_unavailable': 'int',44        'observed_generation': 'int',45        'updated_number_scheduled': 'int'46    }47 48    attribute_map = {49        'collision_count': 'collisionCount',50        'conditions': 'conditions',51        'current_number_scheduled': 'currentNumberScheduled',52        'desired_number_scheduled': 'desiredNumberScheduled',53        'number_available': 'numberAvailable',54        'number_misscheduled': 'numberMisscheduled',55        'number_ready': 'numberReady',56        'number_unavailable': 'numberUnavailable',57        'observed_generation': 'observedGeneration',58        'updated_number_scheduled': 'updatedNumberScheduled'59    }60 61    def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None, local_vars_configuration=None):  # noqa: E50162        """V1DaemonSetStatus - a model defined in OpenAPI"""  # noqa: E50163        if local_vars_configuration is None:64            local_vars_configuration = Configuration()65        self.local_vars_configuration = local_vars_configuration66 67        self._collision_count = None68        self._conditions = None69        self._current_number_scheduled = None70        self._desired_number_scheduled = None71        self._number_available = None72        self._number_misscheduled = None73        self._number_ready = None74        self._number_unavailable = None75        self._observed_generation = None76        self._updated_number_scheduled = None77        self.discriminator = None78 79        if collision_count is not None:80            self.collision_count = collision_count81        if conditions is not None:82            self.conditions = conditions83        self.current_number_scheduled = current_number_scheduled84        self.desired_number_scheduled = desired_number_scheduled85        if number_available is not None:86            self.number_available = number_available87        self.number_misscheduled = number_misscheduled88        self.number_ready = number_ready89        if number_unavailable is not None:90            self.number_unavailable = number_unavailable91        if observed_generation is not None:92            self.observed_generation = observed_generation93        if updated_number_scheduled is not None:94            self.updated_number_scheduled = updated_number_scheduled95 96    @property97    def collision_count(self):98        """Gets the collision_count of this V1DaemonSetStatus.  # noqa: E50199 100        Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.  # noqa: E501101 102        :return: The collision_count of this V1DaemonSetStatus.  # noqa: E501103        :rtype: int104        """105        return self._collision_count106 107    @collision_count.setter108    def collision_count(self, collision_count):109        """Sets the collision_count of this V1DaemonSetStatus.110 111        Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.  # noqa: E501112 113        :param collision_count: The collision_count of this V1DaemonSetStatus.  # noqa: E501114        :type: int115        """116 117        self._collision_count = collision_count118 119    @property120    def conditions(self):121        """Gets the conditions of this V1DaemonSetStatus.  # noqa: E501122 123        Represents the latest available observations of a DaemonSet's current state.  # noqa: E501124 125        :return: The conditions of this V1DaemonSetStatus.  # noqa: E501126        :rtype: list[V1DaemonSetCondition]127        """128        return self._conditions129 130    @conditions.setter131    def conditions(self, conditions):132        """Sets the conditions of this V1DaemonSetStatus.133 134        Represents the latest available observations of a DaemonSet's current state.  # noqa: E501135 136        :param conditions: The conditions of this V1DaemonSetStatus.  # noqa: E501137        :type: list[V1DaemonSetCondition]138        """139 140        self._conditions = conditions141 142    @property143    def current_number_scheduled(self):144        """Gets the current_number_scheduled of this V1DaemonSetStatus.  # noqa: E501145 146        The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501147 148        :return: The current_number_scheduled of this V1DaemonSetStatus.  # noqa: E501149        :rtype: int150        """151        return self._current_number_scheduled152 153    @current_number_scheduled.setter154    def current_number_scheduled(self, current_number_scheduled):155        """Sets the current_number_scheduled of this V1DaemonSetStatus.156 157        The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501158 159        :param current_number_scheduled: The current_number_scheduled of this V1DaemonSetStatus.  # noqa: E501160        :type: int161        """162        if self.local_vars_configuration.client_side_validation and current_number_scheduled is None:  # noqa: E501163            raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`")  # noqa: E501164 165        self._current_number_scheduled = current_number_scheduled166 167    @property168    def desired_number_scheduled(self):169        """Gets the desired_number_scheduled of this V1DaemonSetStatus.  # noqa: E501170 171        The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501172 173        :return: The desired_number_scheduled of this V1DaemonSetStatus.  # noqa: E501174        :rtype: int175        """176        return self._desired_number_scheduled177 178    @desired_number_scheduled.setter179    def desired_number_scheduled(self, desired_number_scheduled):180        """Sets the desired_number_scheduled of this V1DaemonSetStatus.181 182        The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501183 184        :param desired_number_scheduled: The desired_number_scheduled of this V1DaemonSetStatus.  # noqa: E501185        :type: int186        """187        if self.local_vars_configuration.client_side_validation and desired_number_scheduled is None:  # noqa: E501188            raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`")  # noqa: E501189 190        self._desired_number_scheduled = desired_number_scheduled191 192    @property193    def number_available(self):194        """Gets the number_available of this V1DaemonSetStatus.  # noqa: E501195 196        The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)  # noqa: E501197 198        :return: The number_available of this V1DaemonSetStatus.  # noqa: E501199        :rtype: int200        """201        return self._number_available202 203    @number_available.setter204    def number_available(self, number_available):205        """Sets the number_available of this V1DaemonSetStatus.206 207        The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)  # noqa: E501208 209        :param number_available: The number_available of this V1DaemonSetStatus.  # noqa: E501210        :type: int211        """212 213        self._number_available = number_available214 215    @property216    def number_misscheduled(self):217        """Gets the number_misscheduled of this V1DaemonSetStatus.  # noqa: E501218 219        The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501220 221        :return: The number_misscheduled of this V1DaemonSetStatus.  # noqa: E501222        :rtype: int223        """224        return self._number_misscheduled225 226    @number_misscheduled.setter227    def number_misscheduled(self, number_misscheduled):228        """Sets the number_misscheduled of this V1DaemonSetStatus.229 230        The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/  # noqa: E501231 232        :param number_misscheduled: The number_misscheduled of this V1DaemonSetStatus.  # noqa: E501233        :type: int234        """235        if self.local_vars_configuration.client_side_validation and number_misscheduled is None:  # noqa: E501236            raise ValueError("Invalid value for `number_misscheduled`, must not be `None`")  # noqa: E501237 238        self._number_misscheduled = number_misscheduled239 240    @property241    def number_ready(self):242        """Gets the number_ready of this V1DaemonSetStatus.  # noqa: E501243 244        numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.  # noqa: E501245 246        :return: The number_ready of this V1DaemonSetStatus.  # noqa: E501247        :rtype: int248        """249        return self._number_ready250 251    @number_ready.setter252    def number_ready(self, number_ready):253        """Sets the number_ready of this V1DaemonSetStatus.254 255        numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.  # noqa: E501256 257        :param number_ready: The number_ready of this V1DaemonSetStatus.  # noqa: E501258        :type: int259        """260        if self.local_vars_configuration.client_side_validation and number_ready is None:  # noqa: E501261            raise ValueError("Invalid value for `number_ready`, must not be `None`")  # noqa: E501262 263        self._number_ready = number_ready264 265    @property266    def number_unavailable(self):267        """Gets the number_unavailable of this V1DaemonSetStatus.  # noqa: E501268 269        The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)  # noqa: E501270 271        :return: The number_unavailable of this V1DaemonSetStatus.  # noqa: E501272        :rtype: int273        """274        return self._number_unavailable275 276    @number_unavailable.setter277    def number_unavailable(self, number_unavailable):278        """Sets the number_unavailable of this V1DaemonSetStatus.279 280        The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)  # noqa: E501281 282        :param number_unavailable: The number_unavailable of this V1DaemonSetStatus.  # noqa: E501283        :type: int284        """285 286        self._number_unavailable = number_unavailable287 288    @property289    def observed_generation(self):290        """Gets the observed_generation of this V1DaemonSetStatus.  # noqa: E501291 292        The most recent generation observed by the daemon set controller.  # noqa: E501293 294        :return: The observed_generation of this V1DaemonSetStatus.  # noqa: E501295        :rtype: int296        """297        return self._observed_generation298 299    @observed_generation.setter300    def observed_generation(self, observed_generation):301        """Sets the observed_generation of this V1DaemonSetStatus.302 303        The most recent generation observed by the daemon set controller.  # noqa: E501304 305        :param observed_generation: The observed_generation of this V1DaemonSetStatus.  # noqa: E501306        :type: int307        """308 309        self._observed_generation = observed_generation310 311    @property312    def updated_number_scheduled(self):313        """Gets the updated_number_scheduled of this V1DaemonSetStatus.  # noqa: E501314 315        The total number of nodes that are running updated daemon pod  # noqa: E501316 317        :return: The updated_number_scheduled of this V1DaemonSetStatus.  # noqa: E501318        :rtype: int319        """320        return self._updated_number_scheduled321 322    @updated_number_scheduled.setter323    def updated_number_scheduled(self, updated_number_scheduled):324        """Sets the updated_number_scheduled of this V1DaemonSetStatus.325 326        The total number of nodes that are running updated daemon pod  # noqa: E501327 328        :param updated_number_scheduled: The updated_number_scheduled of this V1DaemonSetStatus.  # noqa: E501329        :type: int330        """331 332        self._updated_number_scheduled = updated_number_scheduled333 334    def to_dict(self):335        """Returns the model properties as a dict"""336        result = {}337 338        for attr, _ in six.iteritems(self.openapi_types):339            value = getattr(self, attr)340            if isinstance(value, list):341                result[attr] = list(map(342                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,343                    value344                ))345            elif hasattr(value, "to_dict"):346                result[attr] = value.to_dict()347            elif isinstance(value, dict):348                result[attr] = dict(map(349                    lambda item: (item[0], item[1].to_dict())350                    if hasattr(item[1], "to_dict") else item,351                    value.items()352                ))353            else:354                result[attr] = value355 356        return result357 358    def to_str(self):359        """Returns the string representation of the model"""360        return pprint.pformat(self.to_dict())361 362    def __repr__(self):363        """For `print` and `pprint`"""364        return self.to_str()365 366    def __eq__(self, other):367        """Returns true if both objects are equal"""368        if not isinstance(other, V1DaemonSetStatus):369            return False370 371        return self.to_dict() == other.to_dict()372 373    def __ne__(self, other):374        """Returns true if both objects are not equal"""375        if not isinstance(other, V1DaemonSetStatus):376            return True377 378        return self.to_dict() != other.to_dict()379 
codekingpro/portable-devtools · Team Ai