Skip to content

Commit 25c1155

Browse files
scaleway-botyfodil
andauthored
feat(lb): add bool to match edge services ips in acls (#2006)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent a2ee846 commit 25c1155

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/clients/src/api/lb/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ const unmarshalAclMatch = (data: unknown): AclMatch => {
486486
httpFilterValue: data.http_filter_value,
487487
invert: data.invert,
488488
ipSubnet: data.ip_subnet,
489+
ipsEdgeServices: data.ips_edge_services,
489490
} as AclMatch
490491
}
491492

@@ -922,6 +923,7 @@ const marshalAclMatch = (
922923
http_filter_value: request.httpFilterValue,
923924
invert: request.invert,
924925
ip_subnet: request.ipSubnet,
926+
ips_edge_services: request.ipsEdgeServices,
925927
})
926928

927929
export const marshalCreateAclRequest = (

packages/clients/src/api/lb/v1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ export interface AclMatch {
640640
* List of IPs or CIDR v4/v6 addresses to filter for from the client side.
641641
*/
642642
ipSubnet: string[]
643+
/**
644+
* Defines whether Edge Services IPs should be matched.
645+
*/
646+
ipsEdgeServices: boolean
643647
/**
644648
* Type of HTTP filter to match. Extracts the request's URL path, which starts at the first slash and ends before the question mark (without the host part). Defines where to filter for the http_filter_value. Only supported for HTTP backends.
645649
*/

0 commit comments

Comments
 (0)