Top

lentiq.models.datapool_current_operation_status module

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

import pprint
import re  # noqa: F401

import six


class DatapoolCurrentOperationStatus(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 = {
        'current_stage': 'int',
        'failure_reason': 'str',
        'has_failed': 'bool',
        'total_stages': 'int'
    }

    attribute_map = {
        'current_stage': 'currentStage',
        'failure_reason': 'failureReason',
        'has_failed': 'hasFailed',
        'total_stages': 'totalStages'
    }

    discriminator = None

    def __init__(self, current_stage=None, failure_reason=None, has_failed=None, total_stages=None):  # noqa: E501
        """DatapoolCurrentOperationStatus - a model defined in Swagger"""  # noqa: E501
        self._current_stage = None
        self._failure_reason = None
        self._has_failed = None
        self._total_stages = None

        if current_stage is not None:
            self.current_stage = current_stage
        if failure_reason is not None:
            self.failure_reason = failure_reason
        if has_failed is not None:
            self.has_failed = has_failed
        if total_stages is not None:
            self.total_stages = total_stages

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


        :return: The current_stage of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: int
        """
        return self._current_stage

    @current_stage.setter
    def current_stage(self, current_stage):
        """Sets the current_stage of this DatapoolCurrentOperationStatus.


        :param current_stage: The current_stage of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: int
        """

        self._current_stage = current_stage

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


        :return: The failure_reason of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: str
        """
        return self._failure_reason

    @failure_reason.setter
    def failure_reason(self, failure_reason):
        """Sets the failure_reason of this DatapoolCurrentOperationStatus.


        :param failure_reason: The failure_reason of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: str
        """

        self._failure_reason = failure_reason

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


        :return: The has_failed of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: bool
        """
        return self._has_failed

    @has_failed.setter
    def has_failed(self, has_failed):
        """Sets the has_failed of this DatapoolCurrentOperationStatus.


        :param has_failed: The has_failed of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: bool
        """

        self._has_failed = has_failed

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


        :return: The total_stages of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: int
        """
        return self._total_stages

    @total_stages.setter
    def total_stages(self, total_stages):
        """Sets the total_stages of this DatapoolCurrentOperationStatus.


        :param total_stages: The total_stages of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: int
        """

        self._total_stages = total_stages

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

class DatapoolCurrentOperationStatus(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 = {
        'current_stage': 'int',
        'failure_reason': 'str',
        'has_failed': 'bool',
        'total_stages': 'int'
    }

    attribute_map = {
        'current_stage': 'currentStage',
        'failure_reason': 'failureReason',
        'has_failed': 'hasFailed',
        'total_stages': 'totalStages'
    }

    discriminator = None

    def __init__(self, current_stage=None, failure_reason=None, has_failed=None, total_stages=None):  # noqa: E501
        """DatapoolCurrentOperationStatus - a model defined in Swagger"""  # noqa: E501
        self._current_stage = None
        self._failure_reason = None
        self._has_failed = None
        self._total_stages = None

        if current_stage is not None:
            self.current_stage = current_stage
        if failure_reason is not None:
            self.failure_reason = failure_reason
        if has_failed is not None:
            self.has_failed = has_failed
        if total_stages is not None:
            self.total_stages = total_stages

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


        :return: The current_stage of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: int
        """
        return self._current_stage

    @current_stage.setter
    def current_stage(self, current_stage):
        """Sets the current_stage of this DatapoolCurrentOperationStatus.


        :param current_stage: The current_stage of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: int
        """

        self._current_stage = current_stage

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


        :return: The failure_reason of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: str
        """
        return self._failure_reason

    @failure_reason.setter
    def failure_reason(self, failure_reason):
        """Sets the failure_reason of this DatapoolCurrentOperationStatus.


        :param failure_reason: The failure_reason of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: str
        """

        self._failure_reason = failure_reason

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


        :return: The has_failed of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: bool
        """
        return self._has_failed

    @has_failed.setter
    def has_failed(self, has_failed):
        """Sets the has_failed of this DatapoolCurrentOperationStatus.


        :param has_failed: The has_failed of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: bool
        """

        self._has_failed = has_failed

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


        :return: The total_stages of this DatapoolCurrentOperationStatus.  # noqa: E501
        :rtype: int
        """
        return self._total_stages

    @total_stages.setter
    def total_stages(self, total_stages):
        """Sets the total_stages of this DatapoolCurrentOperationStatus.


        :param total_stages: The total_stages of this DatapoolCurrentOperationStatus.  # noqa: E501
        :type: int
        """

        self._total_stages = total_stages

    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(DatapoolCurrentOperationStatus, 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, DatapoolCurrentOperationStatus):
            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, current_stage=None, failure_reason=None, has_failed=None, total_stages=None)

DatapoolCurrentOperationStatus - a model defined in Swagger

def __init__(self, current_stage=None, failure_reason=None, has_failed=None, total_stages=None):  # noqa: E501
    """DatapoolCurrentOperationStatus - a model defined in Swagger"""  # noqa: E501
    self._current_stage = None
    self._failure_reason = None
    self._has_failed = None
    self._total_stages = None
    if current_stage is not None:
        self.current_stage = current_stage
    if failure_reason is not None:
        self.failure_reason = failure_reason
    if has_failed is not None:
        self.has_failed = has_failed
    if total_stages is not None:
        self.total_stages = total_stages

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(DatapoolCurrentOperationStatus, 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 current_stage

Gets the current_stage of this DatapoolCurrentOperationStatus. # noqa: E501

:return: The current_stage of this DatapoolCurrentOperationStatus. # noqa: E501 :rtype: int

var failure_reason

Gets the failure_reason of this DatapoolCurrentOperationStatus. # noqa: E501

:return: The failure_reason of this DatapoolCurrentOperationStatus. # noqa: E501 :rtype: str

var has_failed

Gets the has_failed of this DatapoolCurrentOperationStatus. # noqa: E501

:return: The has_failed of this DatapoolCurrentOperationStatus. # noqa: E501 :rtype: bool

var total_stages

Gets the total_stages of this DatapoolCurrentOperationStatus. # noqa: E501

:return: The total_stages of this DatapoolCurrentOperationStatus. # noqa: E501 :rtype: int