diff --git a/.apigentools-info b/.apigentools-info index 52ae7ea710..759a7786c2 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:45.721712", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-23 10:08:15.499912", + "spec_repo_commit": "df3187ca" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:45.738901", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-23 10:08:15.519291", + "spec_repo_commit": "df3187ca" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0ec2691c57..96ed41e5a1 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16168,6 +16168,9 @@ components: SyntheticsStepDetail: description: Object describing a step for a Synthetic test. properties: + allowFailure: + description: Whether or not the step was allowed to fail. + type: boolean browserErrors: description: Array of errors collected for a browser test. items: @@ -16185,6 +16188,8 @@ components: error: description: Error returned by the test. type: string + failure: + $ref: '#/components/schemas/SyntheticsBrowserTestResultFailure' playingTab: $ref: '#/components/schemas/SyntheticsPlayingTab' screenshotBucketKey: diff --git a/src/datadog_api_client/v1/model/synthetics_step_detail.py b/src/datadog_api_client/v1/model/synthetics_step_detail.py index 61b4363154..152e7c0d19 100644 --- a/src/datadog_api_client/v1/model/synthetics_step_detail.py +++ b/src/datadog_api_client/v1/model/synthetics_step_detail.py @@ -20,6 +20,7 @@ if TYPE_CHECKING: from datadog_api_client.v1.model.synthetics_browser_error import SyntheticsBrowserError from datadog_api_client.v1.model.synthetics_check_type import SyntheticsCheckType + from datadog_api_client.v1.model.synthetics_browser_test_result_failure import SyntheticsBrowserTestResultFailure from datadog_api_client.v1.model.synthetics_playing_tab import SyntheticsPlayingTab from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType from datadog_api_client.v1.model.synthetics_core_web_vitals import SyntheticsCoreWebVitals @@ -31,17 +32,22 @@ class SyntheticsStepDetail(ModelNormal): def openapi_types(_): from datadog_api_client.v1.model.synthetics_browser_error import SyntheticsBrowserError from datadog_api_client.v1.model.synthetics_check_type import SyntheticsCheckType + from datadog_api_client.v1.model.synthetics_browser_test_result_failure import ( + SyntheticsBrowserTestResultFailure, + ) from datadog_api_client.v1.model.synthetics_playing_tab import SyntheticsPlayingTab from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType from datadog_api_client.v1.model.synthetics_core_web_vitals import SyntheticsCoreWebVitals from datadog_api_client.v1.model.synthetics_step_detail_warning import SyntheticsStepDetailWarning return { + "allow_failure": (bool,), "browser_errors": ([SyntheticsBrowserError],), "check_type": (SyntheticsCheckType,), "description": (str,), "duration": (float,), "error": (str,), + "failure": (SyntheticsBrowserTestResultFailure,), "playing_tab": (SyntheticsPlayingTab,), "screenshot_bucket_key": (bool,), "skipped": (bool,), @@ -68,11 +74,13 @@ def openapi_types(_): } attribute_map = { + "allow_failure": "allowFailure", "browser_errors": "browserErrors", "check_type": "checkType", "description": "description", "duration": "duration", "error": "error", + "failure": "failure", "playing_tab": "playingTab", "screenshot_bucket_key": "screenshotBucketKey", "skipped": "skipped", @@ -89,11 +97,13 @@ def openapi_types(_): def __init__( self_, + allow_failure: Union[bool, UnsetType] = unset, browser_errors: Union[List[SyntheticsBrowserError], UnsetType] = unset, check_type: Union[SyntheticsCheckType, UnsetType] = unset, description: Union[str, UnsetType] = unset, duration: Union[float, UnsetType] = unset, error: Union[str, UnsetType] = unset, + failure: Union[SyntheticsBrowserTestResultFailure, UnsetType] = unset, playing_tab: Union[SyntheticsPlayingTab, UnsetType] = unset, screenshot_bucket_key: Union[bool, UnsetType] = unset, skipped: Union[bool, UnsetType] = unset, @@ -111,6 +121,9 @@ def __init__( """ Object describing a step for a Synthetic test. + :param allow_failure: Whether or not the step was allowed to fail. + :type allow_failure: bool, optional + :param browser_errors: Array of errors collected for a browser test. :type browser_errors: [SyntheticsBrowserError], optional @@ -126,6 +139,9 @@ def __init__( :param error: Error returned by the test. :type error: str, optional + :param failure: The browser test failure details. + :type failure: SyntheticsBrowserTestResultFailure, optional + :param playing_tab: Navigate between different tabs for your browser test. :type playing_tab: SyntheticsPlayingTab, optional @@ -163,6 +179,8 @@ def __init__( :param warnings: Warning collected that didn't failed the step. :type warnings: [SyntheticsStepDetailWarning], optional """ + if allow_failure is not unset: + kwargs["allow_failure"] = allow_failure if browser_errors is not unset: kwargs["browser_errors"] = browser_errors if check_type is not unset: @@ -173,6 +191,8 @@ def __init__( kwargs["duration"] = duration if error is not unset: kwargs["error"] = error + if failure is not unset: + kwargs["failure"] = failure if playing_tab is not unset: kwargs["playing_tab"] = playing_tab if screenshot_bucket_key is not unset: