Top

lentiq.models.kafka_connection_information_internal module

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

import pprint
import re  # noqa: F401

import six
from lentiq.models.application_connection_information_internal import ApplicationConnectionInformationInternal  # noqa: F401,E501


class KafkaConnectionInformationInternal(ApplicationConnectionInformationInternal):
    """
        """
    """
    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 = {
        'broker_connection_strings': 'list[str]',
        'zookeeper_connection_strings': 'list[str]'
    }

    attribute_map = {
        'broker_connection_strings': 'brokerConnectionStrings',
        'zookeeper_connection_strings': 'zookeeperConnectionStrings'
    }

    discriminator = None

    def __init__(self, broker_connection_strings=None, zookeeper_connection_strings=None):  # noqa: E501
        """KafkaConnectionInformationInternal - a model defined in Swagger"""  # noqa: E501
        self._broker_connection_strings = None
        self._zookeeper_connection_strings = None

        if broker_connection_strings is not None:
            self.broker_connection_strings = broker_connection_strings
        if zookeeper_connection_strings is not None:
            self.zookeeper_connection_strings = zookeeper_connection_strings

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


        :return: The broker_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :rtype: list[str]
        """
        return self._broker_connection_strings

    @broker_connection_strings.setter
    def broker_connection_strings(self, broker_connection_strings):
        """Sets the broker_connection_strings of this KafkaConnectionInformationInternal.


        :param broker_connection_strings: The broker_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :type: list[str]
        """

        self._broker_connection_strings = broker_connection_strings

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


        :return: The zookeeper_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :rtype: list[str]
        """
        return self._zookeeper_connection_strings

    @zookeeper_connection_strings.setter
    def zookeeper_connection_strings(self, zookeeper_connection_strings):
        """Sets the zookeeper_connection_strings of this KafkaConnectionInformationInternal.


        :param zookeeper_connection_strings: The zookeeper_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :type: list[str]
        """

        self._zookeeper_connection_strings = zookeeper_connection_strings

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

class KafkaConnectionInformationInternal(ApplicationConnectionInformationInternal):
    """
        """
    """
    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 = {
        'broker_connection_strings': 'list[str]',
        'zookeeper_connection_strings': 'list[str]'
    }

    attribute_map = {
        'broker_connection_strings': 'brokerConnectionStrings',
        'zookeeper_connection_strings': 'zookeeperConnectionStrings'
    }

    discriminator = None

    def __init__(self, broker_connection_strings=None, zookeeper_connection_strings=None):  # noqa: E501
        """KafkaConnectionInformationInternal - a model defined in Swagger"""  # noqa: E501
        self._broker_connection_strings = None
        self._zookeeper_connection_strings = None

        if broker_connection_strings is not None:
            self.broker_connection_strings = broker_connection_strings
        if zookeeper_connection_strings is not None:
            self.zookeeper_connection_strings = zookeeper_connection_strings

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


        :return: The broker_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :rtype: list[str]
        """
        return self._broker_connection_strings

    @broker_connection_strings.setter
    def broker_connection_strings(self, broker_connection_strings):
        """Sets the broker_connection_strings of this KafkaConnectionInformationInternal.


        :param broker_connection_strings: The broker_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :type: list[str]
        """

        self._broker_connection_strings = broker_connection_strings

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


        :return: The zookeeper_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :rtype: list[str]
        """
        return self._zookeeper_connection_strings

    @zookeeper_connection_strings.setter
    def zookeeper_connection_strings(self, zookeeper_connection_strings):
        """Sets the zookeeper_connection_strings of this KafkaConnectionInformationInternal.


        :param zookeeper_connection_strings: The zookeeper_connection_strings of this KafkaConnectionInformationInternal.  # noqa: E501
        :type: list[str]
        """

        self._zookeeper_connection_strings = zookeeper_connection_strings

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

var swagger_types

Static methods

def __init__(

self, broker_connection_strings=None, zookeeper_connection_strings=None)

KafkaConnectionInformationInternal - a model defined in Swagger

def __init__(self, broker_connection_strings=None, zookeeper_connection_strings=None):  # noqa: E501
    """KafkaConnectionInformationInternal - a model defined in Swagger"""  # noqa: E501
    self._broker_connection_strings = None
    self._zookeeper_connection_strings = None
    if broker_connection_strings is not None:
        self.broker_connection_strings = broker_connection_strings
    if zookeeper_connection_strings is not None:
        self.zookeeper_connection_strings = zookeeper_connection_strings

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(KafkaConnectionInformationInternal, 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 broker_connection_strings

Gets the broker_connection_strings of this KafkaConnectionInformationInternal. # noqa: E501

:return: The broker_connection_strings of this KafkaConnectionInformationInternal. # noqa: E501 :rtype: list[str]

var type

Gets the type of this ApplicationConnectionInformationInternal. # noqa: E501

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

var zookeeper_connection_strings

Gets the zookeeper_connection_strings of this KafkaConnectionInformationInternal. # noqa: E501

:return: The zookeeper_connection_strings of this KafkaConnectionInformationInternal. # noqa: E501 :rtype: list[str]