Skip to content

Commit 373576a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fee8bd2 of spec repo
1 parent 113bb23 commit 373576a

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14413,6 +14413,11 @@ components:
1441314413
extractedValuesFromScript:
1441414414
description: Generate variables using JavaScript.
1441514415
type: string
14416+
id:
14417+
description: ID of the step.
14418+
example: abc-def-123
14419+
readOnly: true
14420+
type: string
1441614421
isCritical:
1441714422
description: 'Determines whether or not to consider the entire test as failed
1441814423
if this step fails.
@@ -14469,6 +14474,11 @@ components:
1446914474
SyntheticsAPIWaitStep:
1447014475
description: The Wait step used in a Synthetic multi-step API test.
1447114476
properties:
14477+
id:
14478+
description: ID of the step.
14479+
example: abc-def-123
14480+
readOnly: true
14481+
type: string
1447214482
name:
1447314483
description: The name of the step.
1447414484
example: Example step name

src/datadog_api_client/v1/model/synthetics_api_step.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def __init__(self, **kwargs):
3030
:param extracted_values_from_script: Generate variables using JavaScript.
3131
:type extracted_values_from_script: str, optional
3232
33+
:param id: ID of the step.
34+
:type id: str, optional
35+
3336
:param is_critical: Determines whether or not to consider the entire test as failed if this step fails.
3437
Can be used only if `allowFailure` is `true`.
3538
:type is_critical: bool, optional

src/datadog_api_client/v1/model/synthetics_api_test_step.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def openapi_types(_):
3535
"exit_if_succeed": (bool,),
3636
"extracted_values": ([SyntheticsParsingOptions],),
3737
"extracted_values_from_script": (str,),
38+
"id": (str,),
3839
"is_critical": (bool,),
3940
"name": (str,),
4041
"request": (SyntheticsTestRequest,),
@@ -48,12 +49,16 @@ def openapi_types(_):
4849
"exit_if_succeed": "exitIfSucceed",
4950
"extracted_values": "extractedValues",
5051
"extracted_values_from_script": "extractedValuesFromScript",
52+
"id": "id",
5153
"is_critical": "isCritical",
5254
"name": "name",
5355
"request": "request",
5456
"retry": "retry",
5557
"subtype": "subtype",
5658
}
59+
read_only_vars = {
60+
"id",
61+
}
5762

5863
def __init__(
5964
self_,
@@ -64,6 +69,7 @@ def __init__(
6469
exit_if_succeed: Union[bool, UnsetType] = unset,
6570
extracted_values: Union[List[SyntheticsParsingOptions], UnsetType] = unset,
6671
extracted_values_from_script: Union[str, UnsetType] = unset,
72+
id: Union[str, UnsetType] = unset,
6773
is_critical: Union[bool, UnsetType] = unset,
6874
retry: Union[SyntheticsTestOptionsRetry, UnsetType] = unset,
6975
**kwargs,
@@ -86,6 +92,9 @@ def __init__(
8692
:param extracted_values_from_script: Generate variables using JavaScript.
8793
:type extracted_values_from_script: str, optional
8894
95+
:param id: ID of the step.
96+
:type id: str, optional
97+
8998
:param is_critical: Determines whether or not to consider the entire test as failed if this step fails.
9099
Can be used only if ``allowFailure`` is ``true``.
91100
:type is_critical: bool, optional
@@ -110,6 +119,8 @@ def __init__(
110119
kwargs["extracted_values"] = extracted_values
111120
if extracted_values_from_script is not unset:
112121
kwargs["extracted_values_from_script"] = extracted_values_from_script
122+
if id is not unset:
123+
kwargs["id"] = id
113124
if is_critical is not unset:
114125
kwargs["is_critical"] = is_critical
115126
if retry is not unset:

src/datadog_api_client/v1/model/synthetics_api_wait_step.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import TYPE_CHECKING
6+
from typing import Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -28,21 +30,31 @@ def openapi_types(_):
2830
from datadog_api_client.v1.model.synthetics_api_wait_step_subtype import SyntheticsAPIWaitStepSubtype
2931

3032
return {
33+
"id": (str,),
3134
"name": (str,),
3235
"subtype": (SyntheticsAPIWaitStepSubtype,),
3336
"value": (int,),
3437
}
3538

3639
attribute_map = {
40+
"id": "id",
3741
"name": "name",
3842
"subtype": "subtype",
3943
"value": "value",
4044
}
45+
read_only_vars = {
46+
"id",
47+
}
4148

42-
def __init__(self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int, **kwargs):
49+
def __init__(
50+
self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int, id: Union[str, UnsetType] = unset, **kwargs
51+
):
4352
"""
4453
The Wait step used in a Synthetic multi-step API test.
4554
55+
:param id: ID of the step.
56+
:type id: str, optional
57+
4658
:param name: The name of the step.
4759
:type name: str
4860
@@ -52,6 +64,8 @@ def __init__(self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int
5264
:param value: The time to wait in seconds. Minimum value: 0. Maximum value: 180.
5365
:type value: int
5466
"""
67+
if id is not unset:
68+
kwargs["id"] = id
5569
super().__init__(kwargs)
5670

5771
self_.name = name

0 commit comments

Comments
 (0)