Top

lentiq.models.workflow_metadata module

# coding: utf-8
####alex test
"""
    
    
        
    """

import pprint
import re  # noqa: F401

import six


class WorkflowMetadata(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 = {
        'created_date': 'datetime',
        'datapool_name': 'str',
        'deleted_date': 'datetime',
        'description': 'str',
        'generation': 'int',
        'name': 'str',
        'project_name': 'str',
        'updated_date': 'datetime'
    }

    attribute_map = {
        'created_date': 'createdDate',
        'datapool_name': 'datapoolName',
        'deleted_date': 'deletedDate',
        'description': 'description',
        'generation': 'generation',
        'name': 'name',
        'project_name': 'projectName',
        'updated_date': 'updatedDate'
    }

    discriminator = None

    def __init__(self, created_date=None, datapool_name=None, deleted_date=None, description=None, generation=None, name=None, project_name=None, updated_date=None):  # noqa: E501
        """WorkflowMetadata - a model defined in Swagger"""  # noqa: E501
        self._created_date = None
        self._datapool_name = None
        self._deleted_date = None
        self._description = None
        self._generation = None
        self._name = None
        self._project_name = None
        self._updated_date = None

        if created_date is not None:
            self.created_date = created_date
        if datapool_name is not None:
            self.datapool_name = datapool_name
        if deleted_date is not None:
            self.deleted_date = deleted_date
        if description is not None:
            self.description = description
        if generation is not None:
            self.generation = generation
        if name is not None:
            self.name = name
        if project_name is not None:
            self.project_name = project_name
        if updated_date is not None:
            self.updated_date = updated_date

    @property
    def created_date(self):
        """Gets the created_date of this WorkflowMetadata.  # noqa: E501


        :return: The created_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._created_date

    @created_date.setter
    def created_date(self, created_date):
        """Sets the created_date of this WorkflowMetadata.


        :param created_date: The created_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._created_date = created_date

    @property
    def datapool_name(self):
        """Gets the datapool_name of this WorkflowMetadata.  # noqa: E501


        :return: The datapool_name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._datapool_name

    @datapool_name.setter
    def datapool_name(self, datapool_name):
        """Sets the datapool_name of this WorkflowMetadata.


        :param datapool_name: The datapool_name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._datapool_name = datapool_name

    @property
    def deleted_date(self):
        """Gets the deleted_date of this WorkflowMetadata.  # noqa: E501


        :return: The deleted_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._deleted_date

    @deleted_date.setter
    def deleted_date(self, deleted_date):
        """Sets the deleted_date of this WorkflowMetadata.


        :param deleted_date: The deleted_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._deleted_date = deleted_date

    @property
    def description(self):
        """Gets the description of this WorkflowMetadata.  # noqa: E501


        :return: The description of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this WorkflowMetadata.


        :param description: The description of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def generation(self):
        """Gets the generation of this WorkflowMetadata.  # noqa: E501


        :return: The generation of this WorkflowMetadata.  # noqa: E501
        :rtype: int
        """
        return self._generation

    @generation.setter
    def generation(self, generation):
        """Sets the generation of this WorkflowMetadata.


        :param generation: The generation of this WorkflowMetadata.  # noqa: E501
        :type: int
        """

        self._generation = generation

    @property
    def name(self):
        """Gets the name of this WorkflowMetadata.  # noqa: E501


        :return: The name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this WorkflowMetadata.


        :param name: The name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def project_name(self):
        """Gets the project_name of this WorkflowMetadata.  # noqa: E501


        :return: The project_name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this WorkflowMetadata.


        :param project_name: The project_name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

    @property
    def updated_date(self):
        """Gets the updated_date of this WorkflowMetadata.  # noqa: E501


        :return: The updated_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_date

    @updated_date.setter
    def updated_date(self, updated_date):
        """Sets the updated_date of this WorkflowMetadata.


        :param updated_date: The updated_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._updated_date = updated_date

    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(WorkflowMetadata, 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, WorkflowMetadata):
            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 WorkflowMetadata

class WorkflowMetadata(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 = {
        'created_date': 'datetime',
        'datapool_name': 'str',
        'deleted_date': 'datetime',
        'description': 'str',
        'generation': 'int',
        'name': 'str',
        'project_name': 'str',
        'updated_date': 'datetime'
    }

    attribute_map = {
        'created_date': 'createdDate',
        'datapool_name': 'datapoolName',
        'deleted_date': 'deletedDate',
        'description': 'description',
        'generation': 'generation',
        'name': 'name',
        'project_name': 'projectName',
        'updated_date': 'updatedDate'
    }

    discriminator = None

    def __init__(self, created_date=None, datapool_name=None, deleted_date=None, description=None, generation=None, name=None, project_name=None, updated_date=None):  # noqa: E501
        """WorkflowMetadata - a model defined in Swagger"""  # noqa: E501
        self._created_date = None
        self._datapool_name = None
        self._deleted_date = None
        self._description = None
        self._generation = None
        self._name = None
        self._project_name = None
        self._updated_date = None

        if created_date is not None:
            self.created_date = created_date
        if datapool_name is not None:
            self.datapool_name = datapool_name
        if deleted_date is not None:
            self.deleted_date = deleted_date
        if description is not None:
            self.description = description
        if generation is not None:
            self.generation = generation
        if name is not None:
            self.name = name
        if project_name is not None:
            self.project_name = project_name
        if updated_date is not None:
            self.updated_date = updated_date

    @property
    def created_date(self):
        """Gets the created_date of this WorkflowMetadata.  # noqa: E501


        :return: The created_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._created_date

    @created_date.setter
    def created_date(self, created_date):
        """Sets the created_date of this WorkflowMetadata.


        :param created_date: The created_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._created_date = created_date

    @property
    def datapool_name(self):
        """Gets the datapool_name of this WorkflowMetadata.  # noqa: E501


        :return: The datapool_name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._datapool_name

    @datapool_name.setter
    def datapool_name(self, datapool_name):
        """Sets the datapool_name of this WorkflowMetadata.


        :param datapool_name: The datapool_name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._datapool_name = datapool_name

    @property
    def deleted_date(self):
        """Gets the deleted_date of this WorkflowMetadata.  # noqa: E501


        :return: The deleted_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._deleted_date

    @deleted_date.setter
    def deleted_date(self, deleted_date):
        """Sets the deleted_date of this WorkflowMetadata.


        :param deleted_date: The deleted_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._deleted_date = deleted_date

    @property
    def description(self):
        """Gets the description of this WorkflowMetadata.  # noqa: E501


        :return: The description of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this WorkflowMetadata.


        :param description: The description of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def generation(self):
        """Gets the generation of this WorkflowMetadata.  # noqa: E501


        :return: The generation of this WorkflowMetadata.  # noqa: E501
        :rtype: int
        """
        return self._generation

    @generation.setter
    def generation(self, generation):
        """Sets the generation of this WorkflowMetadata.


        :param generation: The generation of this WorkflowMetadata.  # noqa: E501
        :type: int
        """

        self._generation = generation

    @property
    def name(self):
        """Gets the name of this WorkflowMetadata.  # noqa: E501


        :return: The name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this WorkflowMetadata.


        :param name: The name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def project_name(self):
        """Gets the project_name of this WorkflowMetadata.  # noqa: E501


        :return: The project_name of this WorkflowMetadata.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this WorkflowMetadata.


        :param project_name: The project_name of this WorkflowMetadata.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

    @property
    def updated_date(self):
        """Gets the updated_date of this WorkflowMetadata.  # noqa: E501


        :return: The updated_date of this WorkflowMetadata.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_date

    @updated_date.setter
    def updated_date(self, updated_date):
        """Sets the updated_date of this WorkflowMetadata.


        :param updated_date: The updated_date of this WorkflowMetadata.  # noqa: E501
        :type: datetime
        """

        self._updated_date = updated_date

    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(WorkflowMetadata, 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, WorkflowMetadata):
            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)

Class variables

var attribute_map

var discriminator

var swagger_types

Static methods

def __init__(

self, created_date=None, datapool_name=None, deleted_date=None, description=None, generation=None, name=None, project_name=None, updated_date=None)

WorkflowMetadata - a model defined in Swagger

def __init__(self, created_date=None, datapool_name=None, deleted_date=None, description=None, generation=None, name=None, project_name=None, updated_date=None):  # noqa: E501
    """WorkflowMetadata - a model defined in Swagger"""  # noqa: E501
    self._created_date = None
    self._datapool_name = None
    self._deleted_date = None
    self._description = None
    self._generation = None
    self._name = None
    self._project_name = None
    self._updated_date = None
    if created_date is not None:
        self.created_date = created_date
    if datapool_name is not None:
        self.datapool_name = datapool_name
    if deleted_date is not None:
        self.deleted_date = deleted_date
    if description is not None:
        self.description = description
    if generation is not None:
        self.generation = generation
    if name is not None:
        self.name = name
    if project_name is not None:
        self.project_name = project_name
    if updated_date is not None:
        self.updated_date = updated_date

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(WorkflowMetadata, 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 created_date

Gets the created_date of this WorkflowMetadata. # noqa: E501

:return: The created_date of this WorkflowMetadata. # noqa: E501 :rtype: datetime

var datapool_name

Gets the datapool_name of this WorkflowMetadata. # noqa: E501

:return: The datapool_name of this WorkflowMetadata. # noqa: E501 :rtype: str

var deleted_date

Gets the deleted_date of this WorkflowMetadata. # noqa: E501

:return: The deleted_date of this WorkflowMetadata. # noqa: E501 :rtype: datetime

var description

Gets the description of this WorkflowMetadata. # noqa: E501

:return: The description of this WorkflowMetadata. # noqa: E501 :rtype: str

var generation

Gets the generation of this WorkflowMetadata. # noqa: E501

:return: The generation of this WorkflowMetadata. # noqa: E501 :rtype: int

var name

Gets the name of this WorkflowMetadata. # noqa: E501

:return: The name of this WorkflowMetadata. # noqa: E501 :rtype: str

var project_name

Gets the project_name of this WorkflowMetadata. # noqa: E501

:return: The project_name of this WorkflowMetadata. # noqa: E501 :rtype: str

var updated_date

Gets the updated_date of this WorkflowMetadata. # noqa: E501

:return: The updated_date of this WorkflowMetadata. # noqa: E501 :rtype: datetime