Skip to content

Commit 239f40e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit be17a7b8 of spec repo (#2350)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 77b3f89 commit 239f40e

File tree

6 files changed

+8
-35
lines changed

6 files changed

+8
-35
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-10 22:21:31.466281",
8-
"spec_repo_commit": "2f8c42a8"
7+
"regenerated": "2025-01-13 17:10:12.836005",
8+
"spec_repo_commit": "be17a7b8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-10 22:21:31.480479",
13-
"spec_repo_commit": "2f8c42a8"
12+
"regenerated": "2025-01-13 17:10:12.978240",
13+
"spec_repo_commit": "be17a7b8"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -5926,9 +5926,6 @@ components:
59265926

59275927
Make sure to use an application key created by an admin.'
59285928
properties:
5929-
description:
5930-
description: A description of the pipeline.
5931-
type: string
59325929
filter:
59335930
$ref: '#/components/schemas/LogsFilter'
59345931
id:
@@ -5951,12 +5948,6 @@ components:
59515948
items:
59525949
$ref: '#/components/schemas/LogsProcessor'
59535950
type: array
5954-
tags:
5955-
description: A list of tags associated with the pipeline.
5956-
items:
5957-
description: A single tag using the format `key:value`.
5958-
type: string
5959-
type: array
59605951
type:
59615952
description: Type of pipeline.
59625953
example: pipeline

examples/v1/logs-pipelines/CreateLogsPipeline.py

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
type=LogsGrokParserType.GROK_PARSER,
2828
),
2929
],
30-
tags=[],
3130
)
3231

3332
configuration = Configuration()

examples/v1/logs-pipelines/UpdateLogsPipeline.py

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
type=LogsGrokParserType.GROK_PARSER,
2828
),
2929
],
30-
tags=[],
3130
)
3231

3332
configuration = Configuration()

src/datadog_api_client/v1/model/logs_pipeline.py

-16
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,22 @@ def openapi_types(_):
4141
from datadog_api_client.v1.model.logs_processor import LogsProcessor
4242

4343
return {
44-
"description": (str,),
4544
"filter": (LogsFilter,),
4645
"id": (str,),
4746
"is_enabled": (bool,),
4847
"is_read_only": (bool,),
4948
"name": (str,),
5049
"processors": ([LogsProcessor],),
51-
"tags": ([str],),
5250
"type": (str,),
5351
}
5452

5553
attribute_map = {
56-
"description": "description",
5754
"filter": "filter",
5855
"id": "id",
5956
"is_enabled": "is_enabled",
6057
"is_read_only": "is_read_only",
6158
"name": "name",
6259
"processors": "processors",
63-
"tags": "tags",
6460
"type": "type",
6561
}
6662
read_only_vars = {
@@ -72,7 +68,6 @@ def openapi_types(_):
7268
def __init__(
7369
self_,
7470
name: str,
75-
description: Union[str, UnsetType] = unset,
7671
filter: Union[LogsFilter, UnsetType] = unset,
7772
id: Union[str, UnsetType] = unset,
7873
is_enabled: Union[bool, UnsetType] = unset,
@@ -101,7 +96,6 @@ def __init__(
10196
],
10297
UnsetType,
10398
] = unset,
104-
tags: Union[List[str], UnsetType] = unset,
10599
type: Union[str, UnsetType] = unset,
106100
**kwargs,
107101
):
@@ -112,9 +106,6 @@ def __init__(
112106
**Note** : These endpoints are only available for admin users.
113107
Make sure to use an application key created by an admin.
114108
115-
:param description: A description of the pipeline.
116-
:type description: str, optional
117-
118109
:param filter: Filter for logs.
119110
:type filter: LogsFilter, optional
120111
@@ -133,14 +124,9 @@ def __init__(
133124
:param processors: Ordered list of processors in this pipeline.
134125
:type processors: [LogsProcessor], optional
135126
136-
:param tags: A list of tags associated with the pipeline.
137-
:type tags: [str], optional
138-
139127
:param type: Type of pipeline.
140128
:type type: str, optional
141129
"""
142-
if description is not unset:
143-
kwargs["description"] = description
144130
if filter is not unset:
145131
kwargs["filter"] = filter
146132
if id is not unset:
@@ -151,8 +137,6 @@ def __init__(
151137
kwargs["is_read_only"] = is_read_only
152138
if processors is not unset:
153139
kwargs["processors"] = processors
154-
if tags is not unset:
155-
kwargs["tags"] = tags
156140
if type is not unset:
157141
kwargs["type"] = type
158142
super().__init__(kwargs)

tests/v1/features/logs_pipelines.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Feature: Logs Pipelines
2626
@generated @skip @team:DataDog/event-platform-experience
2727
Scenario: Create a pipeline returns "Bad Request" response
2828
Given new "CreateLogsPipeline" request
29-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
29+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
3030
When the request is sent
3131
Then the response status is 400 Bad Request
3232

3333
@generated @skip @team:DataDog/event-platform-experience
3434
Scenario: Create a pipeline returns "OK" response
3535
Given new "CreateLogsPipeline" request
36-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
36+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
3737
When the request is sent
3838
Then the response status is 200 OK
3939

@@ -81,15 +81,15 @@ Feature: Logs Pipelines
8181
Scenario: Update a pipeline returns "Bad Request" response
8282
Given new "UpdateLogsPipeline" request
8383
And request contains "pipeline_id" parameter from "REPLACE.ME"
84-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
84+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
8585
When the request is sent
8686
Then the response status is 400 Bad Request
8787

8888
@generated @skip @team:DataDog/event-platform-experience
8989
Scenario: Update a pipeline returns "OK" response
9090
Given new "UpdateLogsPipeline" request
9191
And request contains "pipeline_id" parameter from "REPLACE.ME"
92-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
92+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
9393
When the request is sent
9494
Then the response status is 200 OK
9595

0 commit comments

Comments
 (0)