1818 from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_costs_to_allocate_items import (
1919 ArbitraryRuleResponseDataAttributesCostsToAllocateItems ,
2020 )
21+ from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_rule_category import (
22+ ArbitraryRuleResponseDataAttributesRuleCategory ,
23+ )
2124 from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_strategy import (
2225 ArbitraryRuleResponseDataAttributesStrategy ,
2326 )
@@ -35,6 +38,9 @@ def openapi_types(_):
3538 from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_costs_to_allocate_items import (
3639 ArbitraryRuleResponseDataAttributesCostsToAllocateItems ,
3740 )
41+ from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_rule_category import (
42+ ArbitraryRuleResponseDataAttributesRuleCategory ,
43+ )
3844 from datadog_api_client .v2 .model .arbitrary_rule_response_data_attributes_strategy import (
3945 ArbitraryRuleResponseDataAttributesStrategy ,
4046 )
@@ -43,31 +49,39 @@ def openapi_types(_):
4349 "costs_to_allocate" : ([ArbitraryRuleResponseDataAttributesCostsToAllocateItems ],),
4450 "created" : (datetime ,),
4551 "enabled" : (bool ,),
52+ "is_ootb" : (bool ,),
4653 "last_modified_user_uuid" : (str ,),
4754 "order_id" : (int ,),
4855 "processing_status" : (str ,),
4956 "provider" : ([str ],),
5057 "rejected" : (bool ,),
58+ "rule_category" : (ArbitraryRuleResponseDataAttributesRuleCategory ,),
5159 "rule_name" : (str ,),
5260 "strategy" : (ArbitraryRuleResponseDataAttributesStrategy ,),
5361 "type" : (str ,),
5462 "updated" : (datetime ,),
63+ "valid_from_date" : (datetime ,),
64+ "valid_through_date" : (datetime ,),
5565 "version" : (int ,),
5666 }
5767
5868 attribute_map = {
5969 "costs_to_allocate" : "costs_to_allocate" ,
6070 "created" : "created" ,
6171 "enabled" : "enabled" ,
72+ "is_ootb" : "is_ootb" ,
6273 "last_modified_user_uuid" : "last_modified_user_uuid" ,
6374 "order_id" : "order_id" ,
6475 "processing_status" : "processing_status" ,
6576 "provider" : "provider" ,
6677 "rejected" : "rejected" ,
78+ "rule_category" : "rule_category" ,
6779 "rule_name" : "rule_name" ,
6880 "strategy" : "strategy" ,
6981 "type" : "type" ,
7082 "updated" : "updated" ,
83+ "valid_from_date" : "valid_from_date" ,
84+ "valid_through_date" : "valid_through_date" ,
7185 "version" : "version" ,
7286 }
7387
@@ -84,8 +98,12 @@ def __init__(
8498 type : str ,
8599 updated : datetime ,
86100 version : int ,
101+ is_ootb : Union [bool , UnsetType ] = unset ,
87102 processing_status : Union [str , UnsetType ] = unset ,
88103 rejected : Union [bool , UnsetType ] = unset ,
104+ rule_category : Union [ArbitraryRuleResponseDataAttributesRuleCategory , UnsetType ] = unset ,
105+ valid_from_date : Union [datetime , UnsetType ] = unset ,
106+ valid_through_date : Union [datetime , UnsetType ] = unset ,
89107 ** kwargs ,
90108 ):
91109 """
@@ -100,6 +118,9 @@ def __init__(
100118 :param enabled: The ``attributes`` ``enabled``.
101119 :type enabled: bool
102120
121+ :param is_ootb: Whether the rule is an out-of-the-box rule provided by Datadog. Omitted when ``false``.
122+ :type is_ootb: bool, optional
123+
103124 :param last_modified_user_uuid: The ``attributes`` ``last_modified_user_uuid``.
104125 :type last_modified_user_uuid: str
105126
@@ -115,6 +136,9 @@ def __init__(
115136 :param rejected: The ``attributes`` ``rejected``.
116137 :type rejected: bool, optional
117138
139+ :param rule_category: Rule category. Omitted for custom rules.
140+ :type rule_category: ArbitraryRuleResponseDataAttributesRuleCategory, optional
141+
118142 :param rule_name: The ``attributes`` ``rule_name``.
119143 :type rule_name: str
120144
@@ -127,13 +151,27 @@ def __init__(
127151 :param updated: The ``attributes`` ``updated``.
128152 :type updated: datetime
129153
154+ :param valid_from_date: The first date the rule applies to. Omitted when the rule has no start date.
155+ :type valid_from_date: datetime, optional
156+
157+ :param valid_through_date: The last date the rule applies to. Omitted when the rule has no end date.
158+ :type valid_through_date: datetime, optional
159+
130160 :param version: The ``attributes`` ``version``.
131161 :type version: int
132162 """
163+ if is_ootb is not unset :
164+ kwargs ["is_ootb" ] = is_ootb
133165 if processing_status is not unset :
134166 kwargs ["processing_status" ] = processing_status
135167 if rejected is not unset :
136168 kwargs ["rejected" ] = rejected
169+ if rule_category is not unset :
170+ kwargs ["rule_category" ] = rule_category
171+ if valid_from_date is not unset :
172+ kwargs ["valid_from_date" ] = valid_from_date
173+ if valid_through_date is not unset :
174+ kwargs ["valid_through_date" ] = valid_through_date
137175 super ().__init__ (kwargs )
138176
139177 self_ .costs_to_allocate = costs_to_allocate
0 commit comments