Skip to content

Commit 9c045d5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5311d4c of spec repo (#457)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 74fa423 commit 9c045d5

12 files changed

+41
-39
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev8",
7-
"regenerated": "2021-05-27 08:31:12.667336",
8-
"spec_repo_commit": "0167d3f"
7+
"regenerated": "2021-05-27 15:02:08.337074",
8+
"spec_repo_commit": "5311d4c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-05-27 08:31:41.291570",
13-
"spec_repo_commit": "0167d3f"
12+
"regenerated": "2021-05-27 15:02:36.422686",
13+
"spec_repo_commit": "5311d4c"
1414
}
1515
}
1616
}

docs/v1/SyntheticsAPITestConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Configuration object for a Synthetic API test.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | defaults to []
8+
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] if omitted the server will use the default value of []
99
**config_variables** | [**[SyntheticsConfigVariable]**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional]
1010
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
1111
**steps** | [**[SyntheticsAPIStep]**](SyntheticsAPIStep.md) | When the test subtype is &#x60;multi&#x60;, the steps of the test. | [optional]

docs/v1/SyntheticsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ with ApiClient(configuration) as api_client:
227227
config_variables=[
228228
SyntheticsConfigVariable(
229229
example="example_example",
230+
id="id_example",
230231
name="VARIABLE_NAME",
231232
pattern="pattern_example",
232-
type=SyntheticsConfigVariableType("text"),
233+
type=SyntheticsConfigVariableType("global"),
233234
),
234235
],
235236
request=SyntheticsTestRequest(
@@ -1728,9 +1729,10 @@ with ApiClient(configuration) as api_client:
17281729
config_variables=[
17291730
SyntheticsConfigVariable(
17301731
example="example_example",
1732+
id="id_example",
17311733
name="VARIABLE_NAME",
17321734
pattern="pattern_example",
1733-
type=SyntheticsConfigVariableType("text"),
1735+
type=SyntheticsConfigVariableType("global"),
17341736
),
17351737
],
17361738
request=SyntheticsTestRequest(

docs/v1/SyntheticsConfigVariable.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ Object defining a variable that can be used in your test configuration.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**example** | **str** | Example for the variable. |
98
**name** | **str** | Name of the variable. |
109
**type** | [**SyntheticsConfigVariableType**](SyntheticsConfigVariableType.md) | |
10+
**example** | **str** | Example for the variable. | [optional]
11+
**id** | **str** | ID of the variable for global variables. | [optional]
1112
**pattern** | **str** | Pattern of the variable. | [optional]
1213

1314
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v1/SyntheticsConfigVariableType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Type of the configuration variable.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | **str** | Type of the configuration variable. | defaults to "text", must be one of ["text", ]
8+
**value** | **str** | Type of the configuration variable. | must be one of ["global", "text", ]
99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1111

docs/v1/SyntheticsTestConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Configuration object for a Synthetic test.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | defaults to []
8+
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] if omitted the server will use the default value of []
99
**config_variables** | [**[SyntheticsConfigVariable]**](SyntheticsConfigVariable.md) | API tests only - array of variables used for the test. | [optional]
1010
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
1111
**variables** | [**[SyntheticsBrowserVariable]**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional]

src/datadog_api_client/v1/model/synthetics_api_test_config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ def discriminator():
112112
def __init__(self, *args, **kwargs): # noqa: E501
113113
"""SyntheticsAPITestConfig - a model defined in OpenAPI
114114
115-
Args:
116-
117115
Keyword Args:
118-
assertions ([SyntheticsAssertion]): Array of assertions used for the test.. defaults to [] # noqa: E501
119116
_check_type (bool): if True, values for parameters in openapi_types
120117
will be type checked and a TypeError will be
121118
raised if the wrong type is input.
@@ -146,12 +143,12 @@ def __init__(self, *args, **kwargs): # noqa: E501
146143
Animal class but this time we won't travel
147144
through its discriminator because we passed in
148145
_visited_composed_classes = (Animal,)
146+
assertions ([SyntheticsAssertion]): Array of assertions used for the test.. [optional] if omitted the server will use the default value of [] # noqa: E501
149147
config_variables ([SyntheticsConfigVariable]): Array of variables used for the test.. [optional] # noqa: E501
150148
request (SyntheticsTestRequest): [optional] # noqa: E501
151149
steps ([SyntheticsAPIStep]): When the test subtype is `multi`, the steps of the test.. [optional] # noqa: E501
152150
"""
153151

154-
assertions = kwargs.get("assertions", [])
155152
_check_type = kwargs.pop("_check_type", True)
156153
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
157154
_path_to_item = kwargs.pop("_path_to_item", ())
@@ -176,7 +173,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
176173
self._configuration = _configuration
177174
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
178175

179-
self.assertions = assertions
180176
for var_name, var_value in kwargs.items():
181177
if (
182178
var_name not in self.attribute_map

src/datadog_api_client/v1/model/synthetics_config_variable.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ def openapi_types():
7272
"""
7373
lazy_import()
7474
return {
75-
"example": (str,), # noqa: E501
7675
"name": (str,), # noqa: E501
7776
"type": (SyntheticsConfigVariableType,), # noqa: E501
77+
"example": (str,), # noqa: E501
78+
"id": (str,), # noqa: E501
7879
"pattern": (str,), # noqa: E501
7980
}
8081

@@ -83,9 +84,10 @@ def discriminator():
8384
return None
8485

8586
attribute_map = {
86-
"example": "example", # noqa: E501
8787
"name": "name", # noqa: E501
8888
"type": "type", # noqa: E501
89+
"example": "example", # noqa: E501
90+
"id": "id", # noqa: E501
8991
"pattern": "pattern", # noqa: E501
9092
}
9193

@@ -103,11 +105,10 @@ def discriminator():
103105
)
104106

105107
@convert_js_args_to_python_args
106-
def __init__(self, example, name, type, *args, **kwargs): # noqa: E501
108+
def __init__(self, name, type, *args, **kwargs): # noqa: E501
107109
"""SyntheticsConfigVariable - a model defined in OpenAPI
108110
109111
Args:
110-
example (str): Example for the variable.
111112
name (str): Name of the variable.
112113
type (SyntheticsConfigVariableType):
113114
@@ -142,6 +143,8 @@ def __init__(self, example, name, type, *args, **kwargs): # noqa: E501
142143
Animal class but this time we won't travel
143144
through its discriminator because we passed in
144145
_visited_composed_classes = (Animal,)
146+
example (str): Example for the variable.. [optional] # noqa: E501
147+
id (str): ID of the variable for global variables.. [optional] # noqa: E501
145148
pattern (str): Pattern of the variable.. [optional] # noqa: E501
146149
"""
147150

@@ -169,7 +172,6 @@ def __init__(self, example, name, type, *args, **kwargs): # noqa: E501
169172
self._configuration = _configuration
170173
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
171174

172-
self.example = example
173175
self.name = name
174176
self.type = type
175177
for var_name, var_value in kwargs.items():

src/datadog_api_client/v1/model/synthetics_config_variable_type.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SyntheticsConfigVariableType(ModelSimple):
4444

4545
allowed_values = {
4646
("value",): {
47+
"GLOBAL": "global",
4748
"TEXT": "text",
4849
},
4950
}
@@ -94,10 +95,10 @@ def __init__(self, *args, **kwargs):
9495
Note that value can be passed either in args or in kwargs, but not in both.
9596
9697
Args:
97-
args[0] (str): Type of the configuration variable.. if omitted defaults to "text", must be one of ["text", ] # noqa: E501
98+
args[0] (str): Type of the configuration variable.., must be one of ["global", "text", ] # noqa: E501
9899
99100
Keyword Args:
100-
value (str): Type of the configuration variable.. if omitted defaults to "text", must be one of ["text", ] # noqa: E501
101+
value (str): Type of the configuration variable.., must be one of ["global", "text", ] # noqa: E501
101102
_check_type (bool): if True, values for parameters in openapi_types
102103
will be type checked and a TypeError will be
103104
raised if the wrong type is input.
@@ -138,7 +139,11 @@ def __init__(self, *args, **kwargs):
138139
args = list(args)
139140
value = args.pop(0)
140141
else:
141-
value = "text"
142+
raise ApiTypeError(
143+
"value is required, but not passed in args or kwargs and doesn't have default",
144+
path_to_item=_path_to_item,
145+
valid_classes=(self.__class__,),
146+
)
142147

143148
_check_type = kwargs.pop("_check_type", True)
144149
_spec_property_naming = kwargs.pop("_spec_property_naming", False)

src/datadog_api_client/v1/model/synthetics_test_config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ def discriminator():
112112
def __init__(self, *args, **kwargs): # noqa: E501
113113
"""SyntheticsTestConfig - a model defined in OpenAPI
114114
115-
Args:
116-
117115
Keyword Args:
118-
assertions ([SyntheticsAssertion]): Array of assertions used for the test.. defaults to [] # noqa: E501
119116
_check_type (bool): if True, values for parameters in openapi_types
120117
will be type checked and a TypeError will be
121118
raised if the wrong type is input.
@@ -146,12 +143,12 @@ def __init__(self, *args, **kwargs): # noqa: E501
146143
Animal class but this time we won't travel
147144
through its discriminator because we passed in
148145
_visited_composed_classes = (Animal,)
146+
assertions ([SyntheticsAssertion]): Array of assertions used for the test.. [optional] if omitted the server will use the default value of [] # noqa: E501
149147
config_variables ([SyntheticsConfigVariable]): API tests only - array of variables used for the test.. [optional] # noqa: E501
150148
request (SyntheticsTestRequest): [optional] # noqa: E501
151149
variables ([SyntheticsBrowserVariable]): Browser tests only - array of variables used for the test steps.. [optional] # noqa: E501
152150
"""
153151

154-
assertions = kwargs.get("assertions", [])
155152
_check_type = kwargs.pop("_check_type", True)
156153
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
157154
_path_to_item = kwargs.pop("_path_to_item", ())
@@ -176,7 +173,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
176173
self._configuration = _configuration
177174
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
178175

179-
self.assertions = assertions
180176
for var_name, var_value in kwargs.items():
181177
if (
182178
var_name not in self.attribute_map

src/datadog_api_client/v1/openapi.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8340,8 +8340,6 @@ components:
83408340
items:
83418341
$ref: '#/components/schemas/SyntheticsAPIStep'
83428342
type: array
8343-
required:
8344-
- assertions
83458343
type: object
83468344
SyntheticsAPITestResultData:
83478345
description: Object containing results for your Synthetic API test.
@@ -8974,6 +8972,9 @@ components:
89748972
example:
89758973
description: Example for the variable.
89768974
type: string
8975+
id:
8976+
description: ID of the variable for global variables.
8977+
type: string
89778978
name:
89788979
description: Name of the variable.
89798980
example: VARIABLE_NAME
@@ -8984,16 +8985,17 @@ components:
89848985
type:
89858986
$ref: '#/components/schemas/SyntheticsConfigVariableType'
89868987
required:
8987-
- example
89888988
- type
89898989
- name
89908990
type: object
89918991
SyntheticsConfigVariableType:
89928992
description: Type of the configuration variable.
89938993
enum:
8994+
- global
89948995
- text
89958996
type: string
89968997
x-enum-varnames:
8998+
- GLOBAL
89978999
- TEXT
89989000
SyntheticsCoreWebVitals:
89999001
description: Core Web Vitals attached to a browser test step.
@@ -9635,8 +9637,6 @@ components:
96359637
items:
96369638
$ref: '#/components/schemas/SyntheticsBrowserVariable'
96379639
type: array
9638-
required:
9639-
- assertions
96409640
type: object
96419641
SyntheticsTestDetails:
96429642
description: Object containing details about your Synthetic test.

0 commit comments

Comments
 (0)