Skip to content

Commit 87ddc26

Browse files
authored
feat(audit_trail): add integrated methods in ListProducts (scaleway#2355)
1 parent 5acb8bb commit 87ddc26

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/audit_trail/v1alpha1/audit_trail_sdk.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ type Resource struct {
194194
KubeACLInfo *KubernetesACLInfo `json:"kube_acl_info,omitempty"`
195195
}
196196

197+
// ProductService: product service.
198+
type ProductService struct {
199+
Name string `json:"name"`
200+
201+
Methods []string `json:"methods"`
202+
}
203+
197204
// Event: event.
198205
type Event struct {
199206
// ID: ID of the event.
@@ -249,6 +256,9 @@ type Product struct {
249256

250257
// Name: product name.
251258
Name string `json:"name"`
259+
260+
// Services: specifies the API versions of the products integrated with Audit Trail. Each version defines the methods logged by Audit Trail.
261+
Services []*ProductService `json:"services"`
252262
}
253263

254264
// ListEventsRequest: list events request.

0 commit comments

Comments
 (0)