Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,10 @@ def unmarshal_RouteMatch(data: Any) -> RouteMatch:

args: Dict[str, Any] = {}

field = data.get("match_subdomains", None)
if field is not None:
args["match_subdomains"] = field

field = data.get("sni", None)
if field is not None:
args["sni"] = field
Expand Down Expand Up @@ -2036,6 +2040,9 @@ def marshal_RouteMatch(
),
)

if request.match_subdomains is not None:
output["match_subdomains"] = request.match_subdomains

return output


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,11 @@ class PrivateNetworkStaticConfig:

@dataclass
class RouteMatch:
match_subdomains: bool
"""
If true, all subdomains will match.
"""

sni: Optional[str]

host_header: Optional[str]
Expand Down
7 changes: 7 additions & 0 deletions scaleway/scaleway/lb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,10 @@ def unmarshal_RouteMatch(data: Any) -> RouteMatch:

args: Dict[str, Any] = {}

field = data.get("match_subdomains", None)
if field is not None:
args["match_subdomains"] = field

field = data.get("sni", None)
if field is not None:
args["sni"] = field
Expand Down Expand Up @@ -2036,6 +2040,9 @@ def marshal_RouteMatch(
),
)

if request.match_subdomains is not None:
output["match_subdomains"] = request.match_subdomains

return output


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,11 @@ class PrivateNetworkStaticConfig:

@dataclass
class RouteMatch:
match_subdomains: bool
"""
If true, all subdomains will match.
"""

sni: Optional[str]

host_header: Optional[str]
Expand Down