lentiq.models.datapool_resources module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class DatapoolResources(object): """ """ """ 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 = { 'total_gb_of_ram': 'float', 'total_number_of_cores': 'int', 'total_number_of_nodes': 'int' } attribute_map = { 'total_gb_of_ram': 'totalGbOfRam', 'total_number_of_cores': 'totalNumberOfCores', 'total_number_of_nodes': 'totalNumberOfNodes' } discriminator = None def __init__(self, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None): # noqa: E501 """DatapoolResources - a model defined in Swagger""" # noqa: E501 self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes @property def total_gb_of_ram(self): """Gets the total_gb_of_ram of this DatapoolResources. # noqa: E501 :return: The total_gb_of_ram of this DatapoolResources. # noqa: E501 :rtype: float """ return self._total_gb_of_ram @total_gb_of_ram.setter def total_gb_of_ram(self, total_gb_of_ram): """Sets the total_gb_of_ram of this DatapoolResources. :param total_gb_of_ram: The total_gb_of_ram of this DatapoolResources. # noqa: E501 :type: float """ self._total_gb_of_ram = total_gb_of_ram @property def total_number_of_cores(self): """Gets the total_number_of_cores of this DatapoolResources. # noqa: E501 :return: The total_number_of_cores of this DatapoolResources. # noqa: E501 :rtype: int """ return self._total_number_of_cores @total_number_of_cores.setter def total_number_of_cores(self, total_number_of_cores): """Sets the total_number_of_cores of this DatapoolResources. :param total_number_of_cores: The total_number_of_cores of this DatapoolResources. # noqa: E501 :type: int """ self._total_number_of_cores = total_number_of_cores @property def total_number_of_nodes(self): """Gets the total_number_of_nodes of this DatapoolResources. # noqa: E501 :return: The total_number_of_nodes of this DatapoolResources. # noqa: E501 :rtype: int """ return self._total_number_of_nodes @total_number_of_nodes.setter def total_number_of_nodes(self, total_number_of_nodes): """Sets the total_number_of_nodes of this DatapoolResources. :param total_number_of_nodes: The total_number_of_nodes of this DatapoolResources. # noqa: E501 :type: int """ self._total_number_of_nodes = total_number_of_nodes 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(DatapoolResources, dict): for key, value in self.items(): result[key] = value return result 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, DatapoolResources): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Classes
class DatapoolResources
class DatapoolResources(object): """ """ """ 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 = { 'total_gb_of_ram': 'float', 'total_number_of_cores': 'int', 'total_number_of_nodes': 'int' } attribute_map = { 'total_gb_of_ram': 'totalGbOfRam', 'total_number_of_cores': 'totalNumberOfCores', 'total_number_of_nodes': 'totalNumberOfNodes' } discriminator = None def __init__(self, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None): # noqa: E501 """DatapoolResources - a model defined in Swagger""" # noqa: E501 self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes @property def total_gb_of_ram(self): """Gets the total_gb_of_ram of this DatapoolResources. # noqa: E501 :return: The total_gb_of_ram of this DatapoolResources. # noqa: E501 :rtype: float """ return self._total_gb_of_ram @total_gb_of_ram.setter def total_gb_of_ram(self, total_gb_of_ram): """Sets the total_gb_of_ram of this DatapoolResources. :param total_gb_of_ram: The total_gb_of_ram of this DatapoolResources. # noqa: E501 :type: float """ self._total_gb_of_ram = total_gb_of_ram @property def total_number_of_cores(self): """Gets the total_number_of_cores of this DatapoolResources. # noqa: E501 :return: The total_number_of_cores of this DatapoolResources. # noqa: E501 :rtype: int """ return self._total_number_of_cores @total_number_of_cores.setter def total_number_of_cores(self, total_number_of_cores): """Sets the total_number_of_cores of this DatapoolResources. :param total_number_of_cores: The total_number_of_cores of this DatapoolResources. # noqa: E501 :type: int """ self._total_number_of_cores = total_number_of_cores @property def total_number_of_nodes(self): """Gets the total_number_of_nodes of this DatapoolResources. # noqa: E501 :return: The total_number_of_nodes of this DatapoolResources. # noqa: E501 :rtype: int """ return self._total_number_of_nodes @total_number_of_nodes.setter def total_number_of_nodes(self, total_number_of_nodes): """Sets the total_number_of_nodes of this DatapoolResources. :param total_number_of_nodes: The total_number_of_nodes of this DatapoolResources. # noqa: E501 :type: int """ self._total_number_of_nodes = total_number_of_nodes 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(DatapoolResources, dict): for key, value in self.items(): result[key] = value return result 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, DatapoolResources): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Ancestors (in MRO)
- DatapoolResources
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None)
DatapoolResources - a model defined in Swagger
def __init__(self, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None): # noqa: E501 """DatapoolResources - a model defined in Swagger""" # noqa: E501 self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes
def to_dict(
self)
Returns the model properties as a dict
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(DatapoolResources, dict): for key, value in self.items(): result[key] = value return result
def to_str(
self)
Returns the string representation of the model
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
Instance variables
var total_gb_of_ram
Gets the total_gb_of_ram of this DatapoolResources. # noqa: E501
:return: The total_gb_of_ram of this DatapoolResources. # noqa: E501 :rtype: float
var total_number_of_cores
Gets the total_number_of_cores of this DatapoolResources. # noqa: E501
:return: The total_number_of_cores of this DatapoolResources. # noqa: E501 :rtype: int
var total_number_of_nodes
Gets the total_number_of_nodes of this DatapoolResources. # noqa: E501
:return: The total_number_of_nodes of this DatapoolResources. # noqa: E501 :rtype: int