Skip to content

Commit 8cf0e4c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 7f17f89 of spec repo (#117)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ba35da5 commit 8cf0e4c

13 files changed

+505
-4
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.2.0",
7-
"regenerated": "2020-10-16 18:19:16.095283",
8-
"spec_repo_commit": "d0f43d8"
7+
"regenerated": "2020-10-19 07:43:34.894302",
8+
"spec_repo_commit": "7f17f89"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-10-16 18:19:25.644139",
13-
"spec_repo_commit": "d0f43d8"
12+
"regenerated": "2020-10-19 07:43:46.463526",
13+
"spec_repo_commit": "7f17f89"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ Class | Method | HTTP request | Description
569569
- [SyntheticsTestPauseStatus](SyntheticsTestPauseStatus.md)
570570
- [SyntheticsTestProcessStatus](SyntheticsTestProcessStatus.md)
571571
- [SyntheticsTestRequest](SyntheticsTestRequest.md)
572+
- [SyntheticsTestRequestCertificate](SyntheticsTestRequestCertificate.md)
573+
- [SyntheticsTestRequestCertificateItem](SyntheticsTestRequestCertificateItem.md)
572574
- [SyntheticsTickInterval](SyntheticsTickInterval.md)
573575
- [SyntheticsTiming](SyntheticsTiming.md)
574576
- [SyntheticsTriggerCITestsResponse](SyntheticsTriggerCITestsResponse.md)

docs/v1/SyntheticsApi.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
176176
username="username_example",
177177
),
178178
body="body_example",
179+
certificate=SyntheticsTestRequestCertificate(
180+
cert=SyntheticsTestRequestCertificateItem(
181+
content="content_example",
182+
filename="filename_example",
183+
updated_at="updated_at_example",
184+
),
185+
key=SyntheticsTestRequestCertificateItem(
186+
content="content_example",
187+
filename="filename_example",
188+
updated_at="updated_at_example",
189+
),
190+
),
191+
dns_server="dns_server_example",
179192
headers=SyntheticsTestHeaders(
180193
"key": "key_example",
181194
),
@@ -1526,6 +1539,19 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
15261539
username="username_example",
15271540
),
15281541
body="body_example",
1542+
certificate=SyntheticsTestRequestCertificate(
1543+
cert=SyntheticsTestRequestCertificateItem(
1544+
content="content_example",
1545+
filename="filename_example",
1546+
updated_at="updated_at_example",
1547+
),
1548+
key=SyntheticsTestRequestCertificateItem(
1549+
content="content_example",
1550+
filename="filename_example",
1551+
updated_at="updated_at_example",
1552+
),
1553+
),
1554+
dns_server="dns_server_example",
15291555
headers=SyntheticsTestHeaders(
15301556
"key": "key_example",
15311557
),

docs/v1/SyntheticsTestRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**basic_auth** | [**SyntheticsBasicAuth**](SyntheticsBasicAuth.md) | | [optional]
88
**body** | **str** | Body to include in the test. | [optional]
9+
**certificate** | [**SyntheticsTestRequestCertificate**](SyntheticsTestRequestCertificate.md) | | [optional]
10+
**dns_server** | **str** | DNS server to use for DNS tests. | [optional]
911
**headers** | [**SyntheticsTestHeaders**](SyntheticsTestHeaders.md) | | [optional]
1012
**host** | **str** | Host name to perform the test with. | [optional]
1113
**method** | [**HTTPMethod**](HTTPMethod.md) | | [optional]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SyntheticsTestRequestCertificate
2+
3+
Client certificate to use when performing the test request.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**cert** | [**SyntheticsTestRequestCertificateItem**](SyntheticsTestRequestCertificateItem.md) | | [optional]
8+
**key** | [**SyntheticsTestRequestCertificateItem**](SyntheticsTestRequestCertificateItem.md) | | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SyntheticsTestRequestCertificateItem
2+
3+
Define a request certificate.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**content** | **str** | Content of the certificate or key. | [optional]
8+
**filename** | **str** | File name for the certificate or key. | [optional]
9+
**updated_at** | **str** | Date of update of the certificate or key, ISO format. | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ def lazy_import():
2929
from datadog_api_client.v1.model.http_method import HTTPMethod
3030
from datadog_api_client.v1.model.synthetics_basic_auth import SyntheticsBasicAuth
3131
from datadog_api_client.v1.model.synthetics_test_headers import SyntheticsTestHeaders
32+
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
3233
globals()['HTTPMethod'] = HTTPMethod
3334
globals()['SyntheticsBasicAuth'] = SyntheticsBasicAuth
3435
globals()['SyntheticsTestHeaders'] = SyntheticsTestHeaders
36+
globals()['SyntheticsTestRequestCertificate'] = SyntheticsTestRequestCertificate
3537

3638

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

0 commit comments

Comments
 (0)