From abdce707f7490662814bca84b1f13424ab47630b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 11 Aug 2026 13:02:06 +0000 Subject: [PATCH] Regenerate client from commit e64807a of spec repo --- .generator/schemas/v2/openapi.yaml | 14 ++++++++++++++ .../v2/model/deployment_gates_fdd_rule_options.py | 8 ++++++++ ...ent_rule_options_faulty_deployment_detection.py | 8 ++++++++ .../v2/model/deployment_rules_options.py | 3 +++ tests/v2/features/deployment_gates.feature | 4 ++-- 5 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index be70422051..bd603911db 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -33237,6 +33237,13 @@ components: DeploymentGatesFDDRuleOptions: description: Options for a `faulty_deployment_detection` rule. properties: + allowed_resources: + description: APM resource names to include in analysis. Mutually exclusive with `excluded_resources`. + example: + - "GET /healthcheck" + items: + type: string + type: array duration: description: Evaluation window in seconds. Maximum 7200 (2 hours). example: 900 @@ -33405,6 +33412,13 @@ components: additionalProperties: false description: Faulty deployment detection options for deployment rules. properties: + allowed_resources: + description: Resources to include in faulty deployment detection. Mutually exclusive with `excluded_resources`. + example: ["resource1", "resource2"] + items: + description: A resource name to include in faulty deployment detection. + type: string + type: array duration: description: The duration for faulty deployment detection. example: 3600 diff --git a/src/datadog_api_client/v2/model/deployment_gates_fdd_rule_options.py b/src/datadog_api_client/v2/model/deployment_gates_fdd_rule_options.py index 4f56f48ba3..89e702a5e7 100644 --- a/src/datadog_api_client/v2/model/deployment_gates_fdd_rule_options.py +++ b/src/datadog_api_client/v2/model/deployment_gates_fdd_rule_options.py @@ -23,17 +23,20 @@ class DeploymentGatesFDDRuleOptions(ModelNormal): @cached_property def openapi_types(_): return { + "allowed_resources": ([str],), "duration": (int,), "excluded_resources": ([str],), } attribute_map = { + "allowed_resources": "allowed_resources", "duration": "duration", "excluded_resources": "excluded_resources", } def __init__( self_, + allowed_resources: Union[List[str], UnsetType] = unset, duration: Union[int, UnsetType] = unset, excluded_resources: Union[List[str], UnsetType] = unset, **kwargs, @@ -41,12 +44,17 @@ def __init__( """ Options for a ``faulty_deployment_detection`` rule. + :param allowed_resources: APM resource names to include in analysis. Mutually exclusive with ``excluded_resources``. + :type allowed_resources: [str], optional + :param duration: Evaluation window in seconds. Maximum 7200 (2 hours). :type duration: int, optional :param excluded_resources: APM resource names to exclude from analysis. :type excluded_resources: [str], optional """ + if allowed_resources is not unset: + kwargs["allowed_resources"] = allowed_resources if duration is not unset: kwargs["duration"] = duration if excluded_resources is not unset: diff --git a/src/datadog_api_client/v2/model/deployment_rule_options_faulty_deployment_detection.py b/src/datadog_api_client/v2/model/deployment_rule_options_faulty_deployment_detection.py index eea14f5e31..e020e04fb0 100644 --- a/src/datadog_api_client/v2/model/deployment_rule_options_faulty_deployment_detection.py +++ b/src/datadog_api_client/v2/model/deployment_rule_options_faulty_deployment_detection.py @@ -21,17 +21,20 @@ def additional_properties_type(_): @cached_property def openapi_types(_): return { + "allowed_resources": ([str],), "duration": (int,), "excluded_resources": ([str],), } attribute_map = { + "allowed_resources": "allowed_resources", "duration": "duration", "excluded_resources": "excluded_resources", } def __init__( self_, + allowed_resources: Union[List[str], UnsetType] = unset, duration: Union[int, UnsetType] = unset, excluded_resources: Union[List[str], UnsetType] = unset, **kwargs, @@ -39,12 +42,17 @@ def __init__( """ Faulty deployment detection options for deployment rules. + :param allowed_resources: Resources to include in faulty deployment detection. Mutually exclusive with ``excluded_resources``. + :type allowed_resources: [str], optional + :param duration: The duration for faulty deployment detection. :type duration: int, optional :param excluded_resources: Resources to exclude from faulty deployment detection. :type excluded_resources: [str], optional """ + if allowed_resources is not unset: + kwargs["allowed_resources"] = allowed_resources if duration is not unset: kwargs["duration"] = duration if excluded_resources is not unset: diff --git a/src/datadog_api_client/v2/model/deployment_rules_options.py b/src/datadog_api_client/v2/model/deployment_rules_options.py index 5aaa95dd0a..09e557c81d 100644 --- a/src/datadog_api_client/v2/model/deployment_rules_options.py +++ b/src/datadog_api_client/v2/model/deployment_rules_options.py @@ -15,6 +15,9 @@ def __init__(self, **kwargs): """ Options for deployment rule response representing either faulty deployment detection or monitor options. + :param allowed_resources: Resources to include in faulty deployment detection. Mutually exclusive with `excluded_resources`. + :type allowed_resources: [str], optional + :param duration: The duration for faulty deployment detection. :type duration: int, optional diff --git a/tests/v2/features/deployment_gates.feature b/tests/v2/features/deployment_gates.feature index de5ceaeaa3..1825f8af3a 100644 --- a/tests/v2/features/deployment_gates.feature +++ b/tests/v2/features/deployment_gates.feature @@ -49,7 +49,7 @@ Feature: Deployment Gates Given operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"dry_run": false, "name": "My deployment rule", "options": {"duration": 3600, "excluded_resources": ["resource1", "resource2"]}, "type": "faulty_deployment_detection"}, "type": "deployment_rule"}} + And body with value {"data": {"attributes": {"dry_run": false, "name": "My deployment rule", "options": {"allowed_resources": ["resource1", "resource2"], "duration": 3600, "excluded_resources": ["resource1", "resource2"]}, "type": "faulty_deployment_detection"}, "type": "deployment_rule"}} When the request is sent Then the response status is 400 Bad request. @@ -388,7 +388,7 @@ Feature: Deployment Gates And new "UpdateDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"dry_run": false, "name": "Updated deployment rule", "options": {"duration": 3600, "excluded_resources": ["resource1", "resource2"]}}, "type": "deployment_rule"}} + And body with value {"data": {"attributes": {"dry_run": false, "name": "Updated deployment rule", "options": {"allowed_resources": ["resource1", "resource2"], "duration": 3600, "excluded_resources": ["resource1", "resource2"]}}, "type": "deployment_rule"}} When the request is sent Then the response status is 400 Bad request.