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 @@ -1133,6 +1133,12 @@ def unmarshal_RouteMatch(data: Any) -> RouteMatch:
else:
args["host_header"] = None

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

return RouteMatch(**args)


Expand Down Expand Up @@ -2044,6 +2050,7 @@ def marshal_RouteMatch(
[
OneOfPossibility("sni", request.sni),
OneOfPossibility("host_header", request.host_header),
OneOfPossibility("path_begin", request.path_begin),
]
),
)
Expand Down
2 changes: 2 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ class RouteMatch:

host_header: Optional[str]

path_begin: Optional[str]


@dataclass
class CreateCertificateRequestCustomCertificate:
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 @@ -1133,6 +1133,12 @@ def unmarshal_RouteMatch(data: Any) -> RouteMatch:
else:
args["host_header"] = None

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

return RouteMatch(**args)


Expand Down Expand Up @@ -2044,6 +2050,7 @@ def marshal_RouteMatch(
[
OneOfPossibility("sni", request.sni),
OneOfPossibility("host_header", request.host_header),
OneOfPossibility("path_begin", request.path_begin),
]
),
)
Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ class RouteMatch:

host_header: Optional[str]

path_begin: Optional[str]


@dataclass
class CreateCertificateRequestCustomCertificate:
Expand Down