windmill-api 1.505.4__py3-none-any.whl → 1.506.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/oauth/connect_client_credentials.py +170 -0
- windmill_api/models/connect_callback_response_200.py +9 -0
- windmill_api/models/connect_client_credentials_json_body.py +77 -0
- windmill_api/models/connect_client_credentials_response_200.py +95 -0
- windmill_api/models/create_account_json_body.py +25 -0
- windmill_api/models/get_o_auth_connect_response_200.py +11 -0
- windmill_api/models/token_response.py +9 -0
- {windmill_api-1.505.4.dist-info → windmill_api-1.506.0.dist-info}/METADATA +1 -1
- {windmill_api-1.505.4.dist-info → windmill_api-1.506.0.dist-info}/RECORD +11 -8
- {windmill_api-1.505.4.dist-info → windmill_api-1.506.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.505.4.dist-info → windmill_api-1.506.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.connect_client_credentials_json_body import ConnectClientCredentialsJsonBody
|
|
9
|
+
from ...models.connect_client_credentials_response_200 import ConnectClientCredentialsResponse200
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
client_path: str,
|
|
15
|
+
*,
|
|
16
|
+
json_body: ConnectClientCredentialsJsonBody,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
json_json_body = json_body.to_dict()
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/oauth/connect_client_credentials/{client}".format(
|
|
25
|
+
client=client_path,
|
|
26
|
+
),
|
|
27
|
+
"json": json_json_body,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _parse_response(
|
|
32
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
+
) -> Optional[ConnectClientCredentialsResponse200]:
|
|
34
|
+
if response.status_code == HTTPStatus.OK:
|
|
35
|
+
response_200 = ConnectClientCredentialsResponse200.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_200
|
|
38
|
+
if client.raise_on_unexpected_status:
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
else:
|
|
41
|
+
return None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _build_response(
|
|
45
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
46
|
+
) -> Response[ConnectClientCredentialsResponse200]:
|
|
47
|
+
return Response(
|
|
48
|
+
status_code=HTTPStatus(response.status_code),
|
|
49
|
+
content=response.content,
|
|
50
|
+
headers=response.headers,
|
|
51
|
+
parsed=_parse_response(client=client, response=response),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def sync_detailed(
|
|
56
|
+
client_path: str,
|
|
57
|
+
*,
|
|
58
|
+
client: Union[AuthenticatedClient, Client],
|
|
59
|
+
json_body: ConnectClientCredentialsJsonBody,
|
|
60
|
+
) -> Response[ConnectClientCredentialsResponse200]:
|
|
61
|
+
"""connect OAuth using client credentials
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
client_path (str):
|
|
65
|
+
json_body (ConnectClientCredentialsJsonBody):
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[ConnectClientCredentialsResponse200]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
client_path=client_path,
|
|
77
|
+
json_body=json_body,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
response = client.get_httpx_client().request(
|
|
81
|
+
**kwargs,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
return _build_response(client=client, response=response)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def sync(
|
|
88
|
+
client_path: str,
|
|
89
|
+
*,
|
|
90
|
+
client: Union[AuthenticatedClient, Client],
|
|
91
|
+
json_body: ConnectClientCredentialsJsonBody,
|
|
92
|
+
) -> Optional[ConnectClientCredentialsResponse200]:
|
|
93
|
+
"""connect OAuth using client credentials
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
client_path (str):
|
|
97
|
+
json_body (ConnectClientCredentialsJsonBody):
|
|
98
|
+
|
|
99
|
+
Raises:
|
|
100
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
101
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
ConnectClientCredentialsResponse200
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
return sync_detailed(
|
|
108
|
+
client_path=client_path,
|
|
109
|
+
client=client,
|
|
110
|
+
json_body=json_body,
|
|
111
|
+
).parsed
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
async def asyncio_detailed(
|
|
115
|
+
client_path: str,
|
|
116
|
+
*,
|
|
117
|
+
client: Union[AuthenticatedClient, Client],
|
|
118
|
+
json_body: ConnectClientCredentialsJsonBody,
|
|
119
|
+
) -> Response[ConnectClientCredentialsResponse200]:
|
|
120
|
+
"""connect OAuth using client credentials
|
|
121
|
+
|
|
122
|
+
Args:
|
|
123
|
+
client_path (str):
|
|
124
|
+
json_body (ConnectClientCredentialsJsonBody):
|
|
125
|
+
|
|
126
|
+
Raises:
|
|
127
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
128
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
129
|
+
|
|
130
|
+
Returns:
|
|
131
|
+
Response[ConnectClientCredentialsResponse200]
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
kwargs = _get_kwargs(
|
|
135
|
+
client_path=client_path,
|
|
136
|
+
json_body=json_body,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
140
|
+
|
|
141
|
+
return _build_response(client=client, response=response)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
async def asyncio(
|
|
145
|
+
client_path: str,
|
|
146
|
+
*,
|
|
147
|
+
client: Union[AuthenticatedClient, Client],
|
|
148
|
+
json_body: ConnectClientCredentialsJsonBody,
|
|
149
|
+
) -> Optional[ConnectClientCredentialsResponse200]:
|
|
150
|
+
"""connect OAuth using client credentials
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
client_path (str):
|
|
154
|
+
json_body (ConnectClientCredentialsJsonBody):
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
158
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
ConnectClientCredentialsResponse200
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
await asyncio_detailed(
|
|
166
|
+
client_path=client_path,
|
|
167
|
+
client=client,
|
|
168
|
+
json_body=json_body,
|
|
169
|
+
)
|
|
170
|
+
).parsed
|
|
@@ -16,12 +16,14 @@ class ConnectCallbackResponse200:
|
|
|
16
16
|
expires_in (Union[Unset, int]):
|
|
17
17
|
refresh_token (Union[Unset, str]):
|
|
18
18
|
scope (Union[Unset, List[str]]):
|
|
19
|
+
grant_type (Union[Unset, str]):
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
22
|
access_token: str
|
|
22
23
|
expires_in: Union[Unset, int] = UNSET
|
|
23
24
|
refresh_token: Union[Unset, str] = UNSET
|
|
24
25
|
scope: Union[Unset, List[str]] = UNSET
|
|
26
|
+
grant_type: Union[Unset, str] = UNSET
|
|
25
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
28
|
|
|
27
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -32,6 +34,8 @@ class ConnectCallbackResponse200:
|
|
|
32
34
|
if not isinstance(self.scope, Unset):
|
|
33
35
|
scope = self.scope
|
|
34
36
|
|
|
37
|
+
grant_type = self.grant_type
|
|
38
|
+
|
|
35
39
|
field_dict: Dict[str, Any] = {}
|
|
36
40
|
field_dict.update(self.additional_properties)
|
|
37
41
|
field_dict.update(
|
|
@@ -45,6 +49,8 @@ class ConnectCallbackResponse200:
|
|
|
45
49
|
field_dict["refresh_token"] = refresh_token
|
|
46
50
|
if scope is not UNSET:
|
|
47
51
|
field_dict["scope"] = scope
|
|
52
|
+
if grant_type is not UNSET:
|
|
53
|
+
field_dict["grant_type"] = grant_type
|
|
48
54
|
|
|
49
55
|
return field_dict
|
|
50
56
|
|
|
@@ -59,11 +65,14 @@ class ConnectCallbackResponse200:
|
|
|
59
65
|
|
|
60
66
|
scope = cast(List[str], d.pop("scope", UNSET))
|
|
61
67
|
|
|
68
|
+
grant_type = d.pop("grant_type", UNSET)
|
|
69
|
+
|
|
62
70
|
connect_callback_response_200 = cls(
|
|
63
71
|
access_token=access_token,
|
|
64
72
|
expires_in=expires_in,
|
|
65
73
|
refresh_token=refresh_token,
|
|
66
74
|
scope=scope,
|
|
75
|
+
grant_type=grant_type,
|
|
67
76
|
)
|
|
68
77
|
|
|
69
78
|
connect_callback_response_200.additional_properties = d
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="ConnectClientCredentialsJsonBody")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class ConnectClientCredentialsJsonBody:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
cc_client_id (str): OAuth client ID for resource-level authentication
|
|
16
|
+
cc_client_secret (str): OAuth client secret for resource-level authentication
|
|
17
|
+
scopes (Union[Unset, List[str]]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
cc_client_id: str
|
|
21
|
+
cc_client_secret: str
|
|
22
|
+
scopes: Union[Unset, List[str]] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
cc_client_id = self.cc_client_id
|
|
27
|
+
cc_client_secret = self.cc_client_secret
|
|
28
|
+
scopes: Union[Unset, List[str]] = UNSET
|
|
29
|
+
if not isinstance(self.scopes, Unset):
|
|
30
|
+
scopes = self.scopes
|
|
31
|
+
|
|
32
|
+
field_dict: Dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update(
|
|
35
|
+
{
|
|
36
|
+
"cc_client_id": cc_client_id,
|
|
37
|
+
"cc_client_secret": cc_client_secret,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
if scopes is not UNSET:
|
|
41
|
+
field_dict["scopes"] = scopes
|
|
42
|
+
|
|
43
|
+
return field_dict
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
47
|
+
d = src_dict.copy()
|
|
48
|
+
cc_client_id = d.pop("cc_client_id")
|
|
49
|
+
|
|
50
|
+
cc_client_secret = d.pop("cc_client_secret")
|
|
51
|
+
|
|
52
|
+
scopes = cast(List[str], d.pop("scopes", UNSET))
|
|
53
|
+
|
|
54
|
+
connect_client_credentials_json_body = cls(
|
|
55
|
+
cc_client_id=cc_client_id,
|
|
56
|
+
cc_client_secret=cc_client_secret,
|
|
57
|
+
scopes=scopes,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
connect_client_credentials_json_body.additional_properties = d
|
|
61
|
+
return connect_client_credentials_json_body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def additional_keys(self) -> List[str]:
|
|
65
|
+
return list(self.additional_properties.keys())
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, key: str) -> Any:
|
|
68
|
+
return self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
71
|
+
self.additional_properties[key] = value
|
|
72
|
+
|
|
73
|
+
def __delitem__(self, key: str) -> None:
|
|
74
|
+
del self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __contains__(self, key: str) -> bool:
|
|
77
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="ConnectClientCredentialsResponse200")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class ConnectClientCredentialsResponse200:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
access_token (str):
|
|
16
|
+
expires_in (Union[Unset, int]):
|
|
17
|
+
refresh_token (Union[Unset, str]):
|
|
18
|
+
scope (Union[Unset, List[str]]):
|
|
19
|
+
grant_type (Union[Unset, str]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
access_token: str
|
|
23
|
+
expires_in: Union[Unset, int] = UNSET
|
|
24
|
+
refresh_token: Union[Unset, str] = UNSET
|
|
25
|
+
scope: Union[Unset, List[str]] = UNSET
|
|
26
|
+
grant_type: Union[Unset, str] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
access_token = self.access_token
|
|
31
|
+
expires_in = self.expires_in
|
|
32
|
+
refresh_token = self.refresh_token
|
|
33
|
+
scope: Union[Unset, List[str]] = UNSET
|
|
34
|
+
if not isinstance(self.scope, Unset):
|
|
35
|
+
scope = self.scope
|
|
36
|
+
|
|
37
|
+
grant_type = self.grant_type
|
|
38
|
+
|
|
39
|
+
field_dict: Dict[str, Any] = {}
|
|
40
|
+
field_dict.update(self.additional_properties)
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"access_token": access_token,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
if expires_in is not UNSET:
|
|
47
|
+
field_dict["expires_in"] = expires_in
|
|
48
|
+
if refresh_token is not UNSET:
|
|
49
|
+
field_dict["refresh_token"] = refresh_token
|
|
50
|
+
if scope is not UNSET:
|
|
51
|
+
field_dict["scope"] = scope
|
|
52
|
+
if grant_type is not UNSET:
|
|
53
|
+
field_dict["grant_type"] = grant_type
|
|
54
|
+
|
|
55
|
+
return field_dict
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
59
|
+
d = src_dict.copy()
|
|
60
|
+
access_token = d.pop("access_token")
|
|
61
|
+
|
|
62
|
+
expires_in = d.pop("expires_in", UNSET)
|
|
63
|
+
|
|
64
|
+
refresh_token = d.pop("refresh_token", UNSET)
|
|
65
|
+
|
|
66
|
+
scope = cast(List[str], d.pop("scope", UNSET))
|
|
67
|
+
|
|
68
|
+
grant_type = d.pop("grant_type", UNSET)
|
|
69
|
+
|
|
70
|
+
connect_client_credentials_response_200 = cls(
|
|
71
|
+
access_token=access_token,
|
|
72
|
+
expires_in=expires_in,
|
|
73
|
+
refresh_token=refresh_token,
|
|
74
|
+
scope=scope,
|
|
75
|
+
grant_type=grant_type,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
connect_client_credentials_response_200.additional_properties = d
|
|
79
|
+
return connect_client_credentials_response_200
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def additional_keys(self) -> List[str]:
|
|
83
|
+
return list(self.additional_properties.keys())
|
|
84
|
+
|
|
85
|
+
def __getitem__(self, key: str) -> Any:
|
|
86
|
+
return self.additional_properties[key]
|
|
87
|
+
|
|
88
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
89
|
+
self.additional_properties[key] = value
|
|
90
|
+
|
|
91
|
+
def __delitem__(self, key: str) -> None:
|
|
92
|
+
del self.additional_properties[key]
|
|
93
|
+
|
|
94
|
+
def __contains__(self, key: str) -> bool:
|
|
95
|
+
return key in self.additional_properties
|
|
@@ -15,17 +15,27 @@ class CreateAccountJsonBody:
|
|
|
15
15
|
expires_in (int):
|
|
16
16
|
client (str):
|
|
17
17
|
refresh_token (Union[Unset, str]):
|
|
18
|
+
grant_type (Union[Unset, str]): Default: 'authorization_code'.
|
|
19
|
+
cc_client_id (Union[Unset, str]): OAuth client ID for resource-level credentials (client_credentials flow only)
|
|
20
|
+
cc_client_secret (Union[Unset, str]): OAuth client secret for resource-level credentials (client_credentials
|
|
21
|
+
flow only)
|
|
18
22
|
"""
|
|
19
23
|
|
|
20
24
|
expires_in: int
|
|
21
25
|
client: str
|
|
22
26
|
refresh_token: Union[Unset, str] = UNSET
|
|
27
|
+
grant_type: Union[Unset, str] = "authorization_code"
|
|
28
|
+
cc_client_id: Union[Unset, str] = UNSET
|
|
29
|
+
cc_client_secret: Union[Unset, str] = UNSET
|
|
23
30
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
31
|
|
|
25
32
|
def to_dict(self) -> Dict[str, Any]:
|
|
26
33
|
expires_in = self.expires_in
|
|
27
34
|
client = self.client
|
|
28
35
|
refresh_token = self.refresh_token
|
|
36
|
+
grant_type = self.grant_type
|
|
37
|
+
cc_client_id = self.cc_client_id
|
|
38
|
+
cc_client_secret = self.cc_client_secret
|
|
29
39
|
|
|
30
40
|
field_dict: Dict[str, Any] = {}
|
|
31
41
|
field_dict.update(self.additional_properties)
|
|
@@ -37,6 +47,12 @@ class CreateAccountJsonBody:
|
|
|
37
47
|
)
|
|
38
48
|
if refresh_token is not UNSET:
|
|
39
49
|
field_dict["refresh_token"] = refresh_token
|
|
50
|
+
if grant_type is not UNSET:
|
|
51
|
+
field_dict["grant_type"] = grant_type
|
|
52
|
+
if cc_client_id is not UNSET:
|
|
53
|
+
field_dict["cc_client_id"] = cc_client_id
|
|
54
|
+
if cc_client_secret is not UNSET:
|
|
55
|
+
field_dict["cc_client_secret"] = cc_client_secret
|
|
40
56
|
|
|
41
57
|
return field_dict
|
|
42
58
|
|
|
@@ -49,10 +65,19 @@ class CreateAccountJsonBody:
|
|
|
49
65
|
|
|
50
66
|
refresh_token = d.pop("refresh_token", UNSET)
|
|
51
67
|
|
|
68
|
+
grant_type = d.pop("grant_type", UNSET)
|
|
69
|
+
|
|
70
|
+
cc_client_id = d.pop("cc_client_id", UNSET)
|
|
71
|
+
|
|
72
|
+
cc_client_secret = d.pop("cc_client_secret", UNSET)
|
|
73
|
+
|
|
52
74
|
create_account_json_body = cls(
|
|
53
75
|
expires_in=expires_in,
|
|
54
76
|
client=client,
|
|
55
77
|
refresh_token=refresh_token,
|
|
78
|
+
grant_type=grant_type,
|
|
79
|
+
cc_client_id=cc_client_id,
|
|
80
|
+
cc_client_secret=cc_client_secret,
|
|
56
81
|
)
|
|
57
82
|
|
|
58
83
|
create_account_json_body.additional_properties = d
|
|
@@ -18,10 +18,12 @@ class GetOAuthConnectResponse200:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
extra_params (Union[Unset, GetOAuthConnectResponse200ExtraParams]):
|
|
20
20
|
scopes (Union[Unset, List[str]]):
|
|
21
|
+
grant_types (Union[Unset, List[str]]):
|
|
21
22
|
"""
|
|
22
23
|
|
|
23
24
|
extra_params: Union[Unset, "GetOAuthConnectResponse200ExtraParams"] = UNSET
|
|
24
25
|
scopes: Union[Unset, List[str]] = UNSET
|
|
26
|
+
grant_types: Union[Unset, List[str]] = UNSET
|
|
25
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
28
|
|
|
27
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -33,6 +35,10 @@ class GetOAuthConnectResponse200:
|
|
|
33
35
|
if not isinstance(self.scopes, Unset):
|
|
34
36
|
scopes = self.scopes
|
|
35
37
|
|
|
38
|
+
grant_types: Union[Unset, List[str]] = UNSET
|
|
39
|
+
if not isinstance(self.grant_types, Unset):
|
|
40
|
+
grant_types = self.grant_types
|
|
41
|
+
|
|
36
42
|
field_dict: Dict[str, Any] = {}
|
|
37
43
|
field_dict.update(self.additional_properties)
|
|
38
44
|
field_dict.update({})
|
|
@@ -40,6 +46,8 @@ class GetOAuthConnectResponse200:
|
|
|
40
46
|
field_dict["extra_params"] = extra_params
|
|
41
47
|
if scopes is not UNSET:
|
|
42
48
|
field_dict["scopes"] = scopes
|
|
49
|
+
if grant_types is not UNSET:
|
|
50
|
+
field_dict["grant_types"] = grant_types
|
|
43
51
|
|
|
44
52
|
return field_dict
|
|
45
53
|
|
|
@@ -57,9 +65,12 @@ class GetOAuthConnectResponse200:
|
|
|
57
65
|
|
|
58
66
|
scopes = cast(List[str], d.pop("scopes", UNSET))
|
|
59
67
|
|
|
68
|
+
grant_types = cast(List[str], d.pop("grant_types", UNSET))
|
|
69
|
+
|
|
60
70
|
get_o_auth_connect_response_200 = cls(
|
|
61
71
|
extra_params=extra_params,
|
|
62
72
|
scopes=scopes,
|
|
73
|
+
grant_types=grant_types,
|
|
63
74
|
)
|
|
64
75
|
|
|
65
76
|
get_o_auth_connect_response_200.additional_properties = d
|
|
@@ -16,12 +16,14 @@ class TokenResponse:
|
|
|
16
16
|
expires_in (Union[Unset, int]):
|
|
17
17
|
refresh_token (Union[Unset, str]):
|
|
18
18
|
scope (Union[Unset, List[str]]):
|
|
19
|
+
grant_type (Union[Unset, str]):
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
22
|
access_token: str
|
|
22
23
|
expires_in: Union[Unset, int] = UNSET
|
|
23
24
|
refresh_token: Union[Unset, str] = UNSET
|
|
24
25
|
scope: Union[Unset, List[str]] = UNSET
|
|
26
|
+
grant_type: Union[Unset, str] = UNSET
|
|
25
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
28
|
|
|
27
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -32,6 +34,8 @@ class TokenResponse:
|
|
|
32
34
|
if not isinstance(self.scope, Unset):
|
|
33
35
|
scope = self.scope
|
|
34
36
|
|
|
37
|
+
grant_type = self.grant_type
|
|
38
|
+
|
|
35
39
|
field_dict: Dict[str, Any] = {}
|
|
36
40
|
field_dict.update(self.additional_properties)
|
|
37
41
|
field_dict.update(
|
|
@@ -45,6 +49,8 @@ class TokenResponse:
|
|
|
45
49
|
field_dict["refresh_token"] = refresh_token
|
|
46
50
|
if scope is not UNSET:
|
|
47
51
|
field_dict["scope"] = scope
|
|
52
|
+
if grant_type is not UNSET:
|
|
53
|
+
field_dict["grant_type"] = grant_type
|
|
48
54
|
|
|
49
55
|
return field_dict
|
|
50
56
|
|
|
@@ -59,11 +65,14 @@ class TokenResponse:
|
|
|
59
65
|
|
|
60
66
|
scope = cast(List[str], d.pop("scope", UNSET))
|
|
61
67
|
|
|
68
|
+
grant_type = d.pop("grant_type", UNSET)
|
|
69
|
+
|
|
62
70
|
token_response = cls(
|
|
63
71
|
access_token=access_token,
|
|
64
72
|
expires_in=expires_in,
|
|
65
73
|
refresh_token=refresh_token,
|
|
66
74
|
scope=scope,
|
|
75
|
+
grant_type=grant_type,
|
|
67
76
|
)
|
|
68
77
|
|
|
69
78
|
token_response.additional_properties = d
|
|
@@ -267,6 +267,7 @@ windmill_api/api/nats_trigger/test_nats_connection.py,sha256=L_N5q72OrhKSpFyP7po
|
|
|
267
267
|
windmill_api/api/nats_trigger/update_nats_trigger.py,sha256=3y710Dv5wgqntaug9CaqmGPdnVVYswGfdEXd31TplTA,2891
|
|
268
268
|
windmill_api/api/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
269
269
|
windmill_api/api/oauth/connect_callback.py,sha256=12cfwUWge6lMnTuVv9sxmk9oYpal4INyn-uN8EAURm4,4542
|
|
270
|
+
windmill_api/api/oauth/connect_client_credentials.py,sha256=yK5fTo70Xy6cXHbpNiX5zLNfcyWNWMp4KmYQsVv_6yk,4848
|
|
270
271
|
windmill_api/api/oauth/connect_slack_callback.py,sha256=7yr6_qXTGVSkRD3ZSdmdbkTLz3MEZrMBSpbCKmvGk4Q,2773
|
|
271
272
|
windmill_api/api/oauth/connect_slack_callback_instance.py,sha256=3Sk1OuX9HJZsHKoQVnFcUi3tnOPG5LshUFVNiU0eHLY,2615
|
|
272
273
|
windmill_api/api/oauth/create_account.py,sha256=6wN43bsHrXTmuHvm8VcJocutAsDpwXmFxRcyeYnu5tM,2711
|
|
@@ -780,7 +781,9 @@ windmill_api/models/config_config.py,sha256=0-Z932i9VEzxsgMxZHFfA02X1AHxax-I3p9A
|
|
|
780
781
|
windmill_api/models/configs.py,sha256=H0RyiDBAi3mO_QO6yyTCPVGbzjQ4GHtpr3otnS7s20k,2144
|
|
781
782
|
windmill_api/models/configs_alerts_item.py,sha256=QP5fW2ACdDVqIMeOBZHRBi96n-SArjPzVKZ1J1ef4Ds,2724
|
|
782
783
|
windmill_api/models/connect_callback_json_body.py,sha256=85RFBg7JqD8NbZOOmq-NlCsf26pLopNJ6Vy7IOUXTr8,1635
|
|
783
|
-
windmill_api/models/connect_callback_response_200.py,sha256=
|
|
784
|
+
windmill_api/models/connect_callback_response_200.py,sha256=LeZKaHz3csY_3ffdyHTeSu0r9j9RMhQzyxfLT5HCOqA,2886
|
|
785
|
+
windmill_api/models/connect_client_credentials_json_body.py,sha256=GLfcFgOsqzHL64vA2W3vaCqfVXPrMtQUBoXJ4Ux_1-Q,2397
|
|
786
|
+
windmill_api/models/connect_client_credentials_response_200.py,sha256=FrAB_NO1Xr3kmquvz9FXolihG8Tf4H04OdnMcjF8yPI,2934
|
|
784
787
|
windmill_api/models/connect_slack_callback_instance_json_body.py,sha256=c0Rnk7V8qF2Dr471eWnWZe41d5SXnhZEKpbJH1WkpYM,1706
|
|
785
788
|
windmill_api/models/connect_slack_callback_json_body.py,sha256=AopjAfEL44s4fFJeZFrhYznF-9k_Fo61T7yF4F6KeJw,1663
|
|
786
789
|
windmill_api/models/connect_teams_json_body.py,sha256=JC__SFOD0PCtt3hQwvxM5JQSo7nLjdVcoXAdz34nmoc,1866
|
|
@@ -788,7 +791,7 @@ windmill_api/models/contextual_variable.py,sha256=CYU0_ENlCZN9aD2hztezo1o0kkVCH-
|
|
|
788
791
|
windmill_api/models/count_jobs_by_tag_response_200_item.py,sha256=AMJAY5SIA4BypdkB7EOpA45aYBjd95-Ae2v6GiTbjo4,1664
|
|
789
792
|
windmill_api/models/count_search_logs_index_response_200.py,sha256=xZiHIVCwj4EcSXv657YMqN9yJy8gpwrTLNRe602vgcU,3190
|
|
790
793
|
windmill_api/models/count_search_logs_index_response_200_count_per_host.py,sha256=HwuTlvhuCIVeOTg3zDRc1tTZyjKfgsvenuHW8Svl9pg,1444
|
|
791
|
-
windmill_api/models/create_account_json_body.py,sha256=
|
|
794
|
+
windmill_api/models/create_account_json_body.py,sha256=deQHdmTUBXojx22rJIuyYje6IqV5qZ0RxjqAxFR0LG0,3232
|
|
792
795
|
windmill_api/models/create_agent_token_json_body.py,sha256=iaVHXGg6w8M166sVxHE8w-qWtFJaTh_u_mVljJ6sZg4,1881
|
|
793
796
|
windmill_api/models/create_app_json_body.py,sha256=5Vs_CDiGOeRvKWwjKGbH8s_uhHumNQuW7F_tf4Ca270,3230
|
|
794
797
|
windmill_api/models/create_app_json_body_policy.py,sha256=qzfGEbDbCcIj-_6odJi13hGONAE9lWXO9krokOhCmSw,7258
|
|
@@ -2277,7 +2280,7 @@ windmill_api/models/get_nats_trigger_response_200_extra_perms.py,sha256=TArRnWj8
|
|
|
2277
2280
|
windmill_api/models/get_nats_trigger_response_200_retry.py,sha256=EaTn89d5KHiOeidSpaWZEidjyZx-hkpfu0FdL25iVR8,3339
|
|
2278
2281
|
windmill_api/models/get_nats_trigger_response_200_retry_constant.py,sha256=WjnDqryWx7EOaTXlE6Hxo4AK8GrLDMY7OBfDaAacbZI,1954
|
|
2279
2282
|
windmill_api/models/get_nats_trigger_response_200_retry_exponential.py,sha256=jhJSdI3YmuZ9mgO5L312IfKRkHIKIK7O3awYwIisnEw,2580
|
|
2280
|
-
windmill_api/models/get_o_auth_connect_response_200.py,sha256=
|
|
2283
|
+
windmill_api/models/get_o_auth_connect_response_200.py,sha256=ky0hkQUyX8_jcDhVB8PLE9cCfUKMOsTTTxilB5H1o1s,3207
|
|
2281
2284
|
windmill_api/models/get_o_auth_connect_response_200_extra_params.py,sha256=yFFbR2vUCdjsGVPA8bRoiSw0EDebOuBB6yTrCd1wJe8,1358
|
|
2282
2285
|
windmill_api/models/get_postgres_publication_response_200.py,sha256=BUuaiKGsSmMX8stXGegNeh1tqUxrWifTVFfVdNiEYok,3137
|
|
2283
2286
|
windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py,sha256=_TAXCh5Bza_cuRd9AcXFkImV1b9nN8jA4P9d25TDFZk,2977
|
|
@@ -4102,7 +4105,7 @@ windmill_api/models/timeseries_metric.py,sha256=lEh6phLe8osZpD0gnfZ6esqbCZQ8DG1q
|
|
|
4102
4105
|
windmill_api/models/timeseries_metric_values_item.py,sha256=eyL1fDGwrnzV4XRrxtoeZTYHSnWUZrLJxLh_qysG9cE,1808
|
|
4103
4106
|
windmill_api/models/toggle_workspace_error_handler_for_flow_json_body.py,sha256=1vXElVe0Pg_HD3os014JuQk9m1Z-pXFcqZ34YmPN1zA,1690
|
|
4104
4107
|
windmill_api/models/toggle_workspace_error_handler_for_script_json_body.py,sha256=reKnangwhUzDqz1voRyRFyxNITOvdUmcQW3Fu_5P7Is,1700
|
|
4105
|
-
windmill_api/models/token_response.py,sha256=
|
|
4108
|
+
windmill_api/models/token_response.py,sha256=TUr1Em8HnN93d3fVwajWRJd0YvAeDBp5TgrLdQxo178,2815
|
|
4106
4109
|
windmill_api/models/trigger_extra_property.py,sha256=hrQpW-TV3ljaxbfXxiK9NTBlluxf5-dtTlMtyhRrOKY,3256
|
|
4107
4110
|
windmill_api/models/trigger_extra_property_extra_perms.py,sha256=SU8vawDp5zteMLr7ed0nMWiThQeUmREK-aeca1kF0vk,1317
|
|
4108
4111
|
windmill_api/models/triggers_count.py,sha256=ylQGFjunYtgvfCWPKOtzyIzsOuNjFBcoNziiaWJTzsw,5780
|
|
@@ -4290,7 +4293,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
4290
4293
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
4291
4294
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
4292
4295
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
4293
|
-
windmill_api-1.
|
|
4294
|
-
windmill_api-1.
|
|
4295
|
-
windmill_api-1.
|
|
4296
|
-
windmill_api-1.
|
|
4296
|
+
windmill_api-1.506.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
4297
|
+
windmill_api-1.506.0.dist-info/METADATA,sha256=3emsEN8dDGjD3gI-FZ6TF1ui4rZzluToHErnxwpOPSQ,5023
|
|
4298
|
+
windmill_api-1.506.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
4299
|
+
windmill_api-1.506.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|