|
113 | 113 | from datadog_api_client.v2.model.security_monitoring_list_rules_response import SecurityMonitoringListRulesResponse |
114 | 114 | from datadog_api_client.v2.model.security_monitoring_rule_sort import SecurityMonitoringRuleSort |
115 | 115 | from datadog_api_client.v2.model.security_monitoring_rule_response import SecurityMonitoringRuleResponse |
| 116 | +from datadog_api_client.v2.model.security_monitoring_rule_bulk_delete_response import ( |
| 117 | + SecurityMonitoringRuleBulkDeleteResponse, |
| 118 | +) |
| 119 | +from datadog_api_client.v2.model.security_monitoring_rule_bulk_delete_payload import ( |
| 120 | + SecurityMonitoringRuleBulkDeletePayload, |
| 121 | +) |
116 | 122 | from datadog_api_client.v2.model.security_monitoring_rule_bulk_export_payload import ( |
117 | 123 | SecurityMonitoringRuleBulkExportPayload, |
118 | 124 | ) |
@@ -260,6 +266,26 @@ def __init__(self, api_client=None): |
260 | 266 | api_client=api_client, |
261 | 267 | ) |
262 | 268 |
|
| 269 | + self._bulk_delete_security_monitoring_rules_endpoint = _Endpoint( |
| 270 | + settings={ |
| 271 | + "response_type": (SecurityMonitoringRuleBulkDeleteResponse,), |
| 272 | + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], |
| 273 | + "endpoint_path": "/api/v2/security_monitoring/rules/bulk_delete", |
| 274 | + "operation_id": "bulk_delete_security_monitoring_rules", |
| 275 | + "http_method": "DELETE", |
| 276 | + "version": "v2", |
| 277 | + }, |
| 278 | + params_map={ |
| 279 | + "body": { |
| 280 | + "required": True, |
| 281 | + "openapi_types": (SecurityMonitoringRuleBulkDeletePayload,), |
| 282 | + "location": "body", |
| 283 | + }, |
| 284 | + }, |
| 285 | + headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, |
| 286 | + api_client=api_client, |
| 287 | + ) |
| 288 | + |
263 | 289 | self._bulk_edit_security_monitoring_signals_endpoint = _Endpoint( |
264 | 290 | settings={ |
265 | 291 | "response_type": (SecurityMonitoringSignalsBulkTriageUpdateResponse,), |
@@ -3067,6 +3093,22 @@ def attach_jira_issue( |
3067 | 3093 |
|
3068 | 3094 | return self._attach_jira_issue_endpoint.call_with_http_info(**kwargs) |
3069 | 3095 |
|
| 3096 | + def bulk_delete_security_monitoring_rules( |
| 3097 | + self, |
| 3098 | + body: SecurityMonitoringRuleBulkDeletePayload, |
| 3099 | + ) -> SecurityMonitoringRuleBulkDeleteResponse: |
| 3100 | + """Bulk delete security monitoring rules. |
| 3101 | +
|
| 3102 | + Delete multiple security monitoring rules in a single request. Default rules cannot be deleted. |
| 3103 | +
|
| 3104 | + :type body: SecurityMonitoringRuleBulkDeletePayload |
| 3105 | + :rtype: SecurityMonitoringRuleBulkDeleteResponse |
| 3106 | + """ |
| 3107 | + kwargs: Dict[str, Any] = {} |
| 3108 | + kwargs["body"] = body |
| 3109 | + |
| 3110 | + return self._bulk_delete_security_monitoring_rules_endpoint.call_with_http_info(**kwargs) |
| 3111 | + |
3070 | 3112 | def bulk_edit_security_monitoring_signals( |
3071 | 3113 | self, |
3072 | 3114 | body: SecurityMonitoringSignalsBulkUpdateRequest, |
|
0 commit comments