Source code for thamos.swagger_client.models.adviser_result_response_metadata_python

# coding: utf-8

"""
    Thoth User API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 0.7.0-dev

    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

[docs]class AdviserResultResponseMetadataPython(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': 'int', 'implementation_name': 'str', 'major': 'int', 'micro': 'int', 'minor': 'int', 'releaselevel': 'str', 'serial': 'int' } attribute_map = { 'api_version': 'api_version', 'implementation_name': 'implementation_name', 'major': 'major', 'micro': 'micro', 'minor': 'minor', 'releaselevel': 'releaselevel', 'serial': 'serial' } def __init__(self, api_version=None, implementation_name=None, major=None, micro=None, minor=None, releaselevel=None, serial=None): # noqa: E501 """AdviserResultResponseMetadataPython - a model defined in Swagger""" # noqa: E501 self._api_version = None self._implementation_name = None self._major = None self._micro = None self._minor = None self._releaselevel = None self._serial = None self.discriminator = None self.api_version = api_version self.implementation_name = implementation_name self.major = major self.micro = micro self.minor = minor self.releaselevel = releaselevel self.serial = serial @property def api_version(self): """Gets the api_version of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The api_version of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: int """ return self._api_version @api_version.setter def api_version(self, api_version): """Sets the api_version of this AdviserResultResponseMetadataPython. :param api_version: The api_version of this AdviserResultResponseMetadataPython. # noqa: E501 :type: int """ if api_version is None: raise ValueError("Invalid value for `api_version`, must not be `None`") # noqa: E501 self._api_version = api_version @property def implementation_name(self): """Gets the implementation_name of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The implementation_name of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: str """ return self._implementation_name @implementation_name.setter def implementation_name(self, implementation_name): """Sets the implementation_name of this AdviserResultResponseMetadataPython. :param implementation_name: The implementation_name of this AdviserResultResponseMetadataPython. # noqa: E501 :type: str """ if implementation_name is None: raise ValueError("Invalid value for `implementation_name`, must not be `None`") # noqa: E501 self._implementation_name = implementation_name @property def major(self): """Gets the major of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The major of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: int """ return self._major @major.setter def major(self, major): """Sets the major of this AdviserResultResponseMetadataPython. :param major: The major of this AdviserResultResponseMetadataPython. # noqa: E501 :type: int """ if major is None: raise ValueError("Invalid value for `major`, must not be `None`") # noqa: E501 self._major = major @property def micro(self): """Gets the micro of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The micro of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: int """ return self._micro @micro.setter def micro(self, micro): """Sets the micro of this AdviserResultResponseMetadataPython. :param micro: The micro of this AdviserResultResponseMetadataPython. # noqa: E501 :type: int """ if micro is None: raise ValueError("Invalid value for `micro`, must not be `None`") # noqa: E501 self._micro = micro @property def minor(self): """Gets the minor of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The minor of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: int """ return self._minor @minor.setter def minor(self, minor): """Sets the minor of this AdviserResultResponseMetadataPython. :param minor: The minor of this AdviserResultResponseMetadataPython. # noqa: E501 :type: int """ if minor is None: raise ValueError("Invalid value for `minor`, must not be `None`") # noqa: E501 self._minor = minor @property def releaselevel(self): """Gets the releaselevel of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The releaselevel of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: str """ return self._releaselevel @releaselevel.setter def releaselevel(self, releaselevel): """Sets the releaselevel of this AdviserResultResponseMetadataPython. :param releaselevel: The releaselevel of this AdviserResultResponseMetadataPython. # noqa: E501 :type: str """ if releaselevel is None: raise ValueError("Invalid value for `releaselevel`, must not be `None`") # noqa: E501 self._releaselevel = releaselevel @property def serial(self): """Gets the serial of this AdviserResultResponseMetadataPython. # noqa: E501 :return: The serial of this AdviserResultResponseMetadataPython. # noqa: E501 :rtype: int """ return self._serial @serial.setter def serial(self, serial): """Sets the serial of this AdviserResultResponseMetadataPython. :param serial: The serial of this AdviserResultResponseMetadataPython. # noqa: E501 :type: int """ if serial is None: raise ValueError("Invalid value for `serial`, must not be `None`") # noqa: E501 self._serial = serial
[docs] def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.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 if issubclass(AdviserResultResponseMetadataPython, dict): for key, value in self.items(): result[key] = value return result
[docs] def to_str(self): """Returns the string representation of the model""" return pprint.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, AdviserResultResponseMetadataPython): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other