Skip to content

Commit 3b9d65e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cba453c of spec repo
1 parent cad8a33 commit 3b9d65e

17 files changed

Lines changed: 38 additions & 196 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -791,11 +791,6 @@ components:
791791
items:
792792
$ref: "#/components/schemas/ResourceProviderConfig"
793793
type: array
794-
secretless_auth_enabled:
795-
description: |-
796-
(Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
797-
example: true
798-
type: boolean
799794
tenant_name:
800795
description: Your Azure Active Directory ID.
801796
example: "testc44-1234-5678-9101-cc00736ftest"

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64474,35 +64474,17 @@ components:
6447464474
type: object
6447564475
SecurityMonitoringRuleNewValueOptionsForgetAfter:
6447664476
description: The duration in days after which a learned value is forgotten.
64477-
enum:
64478-
- 1
64479-
- 2
64480-
- 7
64481-
- 14
64482-
- 21
64483-
- 28
6448464477
format: int32
64478+
maximum: 30
64479+
minimum: 1
6448564480
type: integer
64486-
x-enum-varnames:
64487-
- ONE_DAY
64488-
- TWO_DAYS
64489-
- ONE_WEEK
64490-
- TWO_WEEKS
64491-
- THREE_WEEKS
64492-
- FOUR_WEEKS
6449364481
SecurityMonitoringRuleNewValueOptionsLearningDuration:
6449464482
default: 0
6449564483
description: "The duration in days during which values are learned, and after which signals will be generated for values that\nweren't learned. If set to 0, a signal will be generated for all new values after the first value is learned."
64496-
enum:
64497-
- 0
64498-
- 1
64499-
- 7
6450064484
format: int32
64485+
maximum: 30
64486+
minimum: 0
6450164487
type: integer
64502-
x-enum-varnames:
64503-
- ZERO_DAYS
64504-
- ONE_DAY
64505-
- SEVEN_DAYS
6450664488
SecurityMonitoringRuleNewValueOptionsLearningMethod:
6450764489
default: duration
6450864490
description: The learning method used to determine when signals should be generated for values that weren't learned.

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28676,20 +28676,6 @@ datadog\_api\_client.v2.model.security\_monitoring\_rule\_new\_value\_options mo
2867628676
:members:
2867728677
:show-inheritance:
2867828678

28679-
datadog\_api\_client.v2.model.security\_monitoring\_rule\_new\_value\_options\_forget\_after module
28680-
---------------------------------------------------------------------------------------------------
28681-
28682-
.. automodule:: datadog_api_client.v2.model.security_monitoring_rule_new_value_options_forget_after
28683-
:members:
28684-
:show-inheritance:
28685-
28686-
datadog\_api\_client.v2.model.security\_monitoring\_rule\_new\_value\_options\_learning\_duration module
28687-
--------------------------------------------------------------------------------------------------------
28688-
28689-
.. automodule:: datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_duration
28690-
:members:
28691-
:show-inheritance:
28692-
2869328679
datadog\_api\_client.v2.model.security\_monitoring\_rule\_new\_value\_options\_learning\_method module
2869428680
------------------------------------------------------------------------------------------------------
2869528681

examples/v1/azure-integration/UpdateAzureHostFilters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
namespace="Microsoft.Compute",
3131
),
3232
],
33-
secretless_auth_enabled=True,
3433
tenant_name="testc44-1234-5678-9101-cc00736ftest",
3534
usage_metrics_enabled=True,
3635
)

examples/v1/azure-integration/UpdateAzureIntegration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
new_client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2222
new_tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2323
resource_collection_enabled=True,
24-
secretless_auth_enabled=True,
2524
tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2625
)
2726

examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
SecurityMonitoringRuleMaxSignalDuration,
1616
)
1717
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options import SecurityMonitoringRuleNewValueOptions
18-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_forget_after import (
19-
SecurityMonitoringRuleNewValueOptionsForgetAfter,
20-
)
21-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_duration import (
22-
SecurityMonitoringRuleNewValueOptionsLearningDuration,
23-
)
2418
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_method import (
2519
SecurityMonitoringRuleNewValueOptionsLearningMethod,
2620
)
@@ -55,9 +49,9 @@
5549
max_signal_duration=SecurityMonitoringRuleMaxSignalDuration.TEN_MINUTES,
5650
detection_method=SecurityMonitoringRuleDetectionMethod.NEW_VALUE,
5751
new_value_options=SecurityMonitoringRuleNewValueOptions(
58-
forget_after=SecurityMonitoringRuleNewValueOptionsForgetAfter.ONE_WEEK,
52+
forget_after=7,
5953
instantaneous_baseline=True,
60-
learning_duration=SecurityMonitoringRuleNewValueOptionsLearningDuration.ONE_DAY,
54+
learning_duration=1,
6155
learning_threshold=SecurityMonitoringRuleNewValueOptionsLearningThreshold.ZERO_OCCURRENCES,
6256
learning_method=SecurityMonitoringRuleNewValueOptionsLearningMethod.DURATION,
6357
),

src/datadog_api_client/v1/model/azure_account.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def openapi_types(_):
3838
"new_tenant_name": (str,),
3939
"resource_collection_enabled": (bool,),
4040
"resource_provider_configs": ([ResourceProviderConfig],),
41-
"secretless_auth_enabled": (bool,),
4241
"tenant_name": (str,),
4342
"usage_metrics_enabled": (bool,),
4443
}
@@ -59,7 +58,6 @@ def openapi_types(_):
5958
"new_tenant_name": "new_tenant_name",
6059
"resource_collection_enabled": "resource_collection_enabled",
6160
"resource_provider_configs": "resource_provider_configs",
62-
"secretless_auth_enabled": "secretless_auth_enabled",
6361
"tenant_name": "tenant_name",
6462
"usage_metrics_enabled": "usage_metrics_enabled",
6563
}
@@ -81,7 +79,6 @@ def __init__(
8179
new_tenant_name: Union[str, UnsetType] = unset,
8280
resource_collection_enabled: Union[bool, UnsetType] = unset,
8381
resource_provider_configs: Union[List[ResourceProviderConfig], UnsetType] = unset,
84-
secretless_auth_enabled: Union[bool, UnsetType] = unset,
8582
tenant_name: Union[str, UnsetType] = unset,
8683
usage_metrics_enabled: Union[bool, UnsetType] = unset,
8784
**kwargs,
@@ -138,9 +135,6 @@ def __init__(
138135
:param resource_provider_configs: Configuration settings applied to resources from the specified Azure resource providers.
139136
:type resource_provider_configs: [ResourceProviderConfig], optional
140137
141-
:param secretless_auth_enabled: (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
142-
:type secretless_auth_enabled: bool, optional
143-
144138
:param tenant_name: Your Azure Active Directory ID.
145139
:type tenant_name: str, optional
146140
@@ -177,8 +171,6 @@ def __init__(
177171
kwargs["resource_collection_enabled"] = resource_collection_enabled
178172
if resource_provider_configs is not unset:
179173
kwargs["resource_provider_configs"] = resource_provider_configs
180-
if secretless_auth_enabled is not unset:
181-
kwargs["secretless_auth_enabled"] = secretless_auth_enabled
182174
if tenant_name is not unset:
183175
kwargs["tenant_name"] = tenant_name
184176
if usage_metrics_enabled is not unset:

src/datadog_api_client/v2/model/security_monitoring_rule_new_value_options.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515

1616
if TYPE_CHECKING:
17-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_forget_after import (
18-
SecurityMonitoringRuleNewValueOptionsForgetAfter,
19-
)
20-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_duration import (
21-
SecurityMonitoringRuleNewValueOptionsLearningDuration,
22-
)
2317
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_method import (
2418
SecurityMonitoringRuleNewValueOptionsLearningMethod,
2519
)
@@ -29,14 +23,19 @@
2923

3024

3125
class SecurityMonitoringRuleNewValueOptions(ModelNormal):
26+
validations = {
27+
"forget_after": {
28+
"inclusive_maximum": 30,
29+
"inclusive_minimum": 1,
30+
},
31+
"learning_duration": {
32+
"inclusive_maximum": 30,
33+
"inclusive_minimum": 0,
34+
},
35+
}
36+
3237
@cached_property
3338
def openapi_types(_):
34-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_forget_after import (
35-
SecurityMonitoringRuleNewValueOptionsForgetAfter,
36-
)
37-
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_duration import (
38-
SecurityMonitoringRuleNewValueOptionsLearningDuration,
39-
)
4039
from datadog_api_client.v2.model.security_monitoring_rule_new_value_options_learning_method import (
4140
SecurityMonitoringRuleNewValueOptionsLearningMethod,
4241
)
@@ -45,9 +44,9 @@ def openapi_types(_):
4544
)
4645

4746
return {
48-
"forget_after": (SecurityMonitoringRuleNewValueOptionsForgetAfter,),
47+
"forget_after": (int,),
4948
"instantaneous_baseline": (bool,),
50-
"learning_duration": (SecurityMonitoringRuleNewValueOptionsLearningDuration,),
49+
"learning_duration": (int,),
5150
"learning_method": (SecurityMonitoringRuleNewValueOptionsLearningMethod,),
5251
"learning_threshold": (SecurityMonitoringRuleNewValueOptionsLearningThreshold,),
5352
}
@@ -62,9 +61,9 @@ def openapi_types(_):
6261

6362
def __init__(
6463
self_,
65-
forget_after: Union[SecurityMonitoringRuleNewValueOptionsForgetAfter, UnsetType] = unset,
64+
forget_after: Union[int, UnsetType] = unset,
6665
instantaneous_baseline: Union[bool, UnsetType] = unset,
67-
learning_duration: Union[SecurityMonitoringRuleNewValueOptionsLearningDuration, UnsetType] = unset,
66+
learning_duration: Union[int, UnsetType] = unset,
6867
learning_method: Union[SecurityMonitoringRuleNewValueOptionsLearningMethod, UnsetType] = unset,
6968
learning_threshold: Union[SecurityMonitoringRuleNewValueOptionsLearningThreshold, UnsetType] = unset,
7069
**kwargs,
@@ -73,14 +72,14 @@ def __init__(
7372
Options on new value detection method.
7473
7574
:param forget_after: The duration in days after which a learned value is forgotten.
76-
:type forget_after: SecurityMonitoringRuleNewValueOptionsForgetAfter, optional
75+
:type forget_after: int, optional
7776
7877
:param instantaneous_baseline: When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time.
7978
:type instantaneous_baseline: bool, optional
8079
8180
:param learning_duration: The duration in days during which values are learned, and after which signals will be generated for values that
8281
weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
83-
:type learning_duration: SecurityMonitoringRuleNewValueOptionsLearningDuration, optional
82+
:type learning_duration: int, optional
8483
8584
:param learning_method: The learning method used to determine when signals should be generated for values that weren't learned.
8685
:type learning_method: SecurityMonitoringRuleNewValueOptionsLearningMethod, optional

src/datadog_api_client/v2/model/security_monitoring_rule_new_value_options_forget_after.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/datadog_api_client/v2/model/security_monitoring_rule_new_value_options_learning_duration.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)