# 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 tensorleap_openapi_client import schemas  # noqa: F401


class SlimOrganization(
    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 = {
            "isDefault",
            "publicName",
            "name",
            "_id",
            "type",
        }
        
        class properties:
            _id = schemas.StrSchema
            name = schemas.StrSchema
            publicName = schemas.StrSchema
            type = schemas.StrSchema
            isDefault = schemas.BoolSchema
            machineTypeId = schemas.StrSchema
            __annotations__ = {
                "_id": _id,
                "name": name,
                "publicName": publicName,
                "type": type,
                "isDefault": isDefault,
                "machineTypeId": machineTypeId,
            }
        additional_properties = schemas.NotAnyTypeSchema
    
    isDefault: MetaOapg.properties.isDefault
    publicName: MetaOapg.properties.publicName
    name: MetaOapg.properties.name
    _id: MetaOapg.properties._id
    type: MetaOapg.properties.type
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["isDefault"]) -> MetaOapg.properties.isDefault: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["publicName"]) -> MetaOapg.properties.publicName: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["_id"]) -> MetaOapg.properties._id: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["machineTypeId"]) -> MetaOapg.properties.machineTypeId: ...
    
    def __getitem__(self, name: typing.Union[typing_extensions.Literal["isDefault"], typing_extensions.Literal["publicName"], typing_extensions.Literal["name"], typing_extensions.Literal["_id"], typing_extensions.Literal["type"], typing_extensions.Literal["machineTypeId"], ]):
        # dict_instance[name] accessor
        return super().__getitem__(name)
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["isDefault"]) -> MetaOapg.properties.isDefault: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["publicName"]) -> MetaOapg.properties.publicName: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["_id"]) -> MetaOapg.properties._id: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["machineTypeId"]) -> typing.Union[MetaOapg.properties.machineTypeId, schemas.Unset]: ...
    
    def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isDefault"], typing_extensions.Literal["publicName"], typing_extensions.Literal["name"], typing_extensions.Literal["_id"], typing_extensions.Literal["type"], typing_extensions.Literal["machineTypeId"], ]):
        return super().get_item_oapg(name)

    def __new__(
        cls,
        *args: typing.Union[dict, frozendict.frozendict, ],
        isDefault: typing.Union[MetaOapg.properties.isDefault, bool, ],
        publicName: typing.Union[MetaOapg.properties.publicName, str, ],
        name: typing.Union[MetaOapg.properties.name, str, ],
        _id: typing.Union[MetaOapg.properties._id, str, ],
        type: typing.Union[MetaOapg.properties.type, str, ],
        machineTypeId: typing.Union[MetaOapg.properties.machineTypeId, str, schemas.Unset] = schemas.unset,
        _configuration: typing.Optional[schemas.Configuration] = None,
    ) -> 'SlimOrganization':
        return super().__new__(
            cls,
            *args,
            isDefault=isDefault,
            publicName=publicName,
            name=name,
            _id=_id,
            type=type,
            machineTypeId=machineTypeId,
            _configuration=_configuration,
        )
