diff --git a/scaleway-async/scaleway_async/cockpit/v1/api.py b/scaleway-async/scaleway_async/cockpit/v1/api.py index 22bda241f..61c8fb4b0 100644 --- a/scaleway-async/scaleway_async/cockpit/v1/api.py +++ b/scaleway-async/scaleway_async/cockpit/v1/api.py @@ -1231,7 +1231,7 @@ async def create_contact_point( region: Optional[ScwRegion] = None, project_id: Optional[str] = None, email: Optional[ContactPointEmail] = None, - receive_resolved_notifications: Optional[bool] = None, + send_resolved_notifications: Optional[bool] = None, ) -> ContactPoint: """ Create a contact point. @@ -1242,7 +1242,7 @@ async def create_contact_point( :param project_id: ID of the Project to create the contact point in. :param email: Email address of the contact point to create. One-Of ('configuration'): at most one of 'email' could be set. - :param receive_resolved_notifications: Send an email notification when an alert is marked as resolved. + :param send_resolved_notifications: Send an email notification when an alert is marked as resolved. :return: :class:`ContactPoint ` Usage: @@ -1262,7 +1262,7 @@ async def create_contact_point( RegionalApiCreateContactPointRequest( region=region, project_id=project_id, - receive_resolved_notifications=receive_resolved_notifications, + send_resolved_notifications=send_resolved_notifications, email=email, ), self.client, @@ -1353,14 +1353,14 @@ async def update_contact_point( region: Optional[ScwRegion] = None, project_id: Optional[str] = None, email: Optional[ContactPointEmail] = None, - receive_resolved_notifications: Optional[bool] = None, + send_resolved_notifications: Optional[bool] = None, ) -> ContactPoint: """ :param region: Region to target. If none is passed will use default region from the config. :param project_id: ID of the Project containing the contact point to update. :param email: Email address of the contact point to update. One-Of ('configuration'): at most one of 'email' could be set. - :param receive_resolved_notifications: Enable or disable notifications when alert is resolved. + :param send_resolved_notifications: Enable or disable notifications when alert is resolved. :return: :class:`ContactPoint ` Usage: @@ -1380,7 +1380,7 @@ async def update_contact_point( RegionalApiUpdateContactPointRequest( region=region, project_id=project_id, - receive_resolved_notifications=receive_resolved_notifications, + send_resolved_notifications=send_resolved_notifications, email=email, ), self.client, diff --git a/scaleway-async/scaleway_async/cockpit/v1/marshalling.py b/scaleway-async/scaleway_async/cockpit/v1/marshalling.py index 5a72373eb..65c895435 100644 --- a/scaleway-async/scaleway_async/cockpit/v1/marshalling.py +++ b/scaleway-async/scaleway_async/cockpit/v1/marshalling.py @@ -77,9 +77,9 @@ def unmarshal_ContactPoint(data: Any) -> ContactPoint: if field is not None: args["region"] = field - field = data.get("receive_resolved_notifications", None) + field = data.get("send_resolved_notifications", None) if field is not None: - args["receive_resolved_notifications"] = field + args["send_resolved_notifications"] = field field = data.get("email", None) if field is not None: @@ -792,10 +792,8 @@ def marshal_RegionalApiCreateContactPointRequest( if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id - if request.receive_resolved_notifications is not None: - output["receive_resolved_notifications"] = ( - request.receive_resolved_notifications - ) + if request.send_resolved_notifications is not None: + output["send_resolved_notifications"] = request.send_resolved_notifications return output @@ -934,10 +932,8 @@ def marshal_RegionalApiUpdateContactPointRequest( if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id - if request.receive_resolved_notifications is not None: - output["receive_resolved_notifications"] = ( - request.receive_resolved_notifications - ) + if request.send_resolved_notifications is not None: + output["send_resolved_notifications"] = request.send_resolved_notifications return output diff --git a/scaleway-async/scaleway_async/cockpit/v1/types.py b/scaleway-async/scaleway_async/cockpit/v1/types.py index 967fae25f..21885a85d 100644 --- a/scaleway-async/scaleway_async/cockpit/v1/types.py +++ b/scaleway-async/scaleway_async/cockpit/v1/types.py @@ -174,7 +174,7 @@ class ContactPoint: Region. """ - receive_resolved_notifications: bool + send_resolved_notifications: bool """ Send an email notification when an alert is marked as resolved. """ @@ -859,7 +859,7 @@ class RegionalApiCreateContactPointRequest: ID of the Project to create the contact point in. """ - receive_resolved_notifications: Optional[bool] + send_resolved_notifications: Optional[bool] """ Send an email notification when an alert is marked as resolved. """ @@ -1293,7 +1293,7 @@ class RegionalApiUpdateContactPointRequest: ID of the Project containing the contact point to update. """ - receive_resolved_notifications: Optional[bool] + send_resolved_notifications: Optional[bool] """ Enable or disable notifications when alert is resolved. """ diff --git a/scaleway/scaleway/cockpit/v1/api.py b/scaleway/scaleway/cockpit/v1/api.py index e97de018e..0e522b8cd 100644 --- a/scaleway/scaleway/cockpit/v1/api.py +++ b/scaleway/scaleway/cockpit/v1/api.py @@ -1231,7 +1231,7 @@ def create_contact_point( region: Optional[ScwRegion] = None, project_id: Optional[str] = None, email: Optional[ContactPointEmail] = None, - receive_resolved_notifications: Optional[bool] = None, + send_resolved_notifications: Optional[bool] = None, ) -> ContactPoint: """ Create a contact point. @@ -1242,7 +1242,7 @@ def create_contact_point( :param project_id: ID of the Project to create the contact point in. :param email: Email address of the contact point to create. One-Of ('configuration'): at most one of 'email' could be set. - :param receive_resolved_notifications: Send an email notification when an alert is marked as resolved. + :param send_resolved_notifications: Send an email notification when an alert is marked as resolved. :return: :class:`ContactPoint ` Usage: @@ -1262,7 +1262,7 @@ def create_contact_point( RegionalApiCreateContactPointRequest( region=region, project_id=project_id, - receive_resolved_notifications=receive_resolved_notifications, + send_resolved_notifications=send_resolved_notifications, email=email, ), self.client, @@ -1353,14 +1353,14 @@ def update_contact_point( region: Optional[ScwRegion] = None, project_id: Optional[str] = None, email: Optional[ContactPointEmail] = None, - receive_resolved_notifications: Optional[bool] = None, + send_resolved_notifications: Optional[bool] = None, ) -> ContactPoint: """ :param region: Region to target. If none is passed will use default region from the config. :param project_id: ID of the Project containing the contact point to update. :param email: Email address of the contact point to update. One-Of ('configuration'): at most one of 'email' could be set. - :param receive_resolved_notifications: Enable or disable notifications when alert is resolved. + :param send_resolved_notifications: Enable or disable notifications when alert is resolved. :return: :class:`ContactPoint ` Usage: @@ -1380,7 +1380,7 @@ def update_contact_point( RegionalApiUpdateContactPointRequest( region=region, project_id=project_id, - receive_resolved_notifications=receive_resolved_notifications, + send_resolved_notifications=send_resolved_notifications, email=email, ), self.client, diff --git a/scaleway/scaleway/cockpit/v1/marshalling.py b/scaleway/scaleway/cockpit/v1/marshalling.py index 5a72373eb..65c895435 100644 --- a/scaleway/scaleway/cockpit/v1/marshalling.py +++ b/scaleway/scaleway/cockpit/v1/marshalling.py @@ -77,9 +77,9 @@ def unmarshal_ContactPoint(data: Any) -> ContactPoint: if field is not None: args["region"] = field - field = data.get("receive_resolved_notifications", None) + field = data.get("send_resolved_notifications", None) if field is not None: - args["receive_resolved_notifications"] = field + args["send_resolved_notifications"] = field field = data.get("email", None) if field is not None: @@ -792,10 +792,8 @@ def marshal_RegionalApiCreateContactPointRequest( if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id - if request.receive_resolved_notifications is not None: - output["receive_resolved_notifications"] = ( - request.receive_resolved_notifications - ) + if request.send_resolved_notifications is not None: + output["send_resolved_notifications"] = request.send_resolved_notifications return output @@ -934,10 +932,8 @@ def marshal_RegionalApiUpdateContactPointRequest( if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id - if request.receive_resolved_notifications is not None: - output["receive_resolved_notifications"] = ( - request.receive_resolved_notifications - ) + if request.send_resolved_notifications is not None: + output["send_resolved_notifications"] = request.send_resolved_notifications return output diff --git a/scaleway/scaleway/cockpit/v1/types.py b/scaleway/scaleway/cockpit/v1/types.py index 967fae25f..21885a85d 100644 --- a/scaleway/scaleway/cockpit/v1/types.py +++ b/scaleway/scaleway/cockpit/v1/types.py @@ -174,7 +174,7 @@ class ContactPoint: Region. """ - receive_resolved_notifications: bool + send_resolved_notifications: bool """ Send an email notification when an alert is marked as resolved. """ @@ -859,7 +859,7 @@ class RegionalApiCreateContactPointRequest: ID of the Project to create the contact point in. """ - receive_resolved_notifications: Optional[bool] + send_resolved_notifications: Optional[bool] """ Send an email notification when an alert is marked as resolved. """ @@ -1293,7 +1293,7 @@ class RegionalApiUpdateContactPointRequest: ID of the Project containing the contact point to update. """ - receive_resolved_notifications: Optional[bool] + send_resolved_notifications: Optional[bool] """ Enable or disable notifications when alert is resolved. """