Skip to content

Commit 044614b

Browse files
authored
feat(lb): add bool to match edge services ips in acls (#951)
1 parent e2f9bdc commit 044614b

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

scaleway-async/scaleway_async/lb/v1/marshalling.py

+7
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ def unmarshal_AclMatch(data: Any) -> AclMatch:
923923
if field is not None:
924924
args["ip_subnet"] = field
925925

926+
field = data.get("ips_edge_services", None)
927+
if field is not None:
928+
args["ips_edge_services"] = field
929+
926930
field = data.get("http_filter", None)
927931
if field is not None:
928932
args["http_filter"] = field
@@ -1618,6 +1622,9 @@ def marshal_AclMatch(
16181622
if request.ip_subnet is not None:
16191623
output["ip_subnet"] = request.ip_subnet
16201624

1625+
if request.ips_edge_services is not None:
1626+
output["ips_edge_services"] = request.ips_edge_services
1627+
16211628
if request.http_filter is not None:
16221629
output["http_filter"] = str(request.http_filter)
16231630

scaleway-async/scaleway_async/lb/v1/types.py

+5
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ class AclMatch:
866866
List of IPs or CIDR v4/v6 addresses to filter for from the client side.
867867
"""
868868

869+
ips_edge_services: bool
870+
"""
871+
Defines whether Edge Services IPs should be matched.
872+
"""
873+
869874
http_filter: AclHttpFilter
870875
"""
871876
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.

scaleway/scaleway/lb/v1/marshalling.py

+7
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ def unmarshal_AclMatch(data: Any) -> AclMatch:
923923
if field is not None:
924924
args["ip_subnet"] = field
925925

926+
field = data.get("ips_edge_services", None)
927+
if field is not None:
928+
args["ips_edge_services"] = field
929+
926930
field = data.get("http_filter", None)
927931
if field is not None:
928932
args["http_filter"] = field
@@ -1618,6 +1622,9 @@ def marshal_AclMatch(
16181622
if request.ip_subnet is not None:
16191623
output["ip_subnet"] = request.ip_subnet
16201624

1625+
if request.ips_edge_services is not None:
1626+
output["ips_edge_services"] = request.ips_edge_services
1627+
16211628
if request.http_filter is not None:
16221629
output["http_filter"] = str(request.http_filter)
16231630

scaleway/scaleway/lb/v1/types.py

+5
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ class AclMatch:
866866
List of IPs or CIDR v4/v6 addresses to filter for from the client side.
867867
"""
868868

869+
ips_edge_services: bool
870+
"""
871+
Defines whether Edge Services IPs should be matched.
872+
"""
873+
869874
http_filter: AclHttpFilter
870875
"""
871876
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.

0 commit comments

Comments
 (0)