Skip to content

Commit 7f3ec4e

Browse files
authored
feat(audit_trail): add support for Resources (scaleway#2436)
1 parent adcb306 commit 7f3ec4e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/audit_trail/v1alpha1/audit_trail_sdk.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@ type Event struct {
257257
// MethodName: API method called to trigger the event.
258258
MethodName string `json:"method_name"`
259259

260-
// Resource: resource attached to the event.
261-
Resource *Resource `json:"resource"`
260+
// Deprecated: Resource: resource attached to the event.
261+
Resource *Resource `json:"resource,omitempty"`
262+
263+
// Resources: resources attached to the event.
264+
Resources []*Resource `json:"resources"`
262265

263266
// RequestID: unique identifier of the request at the origin of the event.
264267
RequestID string `json:"request_id"`

0 commit comments

Comments
 (0)