Skip to content

Commit 7b4bfef

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit cc3e6a1 of spec repo (#206)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 92fae32 commit 7b4bfef

13 files changed

+513
-12
lines changed

.apigentools-info

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"info_version": "2",
44
"spec_versions": {
55
"v1": {
6-
"apigentools_version": "1.4.0",
7-
"regenerated": "2020-12-22 15:42:40.512467",
8-
"spec_repo_commit": "3de6697"
6+
"apigentools_version": "1.4.1.dev2",
7+
"regenerated": "2020-12-24 12:01:16.202678",
8+
"spec_repo_commit": "cc3e6a1"
99
},
1010
"v2": {
11-
"apigentools_version": "1.4.0",
12-
"regenerated": "2020-12-22 15:42:51.499686",
13-
"spec_repo_commit": "3de6697"
11+
"apigentools_version": "1.4.1.dev2",
12+
"regenerated": "2020-12-24 12:01:27.097183",
13+
"spec_repo_commit": "cc3e6a1"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ Class | Method | HTTP request | Description
548548
- [SyntheticsCITestMetadataCi](SyntheticsCITestMetadataCi.md)
549549
- [SyntheticsCITestMetadataGit](SyntheticsCITestMetadataGit.md)
550550
- [SyntheticsCheckType](SyntheticsCheckType.md)
551+
- [SyntheticsConfigVariable](SyntheticsConfigVariable.md)
552+
- [SyntheticsConfigVariableType](SyntheticsConfigVariableType.md)
551553
- [SyntheticsDeleteTestsPayload](SyntheticsDeleteTestsPayload.md)
552554
- [SyntheticsDeleteTestsResponse](SyntheticsDeleteTestsResponse.md)
553555
- [SyntheticsDeleteTestsResponseDeletedTests](SyntheticsDeleteTestsResponseDeletedTests.md)

docs/v1/SyntheticsApi.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
266266
body = SyntheticsTestDetails(
267267
config=SyntheticsTestConfig(
268268
assertions=[],
269+
config_variables=[
270+
SyntheticsConfigVariable(
271+
example="example_example",
272+
name="VARIABLE_NAME",
273+
pattern="pattern_example",
274+
type=SyntheticsConfigVariableType("text"),
275+
),
276+
],
269277
request=SyntheticsTestRequest(
270278
basic_auth=SyntheticsBasicAuth(
271279
password="",
@@ -299,7 +307,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
299307
SyntheticsBrowserVariable(
300308
example="example_example",
301309
id="id_example",
302-
name="",
310+
name="VARIABLE_NAME",
303311
pattern="pattern_example",
304312
type=SyntheticsBrowserVariableType("element"),
305313
),
@@ -1873,6 +1881,14 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
18731881
body = SyntheticsTestDetails(
18741882
config=SyntheticsTestConfig(
18751883
assertions=[],
1884+
config_variables=[
1885+
SyntheticsConfigVariable(
1886+
example="example_example",
1887+
name="VARIABLE_NAME",
1888+
pattern="pattern_example",
1889+
type=SyntheticsConfigVariableType("text"),
1890+
),
1891+
],
18761892
request=SyntheticsTestRequest(
18771893
basic_auth=SyntheticsBasicAuth(
18781894
password="",
@@ -1906,7 +1922,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
19061922
SyntheticsBrowserVariable(
19071923
example="example_example",
19081924
id="id_example",
1909-
name="",
1925+
name="VARIABLE_NAME",
19101926
pattern="pattern_example",
19111927
type=SyntheticsBrowserVariableType("element"),
19121928
),

docs/v1/SyntheticsConfigVariable.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SyntheticsConfigVariable
2+
3+
Object defining a variable that can be used in your test configuration.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**example** | **str** | Example for the variable. |
8+
**name** | **str** | Name of the variable. |
9+
**type** | [**SyntheticsConfigVariableType**](SyntheticsConfigVariableType.md) | |
10+
**pattern** | **str** | Pattern of the variable. | [optional]
11+
12+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
13+
14+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SyntheticsConfigVariableType
2+
3+
Type of the configuration variable.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Type of the configuration variable. | defaults to "text", must be one of ["text", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v1/SyntheticsTestConfig.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | |
88
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | defaults to []
9-
**variables** | [**[SyntheticsBrowserVariable]**](SyntheticsBrowserVariable.md) | Array of variables used for the test. | [optional]
9+
**config_variables** | [**[SyntheticsConfigVariable]**](SyntheticsConfigVariable.md) | API tests only - array of variables used for the test. | [optional]
10+
**variables** | [**[SyntheticsBrowserVariable]**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional]
1011

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

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
5+
6+
import re # noqa: F401
7+
import sys # noqa: F401
8+
9+
import nulltype # noqa: F401
10+
11+
from datadog_api_client.v1.model_utils import ( # noqa: F401
12+
ApiTypeError,
13+
ModelComposed,
14+
ModelNormal,
15+
ModelSimple,
16+
cached_property,
17+
change_keys_js_to_python,
18+
convert_js_args_to_python_args,
19+
date,
20+
datetime,
21+
file_type,
22+
none_type,
23+
validate_get_composed_info,
24+
)
25+
26+
def lazy_import():
27+
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
28+
globals()['SyntheticsConfigVariableType'] = SyntheticsConfigVariableType
29+
30+
31+
class SyntheticsConfigVariable(ModelNormal):
32+
"""NOTE: This class is auto generated by OpenAPI Generator.
33+
Ref: https://openapi-generator.tech
34+
35+
Do not edit the class manually.
36+
37+
Attributes:
38+
allowed_values (dict): The key is the tuple path to the attribute
39+
and the for var_name this is (var_name,). The value is a dict
40+
with a capitalized key describing the allowed value and an allowed
41+
value. These dicts store the allowed enum values.
42+
attribute_map (dict): The key is attribute name
43+
and the value is json key in definition.
44+
discriminator_value_class_map (dict): A dict to go from the discriminator
45+
variable value to the discriminator class name.
46+
validations (dict): The key is the tuple path to the attribute
47+
and the for var_name this is (var_name,). The value is a dict
48+
that stores validations for max_length, min_length, max_items,
49+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
50+
inclusive_minimum, and regex.
51+
additional_properties_type (tuple): A tuple of classes accepted
52+
as additional properties values.
53+
"""
54+
55+
allowed_values = {
56+
}
57+
58+
validations = {
59+
}
60+
61+
additional_properties_type = None
62+
63+
_nullable = False
64+
65+
@cached_property
66+
def openapi_types():
67+
"""
68+
This must be a method because a model may have properties that are
69+
of type self, this must run after the class is loaded
70+
71+
Returns
72+
openapi_types (dict): The key is attribute name
73+
and the value is attribute type.
74+
"""
75+
lazy_import()
76+
return {
77+
'example': (str,), # noqa: E501
78+
'name': (str,), # noqa: E501
79+
'type': (SyntheticsConfigVariableType,), # noqa: E501
80+
'pattern': (str,), # noqa: E501
81+
}
82+
83+
@cached_property
84+
def discriminator():
85+
return None
86+
87+
88+
attribute_map = {
89+
'example': 'example', # noqa: E501
90+
'name': 'name', # noqa: E501
91+
'type': 'type', # noqa: E501
92+
'pattern': 'pattern', # noqa: E501
93+
}
94+
95+
_composed_schemas = {}
96+
97+
required_properties = set([
98+
'_data_store',
99+
'_check_type',
100+
'_spec_property_naming',
101+
'_path_to_item',
102+
'_configuration',
103+
'_visited_composed_classes',
104+
])
105+
106+
@convert_js_args_to_python_args
107+
def __init__(self, example, name, type, *args, **kwargs): # noqa: E501
108+
"""SyntheticsConfigVariable - a model defined in OpenAPI
109+
110+
Args:
111+
example (str): Example for the variable.
112+
name (str): Name of the variable.
113+
type (SyntheticsConfigVariableType):
114+
115+
Keyword Args:
116+
_check_type (bool): if True, values for parameters in openapi_types
117+
will be type checked and a TypeError will be
118+
raised if the wrong type is input.
119+
Defaults to True
120+
_path_to_item (tuple/list): This is a list of keys or values to
121+
drill down to the model in received_data
122+
when deserializing a response
123+
_spec_property_naming (bool): True if the variable names in the input data
124+
are serialized names, as specified in the OpenAPI document.
125+
False if the variable names in the input data
126+
are pythonic names, e.g. snake case (default)
127+
_configuration (Configuration): the instance to use when
128+
deserializing a file_type parameter.
129+
If passed, type conversion is attempted
130+
If omitted no type conversion is done.
131+
_visited_composed_classes (tuple): This stores a tuple of
132+
classes that we have traveled through so that
133+
if we see that class again we will not use its
134+
discriminator again.
135+
When traveling through a discriminator, the
136+
composed schema that is
137+
is traveled through is added to this set.
138+
For example if Animal has a discriminator
139+
petType and we pass in "Dog", and the class Dog
140+
allOf includes Animal, we move through Animal
141+
once using the discriminator, and pick Dog.
142+
Then in Dog, we will make an instance of the
143+
Animal class but this time we won't travel
144+
through its discriminator because we passed in
145+
_visited_composed_classes = (Animal,)
146+
pattern (str): Pattern of the variable.. [optional] # noqa: E501
147+
"""
148+
149+
_check_type = kwargs.pop('_check_type', True)
150+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
151+
_path_to_item = kwargs.pop('_path_to_item', ())
152+
_configuration = kwargs.pop('_configuration', None)
153+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154+
155+
if args:
156+
raise ApiTypeError(
157+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
158+
args,
159+
self.__class__.__name__,
160+
),
161+
path_to_item=_path_to_item,
162+
valid_classes=(self.__class__,),
163+
)
164+
165+
self._data_store = {}
166+
self._check_type = _check_type
167+
self._spec_property_naming = _spec_property_naming
168+
self._path_to_item = _path_to_item
169+
self._configuration = _configuration
170+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
171+
172+
self.example = example
173+
self.name = name
174+
self.type = type
175+
for var_name, var_value in kwargs.items():
176+
if var_name not in self.attribute_map and \
177+
self._configuration is not None and \
178+
self._configuration.discard_unknown_keys and \
179+
self.additional_properties_type is None:
180+
# discard variable.
181+
continue
182+
setattr(self, var_name, var_value)

0 commit comments

Comments
 (0)