diff --git a/scaleway-async/scaleway_async/cockpit/v1/api.py b/scaleway-async/scaleway_async/cockpit/v1/api.py index 55c2299e..316302de 100644 --- a/scaleway-async/scaleway_async/cockpit/v1/api.py +++ b/scaleway-async/scaleway_async/cockpit/v1/api.py @@ -1571,8 +1571,8 @@ async def enable_alert_rules( Enable preconfigured alert rules. Enable alert rules from the list of available preconfigured rules. :param region: Region to target. If none is passed will use default region from the config. - :param project_id: - :param rule_ids: + :param project_id: ID of the Project. + :param rule_ids: List of IDs of the rules to enable. If empty, enables all preconfigured rules. :return: :class:`EnableAlertRulesResponse ` Usage: @@ -1612,8 +1612,8 @@ async def disable_alert_rules( Disable preconfigured alert rules. Disable alert rules from the list of available preconfigured rules. :param region: Region to target. If none is passed will use default region from the config. - :param project_id: - :param rule_ids: + :param project_id: ID of the Project. + :param rule_ids: List of IDs of the rules to enable. If empty, disables all preconfigured rules. :return: :class:`DisableAlertRulesResponse ` Usage: diff --git a/scaleway-async/scaleway_async/cockpit/v1/types.py b/scaleway-async/scaleway_async/cockpit/v1/types.py index a2a150f4..46b21c22 100644 --- a/scaleway-async/scaleway_async/cockpit/v1/types.py +++ b/scaleway-async/scaleway_async/cockpit/v1/types.py @@ -540,12 +540,26 @@ class AlertManager: @dataclass class DisableAlertRulesResponse: + """ + Output returned when alert rules are disabled. + """ + disabled_rule_ids: List[str] + """ + Only newly disabled rules are listed. Rules that were already disabled are not returned in the output. + """ @dataclass class EnableAlertRulesResponse: + """ + Output returned when alert rules are enabled. + """ + enabled_rule_ids: List[str] + """ + Only newly enabled rules are listed. Rules that were already enabled are not returned in the output. + """ @dataclass @@ -1081,8 +1095,14 @@ class RegionalApiDisableAlertRulesRequest: """ project_id: Optional[str] + """ + ID of the Project. + """ rule_ids: Optional[List[str]] + """ + List of IDs of the rules to enable. If empty, disables all preconfigured rules. + """ @dataclass @@ -1127,8 +1147,14 @@ class RegionalApiEnableAlertRulesRequest: """ project_id: Optional[str] + """ + ID of the Project. + """ rule_ids: Optional[List[str]] + """ + List of IDs of the rules to enable. If empty, enables all preconfigured rules. + """ @dataclass diff --git a/scaleway/scaleway/cockpit/v1/api.py b/scaleway/scaleway/cockpit/v1/api.py index 84ddc925..4a555b6a 100644 --- a/scaleway/scaleway/cockpit/v1/api.py +++ b/scaleway/scaleway/cockpit/v1/api.py @@ -1571,8 +1571,8 @@ def enable_alert_rules( Enable preconfigured alert rules. Enable alert rules from the list of available preconfigured rules. :param region: Region to target. If none is passed will use default region from the config. - :param project_id: - :param rule_ids: + :param project_id: ID of the Project. + :param rule_ids: List of IDs of the rules to enable. If empty, enables all preconfigured rules. :return: :class:`EnableAlertRulesResponse ` Usage: @@ -1612,8 +1612,8 @@ def disable_alert_rules( Disable preconfigured alert rules. Disable alert rules from the list of available preconfigured rules. :param region: Region to target. If none is passed will use default region from the config. - :param project_id: - :param rule_ids: + :param project_id: ID of the Project. + :param rule_ids: List of IDs of the rules to enable. If empty, disables all preconfigured rules. :return: :class:`DisableAlertRulesResponse ` Usage: diff --git a/scaleway/scaleway/cockpit/v1/types.py b/scaleway/scaleway/cockpit/v1/types.py index a2a150f4..46b21c22 100644 --- a/scaleway/scaleway/cockpit/v1/types.py +++ b/scaleway/scaleway/cockpit/v1/types.py @@ -540,12 +540,26 @@ class AlertManager: @dataclass class DisableAlertRulesResponse: + """ + Output returned when alert rules are disabled. + """ + disabled_rule_ids: List[str] + """ + Only newly disabled rules are listed. Rules that were already disabled are not returned in the output. + """ @dataclass class EnableAlertRulesResponse: + """ + Output returned when alert rules are enabled. + """ + enabled_rule_ids: List[str] + """ + Only newly enabled rules are listed. Rules that were already enabled are not returned in the output. + """ @dataclass @@ -1081,8 +1095,14 @@ class RegionalApiDisableAlertRulesRequest: """ project_id: Optional[str] + """ + ID of the Project. + """ rule_ids: Optional[List[str]] + """ + List of IDs of the rules to enable. If empty, disables all preconfigured rules. + """ @dataclass @@ -1127,8 +1147,14 @@ class RegionalApiEnableAlertRulesRequest: """ project_id: Optional[str] + """ + ID of the Project. + """ rule_ids: Optional[List[str]] + """ + List of IDs of the rules to enable. If empty, enables all preconfigured rules. + """ @dataclass