|
| 1 | +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. |
| 2 | +# This product includes software developed at Datadog (https://www.datadoghq.com/). |
| 3 | +# Copyright 2019-Present Datadog, Inc. |
| 4 | +from __future__ import annotations |
| 5 | + |
| 6 | + |
| 7 | +from datadog_api_client.model_utils import ( |
| 8 | + ModelSimple, |
| 9 | + cached_property, |
| 10 | +) |
| 11 | + |
| 12 | +from typing import ClassVar |
| 13 | + |
| 14 | + |
| 15 | +class SecurityMonitoringRuleSort(ModelSimple): |
| 16 | + """ |
| 17 | + The sort parameters used for querying security monitoring rules. |
| 18 | +
|
| 19 | + :param value: Must be one of ["name", "creation_date", "update_date", "enabled", "type", "highest_severity", "source", "-name", "-creation_date", "-update_date", "-enabled", "-type", "-highest_severity", "-source"]. |
| 20 | + :type value: str |
| 21 | + """ |
| 22 | + |
| 23 | + allowed_values = { |
| 24 | + "name", |
| 25 | + "creation_date", |
| 26 | + "update_date", |
| 27 | + "enabled", |
| 28 | + "type", |
| 29 | + "highest_severity", |
| 30 | + "source", |
| 31 | + "-name", |
| 32 | + "-creation_date", |
| 33 | + "-update_date", |
| 34 | + "-enabled", |
| 35 | + "-type", |
| 36 | + "-highest_severity", |
| 37 | + "-source", |
| 38 | + } |
| 39 | + NAME: ClassVar["SecurityMonitoringRuleSort"] |
| 40 | + CREATION_DATE: ClassVar["SecurityMonitoringRuleSort"] |
| 41 | + UPDATE_DATE: ClassVar["SecurityMonitoringRuleSort"] |
| 42 | + ENABLED: ClassVar["SecurityMonitoringRuleSort"] |
| 43 | + TYPE: ClassVar["SecurityMonitoringRuleSort"] |
| 44 | + HIGHEST_SEVERITY: ClassVar["SecurityMonitoringRuleSort"] |
| 45 | + SOURCE: ClassVar["SecurityMonitoringRuleSort"] |
| 46 | + NAME_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 47 | + CREATION_DATE_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 48 | + UPDATE_DATE_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 49 | + ENABLED_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 50 | + TYPE_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 51 | + HIGHEST_SEVERITY_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 52 | + SOURCE_DESCENDING: ClassVar["SecurityMonitoringRuleSort"] |
| 53 | + |
| 54 | + @cached_property |
| 55 | + def openapi_types(_): |
| 56 | + return { |
| 57 | + "value": (str,), |
| 58 | + } |
| 59 | + |
| 60 | + |
| 61 | +SecurityMonitoringRuleSort.NAME = SecurityMonitoringRuleSort("name") |
| 62 | +SecurityMonitoringRuleSort.CREATION_DATE = SecurityMonitoringRuleSort("creation_date") |
| 63 | +SecurityMonitoringRuleSort.UPDATE_DATE = SecurityMonitoringRuleSort("update_date") |
| 64 | +SecurityMonitoringRuleSort.ENABLED = SecurityMonitoringRuleSort("enabled") |
| 65 | +SecurityMonitoringRuleSort.TYPE = SecurityMonitoringRuleSort("type") |
| 66 | +SecurityMonitoringRuleSort.HIGHEST_SEVERITY = SecurityMonitoringRuleSort("highest_severity") |
| 67 | +SecurityMonitoringRuleSort.SOURCE = SecurityMonitoringRuleSort("source") |
| 68 | +SecurityMonitoringRuleSort.NAME_DESCENDING = SecurityMonitoringRuleSort("-name") |
| 69 | +SecurityMonitoringRuleSort.CREATION_DATE_DESCENDING = SecurityMonitoringRuleSort("-creation_date") |
| 70 | +SecurityMonitoringRuleSort.UPDATE_DATE_DESCENDING = SecurityMonitoringRuleSort("-update_date") |
| 71 | +SecurityMonitoringRuleSort.ENABLED_DESCENDING = SecurityMonitoringRuleSort("-enabled") |
| 72 | +SecurityMonitoringRuleSort.TYPE_DESCENDING = SecurityMonitoringRuleSort("-type") |
| 73 | +SecurityMonitoringRuleSort.HIGHEST_SEVERITY_DESCENDING = SecurityMonitoringRuleSort("-highest_severity") |
| 74 | +SecurityMonitoringRuleSort.SOURCE_DESCENDING = SecurityMonitoringRuleSort("-source") |
0 commit comments