Top

lentiq.models.application_replicas_status module

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

import pprint
import re  # noqa: F401

import six


class ApplicationReplicasStatus(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_replicas': 'int',
        'ready_replicas': 'int',
        'replicas': 'int',
        'updated_replicas': 'int'
    }

    attribute_map = {
        'current_replicas': 'currentReplicas',
        'ready_replicas': 'readyReplicas',
        'replicas': 'replicas',
        'updated_replicas': 'updatedReplicas'
    }

    discriminator = None

    def __init__(self, current_replicas=None, ready_replicas=None, replicas=None, updated_replicas=None):  # noqa: E501
        """ApplicationReplicasStatus - a model defined in Swagger"""  # noqa: E501
        self._current_replicas = None
        self._ready_replicas = None
        self._replicas = None
        self._updated_replicas = None

        if current_replicas is not None:
            self.current_replicas = current_replicas
        if ready_replicas is not None:
            self.ready_replicas = ready_replicas
        if replicas is not None:
            self.replicas = replicas
        if updated_replicas is not None:
            self.updated_replicas = updated_replicas

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


        :return: The current_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._current_replicas

    @current_replicas.setter
    def current_replicas(self, current_replicas):
        """Sets the current_replicas of this ApplicationReplicasStatus.


        :param current_replicas: The current_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._current_replicas = current_replicas

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


        :return: The ready_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._ready_replicas

    @ready_replicas.setter
    def ready_replicas(self, ready_replicas):
        """Sets the ready_replicas of this ApplicationReplicasStatus.


        :param ready_replicas: The ready_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._ready_replicas = ready_replicas

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


        :return: The replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._replicas

    @replicas.setter
    def replicas(self, replicas):
        """Sets the replicas of this ApplicationReplicasStatus.


        :param replicas: The replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._replicas = replicas

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


        :return: The updated_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._updated_replicas

    @updated_replicas.setter
    def updated_replicas(self, updated_replicas):
        """Sets the updated_replicas of this ApplicationReplicasStatus.


        :param updated_replicas: The updated_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._updated_replicas = updated_replicas

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

class ApplicationReplicasStatus(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_replicas': 'int',
        'ready_replicas': 'int',
        'replicas': 'int',
        'updated_replicas': 'int'
    }

    attribute_map = {
        'current_replicas': 'currentReplicas',
        'ready_replicas': 'readyReplicas',
        'replicas': 'replicas',
        'updated_replicas': 'updatedReplicas'
    }

    discriminator = None

    def __init__(self, current_replicas=None, ready_replicas=None, replicas=None, updated_replicas=None):  # noqa: E501
        """ApplicationReplicasStatus - a model defined in Swagger"""  # noqa: E501
        self._current_replicas = None
        self._ready_replicas = None
        self._replicas = None
        self._updated_replicas = None

        if current_replicas is not None:
            self.current_replicas = current_replicas
        if ready_replicas is not None:
            self.ready_replicas = ready_replicas
        if replicas is not None:
            self.replicas = replicas
        if updated_replicas is not None:
            self.updated_replicas = updated_replicas

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


        :return: The current_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._current_replicas

    @current_replicas.setter
    def current_replicas(self, current_replicas):
        """Sets the current_replicas of this ApplicationReplicasStatus.


        :param current_replicas: The current_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._current_replicas = current_replicas

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


        :return: The ready_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._ready_replicas

    @ready_replicas.setter
    def ready_replicas(self, ready_replicas):
        """Sets the ready_replicas of this ApplicationReplicasStatus.


        :param ready_replicas: The ready_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._ready_replicas = ready_replicas

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


        :return: The replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._replicas

    @replicas.setter
    def replicas(self, replicas):
        """Sets the replicas of this ApplicationReplicasStatus.


        :param replicas: The replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._replicas = replicas

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


        :return: The updated_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :rtype: int
        """
        return self._updated_replicas

    @updated_replicas.setter
    def updated_replicas(self, updated_replicas):
        """Sets the updated_replicas of this ApplicationReplicasStatus.


        :param updated_replicas: The updated_replicas of this ApplicationReplicasStatus.  # noqa: E501
        :type: int
        """

        self._updated_replicas = updated_replicas

    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(ApplicationReplicasStatus, 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, ApplicationReplicasStatus):
            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_replicas=None, ready_replicas=None, replicas=None, updated_replicas=None)

ApplicationReplicasStatus - a model defined in Swagger

def __init__(self, current_replicas=None, ready_replicas=None, replicas=None, updated_replicas=None):  # noqa: E501
    """ApplicationReplicasStatus - a model defined in Swagger"""  # noqa: E501
    self._current_replicas = None
    self._ready_replicas = None
    self._replicas = None
    self._updated_replicas = None
    if current_replicas is not None:
        self.current_replicas = current_replicas
    if ready_replicas is not None:
        self.ready_replicas = ready_replicas
    if replicas is not None:
        self.replicas = replicas
    if updated_replicas is not None:
        self.updated_replicas = updated_replicas

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(ApplicationReplicasStatus, 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_replicas

Gets the current_replicas of this ApplicationReplicasStatus. # noqa: E501

:return: The current_replicas of this ApplicationReplicasStatus. # noqa: E501 :rtype: int

var ready_replicas

Gets the ready_replicas of this ApplicationReplicasStatus. # noqa: E501

:return: The ready_replicas of this ApplicationReplicasStatus. # noqa: E501 :rtype: int

var replicas

Gets the replicas of this ApplicationReplicasStatus. # noqa: E501

:return: The replicas of this ApplicationReplicasStatus. # noqa: E501 :rtype: int

var updated_replicas

Gets the updated_replicas of this ApplicationReplicasStatus. # noqa: E501

:return: The updated_replicas of this ApplicationReplicasStatus. # noqa: E501 :rtype: int