From c1b34ad92853abffbd8b43c7460179f5237a793e Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 4 Sep 2025 12:16:53 +0000 Subject: [PATCH] Regenerate client from commit f3573aa of spec repo --- .generator/schemas/v1/openapi.yaml | 10 ++++++++++ .../v1/model/synthetics_api_step.py | 3 +++ .../v1/model/synthetics_api_test_step.py | 11 +++++++++++ .../v1/model/synthetics_api_wait_step.py | 18 ++++++++++++++++-- 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 6502314012..f505173333 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14413,6 +14413,11 @@ components: extractedValuesFromScript: description: Generate variables using JavaScript. type: string + id: + description: ID of the step. + example: abc-def-123 + readOnly: true + type: string isCritical: description: 'Determines whether or not to consider the entire test as failed if this step fails. @@ -14469,6 +14474,11 @@ components: SyntheticsAPIWaitStep: description: The Wait step used in a Synthetic multi-step API test. properties: + id: + description: ID of the step. + example: abc-def-123 + readOnly: true + type: string name: description: The name of the step. example: Example step name diff --git a/src/datadog_api_client/v1/model/synthetics_api_step.py b/src/datadog_api_client/v1/model/synthetics_api_step.py index db8b4f9da5..03d5315d41 100644 --- a/src/datadog_api_client/v1/model/synthetics_api_step.py +++ b/src/datadog_api_client/v1/model/synthetics_api_step.py @@ -30,6 +30,9 @@ def __init__(self, **kwargs): :param extracted_values_from_script: Generate variables using JavaScript. :type extracted_values_from_script: str, optional + :param id: ID of the step. + :type id: str, optional + :param is_critical: Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. :type is_critical: bool, optional diff --git a/src/datadog_api_client/v1/model/synthetics_api_test_step.py b/src/datadog_api_client/v1/model/synthetics_api_test_step.py index e9b8da4ea0..5e21b09ca7 100644 --- a/src/datadog_api_client/v1/model/synthetics_api_test_step.py +++ b/src/datadog_api_client/v1/model/synthetics_api_test_step.py @@ -35,6 +35,7 @@ def openapi_types(_): "exit_if_succeed": (bool,), "extracted_values": ([SyntheticsParsingOptions],), "extracted_values_from_script": (str,), + "id": (str,), "is_critical": (bool,), "name": (str,), "request": (SyntheticsTestRequest,), @@ -48,12 +49,16 @@ def openapi_types(_): "exit_if_succeed": "exitIfSucceed", "extracted_values": "extractedValues", "extracted_values_from_script": "extractedValuesFromScript", + "id": "id", "is_critical": "isCritical", "name": "name", "request": "request", "retry": "retry", "subtype": "subtype", } + read_only_vars = { + "id", + } def __init__( self_, @@ -64,6 +69,7 @@ def __init__( exit_if_succeed: Union[bool, UnsetType] = unset, extracted_values: Union[List[SyntheticsParsingOptions], UnsetType] = unset, extracted_values_from_script: Union[str, UnsetType] = unset, + id: Union[str, UnsetType] = unset, is_critical: Union[bool, UnsetType] = unset, retry: Union[SyntheticsTestOptionsRetry, UnsetType] = unset, **kwargs, @@ -86,6 +92,9 @@ def __init__( :param extracted_values_from_script: Generate variables using JavaScript. :type extracted_values_from_script: str, optional + :param id: ID of the step. + :type id: str, optional + :param is_critical: Determines whether or not to consider the entire test as failed if this step fails. Can be used only if ``allowFailure`` is ``true``. :type is_critical: bool, optional @@ -110,6 +119,8 @@ def __init__( kwargs["extracted_values"] = extracted_values if extracted_values_from_script is not unset: kwargs["extracted_values_from_script"] = extracted_values_from_script + if id is not unset: + kwargs["id"] = id if is_critical is not unset: kwargs["is_critical"] = is_critical if retry is not unset: diff --git a/src/datadog_api_client/v1/model/synthetics_api_wait_step.py b/src/datadog_api_client/v1/model/synthetics_api_wait_step.py index ac56aa1f8b..38f163621b 100644 --- a/src/datadog_api_client/v1/model/synthetics_api_wait_step.py +++ b/src/datadog_api_client/v1/model/synthetics_api_wait_step.py @@ -3,11 +3,13 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import TYPE_CHECKING +from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + unset, + UnsetType, ) @@ -28,21 +30,31 @@ def openapi_types(_): from datadog_api_client.v1.model.synthetics_api_wait_step_subtype import SyntheticsAPIWaitStepSubtype return { + "id": (str,), "name": (str,), "subtype": (SyntheticsAPIWaitStepSubtype,), "value": (int,), } attribute_map = { + "id": "id", "name": "name", "subtype": "subtype", "value": "value", } + read_only_vars = { + "id", + } - def __init__(self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int, **kwargs): + def __init__( + self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int, id: Union[str, UnsetType] = unset, **kwargs + ): """ The Wait step used in a Synthetic multi-step API test. + :param id: ID of the step. + :type id: str, optional + :param name: The name of the step. :type name: str @@ -52,6 +64,8 @@ def __init__(self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int :param value: The time to wait in seconds. Minimum value: 0. Maximum value: 180. :type value: int """ + if id is not unset: + kwargs["id"] = id super().__init__(kwargs) self_.name = name