-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcallback_basic_auth.py
More file actions
122 lines (91 loc) · 3.83 KB
/
Copy pathcallback_basic_auth.py
File metadata and controls
122 lines (91 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# coding: utf-8
"""
launch
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from datetime import date, datetime # noqa: F401
import frozendict # noqa: F401
import typing_extensions # noqa: F401
from launch.api_client import schemas # noqa: F401
class CallbackBasicAuth(
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 = {
"password",
"kind",
"username",
}
class properties:
class kind(
schemas.EnumBase,
schemas.StrSchema
):
class MetaOapg:
enum_value_to_name = {
"basic": "BASIC",
}
@schemas.classproperty
def BASIC(cls):
return cls("basic")
username = schemas.StrSchema
password = schemas.StrSchema
__annotations__ = {
"kind": kind,
"username": username,
"password": password,
}
password: MetaOapg.properties.password
kind: MetaOapg.properties.kind
username: MetaOapg.properties.username
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "username", "password", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kind", "username", "password", ], str]):
return super().get_item_oapg(name)
def __new__(
cls,
*_args: typing.Union[dict, frozendict.frozendict, ],
password: typing.Union[MetaOapg.properties.password, str, ],
kind: typing.Union[MetaOapg.properties.kind, str, ],
username: typing.Union[MetaOapg.properties.username, str, ],
_configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
) -> 'CallbackBasicAuth':
return super().__new__(
cls,
*_args,
password=password,
kind=kind,
username=username,
_configuration=_configuration,
**kwargs,
)