diff --git a/scaleway-async/scaleway_async/lb/v1/api.py b/scaleway-async/scaleway_async/lb/v1/api.py index 64ed333cd..094e682f3 100644 --- a/scaleway-async/scaleway_async/lb/v1/api.py +++ b/scaleway-async/scaleway_async/lb/v1/api.py @@ -1512,6 +1512,7 @@ async def create_frontend( lb_id: str, backend_id: str, enable_http3: bool, + enable_access_logs: bool, zone: Optional[ScwZone] = None, name: Optional[str] = None, timeout_client: Optional[str] = None, @@ -1526,6 +1527,7 @@ async def create_frontend( :param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to). :param backend_id: Backend ID (ID of the backend the frontend should pass traffic to). :param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :param zone: Zone to target. If none is passed will use default zone from the config. :param name: Name for the frontend. :param timeout_client: Maximum allowed inactivity time on the client side. @@ -1542,6 +1544,7 @@ async def create_frontend( lb_id="example", backend_id="example", enable_http3=False, + enable_access_logs=False, ) """ @@ -1557,6 +1560,7 @@ async def create_frontend( lb_id=lb_id, backend_id=backend_id, enable_http3=enable_http3, + enable_access_logs=enable_access_logs, zone=zone, name=name or random_name(prefix="lbf"), timeout_client=timeout_client, @@ -1616,6 +1620,7 @@ async def update_frontend( certificate_id: Optional[str] = None, certificate_ids: Optional[List[str]] = None, connection_rate_limit: Optional[int] = None, + enable_access_logs: Optional[bool] = None, ) -> Frontend: """ Update a frontend. @@ -1630,6 +1635,7 @@ async def update_frontend( :param certificate_id: Certificate ID, deprecated in favor of certificate_ids array. :param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend. :param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :return: :class:`Frontend ` Usage: @@ -1662,6 +1668,7 @@ async def update_frontend( certificate_id=certificate_id, certificate_ids=certificate_ids, connection_rate_limit=connection_rate_limit, + enable_access_logs=enable_access_logs, ), self.client, ), @@ -4553,6 +4560,7 @@ async def create_frontend( lb_id: str, backend_id: str, enable_http3: bool, + enable_access_logs: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, timeout_client: Optional[str] = None, @@ -4566,6 +4574,7 @@ async def create_frontend( :param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to). :param backend_id: Backend ID (ID of the backend the frontend should pass traffic to). :param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :param region: Region to target. If none is passed will use default region from the config. :param name: Name for the frontend. :param timeout_client: Maximum allowed inactivity time on the client side. @@ -4582,6 +4591,7 @@ async def create_frontend( lb_id="example", backend_id="example", enable_http3=False, + enable_access_logs=False, ) """ @@ -4599,6 +4609,7 @@ async def create_frontend( lb_id=lb_id, backend_id=backend_id, enable_http3=enable_http3, + enable_access_logs=enable_access_logs, region=region, name=name or random_name(prefix="lbf"), timeout_client=timeout_client, @@ -4659,6 +4670,7 @@ async def update_frontend( certificate_id: Optional[str] = None, certificate_ids: Optional[List[str]] = None, connection_rate_limit: Optional[int] = None, + enable_access_logs: Optional[bool] = None, ) -> Frontend: """ Update a frontend. @@ -4672,6 +4684,7 @@ async def update_frontend( :param certificate_id: Certificate ID, deprecated in favor of certificate_ids array. :param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend. :param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :return: :class:`Frontend ` Usage: @@ -4706,6 +4719,7 @@ async def update_frontend( certificate_id=certificate_id, certificate_ids=certificate_ids, connection_rate_limit=connection_rate_limit, + enable_access_logs=enable_access_logs, ), self.client, ), diff --git a/scaleway-async/scaleway_async/lb/v1/marshalling.py b/scaleway-async/scaleway_async/lb/v1/marshalling.py index bbf09e778..e424b2307 100644 --- a/scaleway-async/scaleway_async/lb/v1/marshalling.py +++ b/scaleway-async/scaleway_async/lb/v1/marshalling.py @@ -816,10 +816,6 @@ def unmarshal_Frontend(data: Any) -> Frontend: if field is not None: args["certificate_ids"] = field - field = data.get("enable_http3", None) - if field is not None: - args["enable_http3"] = field - field = data.get("backend", None) if field is not None: args["backend"] = unmarshal_Backend(field) @@ -838,6 +834,14 @@ def unmarshal_Frontend(data: Any) -> Frontend: else: args["timeout_client"] = None + field = data.get("enable_http3", None) + if field is not None: + args["enable_http3"] = field + + field = data.get("enable_access_logs", None) + if field is not None: + args["enable_access_logs"] = field + field = data.get("certificate", None) if field is not None: args["certificate"] = unmarshal_Certificate(field) @@ -1940,6 +1944,9 @@ def marshal_CreateFrontendRequest( if request.enable_http3 is not None: output["enable_http3"] = request.enable_http3 + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + if request.name is not None: output["name"] = request.name @@ -2317,6 +2324,9 @@ def marshal_UpdateFrontendRequest( if request.connection_rate_limit is not None: output["connection_rate_limit"] = request.connection_rate_limit + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + return output @@ -2601,6 +2611,9 @@ def marshal_ZonedApiCreateFrontendRequest( if request.enable_http3 is not None: output["enable_http3"] = request.enable_http3 + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + if request.name is not None: output["name"] = request.name @@ -2981,6 +2994,9 @@ def marshal_ZonedApiUpdateFrontendRequest( if request.connection_rate_limit is not None: output["connection_rate_limit"] = request.connection_rate_limit + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + return output diff --git a/scaleway-async/scaleway_async/lb/v1/types.py b/scaleway-async/scaleway_async/lb/v1/types.py index d66e8a693..106f8f49a 100644 --- a/scaleway-async/scaleway_async/lb/v1/types.py +++ b/scaleway-async/scaleway_async/lb/v1/types.py @@ -914,11 +914,6 @@ class Frontend: List of SSL/TLS certificate IDs to bind to the frontend. """ - enable_http3: bool - """ - Defines whether to enable HTTP/3 protocol on the frontend. - """ - backend: Optional[Backend] """ Backend object the frontend is attached to. @@ -934,6 +929,16 @@ class Frontend: Maximum allowed inactivity time on the client side. """ + enable_http3: bool + """ + Defines whether to enable HTTP/3 protocol on the frontend. + """ + + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + certificate: Optional[Certificate] """ Certificate, deprecated in favor of certificate_ids array. @@ -1468,6 +1473,11 @@ class CreateFrontendRequest: Defines whether to enable HTTP/3 protocol on the frontend. """ + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + region: Optional[ScwRegion] """ Region to target. If none is passed will use default region from the config. @@ -2707,6 +2717,11 @@ class UpdateFrontendRequest: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. """ + enable_access_logs: Optional[bool] + """ + Defines wether to enable access logs on the frontend. + """ + @dataclass class UpdateHealthCheckRequest: @@ -3122,6 +3137,11 @@ class ZonedApiCreateFrontendRequest: Defines whether to enable HTTP/3 protocol on the frontend. """ + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + zone: Optional[ScwZone] """ Zone to target. If none is passed will use default zone from the config. @@ -4215,6 +4235,11 @@ class ZonedApiUpdateFrontendRequest: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. """ + enable_access_logs: Optional[bool] + """ + Defines wether to enable access logs on the frontend. + """ + @dataclass class ZonedApiUpdateHealthCheckRequest: diff --git a/scaleway/scaleway/lb/v1/api.py b/scaleway/scaleway/lb/v1/api.py index 636eb949a..80efd7c83 100644 --- a/scaleway/scaleway/lb/v1/api.py +++ b/scaleway/scaleway/lb/v1/api.py @@ -1512,6 +1512,7 @@ def create_frontend( lb_id: str, backend_id: str, enable_http3: bool, + enable_access_logs: bool, zone: Optional[ScwZone] = None, name: Optional[str] = None, timeout_client: Optional[str] = None, @@ -1526,6 +1527,7 @@ def create_frontend( :param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to). :param backend_id: Backend ID (ID of the backend the frontend should pass traffic to). :param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :param zone: Zone to target. If none is passed will use default zone from the config. :param name: Name for the frontend. :param timeout_client: Maximum allowed inactivity time on the client side. @@ -1542,6 +1544,7 @@ def create_frontend( lb_id="example", backend_id="example", enable_http3=False, + enable_access_logs=False, ) """ @@ -1557,6 +1560,7 @@ def create_frontend( lb_id=lb_id, backend_id=backend_id, enable_http3=enable_http3, + enable_access_logs=enable_access_logs, zone=zone, name=name or random_name(prefix="lbf"), timeout_client=timeout_client, @@ -1616,6 +1620,7 @@ def update_frontend( certificate_id: Optional[str] = None, certificate_ids: Optional[List[str]] = None, connection_rate_limit: Optional[int] = None, + enable_access_logs: Optional[bool] = None, ) -> Frontend: """ Update a frontend. @@ -1630,6 +1635,7 @@ def update_frontend( :param certificate_id: Certificate ID, deprecated in favor of certificate_ids array. :param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend. :param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :return: :class:`Frontend ` Usage: @@ -1662,6 +1668,7 @@ def update_frontend( certificate_id=certificate_id, certificate_ids=certificate_ids, connection_rate_limit=connection_rate_limit, + enable_access_logs=enable_access_logs, ), self.client, ), @@ -4551,6 +4558,7 @@ def create_frontend( lb_id: str, backend_id: str, enable_http3: bool, + enable_access_logs: bool, region: Optional[ScwRegion] = None, name: Optional[str] = None, timeout_client: Optional[str] = None, @@ -4564,6 +4572,7 @@ def create_frontend( :param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to). :param backend_id: Backend ID (ID of the backend the frontend should pass traffic to). :param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :param region: Region to target. If none is passed will use default region from the config. :param name: Name for the frontend. :param timeout_client: Maximum allowed inactivity time on the client side. @@ -4580,6 +4589,7 @@ def create_frontend( lb_id="example", backend_id="example", enable_http3=False, + enable_access_logs=False, ) """ @@ -4597,6 +4607,7 @@ def create_frontend( lb_id=lb_id, backend_id=backend_id, enable_http3=enable_http3, + enable_access_logs=enable_access_logs, region=region, name=name or random_name(prefix="lbf"), timeout_client=timeout_client, @@ -4657,6 +4668,7 @@ def update_frontend( certificate_id: Optional[str] = None, certificate_ids: Optional[List[str]] = None, connection_rate_limit: Optional[int] = None, + enable_access_logs: Optional[bool] = None, ) -> Frontend: """ Update a frontend. @@ -4670,6 +4682,7 @@ def update_frontend( :param certificate_id: Certificate ID, deprecated in favor of certificate_ids array. :param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend. :param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. + :param enable_access_logs: Defines wether to enable access logs on the frontend. :return: :class:`Frontend ` Usage: @@ -4704,6 +4717,7 @@ def update_frontend( certificate_id=certificate_id, certificate_ids=certificate_ids, connection_rate_limit=connection_rate_limit, + enable_access_logs=enable_access_logs, ), self.client, ), diff --git a/scaleway/scaleway/lb/v1/marshalling.py b/scaleway/scaleway/lb/v1/marshalling.py index bbf09e778..e424b2307 100644 --- a/scaleway/scaleway/lb/v1/marshalling.py +++ b/scaleway/scaleway/lb/v1/marshalling.py @@ -816,10 +816,6 @@ def unmarshal_Frontend(data: Any) -> Frontend: if field is not None: args["certificate_ids"] = field - field = data.get("enable_http3", None) - if field is not None: - args["enable_http3"] = field - field = data.get("backend", None) if field is not None: args["backend"] = unmarshal_Backend(field) @@ -838,6 +834,14 @@ def unmarshal_Frontend(data: Any) -> Frontend: else: args["timeout_client"] = None + field = data.get("enable_http3", None) + if field is not None: + args["enable_http3"] = field + + field = data.get("enable_access_logs", None) + if field is not None: + args["enable_access_logs"] = field + field = data.get("certificate", None) if field is not None: args["certificate"] = unmarshal_Certificate(field) @@ -1940,6 +1944,9 @@ def marshal_CreateFrontendRequest( if request.enable_http3 is not None: output["enable_http3"] = request.enable_http3 + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + if request.name is not None: output["name"] = request.name @@ -2317,6 +2324,9 @@ def marshal_UpdateFrontendRequest( if request.connection_rate_limit is not None: output["connection_rate_limit"] = request.connection_rate_limit + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + return output @@ -2601,6 +2611,9 @@ def marshal_ZonedApiCreateFrontendRequest( if request.enable_http3 is not None: output["enable_http3"] = request.enable_http3 + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + if request.name is not None: output["name"] = request.name @@ -2981,6 +2994,9 @@ def marshal_ZonedApiUpdateFrontendRequest( if request.connection_rate_limit is not None: output["connection_rate_limit"] = request.connection_rate_limit + if request.enable_access_logs is not None: + output["enable_access_logs"] = request.enable_access_logs + return output diff --git a/scaleway/scaleway/lb/v1/types.py b/scaleway/scaleway/lb/v1/types.py index d66e8a693..106f8f49a 100644 --- a/scaleway/scaleway/lb/v1/types.py +++ b/scaleway/scaleway/lb/v1/types.py @@ -914,11 +914,6 @@ class Frontend: List of SSL/TLS certificate IDs to bind to the frontend. """ - enable_http3: bool - """ - Defines whether to enable HTTP/3 protocol on the frontend. - """ - backend: Optional[Backend] """ Backend object the frontend is attached to. @@ -934,6 +929,16 @@ class Frontend: Maximum allowed inactivity time on the client side. """ + enable_http3: bool + """ + Defines whether to enable HTTP/3 protocol on the frontend. + """ + + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + certificate: Optional[Certificate] """ Certificate, deprecated in favor of certificate_ids array. @@ -1468,6 +1473,11 @@ class CreateFrontendRequest: Defines whether to enable HTTP/3 protocol on the frontend. """ + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + region: Optional[ScwRegion] """ Region to target. If none is passed will use default region from the config. @@ -2707,6 +2717,11 @@ class UpdateFrontendRequest: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. """ + enable_access_logs: Optional[bool] + """ + Defines wether to enable access logs on the frontend. + """ + @dataclass class UpdateHealthCheckRequest: @@ -3122,6 +3137,11 @@ class ZonedApiCreateFrontendRequest: Defines whether to enable HTTP/3 protocol on the frontend. """ + enable_access_logs: bool + """ + Defines wether to enable access logs on the frontend. + """ + zone: Optional[ScwZone] """ Zone to target. If none is passed will use default zone from the config. @@ -4215,6 +4235,11 @@ class ZonedApiUpdateFrontendRequest: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. """ + enable_access_logs: Optional[bool] + """ + Defines wether to enable access logs on the frontend. + """ + @dataclass class ZonedApiUpdateHealthCheckRequest: