lentiq.models.edit_metadata_form module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class EditMetadataForm(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 = { 'code_block_name': 'str', 'datalake_id': 'int', 'datapool_name': 'str', 'description': 'str', 'labels': 'list[str]', 'project_name': 'str' } attribute_map = { 'code_block_name': 'codeBlockName', 'datalake_id': 'datalakeId', 'datapool_name': 'datapoolName', 'description': 'description', 'labels': 'labels', 'project_name': 'projectName' } discriminator = None def __init__(self, code_block_name=None, datalake_id=None, datapool_name=None, description=None, labels=None, project_name=None): # noqa: E501 """EditMetadataForm - a model defined in Swagger""" # noqa: E501 self._code_block_name = None self._datalake_id = None self._datapool_name = None self._description = None self._labels = None self._project_name = None if code_block_name is not None: self.code_block_name = code_block_name if datalake_id is not None: self.datalake_id = datalake_id if datapool_name is not None: self.datapool_name = datapool_name if description is not None: self.description = description if labels is not None: self.labels = labels if project_name is not None: self.project_name = project_name @property def code_block_name(self): """Gets the code_block_name of this EditMetadataForm. # noqa: E501 :return: The code_block_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._code_block_name @code_block_name.setter def code_block_name(self, code_block_name): """Sets the code_block_name of this EditMetadataForm. :param code_block_name: The code_block_name of this EditMetadataForm. # noqa: E501 :type: str """ self._code_block_name = code_block_name @property def datalake_id(self): """Gets the datalake_id of this EditMetadataForm. # noqa: E501 :return: The datalake_id of this EditMetadataForm. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this EditMetadataForm. :param datalake_id: The datalake_id of this EditMetadataForm. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datapool_name(self): """Gets the datapool_name of this EditMetadataForm. # noqa: E501 :return: The datapool_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this EditMetadataForm. :param datapool_name: The datapool_name of this EditMetadataForm. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def description(self): """Gets the description of this EditMetadataForm. # noqa: E501 :return: The description of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): """Sets the description of this EditMetadataForm. :param description: The description of this EditMetadataForm. # noqa: E501 :type: str """ self._description = description @property def labels(self): """Gets the labels of this EditMetadataForm. # noqa: E501 :return: The labels of this EditMetadataForm. # noqa: E501 :rtype: list[str] """ return self._labels @labels.setter def labels(self, labels): """Sets the labels of this EditMetadataForm. :param labels: The labels of this EditMetadataForm. # noqa: E501 :type: list[str] """ self._labels = labels @property def project_name(self): """Gets the project_name of this EditMetadataForm. # noqa: E501 :return: The project_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this EditMetadataForm. :param project_name: The project_name of this EditMetadataForm. # noqa: E501 :type: str """ self._project_name = project_name 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(EditMetadataForm, 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, EditMetadataForm): 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 EditMetadataForm
class EditMetadataForm(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 = { 'code_block_name': 'str', 'datalake_id': 'int', 'datapool_name': 'str', 'description': 'str', 'labels': 'list[str]', 'project_name': 'str' } attribute_map = { 'code_block_name': 'codeBlockName', 'datalake_id': 'datalakeId', 'datapool_name': 'datapoolName', 'description': 'description', 'labels': 'labels', 'project_name': 'projectName' } discriminator = None def __init__(self, code_block_name=None, datalake_id=None, datapool_name=None, description=None, labels=None, project_name=None): # noqa: E501 """EditMetadataForm - a model defined in Swagger""" # noqa: E501 self._code_block_name = None self._datalake_id = None self._datapool_name = None self._description = None self._labels = None self._project_name = None if code_block_name is not None: self.code_block_name = code_block_name if datalake_id is not None: self.datalake_id = datalake_id if datapool_name is not None: self.datapool_name = datapool_name if description is not None: self.description = description if labels is not None: self.labels = labels if project_name is not None: self.project_name = project_name @property def code_block_name(self): """Gets the code_block_name of this EditMetadataForm. # noqa: E501 :return: The code_block_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._code_block_name @code_block_name.setter def code_block_name(self, code_block_name): """Sets the code_block_name of this EditMetadataForm. :param code_block_name: The code_block_name of this EditMetadataForm. # noqa: E501 :type: str """ self._code_block_name = code_block_name @property def datalake_id(self): """Gets the datalake_id of this EditMetadataForm. # noqa: E501 :return: The datalake_id of this EditMetadataForm. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this EditMetadataForm. :param datalake_id: The datalake_id of this EditMetadataForm. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datapool_name(self): """Gets the datapool_name of this EditMetadataForm. # noqa: E501 :return: The datapool_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this EditMetadataForm. :param datapool_name: The datapool_name of this EditMetadataForm. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def description(self): """Gets the description of this EditMetadataForm. # noqa: E501 :return: The description of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): """Sets the description of this EditMetadataForm. :param description: The description of this EditMetadataForm. # noqa: E501 :type: str """ self._description = description @property def labels(self): """Gets the labels of this EditMetadataForm. # noqa: E501 :return: The labels of this EditMetadataForm. # noqa: E501 :rtype: list[str] """ return self._labels @labels.setter def labels(self, labels): """Sets the labels of this EditMetadataForm. :param labels: The labels of this EditMetadataForm. # noqa: E501 :type: list[str] """ self._labels = labels @property def project_name(self): """Gets the project_name of this EditMetadataForm. # noqa: E501 :return: The project_name of this EditMetadataForm. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this EditMetadataForm. :param project_name: The project_name of this EditMetadataForm. # noqa: E501 :type: str """ self._project_name = project_name 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(EditMetadataForm, 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, EditMetadataForm): 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)
- EditMetadataForm
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, code_block_name=None, datalake_id=None, datapool_name=None, description=None, labels=None, project_name=None)
EditMetadataForm - a model defined in Swagger
def __init__(self, code_block_name=None, datalake_id=None, datapool_name=None, description=None, labels=None, project_name=None): # noqa: E501 """EditMetadataForm - a model defined in Swagger""" # noqa: E501 self._code_block_name = None self._datalake_id = None self._datapool_name = None self._description = None self._labels = None self._project_name = None if code_block_name is not None: self.code_block_name = code_block_name if datalake_id is not None: self.datalake_id = datalake_id if datapool_name is not None: self.datapool_name = datapool_name if description is not None: self.description = description if labels is not None: self.labels = labels if project_name is not None: self.project_name = project_name
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(EditMetadataForm, 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 code_block_name
Gets the code_block_name of this EditMetadataForm. # noqa: E501
:return: The code_block_name of this EditMetadataForm. # noqa: E501 :rtype: str
var datalake_id
Gets the datalake_id of this EditMetadataForm. # noqa: E501
:return: The datalake_id of this EditMetadataForm. # noqa: E501 :rtype: int
var datapool_name
Gets the datapool_name of this EditMetadataForm. # noqa: E501
:return: The datapool_name of this EditMetadataForm. # noqa: E501 :rtype: str
var description
Gets the description of this EditMetadataForm. # noqa: E501
:return: The description of this EditMetadataForm. # noqa: E501 :rtype: str
var labels
Gets the labels of this EditMetadataForm. # noqa: E501
:return: The labels of this EditMetadataForm. # noqa: E501 :rtype: list[str]
var project_name
Gets the project_name of this EditMetadataForm. # noqa: E501
:return: The project_name of this EditMetadataForm. # noqa: E501 :rtype: str