Skip to content

Commit f33f7ff

Browse files
authored
feat: update generated APIs (#698)
1 parent 0692073 commit f33f7ff

File tree

4 files changed

+82
-82
lines changed

4 files changed

+82
-82
lines changed

scaleway-async/scaleway_async/iam/v1alpha1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from .types import PermissionSetScopeType
1717
from .types import UserStatus
1818
from .types import UserType
19+
from .types import JWT
1920
from .types import RuleSpecs
2021
from .types import CreateUserRequestMember
21-
from .types import JWT
2222
from .types import APIKey
2323
from .types import Application
2424
from .types import Group
@@ -107,9 +107,9 @@
107107
"PermissionSetScopeType",
108108
"UserStatus",
109109
"UserType",
110+
"JWT",
110111
"RuleSpecs",
111112
"CreateUserRequestMember",
112-
"JWT",
113113
"APIKey",
114114
"Application",
115115
"Group",

scaleway-async/scaleway_async/iam/v1alpha1/types.py

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -183,85 +183,85 @@ def __str__(self) -> str:
183183

184184

185185
@dataclass
186-
class RuleSpecs:
187-
condition: str
186+
class JWT:
187+
jti: str
188188
"""
189-
Condition expression to evaluate.
189+
JWT ID.
190190
"""
191191

192-
permission_set_names: Optional[List[str]]
192+
issuer_id: str
193193
"""
194-
Names of permission sets bound to the rule.
194+
ID of the user who issued the JWT.
195195
"""
196196

197-
project_ids: Optional[List[str]]
198-
199-
organization_id: Optional[str]
200-
201-
202-
@dataclass
203-
class CreateUserRequestMember:
204-
email: str
197+
audience_id: str
205198
"""
206-
Email of the user to create.
199+
ID of the user targeted by the JWT.
207200
"""
208201

209-
send_password_email: bool
202+
ip: str
210203
"""
211-
Whether or not to send an email containing the member's password.
204+
IP address used during the creation of the JWT.
212205
"""
213206

214-
username: str
207+
user_agent: str
215208
"""
216-
The member's username.
209+
User-agent used during the creation of the JWT.
217210
"""
218211

219-
password: str
212+
created_at: Optional[datetime]
220213
"""
221-
The member's password.
214+
Creation date of the JWT.
222215
"""
223216

224-
225-
@dataclass
226-
class JWT:
227-
jti: str
217+
updated_at: Optional[datetime]
228218
"""
229-
JWT ID.
219+
Last update date of the JWT.
230220
"""
231221

232-
issuer_id: str
222+
expires_at: Optional[datetime]
233223
"""
234-
ID of the user who issued the JWT.
224+
Expiration date of the JWT.
235225
"""
236226

237-
audience_id: str
227+
228+
@dataclass
229+
class RuleSpecs:
230+
condition: str
238231
"""
239-
ID of the user targeted by the JWT.
232+
Condition expression to evaluate.
240233
"""
241234

242-
ip: str
235+
permission_set_names: Optional[List[str]]
243236
"""
244-
IP address used during the creation of the JWT.
237+
Names of permission sets bound to the rule.
245238
"""
246239

247-
user_agent: str
240+
project_ids: Optional[List[str]]
241+
242+
organization_id: Optional[str]
243+
244+
245+
@dataclass
246+
class CreateUserRequestMember:
247+
email: str
248248
"""
249-
User-agent used during the creation of the JWT.
249+
Email of the user to create.
250250
"""
251251

252-
created_at: Optional[datetime]
252+
send_password_email: bool
253253
"""
254-
Creation date of the JWT.
254+
Whether or not to send an email containing the member's password.
255255
"""
256256

257-
updated_at: Optional[datetime]
257+
username: str
258258
"""
259-
Last update date of the JWT.
259+
The member's username.
260260
"""
261261

262-
expires_at: Optional[datetime]
262+
password: str
263263
"""
264-
Expiration date of the JWT.
264+
The member's password.
265265
"""
266266

267267

scaleway/scaleway/iam/v1alpha1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from .types import PermissionSetScopeType
1717
from .types import UserStatus
1818
from .types import UserType
19+
from .types import JWT
1920
from .types import RuleSpecs
2021
from .types import CreateUserRequestMember
21-
from .types import JWT
2222
from .types import APIKey
2323
from .types import Application
2424
from .types import Group
@@ -107,9 +107,9 @@
107107
"PermissionSetScopeType",
108108
"UserStatus",
109109
"UserType",
110+
"JWT",
110111
"RuleSpecs",
111112
"CreateUserRequestMember",
112-
"JWT",
113113
"APIKey",
114114
"Application",
115115
"Group",

scaleway/scaleway/iam/v1alpha1/types.py

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -183,85 +183,85 @@ def __str__(self) -> str:
183183

184184

185185
@dataclass
186-
class RuleSpecs:
187-
condition: str
186+
class JWT:
187+
jti: str
188188
"""
189-
Condition expression to evaluate.
189+
JWT ID.
190190
"""
191191

192-
permission_set_names: Optional[List[str]]
192+
issuer_id: str
193193
"""
194-
Names of permission sets bound to the rule.
194+
ID of the user who issued the JWT.
195195
"""
196196

197-
project_ids: Optional[List[str]]
198-
199-
organization_id: Optional[str]
200-
201-
202-
@dataclass
203-
class CreateUserRequestMember:
204-
email: str
197+
audience_id: str
205198
"""
206-
Email of the user to create.
199+
ID of the user targeted by the JWT.
207200
"""
208201

209-
send_password_email: bool
202+
ip: str
210203
"""
211-
Whether or not to send an email containing the member's password.
204+
IP address used during the creation of the JWT.
212205
"""
213206

214-
username: str
207+
user_agent: str
215208
"""
216-
The member's username.
209+
User-agent used during the creation of the JWT.
217210
"""
218211

219-
password: str
212+
created_at: Optional[datetime]
220213
"""
221-
The member's password.
214+
Creation date of the JWT.
222215
"""
223216

224-
225-
@dataclass
226-
class JWT:
227-
jti: str
217+
updated_at: Optional[datetime]
228218
"""
229-
JWT ID.
219+
Last update date of the JWT.
230220
"""
231221

232-
issuer_id: str
222+
expires_at: Optional[datetime]
233223
"""
234-
ID of the user who issued the JWT.
224+
Expiration date of the JWT.
235225
"""
236226

237-
audience_id: str
227+
228+
@dataclass
229+
class RuleSpecs:
230+
condition: str
238231
"""
239-
ID of the user targeted by the JWT.
232+
Condition expression to evaluate.
240233
"""
241234

242-
ip: str
235+
permission_set_names: Optional[List[str]]
243236
"""
244-
IP address used during the creation of the JWT.
237+
Names of permission sets bound to the rule.
245238
"""
246239

247-
user_agent: str
240+
project_ids: Optional[List[str]]
241+
242+
organization_id: Optional[str]
243+
244+
245+
@dataclass
246+
class CreateUserRequestMember:
247+
email: str
248248
"""
249-
User-agent used during the creation of the JWT.
249+
Email of the user to create.
250250
"""
251251

252-
created_at: Optional[datetime]
252+
send_password_email: bool
253253
"""
254-
Creation date of the JWT.
254+
Whether or not to send an email containing the member's password.
255255
"""
256256

257-
updated_at: Optional[datetime]
257+
username: str
258258
"""
259-
Last update date of the JWT.
259+
The member's username.
260260
"""
261261

262-
expires_at: Optional[datetime]
262+
password: str
263263
"""
264-
Expiration date of the JWT.
264+
The member's password.
265265
"""
266266

267267

0 commit comments

Comments
 (0)