Skip to content

Commit a72806b

Browse files
committed
feat: update generated APIs
1 parent 32421ae commit a72806b

File tree

4 files changed

+18
-40
lines changed

4 files changed

+18
-40
lines changed

scaleway-async/scaleway_async/audit_trail/v1alpha1/marshalling.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ def unmarshal_Event(data: Any) -> Event:
345345
if field is not None:
346346
args["source_ip"] = field
347347

348+
field = data.get("product_name", None)
349+
if field is not None:
350+
args["product_name"] = field
351+
348352
field = data.get("recorded_at", None)
349353
if field is not None:
350354
args["recorded_at"] = (
@@ -371,10 +375,6 @@ def unmarshal_Event(data: Any) -> Event:
371375
else:
372376
args["user_agent"] = None
373377

374-
field = data.get("product_name", None)
375-
if field is not None:
376-
args["product_name"] = field
377-
378378
field = data.get("service_name", None)
379379
if field is not None:
380380
args["service_name"] = field
@@ -397,12 +397,6 @@ def unmarshal_Event(data: Any) -> Event:
397397
if field is not None:
398398
args["status_code"] = field
399399

400-
field = data.get("resource", None)
401-
if field is not None:
402-
args["resource"] = unmarshal_Resource(field)
403-
else:
404-
args["resource"] = None
405-
406400
field = data.get("request_body", None)
407401
if field is not None:
408402
args["request_body"] = field

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ class Event:
183183
IP address at the origin of the event.
184184
"""
185185

186+
product_name: str
187+
"""
188+
Product name of the resource attached to the event.
189+
"""
190+
186191
recorded_at: Optional[datetime]
187192
"""
188193
Timestamp of the event.
@@ -203,11 +208,6 @@ class Event:
203208
User Agent at the origin of the event.
204209
"""
205210

206-
product_name: str
207-
"""
208-
Product name of the resource attached to the event.
209-
"""
210-
211211
service_name: str
212212
"""
213213
API name called to trigger the event.
@@ -233,11 +233,6 @@ class Event:
233233
HTTP status code resulting of the API call.
234234
"""
235235

236-
resource: Optional[Resource]
237-
"""
238-
Resource attached to the event.
239-
"""
240-
241236
request_body: Optional[Dict[str, Any]]
242237
"""
243238
Request at the origin of the event.

scaleway/scaleway/audit_trail/v1alpha1/marshalling.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ def unmarshal_Event(data: Any) -> Event:
345345
if field is not None:
346346
args["source_ip"] = field
347347

348+
field = data.get("product_name", None)
349+
if field is not None:
350+
args["product_name"] = field
351+
348352
field = data.get("recorded_at", None)
349353
if field is not None:
350354
args["recorded_at"] = (
@@ -371,10 +375,6 @@ def unmarshal_Event(data: Any) -> Event:
371375
else:
372376
args["user_agent"] = None
373377

374-
field = data.get("product_name", None)
375-
if field is not None:
376-
args["product_name"] = field
377-
378378
field = data.get("service_name", None)
379379
if field is not None:
380380
args["service_name"] = field
@@ -397,12 +397,6 @@ def unmarshal_Event(data: Any) -> Event:
397397
if field is not None:
398398
args["status_code"] = field
399399

400-
field = data.get("resource", None)
401-
if field is not None:
402-
args["resource"] = unmarshal_Resource(field)
403-
else:
404-
args["resource"] = None
405-
406400
field = data.get("request_body", None)
407401
if field is not None:
408402
args["request_body"] = field

scaleway/scaleway/audit_trail/v1alpha1/types.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ class Event:
183183
IP address at the origin of the event.
184184
"""
185185

186+
product_name: str
187+
"""
188+
Product name of the resource attached to the event.
189+
"""
190+
186191
recorded_at: Optional[datetime]
187192
"""
188193
Timestamp of the event.
@@ -203,11 +208,6 @@ class Event:
203208
User Agent at the origin of the event.
204209
"""
205210

206-
product_name: str
207-
"""
208-
Product name of the resource attached to the event.
209-
"""
210-
211211
service_name: str
212212
"""
213213
API name called to trigger the event.
@@ -233,11 +233,6 @@ class Event:
233233
HTTP status code resulting of the API call.
234234
"""
235235

236-
resource: Optional[Resource]
237-
"""
238-
Resource attached to the event.
239-
"""
240-
241236
request_body: Optional[Dict[str, Any]]
242237
"""
243238
Request at the origin of the event.

0 commit comments

Comments
 (0)