File tree 4 files changed +40
-18
lines changed
scaleway/scaleway/audit_trail/v1alpha1
scaleway-async/scaleway_async/audit_trail/v1alpha1 4 files changed +40
-18
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,6 @@ def unmarshal_Event(data: Any) -> Event:
251
251
if field is not None :
252
252
args ["source_ip" ] = field
253
253
254
- field = data .get ("product_name" , None )
255
- if field is not None :
256
- args ["product_name" ] = field
257
-
258
254
field = data .get ("recorded_at" , None )
259
255
if field is not None :
260
256
args ["recorded_at" ] = (
@@ -281,6 +277,10 @@ def unmarshal_Event(data: Any) -> Event:
281
277
else :
282
278
args ["user_agent" ] = None
283
279
280
+ field = data .get ("product_name" , None )
281
+ if field is not None :
282
+ args ["product_name" ] = field
283
+
284
284
field = data .get ("service_name" , None )
285
285
if field is not None :
286
286
args ["service_name" ] = field
@@ -289,6 +289,12 @@ def unmarshal_Event(data: Any) -> Event:
289
289
if field is not None :
290
290
args ["method_name" ] = field
291
291
292
+ field = data .get ("resources" , None )
293
+ if field is not None :
294
+ args ["resources" ] = (
295
+ [unmarshal_Resource (v ) for v in field ] if field is not None else None
296
+ )
297
+
292
298
field = data .get ("request_id" , None )
293
299
if field is not None :
294
300
args ["request_id" ] = field
Original file line number Diff line number Diff line change @@ -145,11 +145,6 @@ class Event:
145
145
IP address at the origin of the event.
146
146
"""
147
147
148
- product_name : str
149
- """
150
- Product name of the resource attached to the event.
151
- """
152
-
153
148
recorded_at : Optional [datetime ]
154
149
"""
155
150
Timestamp of the event.
@@ -170,6 +165,11 @@ class Event:
170
165
User Agent at the origin of the event.
171
166
"""
172
167
168
+ product_name : str
169
+ """
170
+ Product name of the resource attached to the event.
171
+ """
172
+
173
173
service_name : str
174
174
"""
175
175
API name called to trigger the event.
@@ -180,6 +180,11 @@ class Event:
180
180
API method called to trigger the event.
181
181
"""
182
182
183
+ resources : List [Resource ]
184
+ """
185
+ Resources attached to the event.
186
+ """
187
+
183
188
request_id : str
184
189
"""
185
190
Unique identifier of the request at the origin of the event.
Original file line number Diff line number Diff line change @@ -251,10 +251,6 @@ def unmarshal_Event(data: Any) -> Event:
251
251
if field is not None :
252
252
args ["source_ip" ] = field
253
253
254
- field = data .get ("product_name" , None )
255
- if field is not None :
256
- args ["product_name" ] = field
257
-
258
254
field = data .get ("recorded_at" , None )
259
255
if field is not None :
260
256
args ["recorded_at" ] = (
@@ -281,6 +277,10 @@ def unmarshal_Event(data: Any) -> Event:
281
277
else :
282
278
args ["user_agent" ] = None
283
279
280
+ field = data .get ("product_name" , None )
281
+ if field is not None :
282
+ args ["product_name" ] = field
283
+
284
284
field = data .get ("service_name" , None )
285
285
if field is not None :
286
286
args ["service_name" ] = field
@@ -289,6 +289,12 @@ def unmarshal_Event(data: Any) -> Event:
289
289
if field is not None :
290
290
args ["method_name" ] = field
291
291
292
+ field = data .get ("resources" , None )
293
+ if field is not None :
294
+ args ["resources" ] = (
295
+ [unmarshal_Resource (v ) for v in field ] if field is not None else None
296
+ )
297
+
292
298
field = data .get ("request_id" , None )
293
299
if field is not None :
294
300
args ["request_id" ] = field
Original file line number Diff line number Diff line change @@ -145,11 +145,6 @@ class Event:
145
145
IP address at the origin of the event.
146
146
"""
147
147
148
- product_name : str
149
- """
150
- Product name of the resource attached to the event.
151
- """
152
-
153
148
recorded_at : Optional [datetime ]
154
149
"""
155
150
Timestamp of the event.
@@ -170,6 +165,11 @@ class Event:
170
165
User Agent at the origin of the event.
171
166
"""
172
167
168
+ product_name : str
169
+ """
170
+ Product name of the resource attached to the event.
171
+ """
172
+
173
173
service_name : str
174
174
"""
175
175
API name called to trigger the event.
@@ -180,6 +180,11 @@ class Event:
180
180
API method called to trigger the event.
181
181
"""
182
182
183
+ resources : List [Resource ]
184
+ """
185
+ Resources attached to the event.
186
+ """
187
+
183
188
request_id : str
184
189
"""
185
190
Unique identifier of the request at the origin of the event.
You can’t perform that action at this time.
0 commit comments