Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
version_info.py454 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 VersionInfo(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        'build_date': 'str',37        'compiler': 'str',38        'emulation_major': 'str',39        'emulation_minor': 'str',40        'git_commit': 'str',41        'git_tree_state': 'str',42        'git_version': 'str',43        'go_version': 'str',44        'major': 'str',45        'min_compatibility_major': 'str',46        'min_compatibility_minor': 'str',47        'minor': 'str',48        'platform': 'str'49    }50 51    attribute_map = {52        'build_date': 'buildDate',53        'compiler': 'compiler',54        'emulation_major': 'emulationMajor',55        'emulation_minor': 'emulationMinor',56        'git_commit': 'gitCommit',57        'git_tree_state': 'gitTreeState',58        'git_version': 'gitVersion',59        'go_version': 'goVersion',60        'major': 'major',61        'min_compatibility_major': 'minCompatibilityMajor',62        'min_compatibility_minor': 'minCompatibilityMinor',63        'minor': 'minor',64        'platform': 'platform'65    }66 67    def __init__(self, build_date=None, compiler=None, emulation_major=None, emulation_minor=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, min_compatibility_major=None, min_compatibility_minor=None, minor=None, platform=None, local_vars_configuration=None):  # noqa: E50168        """VersionInfo - a model defined in OpenAPI"""  # noqa: E50169        if local_vars_configuration is None:70            local_vars_configuration = Configuration()71        self.local_vars_configuration = local_vars_configuration72 73        self._build_date = None74        self._compiler = None75        self._emulation_major = None76        self._emulation_minor = None77        self._git_commit = None78        self._git_tree_state = None79        self._git_version = None80        self._go_version = None81        self._major = None82        self._min_compatibility_major = None83        self._min_compatibility_minor = None84        self._minor = None85        self._platform = None86        self.discriminator = None87 88        self.build_date = build_date89        self.compiler = compiler90        if emulation_major is not None:91            self.emulation_major = emulation_major92        if emulation_minor is not None:93            self.emulation_minor = emulation_minor94        self.git_commit = git_commit95        self.git_tree_state = git_tree_state96        self.git_version = git_version97        self.go_version = go_version98        self.major = major99        if min_compatibility_major is not None:100            self.min_compatibility_major = min_compatibility_major101        if min_compatibility_minor is not None:102            self.min_compatibility_minor = min_compatibility_minor103        self.minor = minor104        self.platform = platform105 106    @property107    def build_date(self):108        """Gets the build_date of this VersionInfo.  # noqa: E501109 110 111        :return: The build_date of this VersionInfo.  # noqa: E501112        :rtype: str113        """114        return self._build_date115 116    @build_date.setter117    def build_date(self, build_date):118        """Sets the build_date of this VersionInfo.119 120 121        :param build_date: The build_date of this VersionInfo.  # noqa: E501122        :type: str123        """124        if self.local_vars_configuration.client_side_validation and build_date is None:  # noqa: E501125            raise ValueError("Invalid value for `build_date`, must not be `None`")  # noqa: E501126 127        self._build_date = build_date128 129    @property130    def compiler(self):131        """Gets the compiler of this VersionInfo.  # noqa: E501132 133 134        :return: The compiler of this VersionInfo.  # noqa: E501135        :rtype: str136        """137        return self._compiler138 139    @compiler.setter140    def compiler(self, compiler):141        """Sets the compiler of this VersionInfo.142 143 144        :param compiler: The compiler of this VersionInfo.  # noqa: E501145        :type: str146        """147        if self.local_vars_configuration.client_side_validation and compiler is None:  # noqa: E501148            raise ValueError("Invalid value for `compiler`, must not be `None`")  # noqa: E501149 150        self._compiler = compiler151 152    @property153    def emulation_major(self):154        """Gets the emulation_major of this VersionInfo.  # noqa: E501155 156        EmulationMajor is the major version of the emulation version  # noqa: E501157 158        :return: The emulation_major of this VersionInfo.  # noqa: E501159        :rtype: str160        """161        return self._emulation_major162 163    @emulation_major.setter164    def emulation_major(self, emulation_major):165        """Sets the emulation_major of this VersionInfo.166 167        EmulationMajor is the major version of the emulation version  # noqa: E501168 169        :param emulation_major: The emulation_major of this VersionInfo.  # noqa: E501170        :type: str171        """172 173        self._emulation_major = emulation_major174 175    @property176    def emulation_minor(self):177        """Gets the emulation_minor of this VersionInfo.  # noqa: E501178 179        EmulationMinor is the minor version of the emulation version  # noqa: E501180 181        :return: The emulation_minor of this VersionInfo.  # noqa: E501182        :rtype: str183        """184        return self._emulation_minor185 186    @emulation_minor.setter187    def emulation_minor(self, emulation_minor):188        """Sets the emulation_minor of this VersionInfo.189 190        EmulationMinor is the minor version of the emulation version  # noqa: E501191 192        :param emulation_minor: The emulation_minor of this VersionInfo.  # noqa: E501193        :type: str194        """195 196        self._emulation_minor = emulation_minor197 198    @property199    def git_commit(self):200        """Gets the git_commit of this VersionInfo.  # noqa: E501201 202 203        :return: The git_commit of this VersionInfo.  # noqa: E501204        :rtype: str205        """206        return self._git_commit207 208    @git_commit.setter209    def git_commit(self, git_commit):210        """Sets the git_commit of this VersionInfo.211 212 213        :param git_commit: The git_commit of this VersionInfo.  # noqa: E501214        :type: str215        """216        if self.local_vars_configuration.client_side_validation and git_commit is None:  # noqa: E501217            raise ValueError("Invalid value for `git_commit`, must not be `None`")  # noqa: E501218 219        self._git_commit = git_commit220 221    @property222    def git_tree_state(self):223        """Gets the git_tree_state of this VersionInfo.  # noqa: E501224 225 226        :return: The git_tree_state of this VersionInfo.  # noqa: E501227        :rtype: str228        """229        return self._git_tree_state230 231    @git_tree_state.setter232    def git_tree_state(self, git_tree_state):233        """Sets the git_tree_state of this VersionInfo.234 235 236        :param git_tree_state: The git_tree_state of this VersionInfo.  # noqa: E501237        :type: str238        """239        if self.local_vars_configuration.client_side_validation and git_tree_state is None:  # noqa: E501240            raise ValueError("Invalid value for `git_tree_state`, must not be `None`")  # noqa: E501241 242        self._git_tree_state = git_tree_state243 244    @property245    def git_version(self):246        """Gets the git_version of this VersionInfo.  # noqa: E501247 248 249        :return: The git_version of this VersionInfo.  # noqa: E501250        :rtype: str251        """252        return self._git_version253 254    @git_version.setter255    def git_version(self, git_version):256        """Sets the git_version of this VersionInfo.257 258 259        :param git_version: The git_version of this VersionInfo.  # noqa: E501260        :type: str261        """262        if self.local_vars_configuration.client_side_validation and git_version is None:  # noqa: E501263            raise ValueError("Invalid value for `git_version`, must not be `None`")  # noqa: E501264 265        self._git_version = git_version266 267    @property268    def go_version(self):269        """Gets the go_version of this VersionInfo.  # noqa: E501270 271 272        :return: The go_version of this VersionInfo.  # noqa: E501273        :rtype: str274        """275        return self._go_version276 277    @go_version.setter278    def go_version(self, go_version):279        """Sets the go_version of this VersionInfo.280 281 282        :param go_version: The go_version of this VersionInfo.  # noqa: E501283        :type: str284        """285        if self.local_vars_configuration.client_side_validation and go_version is None:  # noqa: E501286            raise ValueError("Invalid value for `go_version`, must not be `None`")  # noqa: E501287 288        self._go_version = go_version289 290    @property291    def major(self):292        """Gets the major of this VersionInfo.  # noqa: E501293 294        Major is the major version of the binary version  # noqa: E501295 296        :return: The major of this VersionInfo.  # noqa: E501297        :rtype: str298        """299        return self._major300 301    @major.setter302    def major(self, major):303        """Sets the major of this VersionInfo.304 305        Major is the major version of the binary version  # noqa: E501306 307        :param major: The major of this VersionInfo.  # noqa: E501308        :type: str309        """310        if self.local_vars_configuration.client_side_validation and major is None:  # noqa: E501311            raise ValueError("Invalid value for `major`, must not be `None`")  # noqa: E501312 313        self._major = major314 315    @property316    def min_compatibility_major(self):317        """Gets the min_compatibility_major of this VersionInfo.  # noqa: E501318 319        MinCompatibilityMajor is the major version of the minimum compatibility version  # noqa: E501320 321        :return: The min_compatibility_major of this VersionInfo.  # noqa: E501322        :rtype: str323        """324        return self._min_compatibility_major325 326    @min_compatibility_major.setter327    def min_compatibility_major(self, min_compatibility_major):328        """Sets the min_compatibility_major of this VersionInfo.329 330        MinCompatibilityMajor is the major version of the minimum compatibility version  # noqa: E501331 332        :param min_compatibility_major: The min_compatibility_major of this VersionInfo.  # noqa: E501333        :type: str334        """335 336        self._min_compatibility_major = min_compatibility_major337 338    @property339    def min_compatibility_minor(self):340        """Gets the min_compatibility_minor of this VersionInfo.  # noqa: E501341 342        MinCompatibilityMinor is the minor version of the minimum compatibility version  # noqa: E501343 344        :return: The min_compatibility_minor of this VersionInfo.  # noqa: E501345        :rtype: str346        """347        return self._min_compatibility_minor348 349    @min_compatibility_minor.setter350    def min_compatibility_minor(self, min_compatibility_minor):351        """Sets the min_compatibility_minor of this VersionInfo.352 353        MinCompatibilityMinor is the minor version of the minimum compatibility version  # noqa: E501354 355        :param min_compatibility_minor: The min_compatibility_minor of this VersionInfo.  # noqa: E501356        :type: str357        """358 359        self._min_compatibility_minor = min_compatibility_minor360 361    @property362    def minor(self):363        """Gets the minor of this VersionInfo.  # noqa: E501364 365        Minor is the minor version of the binary version  # noqa: E501366 367        :return: The minor of this VersionInfo.  # noqa: E501368        :rtype: str369        """370        return self._minor371 372    @minor.setter373    def minor(self, minor):374        """Sets the minor of this VersionInfo.375 376        Minor is the minor version of the binary version  # noqa: E501377 378        :param minor: The minor of this VersionInfo.  # noqa: E501379        :type: str380        """381        if self.local_vars_configuration.client_side_validation and minor is None:  # noqa: E501382            raise ValueError("Invalid value for `minor`, must not be `None`")  # noqa: E501383 384        self._minor = minor385 386    @property387    def platform(self):388        """Gets the platform of this VersionInfo.  # noqa: E501389 390 391        :return: The platform of this VersionInfo.  # noqa: E501392        :rtype: str393        """394        return self._platform395 396    @platform.setter397    def platform(self, platform):398        """Sets the platform of this VersionInfo.399 400 401        :param platform: The platform of this VersionInfo.  # noqa: E501402        :type: str403        """404        if self.local_vars_configuration.client_side_validation and platform is None:  # noqa: E501405            raise ValueError("Invalid value for `platform`, must not be `None`")  # noqa: E501406 407        self._platform = platform408 409    def to_dict(self):410        """Returns the model properties as a dict"""411        result = {}412 413        for attr, _ in six.iteritems(self.openapi_types):414            value = getattr(self, attr)415            if isinstance(value, list):416                result[attr] = list(map(417                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,418                    value419                ))420            elif hasattr(value, "to_dict"):421                result[attr] = value.to_dict()422            elif isinstance(value, dict):423                result[attr] = dict(map(424                    lambda item: (item[0], item[1].to_dict())425                    if hasattr(item[1], "to_dict") else item,426                    value.items()427                ))428            else:429                result[attr] = value430 431        return result432 433    def to_str(self):434        """Returns the string representation of the model"""435        return pprint.pformat(self.to_dict())436 437    def __repr__(self):438        """For `print` and `pprint`"""439        return self.to_str()440 441    def __eq__(self, other):442        """Returns true if both objects are equal"""443        if not isinstance(other, VersionInfo):444            return False445 446        return self.to_dict() == other.to_dict()447 448    def __ne__(self, other):449        """Returns true if both objects are not equal"""450        if not isinstance(other, VersionInfo):451            return True452 453        return self.to_dict() != other.to_dict()454 
codekingpro/portable-devtools · Team Ai