Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/model/synthetics_api_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/datadog_api_client/v1/model/synthetics_api_test_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
Expand All @@ -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_,
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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:
Expand Down
18 changes: 16 additions & 2 deletions src/datadog_api_client/v1/model/synthetics_api_wait_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand All @@ -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
Expand All @@ -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
Expand Down
Loading