Top

lentiq.models.postgre_sql module

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

import pprint
import re  # noqa: F401

import six
from lentiq.models.application import Application  # noqa: F401,E501
from lentiq.models.application_configuration import ApplicationConfiguration  # noqa: F401,E501
from lentiq.models.application_current_operation_status import ApplicationCurrentOperationStatus  # noqa: F401,E501
from lentiq.models.application_status import ApplicationStatus  # noqa: F401,E501
from lentiq.models.postgre_sql_configuration import PostgreSQLConfiguration  # noqa: F401,E501
from lentiq.models.postgre_sql_status import PostgreSQLStatus  # noqa: F401,E501


class PostgreSQL(Application):
    """
        """
    """
    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 = {
        'application_current_operation_status': 'ApplicationCurrentOperationStatus',
        'cached_application_status': 'PostgreSQLStatus',
        'configuration': 'PostgreSQLConfiguration',
        'created_timestamp_seconds': 'int',
        'datapool_name': 'str',
        'generation': 'int',
        'internal_service': 'bool',
        'name': 'str',
        'phase': 'str',
        'project_name': 'str',
        'updated_timestamp_seconds': 'int'
    }

    attribute_map = {
        'application_current_operation_status': 'applicationCurrentOperationStatus',
        'cached_application_status': 'cachedApplicationStatus',
        'configuration': 'configuration',
        'created_timestamp_seconds': 'createdTimestampSeconds',
        'datapool_name': 'datapoolName',
        'generation': 'generation',
        'internal_service': 'internalService',
        'name': 'name',
        'phase': 'phase',
        'project_name': 'projectName',
        'updated_timestamp_seconds': 'updatedTimestampSeconds'
    }

    discriminator = None

    def __init__(self, application_current_operation_status=None, cached_application_status=None, configuration=None, created_timestamp_seconds=None, datapool_name=None, generation=None, internal_service=None, name=None, phase=None, project_name=None, updated_timestamp_seconds=None):  # noqa: E501
        """PostgreSQL - a model defined in Swagger"""  # noqa: E501
        self._application_current_operation_status = None
        self._cached_application_status = None
        self._configuration = None
        self._created_timestamp_seconds = None
        self._datapool_name = None
        self._generation = None
        self._internal_service = None
        self._name = None
        self._phase = None
        self._project_name = None
        self._updated_timestamp_seconds = None

        if application_current_operation_status is not None:
            self.application_current_operation_status = application_current_operation_status
        if cached_application_status is not None:
            self.cached_application_status = cached_application_status
        if configuration is not None:
            self.configuration = configuration
        if created_timestamp_seconds is not None:
            self.created_timestamp_seconds = created_timestamp_seconds
        if datapool_name is not None:
            self.datapool_name = datapool_name
        if generation is not None:
            self.generation = generation
        if internal_service is not None:
            self.internal_service = internal_service
        if name is not None:
            self.name = name
        if phase is not None:
            self.phase = phase
        if project_name is not None:
            self.project_name = project_name
        if updated_timestamp_seconds is not None:
            self.updated_timestamp_seconds = updated_timestamp_seconds

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


        :return: The application_current_operation_status of this PostgreSQL.  # noqa: E501
        :rtype: ApplicationCurrentOperationStatus
        """
        return self._application_current_operation_status

    @application_current_operation_status.setter
    def application_current_operation_status(self, application_current_operation_status):
        """Sets the application_current_operation_status of this PostgreSQL.


        :param application_current_operation_status: The application_current_operation_status of this PostgreSQL.  # noqa: E501
        :type: ApplicationCurrentOperationStatus
        """

        self._application_current_operation_status = application_current_operation_status

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


        :return: The cached_application_status of this PostgreSQL.  # noqa: E501
        :rtype: PostgreSQLStatus
        """
        return self._cached_application_status

    @cached_application_status.setter
    def cached_application_status(self, cached_application_status):
        """Sets the cached_application_status of this PostgreSQL.


        :param cached_application_status: The cached_application_status of this PostgreSQL.  # noqa: E501
        :type: PostgreSQLStatus
        """

        self._cached_application_status = cached_application_status

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


        :return: The configuration of this PostgreSQL.  # noqa: E501
        :rtype: PostgreSQLConfiguration
        """
        return self._configuration

    @configuration.setter
    def configuration(self, configuration):
        """Sets the configuration of this PostgreSQL.


        :param configuration: The configuration of this PostgreSQL.  # noqa: E501
        :type: PostgreSQLConfiguration
        """

        self._configuration = configuration

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


        :return: The created_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :rtype: int
        """
        return self._created_timestamp_seconds

    @created_timestamp_seconds.setter
    def created_timestamp_seconds(self, created_timestamp_seconds):
        """Sets the created_timestamp_seconds of this PostgreSQL.


        :param created_timestamp_seconds: The created_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :type: int
        """

        self._created_timestamp_seconds = created_timestamp_seconds

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


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

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


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

        self._datapool_name = datapool_name

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


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

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


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

        self._generation = generation

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


        :return: The internal_service of this PostgreSQL.  # noqa: E501
        :rtype: bool
        """
        return self._internal_service

    @internal_service.setter
    def internal_service(self, internal_service):
        """Sets the internal_service of this PostgreSQL.


        :param internal_service: The internal_service of this PostgreSQL.  # noqa: E501
        :type: bool
        """

        self._internal_service = internal_service

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


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

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


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

        self._name = name

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


        :return: The phase of this PostgreSQL.  # noqa: E501
        :rtype: str
        """
        return self._phase

    @phase.setter
    def phase(self, phase):
        """Sets the phase of this PostgreSQL.


        :param phase: The phase of this PostgreSQL.  # noqa: E501
        :type: str
        """

        self._phase = phase

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


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

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


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

        self._project_name = project_name

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


        :return: The updated_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :rtype: int
        """
        return self._updated_timestamp_seconds

    @updated_timestamp_seconds.setter
    def updated_timestamp_seconds(self, updated_timestamp_seconds):
        """Sets the updated_timestamp_seconds of this PostgreSQL.


        :param updated_timestamp_seconds: The updated_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :type: int
        """

        self._updated_timestamp_seconds = updated_timestamp_seconds

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

class PostgreSQL(Application):
    """
        """
    """
    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 = {
        'application_current_operation_status': 'ApplicationCurrentOperationStatus',
        'cached_application_status': 'PostgreSQLStatus',
        'configuration': 'PostgreSQLConfiguration',
        'created_timestamp_seconds': 'int',
        'datapool_name': 'str',
        'generation': 'int',
        'internal_service': 'bool',
        'name': 'str',
        'phase': 'str',
        'project_name': 'str',
        'updated_timestamp_seconds': 'int'
    }

    attribute_map = {
        'application_current_operation_status': 'applicationCurrentOperationStatus',
        'cached_application_status': 'cachedApplicationStatus',
        'configuration': 'configuration',
        'created_timestamp_seconds': 'createdTimestampSeconds',
        'datapool_name': 'datapoolName',
        'generation': 'generation',
        'internal_service': 'internalService',
        'name': 'name',
        'phase': 'phase',
        'project_name': 'projectName',
        'updated_timestamp_seconds': 'updatedTimestampSeconds'
    }

    discriminator = None

    def __init__(self, application_current_operation_status=None, cached_application_status=None, configuration=None, created_timestamp_seconds=None, datapool_name=None, generation=None, internal_service=None, name=None, phase=None, project_name=None, updated_timestamp_seconds=None):  # noqa: E501
        """PostgreSQL - a model defined in Swagger"""  # noqa: E501
        self._application_current_operation_status = None
        self._cached_application_status = None
        self._configuration = None
        self._created_timestamp_seconds = None
        self._datapool_name = None
        self._generation = None
        self._internal_service = None
        self._name = None
        self._phase = None
        self._project_name = None
        self._updated_timestamp_seconds = None

        if application_current_operation_status is not None:
            self.application_current_operation_status = application_current_operation_status
        if cached_application_status is not None:
            self.cached_application_status = cached_application_status
        if configuration is not None:
            self.configuration = configuration
        if created_timestamp_seconds is not None:
            self.created_timestamp_seconds = created_timestamp_seconds
        if datapool_name is not None:
            self.datapool_name = datapool_name
        if generation is not None:
            self.generation = generation
        if internal_service is not None:
            self.internal_service = internal_service
        if name is not None:
            self.name = name
        if phase is not None:
            self.phase = phase
        if project_name is not None:
            self.project_name = project_name
        if updated_timestamp_seconds is not None:
            self.updated_timestamp_seconds = updated_timestamp_seconds

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


        :return: The application_current_operation_status of this PostgreSQL.  # noqa: E501
        :rtype: ApplicationCurrentOperationStatus
        """
        return self._application_current_operation_status

    @application_current_operation_status.setter
    def application_current_operation_status(self, application_current_operation_status):
        """Sets the application_current_operation_status of this PostgreSQL.


        :param application_current_operation_status: The application_current_operation_status of this PostgreSQL.  # noqa: E501
        :type: ApplicationCurrentOperationStatus
        """

        self._application_current_operation_status = application_current_operation_status

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


        :return: The cached_application_status of this PostgreSQL.  # noqa: E501
        :rtype: PostgreSQLStatus
        """
        return self._cached_application_status

    @cached_application_status.setter
    def cached_application_status(self, cached_application_status):
        """Sets the cached_application_status of this PostgreSQL.


        :param cached_application_status: The cached_application_status of this PostgreSQL.  # noqa: E501
        :type: PostgreSQLStatus
        """

        self._cached_application_status = cached_application_status

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


        :return: The configuration of this PostgreSQL.  # noqa: E501
        :rtype: PostgreSQLConfiguration
        """
        return self._configuration

    @configuration.setter
    def configuration(self, configuration):
        """Sets the configuration of this PostgreSQL.


        :param configuration: The configuration of this PostgreSQL.  # noqa: E501
        :type: PostgreSQLConfiguration
        """

        self._configuration = configuration

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


        :return: The created_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :rtype: int
        """
        return self._created_timestamp_seconds

    @created_timestamp_seconds.setter
    def created_timestamp_seconds(self, created_timestamp_seconds):
        """Sets the created_timestamp_seconds of this PostgreSQL.


        :param created_timestamp_seconds: The created_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :type: int
        """

        self._created_timestamp_seconds = created_timestamp_seconds

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


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

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


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

        self._datapool_name = datapool_name

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


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

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


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

        self._generation = generation

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


        :return: The internal_service of this PostgreSQL.  # noqa: E501
        :rtype: bool
        """
        return self._internal_service

    @internal_service.setter
    def internal_service(self, internal_service):
        """Sets the internal_service of this PostgreSQL.


        :param internal_service: The internal_service of this PostgreSQL.  # noqa: E501
        :type: bool
        """

        self._internal_service = internal_service

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


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

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


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

        self._name = name

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


        :return: The phase of this PostgreSQL.  # noqa: E501
        :rtype: str
        """
        return self._phase

    @phase.setter
    def phase(self, phase):
        """Sets the phase of this PostgreSQL.


        :param phase: The phase of this PostgreSQL.  # noqa: E501
        :type: str
        """

        self._phase = phase

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


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

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


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

        self._project_name = project_name

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


        :return: The updated_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :rtype: int
        """
        return self._updated_timestamp_seconds

    @updated_timestamp_seconds.setter
    def updated_timestamp_seconds(self, updated_timestamp_seconds):
        """Sets the updated_timestamp_seconds of this PostgreSQL.


        :param updated_timestamp_seconds: The updated_timestamp_seconds of this PostgreSQL.  # noqa: E501
        :type: int
        """

        self._updated_timestamp_seconds = updated_timestamp_seconds

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

  • PostgreSQL
  • lentiq.models.application.Application
  • builtins.object

Class variables

var attribute_map

var discriminator

var discriminator_value_class_map

var swagger_types

Static methods

def __init__(

self, application_current_operation_status=None, cached_application_status=None, configuration=None, created_timestamp_seconds=None, datapool_name=None, generation=None, internal_service=None, name=None, phase=None, project_name=None, updated_timestamp_seconds=None)

PostgreSQL - a model defined in Swagger

def __init__(self, application_current_operation_status=None, cached_application_status=None, configuration=None, created_timestamp_seconds=None, datapool_name=None, generation=None, internal_service=None, name=None, phase=None, project_name=None, updated_timestamp_seconds=None):  # noqa: E501
    """PostgreSQL - a model defined in Swagger"""  # noqa: E501
    self._application_current_operation_status = None
    self._cached_application_status = None
    self._configuration = None
    self._created_timestamp_seconds = None
    self._datapool_name = None
    self._generation = None
    self._internal_service = None
    self._name = None
    self._phase = None
    self._project_name = None
    self._updated_timestamp_seconds = None
    if application_current_operation_status is not None:
        self.application_current_operation_status = application_current_operation_status
    if cached_application_status is not None:
        self.cached_application_status = cached_application_status
    if configuration is not None:
        self.configuration = configuration
    if created_timestamp_seconds is not None:
        self.created_timestamp_seconds = created_timestamp_seconds
    if datapool_name is not None:
        self.datapool_name = datapool_name
    if generation is not None:
        self.generation = generation
    if internal_service is not None:
        self.internal_service = internal_service
    if name is not None:
        self.name = name
    if phase is not None:
        self.phase = phase
    if project_name is not None:
        self.project_name = project_name
    if updated_timestamp_seconds is not None:
        self.updated_timestamp_seconds = updated_timestamp_seconds

def get_real_child_model(

self, data)

Returns the real base class specified by the discriminator

def get_real_child_model(self, data):
    """Returns the real base class specified by the discriminator"""
    discriminator_value = data[self.discriminator] #.lower()
    return self.discriminator_value_class_map.get(discriminator_value)

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(PostgreSQL, 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 application_current_operation_status

Gets the application_current_operation_status of this PostgreSQL. # noqa: E501

:return: The application_current_operation_status of this PostgreSQL. # noqa: E501 :rtype: ApplicationCurrentOperationStatus

var cached_application_status

Gets the cached_application_status of this PostgreSQL. # noqa: E501

:return: The cached_application_status of this PostgreSQL. # noqa: E501 :rtype: PostgreSQLStatus

var configuration

Gets the configuration of this PostgreSQL. # noqa: E501

:return: The configuration of this PostgreSQL. # noqa: E501 :rtype: PostgreSQLConfiguration

var created_timestamp_seconds

Gets the created_timestamp_seconds of this PostgreSQL. # noqa: E501

:return: The created_timestamp_seconds of this PostgreSQL. # noqa: E501 :rtype: int

var datapool_name

Gets the datapool_name of this PostgreSQL. # noqa: E501

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

var generation

Gets the generation of this PostgreSQL. # noqa: E501

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

var internal_service

Gets the internal_service of this PostgreSQL. # noqa: E501

:return: The internal_service of this PostgreSQL. # noqa: E501 :rtype: bool

var name

Gets the name of this PostgreSQL. # noqa: E501

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

var phase

Gets the phase of this PostgreSQL. # noqa: E501

:return: The phase of this PostgreSQL. # noqa: E501 :rtype: str

var project_name

Gets the project_name of this PostgreSQL. # noqa: E501

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

var type

Gets the type of this Application. # noqa: E501

:return: The type of this Application. # noqa: E501 :rtype: str

var updated_timestamp_seconds

Gets the updated_timestamp_seconds of this PostgreSQL. # noqa: E501

:return: The updated_timestamp_seconds of this PostgreSQL. # noqa: E501 :rtype: int