Skip to content

Commit eaf8373

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 77e1e09 of spec repo (#102)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ad01d7c commit eaf8373

File tree

11 files changed

+247
-4
lines changed

11 files changed

+247
-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-01 18:12:33.727832",
8-
"spec_repo_commit": "90c7e85"
7+
"regenerated": "2020-10-02 08:27:49.862345",
8+
"spec_repo_commit": "77e1e09"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-10-01 18:12:43.861994",
13-
"spec_repo_commit": "90c7e85"
12+
"regenerated": "2020-10-02 08:28:00.391939",
13+
"spec_repo_commit": "77e1e09"
1414
}
1515
}
1616
}

docs/v1/LogsAttributeRemapper.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**override_on_conflict** | **bool** | Override or not the target element if already set, | [optional] if omitted the server will use the default value of False
1313
**preserve_source** | **bool** | Remove or preserve the remapped source element. | [optional] if omitted the server will use the default value of False
1414
**source_type** | **str** | Defines if the sources are from log &#x60;attribute&#x60; or &#x60;tag&#x60;. | [optional] if omitted the server will use the default value of "attribute"
15+
**target_format** | [**TargetFormatType**](TargetFormatType.md) | | [optional]
1516
**target_type** | **str** | Defines if the final attribute or tag name is from log &#x60;attribute&#x60; or &#x60;tag&#x60;. | [optional] if omitted the server will use the default value of "attribute"
1617

1718
[[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/LogsProcessor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**override_on_conflict** | **bool** | Override or not the target element if already set, | [optional] if omitted the server will use the default value of False
2020
**preserve_source** | **bool** | Remove or preserve the remapped source element. | [optional] if omitted the server will use the default value of False
2121
**source_type** | **str** | Defines if the sources are from log &#x60;attribute&#x60; or &#x60;tag&#x60;. | [optional] if omitted the server will use the default value of "attribute"
22+
**target_format** | [**TargetFormatType**](TargetFormatType.md) | | [optional]
2223
**target_type** | **str** | Defines if the final attribute or tag name is from log &#x60;attribute&#x60; or &#x60;tag&#x60;. | [optional] if omitted the server will use the default value of "attribute"
2324
**normalize_ending_slashes** | **bool, none_type** | Normalize the ending slashes or not. | [optional] if omitted the server will use the default value of False
2425
**is_encoded** | **bool** | Define if the source attribute is URL encoded or not. | [optional] if omitted the server will use the default value of False

docs/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ Class | Method | HTTP request | Description
579579
- [TableWidgetDefinitionType](TableWidgetDefinitionType.md)
580580
- [TableWidgetRequest](TableWidgetRequest.md)
581581
- [TagToHosts](TagToHosts.md)
582+
- [TargetFormatType](TargetFormatType.md)
582583
- [TimeseriesWidgetDefinition](TimeseriesWidgetDefinition.md)
583584
- [TimeseriesWidgetDefinitionType](TimeseriesWidgetDefinitionType.md)
584585
- [TimeseriesWidgetRequest](TimeseriesWidgetRequest.md)

docs/v1/TargetFormatType.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TargetFormatType
2+
3+
If the target of the remapper is an attribute, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | If the target of the remapper is an attribute, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. &#x60;string&#x60;, &#x60;integer&#x60;, or &#x60;double&#x60; are the possible types. | if omitted the server will use the default value of "auto", must be one of ["auto", "string", "integer", "double", ]
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+

src/datadog_api_client/v1/model/logs_attribute_remapper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
def lazy_import():
2929
from datadog_api_client.v1.model.logs_attribute_remapper_type import LogsAttributeRemapperType
30+
from datadog_api_client.v1.model.target_format_type import TargetFormatType
3031
globals()['LogsAttributeRemapperType'] = LogsAttributeRemapperType
32+
globals()['TargetFormatType'] = TargetFormatType
3133

3234

3335
class LogsAttributeRemapper(ModelNormal):
@@ -84,6 +86,7 @@ def openapi_types():
8486
'override_on_conflict': (bool,), # noqa: E501
8587
'preserve_source': (bool,), # noqa: E501
8688
'source_type': (str,), # noqa: E501
89+
'target_format': (TargetFormatType,), # noqa: E501
8790
'target_type': (str,), # noqa: E501
8891
}
8992

@@ -101,6 +104,7 @@ def discriminator():
101104
'override_on_conflict': 'override_on_conflict', # noqa: E501
102105
'preserve_source': 'preserve_source', # noqa: E501
103106
'source_type': 'source_type', # noqa: E501
107+
'target_format': 'target_format', # noqa: E501
104108
'target_type': 'target_type', # noqa: E501
105109
}
106110

@@ -160,6 +164,7 @@ def __init__(self, sources, target, type, *args, **kwargs): # noqa: E501
160164
override_on_conflict (bool): Override or not the target element if already set,. [optional] if omitted the server will use the default value of False # noqa: E501
161165
preserve_source (bool): Remove or preserve the remapped source element.. [optional] if omitted the server will use the default value of False # noqa: E501
162166
source_type (str): Defines if the sources are from log &#x60;attribute&#x60; or &#x60;tag&#x60;.. [optional] if omitted the server will use the default value of "attribute" # noqa: E501
167+
target_format (TargetFormatType): [optional] # noqa: E501
163168
target_type (str): Defines if the final attribute or tag name is from log &#x60;attribute&#x60; or &#x60;tag&#x60;.. [optional] if omitted the server will use the default value of "attribute" # noqa: E501
164169
"""
165170

src/datadog_api_client/v1/model/logs_processor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def lazy_import():
4545
from datadog_api_client.v1.model.logs_trace_remapper_type import LogsTraceRemapperType
4646
from datadog_api_client.v1.model.logs_url_parser import LogsURLParser
4747
from datadog_api_client.v1.model.logs_user_agent_parser import LogsUserAgentParser
48+
from datadog_api_client.v1.model.target_format_type import TargetFormatType
4849
globals()['LogsArithmeticProcessor'] = LogsArithmeticProcessor
4950
globals()['LogsAttributeRemapper'] = LogsAttributeRemapper
5051
globals()['LogsCategoryProcessor'] = LogsCategoryProcessor
@@ -64,6 +65,7 @@ def lazy_import():
6465
globals()['LogsTraceRemapperType'] = LogsTraceRemapperType
6566
globals()['LogsURLParser'] = LogsURLParser
6667
globals()['LogsUserAgentParser'] = LogsUserAgentParser
68+
globals()['TargetFormatType'] = TargetFormatType
6769

6870

6971
class LogsProcessor(ModelComposed):
@@ -190,6 +192,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
190192
override_on_conflict (bool): Override or not the target element if already set,. [optional] if omitted the server will use the default value of False # noqa: E501
191193
preserve_source (bool): Remove or preserve the remapped source element.. [optional] if omitted the server will use the default value of False # noqa: E501
192194
source_type (str): Defines if the sources are from log &#x60;attribute&#x60; or &#x60;tag&#x60;.. [optional] if omitted the server will use the default value of "attribute" # noqa: E501
195+
target_format (TargetFormatType): [optional] # noqa: E501
193196
target_type (str): Defines if the final attribute or tag name is from log &#x60;attribute&#x60; or &#x60;tag&#x60;.. [optional] if omitted the server will use the default value of "attribute" # noqa: E501
194197
normalize_ending_slashes (bool, none_type): Normalize the ending slashes or not.. [optional] if omitted the server will use the default value of False # noqa: E501
195198
is_encoded (bool): Define if the source attribute is URL encoded or not.. [optional] if omitted the server will use the default value of False # noqa: E501
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
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+
29+
class TargetFormatType(ModelSimple):
30+
"""NOTE: This class is auto generated by OpenAPI Generator.
31+
Ref: https://openapi-generator.tech
32+
33+
Do not edit the class manually.
34+
35+
Attributes:
36+
allowed_values (dict): The key is the tuple path to the attribute
37+
and the for var_name this is (var_name,). The value is a dict
38+
with a capitalized key describing the allowed value and an allowed
39+
value. These dicts store the allowed enum values.
40+
validations (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+
that stores validations for max_length, min_length, max_items,
43+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
44+
inclusive_minimum, and regex.
45+
additional_properties_type (tuple): A tuple of classes accepted
46+
as additional properties values.
47+
"""
48+
49+
allowed_values = {
50+
('value',): {
51+
'AUTO': "auto",
52+
'STRING': "string",
53+
'INTEGER': "integer",
54+
'DOUBLE': "double",
55+
},
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+
return {
76+
'value': (str,),
77+
}
78+
79+
@cached_property
80+
def discriminator():
81+
return None
82+
83+
84+
attribute_map = {}
85+
86+
_composed_schemas = None
87+
88+
required_properties = set([
89+
'_data_store',
90+
'_check_type',
91+
'_spec_property_naming',
92+
'_path_to_item',
93+
'_configuration',
94+
'_visited_composed_classes',
95+
])
96+
97+
@convert_js_args_to_python_args
98+
def __init__(self, value, *args, **kwargs):
99+
"""TargetFormatType - a model defined in OpenAPI
100+
101+
Args:
102+
value (str): If the target of the remapper is an attribute, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. &#x60;string&#x60;, &#x60;integer&#x60;, or &#x60;double&#x60; are the possible types.. if omitted the server will use the default value of "auto", must be one of ["auto", "string", "integer", "double", ] # noqa: E501
103+
104+
Keyword Args:
105+
_check_type (bool): if True, values for parameters in openapi_types
106+
will be type checked and a TypeError will be
107+
raised if the wrong type is input.
108+
Defaults to True
109+
_path_to_item (tuple/list): This is a list of keys or values to
110+
drill down to the model in received_data
111+
when deserializing a response
112+
_spec_property_naming (bool): True if the variable names in the input data
113+
are serialized names, as specified in the OpenAPI document.
114+
False if the variable names in the input data
115+
are pythonic names, e.g. snake case (default)
116+
_configuration (Configuration): the instance to use when
117+
deserializing a file_type parameter.
118+
If passed, type conversion is attempted
119+
If omitted no type conversion is done.
120+
_visited_composed_classes (tuple): This stores a tuple of
121+
classes that we have traveled through so that
122+
if we see that class again we will not use its
123+
discriminator again.
124+
When traveling through a discriminator, the
125+
composed schema that is
126+
is traveled through is added to this set.
127+
For example if Animal has a discriminator
128+
petType and we pass in "Dog", and the class Dog
129+
allOf includes Animal, we move through Animal
130+
once using the discriminator, and pick Dog.
131+
Then in Dog, we will make an instance of the
132+
Animal class but this time we won't travel
133+
through its discriminator because we passed in
134+
_visited_composed_classes = (Animal,)
135+
"""
136+
137+
_check_type = kwargs.pop('_check_type', True)
138+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
139+
_path_to_item = kwargs.pop('_path_to_item', ())
140+
_configuration = kwargs.pop('_configuration', None)
141+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
142+
143+
if args:
144+
raise ApiTypeError(
145+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
146+
args,
147+
self.__class__.__name__,
148+
),
149+
path_to_item=_path_to_item,
150+
valid_classes=(self.__class__,),
151+
)
152+
153+
self._data_store = {}
154+
self._check_type = _check_type
155+
self._spec_property_naming = _spec_property_naming
156+
self._path_to_item = _path_to_item
157+
self._configuration = _configuration
158+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
159+
self.value = value
160+
if kwargs:
161+
raise ApiTypeError(
162+
"Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
163+
kwargs,
164+
self.__class__.__name__,
165+
),
166+
path_to_item=_path_to_item,
167+
valid_classes=(self.__class__,),
168+
)

src/datadog_api_client/v1/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@
320320
from datadog_api_client.v1.model.table_widget_definition_type import TableWidgetDefinitionType
321321
from datadog_api_client.v1.model.table_widget_request import TableWidgetRequest
322322
from datadog_api_client.v1.model.tag_to_hosts import TagToHosts
323+
from datadog_api_client.v1.model.target_format_type import TargetFormatType
323324
from datadog_api_client.v1.model.timeseries_widget_definition import TimeseriesWidgetDefinition
324325
from datadog_api_client.v1.model.timeseries_widget_definition_type import TimeseriesWidgetDefinitionType
325326
from datadog_api_client.v1.model.timeseries_widget_request import TimeseriesWidgetRequest

src/datadog_api_client/v1/openapi.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,8 @@ components:
25142514
description: Final attribute or tag name to remap the sources to.
25152515
example: operation_id
25162516
type: string
2517+
target_format:
2518+
$ref: '#/components/schemas/TargetFormatType'
25172519
target_type:
25182520
default: attribute
25192521
description: Defines if the final attribute or tag name is from log `attribute`
@@ -6913,6 +6915,24 @@ components:
69136915
description: A list of tags to apply to the host.
69146916
type: object
69156917
type: object
6918+
TargetFormatType:
6919+
default: auto
6920+
description: 'If the target of the remapper is an attribute, try to cast the
6921+
value to a new specific type.
6922+
6923+
If the cast is not possible, the original type is kept. `string`, `integer`,
6924+
or `double` are the possible types.'
6925+
enum:
6926+
- auto
6927+
- string
6928+
- integer
6929+
- double
6930+
type: string
6931+
x-enum-varnames:
6932+
- AUTO
6933+
- STRING
6934+
- INTEGER
6935+
- DOUBLE
69166936
TimeseriesWidgetDefinition:
69176937
description: The timeseries visualization allows you to display the evolution
69186938
of one or more metrics, log events, or Analyzed Spans over time.

0 commit comments

Comments
 (0)