"""
    Config API v1

    The `config` service provides basic catalog management operations. It manages all platform resources needed for different kinds of catalogs and operations on them.  # noqa: E501

    The version of the OpenAPI document: 1.1.6
    Generated by: https://openapi-generator.tech
"""


import re  # noqa: F401
import sys  # noqa: F401

from here_data_config_v1_client.model_utils import (  # noqa: F401
    ApiTypeError,
    ModelComposed,
    ModelNormal,
    ModelSimple,
    cached_property,
    change_keys_js_to_python,
    convert_js_args_to_python_args,
    date,
    datetime,
    file_type,
    none_type,
    validate_get_composed_info,
)

def lazy_import():
    from here_data_config_v1_client.model.billing_tags import BillingTags
    from here_data_config_v1_client.model.content_encoding import ContentEncoding
    from here_data_config_v1_client.model.coverage import Coverage
    from here_data_config_v1_client.model.deprecated_partitioning_scheme import DeprecatedPartitioningScheme
    from here_data_config_v1_client.model.durable_volume import DurableVolume
    from here_data_config_v1_client.model.layer_description import LayerDescription
    from here_data_config_v1_client.model.layer_id import LayerId
    from here_data_config_v1_client.model.layer_name import LayerName
    from here_data_config_v1_client.model.layer_summary import LayerSummary
    from here_data_config_v1_client.model.partitioning import Partitioning
    from here_data_config_v1_client.model.schema import Schema
    from here_data_config_v1_client.model.stream_layer_type import StreamLayerType
    from here_data_config_v1_client.model.stream_properties import StreamProperties
    from here_data_config_v1_client.model.tags import Tags
    globals()['BillingTags'] = BillingTags
    globals()['ContentEncoding'] = ContentEncoding
    globals()['Coverage'] = Coverage
    globals()['DeprecatedPartitioningScheme'] = DeprecatedPartitioningScheme
    globals()['DurableVolume'] = DurableVolume
    globals()['LayerDescription'] = LayerDescription
    globals()['LayerId'] = LayerId
    globals()['LayerName'] = LayerName
    globals()['LayerSummary'] = LayerSummary
    globals()['Partitioning'] = Partitioning
    globals()['Schema'] = Schema
    globals()['StreamLayerType'] = StreamLayerType
    globals()['StreamProperties'] = StreamProperties
    globals()['Tags'] = Tags


class StreamLayerAllOf(ModelNormal):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
      allowed_values (dict): The key is the tuple path to the attribute
          and the for var_name this is (var_name,). The value is a dict
          with a capitalized key describing the allowed value and an allowed
          value. These dicts store the allowed enum values.
      attribute_map (dict): The key is attribute name
          and the value is json key in definition.
      discriminator_value_class_map (dict): A dict to go from the discriminator
          variable value to the discriminator class name.
      validations (dict): The key is the tuple path to the attribute
          and the for var_name this is (var_name,). The value is a dict
          that stores validations for max_length, min_length, max_items,
          min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
          inclusive_minimum, and regex.
      additional_properties_type (tuple): A tuple of classes accepted
          as additional properties values.
    """

    allowed_values = {
    }

    validations = {
    }

    additional_properties_type = None

    _nullable = False

    @cached_property
    def openapi_types():
        """
        This must be a method because a model may have properties that are
        of type self, this must run after the class is loaded

        Returns
            openapi_types (dict): The key is attribute name
                and the value is attribute type.
        """
        lazy_import()
        return {
            'id': (LayerId,),  # noqa: E501
            'hrn': (str,),  # noqa: E501
            'name': (LayerName,),  # noqa: E501
            'summary': (LayerSummary,),  # noqa: E501
            'description': (LayerDescription,),  # noqa: E501
            'partitioning_scheme': (DeprecatedPartitioningScheme,),  # noqa: E501
            'partitioning': (Partitioning,),  # noqa: E501
            'content_type': (str,),  # noqa: E501
            'tags': (Tags,),  # noqa: E501
            'billing_tags': (BillingTags,),  # noqa: E501
            'ttl_hours': (int,),  # noqa: E501
            'ttl': (int,),  # noqa: E501
            'volume': (DurableVolume,),  # noqa: E501
            'stream_properties': (StreamProperties,),  # noqa: E501
            'created': (str,),  # noqa: E501
            'layer_type': (StreamLayerType,),  # noqa: E501
            'coverage': (Coverage,),  # noqa: E501
            'schema': (Schema,),  # noqa: E501
            'content_encoding': (ContentEncoding,),  # noqa: E501
        }

    @cached_property
    def discriminator():
        return None


    attribute_map = {
        'id': 'id',  # noqa: E501
        'hrn': 'hrn',  # noqa: E501
        'name': 'name',  # noqa: E501
        'summary': 'summary',  # noqa: E501
        'description': 'description',  # noqa: E501
        'partitioning_scheme': 'partitioningScheme',  # noqa: E501
        'partitioning': 'partitioning',  # noqa: E501
        'content_type': 'contentType',  # noqa: E501
        'tags': 'tags',  # noqa: E501
        'billing_tags': 'billingTags',  # noqa: E501
        'ttl_hours': 'ttlHours',  # noqa: E501
        'ttl': 'ttl',  # noqa: E501
        'volume': 'volume',  # noqa: E501
        'stream_properties': 'streamProperties',  # noqa: E501
        'created': 'created',  # noqa: E501
        'layer_type': 'layerType',  # noqa: E501
        'coverage': 'coverage',  # noqa: E501
        'schema': 'schema',  # noqa: E501
        'content_encoding': 'contentEncoding',  # noqa: E501
    }

    _composed_schemas = {}

    required_properties = set([
        '_data_store',
        '_check_type',
        '_spec_property_naming',
        '_path_to_item',
        '_configuration',
        '_visited_composed_classes',
    ])

    @convert_js_args_to_python_args
    def __init__(self, id, hrn, name, summary, description, partitioning_scheme, partitioning, content_type, tags, billing_tags, ttl_hours, ttl, volume, stream_properties, created, layer_type, *args, **kwargs):  # noqa: E501
        """StreamLayerAllOf - a model defined in OpenAPI

        Args:
            id (LayerId):
            hrn (str): The HERE Resource Name (HRN) of the layer.
            name (LayerName):
            summary (LayerSummary):
            description (LayerDescription):
            partitioning_scheme (DeprecatedPartitioningScheme):
            partitioning (Partitioning):
            content_type (str): The MIME type of the data is stored in this layer. Can be updated only for the stream layer.
            tags (Tags):
            billing_tags (BillingTags):
            ttl_hours (int): The expiry time in hours for data in this layer. Data is automatically removed after the specified time limit has elapsed.
            ttl (int): The expiry time in milliseconds for data in this layer. Data is automatically removed after the specified time limit has elapsed. For volatile layers, the TTL value must be between 60000 (1 minute) and 604800000 (7 days). For stream layers the TTL value must be between 600000 (10 minutes) and 259200000 (72 hours). Can be updated for stream and index layers.
            volume (DurableVolume):
            stream_properties (StreamProperties):
            created (str): The layer creation timestamp.
            layer_type (StreamLayerType):

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            coverage (Coverage): [optional]  # noqa: E501
            schema (Schema): [optional]  # noqa: E501
            content_encoding (ContentEncoding): [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__,),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

        self.id = id
        self.hrn = hrn
        self.name = name
        self.summary = summary
        self.description = description
        self.partitioning_scheme = partitioning_scheme
        self.partitioning = partitioning
        self.content_type = content_type
        self.tags = tags
        self.billing_tags = billing_tags
        self.ttl_hours = ttl_hours
        self.ttl = ttl
        self.volume = volume
        self.stream_properties = stream_properties
        self.created = created
        self.layer_type = layer_type
        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
