# coding: utf-8

"""
    node-server

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

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

from datetime import date, datetime  # noqa: F401
import decimal  # noqa: F401
import functools  # noqa: F401
import io  # noqa: F401
import re  # noqa: F401
import typing  # noqa: F401
import typing_extensions  # noqa: F401
import uuid  # noqa: F401

import frozendict  # noqa: F401

from openapi_client import schemas  # noqa: F401


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

    Do not edit the class manually.
    """


    class MetaOapg:
        required = {
            "payload",
            "epoch",
            "title",
        }
        
        class properties:
            
            
            class payload(
                schemas.ListSchema
            ):
            
            
                class MetaOapg:
                    
                    @staticmethod
                    def items() -> typing.Type['VizType']:
                        return VizType
            
                def __new__(
                    cls,
                    arg: typing.Union[typing.Tuple['VizType'], typing.List['VizType']],
                    _configuration: typing.Optional[schemas.Configuration] = None,
                ) -> 'payload':
                    return super().__new__(
                        cls,
                        arg,
                        _configuration=_configuration,
                    )
            
                def __getitem__(self, i: int) -> 'VizType':
                    return super().__getitem__(i)
            title = schemas.StrSchema
            epoch = schemas.Float64Schema
            __annotations__ = {
                "payload": payload,
                "title": title,
                "epoch": epoch,
            }
        additional_properties = schemas.NotAnyTypeSchema
    
    payload: MetaOapg.properties.payload
    epoch: MetaOapg.properties.epoch
    title: MetaOapg.properties.title
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["payload"]) -> MetaOapg.properties.payload: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["epoch"]) -> MetaOapg.properties.epoch: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ...
    
    def __getitem__(self, name: typing.Union[typing_extensions.Literal["payload"], typing_extensions.Literal["epoch"], typing_extensions.Literal["title"], ]):
        # dict_instance[name] accessor
        return super().__getitem__(name)
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["payload"]) -> MetaOapg.properties.payload: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["epoch"]) -> MetaOapg.properties.epoch: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ...
    
    def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payload"], typing_extensions.Literal["epoch"], typing_extensions.Literal["title"], ]):
        return super().get_item_oapg(name)

    def __new__(
        cls,
        *args: typing.Union[dict, frozendict.frozendict, ],
        payload: typing.Union[MetaOapg.properties.payload, list, tuple, ],
        epoch: typing.Union[MetaOapg.properties.epoch, decimal.Decimal, int, float, ],
        title: typing.Union[MetaOapg.properties.title, str, ],
        _configuration: typing.Optional[schemas.Configuration] = None,
    ) -> 'VisualizationData':
        return super().__new__(
            cls,
            *args,
            payload=payload,
            epoch=epoch,
            title=title,
            _configuration=_configuration,
        )

from openapi_client.model.viz_type import VizType
