lentiq.models.kafka 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.kafka_configuration import KafkaConfiguration # noqa: F401,E501 from lentiq.models.kafka_status import KafkaStatus # noqa: F401,E501 class Kafka(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': 'KafkaStatus', 'configuration': 'KafkaConfiguration', '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 """Kafka - 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 Kafka. # noqa: E501 :return: The application_current_operation_status of this Kafka. # 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 Kafka. :param application_current_operation_status: The application_current_operation_status of this Kafka. # 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 Kafka. # noqa: E501 :return: The cached_application_status of this Kafka. # noqa: E501 :rtype: KafkaStatus """ return self._cached_application_status @cached_application_status.setter def cached_application_status(self, cached_application_status): """Sets the cached_application_status of this Kafka. :param cached_application_status: The cached_application_status of this Kafka. # noqa: E501 :type: KafkaStatus """ self._cached_application_status = cached_application_status @property def configuration(self): """Gets the configuration of this Kafka. # noqa: E501 :return: The configuration of this Kafka. # noqa: E501 :rtype: KafkaConfiguration """ return self._configuration @configuration.setter def configuration(self, configuration): """Sets the configuration of this Kafka. :param configuration: The configuration of this Kafka. # noqa: E501 :type: KafkaConfiguration """ self._configuration = configuration @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Kafka. # noqa: E501 :return: The created_timestamp_seconds of this Kafka. # 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 Kafka. :param created_timestamp_seconds: The created_timestamp_seconds of this Kafka. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datapool_name(self): """Gets the datapool_name of this Kafka. # noqa: E501 :return: The datapool_name of this Kafka. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this Kafka. :param datapool_name: The datapool_name of this Kafka. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def generation(self): """Gets the generation of this Kafka. # noqa: E501 :return: The generation of this Kafka. # noqa: E501 :rtype: int """ return self._generation @generation.setter def generation(self, generation): """Sets the generation of this Kafka. :param generation: The generation of this Kafka. # noqa: E501 :type: int """ self._generation = generation @property def internal_service(self): """Gets the internal_service of this Kafka. # noqa: E501 :return: The internal_service of this Kafka. # noqa: E501 :rtype: bool """ return self._internal_service @internal_service.setter def internal_service(self, internal_service): """Sets the internal_service of this Kafka. :param internal_service: The internal_service of this Kafka. # noqa: E501 :type: bool """ self._internal_service = internal_service @property def name(self): """Gets the name of this Kafka. # noqa: E501 :return: The name of this Kafka. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Kafka. :param name: The name of this Kafka. # noqa: E501 :type: str """ self._name = name @property def phase(self): """Gets the phase of this Kafka. # noqa: E501 :return: The phase of this Kafka. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): """Sets the phase of this Kafka. :param phase: The phase of this Kafka. # noqa: E501 :type: str """ self._phase = phase @property def project_name(self): """Gets the project_name of this Kafka. # noqa: E501 :return: The project_name of this Kafka. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this Kafka. :param project_name: The project_name of this Kafka. # noqa: E501 :type: str """ self._project_name = project_name @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Kafka. # noqa: E501 :return: The updated_timestamp_seconds of this Kafka. # 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 Kafka. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Kafka. # 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(Kafka, 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, Kafka): 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 Kafka
class Kafka(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': 'KafkaStatus', 'configuration': 'KafkaConfiguration', '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 """Kafka - 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 Kafka. # noqa: E501 :return: The application_current_operation_status of this Kafka. # 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 Kafka. :param application_current_operation_status: The application_current_operation_status of this Kafka. # 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 Kafka. # noqa: E501 :return: The cached_application_status of this Kafka. # noqa: E501 :rtype: KafkaStatus """ return self._cached_application_status @cached_application_status.setter def cached_application_status(self, cached_application_status): """Sets the cached_application_status of this Kafka. :param cached_application_status: The cached_application_status of this Kafka. # noqa: E501 :type: KafkaStatus """ self._cached_application_status = cached_application_status @property def configuration(self): """Gets the configuration of this Kafka. # noqa: E501 :return: The configuration of this Kafka. # noqa: E501 :rtype: KafkaConfiguration """ return self._configuration @configuration.setter def configuration(self, configuration): """Sets the configuration of this Kafka. :param configuration: The configuration of this Kafka. # noqa: E501 :type: KafkaConfiguration """ self._configuration = configuration @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Kafka. # noqa: E501 :return: The created_timestamp_seconds of this Kafka. # 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 Kafka. :param created_timestamp_seconds: The created_timestamp_seconds of this Kafka. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datapool_name(self): """Gets the datapool_name of this Kafka. # noqa: E501 :return: The datapool_name of this Kafka. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this Kafka. :param datapool_name: The datapool_name of this Kafka. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def generation(self): """Gets the generation of this Kafka. # noqa: E501 :return: The generation of this Kafka. # noqa: E501 :rtype: int """ return self._generation @generation.setter def generation(self, generation): """Sets the generation of this Kafka. :param generation: The generation of this Kafka. # noqa: E501 :type: int """ self._generation = generation @property def internal_service(self): """Gets the internal_service of this Kafka. # noqa: E501 :return: The internal_service of this Kafka. # noqa: E501 :rtype: bool """ return self._internal_service @internal_service.setter def internal_service(self, internal_service): """Sets the internal_service of this Kafka. :param internal_service: The internal_service of this Kafka. # noqa: E501 :type: bool """ self._internal_service = internal_service @property def name(self): """Gets the name of this Kafka. # noqa: E501 :return: The name of this Kafka. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Kafka. :param name: The name of this Kafka. # noqa: E501 :type: str """ self._name = name @property def phase(self): """Gets the phase of this Kafka. # noqa: E501 :return: The phase of this Kafka. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): """Sets the phase of this Kafka. :param phase: The phase of this Kafka. # noqa: E501 :type: str """ self._phase = phase @property def project_name(self): """Gets the project_name of this Kafka. # noqa: E501 :return: The project_name of this Kafka. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this Kafka. :param project_name: The project_name of this Kafka. # noqa: E501 :type: str """ self._project_name = project_name @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Kafka. # noqa: E501 :return: The updated_timestamp_seconds of this Kafka. # 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 Kafka. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Kafka. # 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(Kafka, 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, Kafka): 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)
- Kafka
- 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)
Kafka - 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 """Kafka - 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(Kafka, 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 Kafka. # noqa: E501
:return: The application_current_operation_status of this Kafka. # noqa: E501 :rtype: ApplicationCurrentOperationStatus
var cached_application_status
Gets the cached_application_status of this Kafka. # noqa: E501
:return: The cached_application_status of this Kafka. # noqa: E501 :rtype: KafkaStatus
var configuration
Gets the configuration of this Kafka. # noqa: E501
:return: The configuration of this Kafka. # noqa: E501 :rtype: KafkaConfiguration
var created_timestamp_seconds
Gets the created_timestamp_seconds of this Kafka. # noqa: E501
:return: The created_timestamp_seconds of this Kafka. # noqa: E501 :rtype: int
var datapool_name
Gets the datapool_name of this Kafka. # noqa: E501
:return: The datapool_name of this Kafka. # noqa: E501 :rtype: str
var generation
Gets the generation of this Kafka. # noqa: E501
:return: The generation of this Kafka. # noqa: E501 :rtype: int
var internal_service
Gets the internal_service of this Kafka. # noqa: E501
:return: The internal_service of this Kafka. # noqa: E501 :rtype: bool
var name
Gets the name of this Kafka. # noqa: E501
:return: The name of this Kafka. # noqa: E501 :rtype: str
var phase
Gets the phase of this Kafka. # noqa: E501
:return: The phase of this Kafka. # noqa: E501 :rtype: str
var project_name
Gets the project_name of this Kafka. # noqa: E501
:return: The project_name of this Kafka. # 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 Kafka. # noqa: E501
:return: The updated_timestamp_seconds of this Kafka. # noqa: E501 :rtype: int