Skip to content

Commit f667e6a

Browse files
authored
feat(audit_trail): add support for ServiceName (scaleway#2453)
1 parent f3e5567 commit f667e6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/audit_trail/v1alpha1/audit_trail_sdk.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ type ListEventsRequest struct {
318318
// Default value: unknown_type
319319
ResourceType ResourceType `json:"-"`
320320

321-
// MethodName: (Optional) Name of the method or the API call performed.
321+
// MethodName: (Optional) Name of the method of the API call performed.
322322
MethodName *string `json:"-"`
323323

324324
// Status: (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied.
@@ -339,6 +339,9 @@ type ListEventsRequest struct {
339339

340340
// ProductName: (Optional) Name of the Scaleway resource in a hyphenated format.
341341
ProductName *string `json:"-"`
342+
343+
// ServiceName: (Optional) Name of the service of the API call performed.
344+
ServiceName *string `json:"-"`
342345
}
343346

344347
// ListEventsResponse: list events response.
@@ -433,6 +436,7 @@ func (s *API) ListEvents(req *ListEventsRequest, opts ...scw.RequestOption) (*Li
433436
parameter.AddToQuery(query, "page_size", req.PageSize)
434437
parameter.AddToQuery(query, "page_token", req.PageToken)
435438
parameter.AddToQuery(query, "product_name", req.ProductName)
439+
parameter.AddToQuery(query, "service_name", req.ServiceName)
436440

437441
if fmt.Sprint(req.Region) == "" {
438442
return nil, errors.New("field Region cannot be empty in request")

0 commit comments

Comments
 (0)