Skip to content

Commit 28e9bd5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 49566d79 of spec repo
1 parent 72be336 commit 28e9bd5

10 files changed

+178
-22
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-04-07 18:49:41.536548",
8-
"spec_repo_commit": "d0287df0"
7+
"regenerated": "2025-04-08 12:02:30.628317",
8+
"spec_repo_commit": "49566d79"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-07 18:49:41.551076",
13-
"spec_repo_commit": "d0287df0"
12+
"regenerated": "2025-04-08 12:02:30.646634",
13+
"spec_repo_commit": "49566d79"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+29-3
Original file line numberDiff line numberDiff line change
@@ -21567,7 +21567,6 @@ components:
2156721567
type: array
2156821568
required:
2156921569
- sources
21570-
- processors
2157121570
- destinations
2157221571
type: object
2157321572
ObservabilityPipelineConfigDestinationItem:
@@ -21588,6 +21587,7 @@ components:
2158821587
oneOf:
2158921588
- $ref: '#/components/schemas/ObservabilityPipelineKafkaSource'
2159021589
- $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource'
21590+
- $ref: '#/components/schemas/ObservabilityPipelineFluentSource'
2159121591
ObservabilityPipelineCreateRequest:
2159221592
description: Top-level schema representing a pipeline.
2159321593
properties:
@@ -21759,6 +21759,32 @@ components:
2175921759
type: string
2176021760
x-enum-varnames:
2176121761
- FILTER
21762+
ObservabilityPipelineFluentSource:
21763+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21764+
properties:
21765+
id:
21766+
description: The unique identifier for this component. Used to reference
21767+
this component in other parts of the pipeline (for example, as the `input`
21768+
to downstream components).
21769+
example: fluent-source
21770+
type: string
21771+
tls:
21772+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21773+
type:
21774+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21775+
required:
21776+
- id
21777+
- type
21778+
type: object
21779+
ObservabilityPipelineFluentSourceType:
21780+
default: fluent
21781+
description: The source type. The value should always be `fluent`.
21782+
enum:
21783+
- fluent
21784+
example: fluent
21785+
type: string
21786+
x-enum-varnames:
21787+
- FLUENT
2176221788
ObservabilityPipelineKafkaSource:
2176321789
description: The `kafka` source ingests data from Apache Kafka topics.
2176421790
properties:
@@ -21926,8 +21952,8 @@ components:
2192621952
limit:
2192721953
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2192821954
name:
21929-
description: Name for identifying the processor.
21930-
example: MyPipelineQuotaProcessor
21955+
description: Name of the quota.
21956+
example: MyQuota
2193121957
type: string
2193221958
overrides:
2193321959
description: A list of alternate quota rules that apply to specific sets

docs/datadog_api_client.v2.model.rst

+14
Original file line numberDiff line numberDiff line change
@@ -9391,6 +9391,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_filter\_processor\_type m
93919391
:members:
93929392
:show-inheritance:
93939393

9394+
datadog\_api\_client.v2.model.observability\_pipeline\_fluent\_source module
9395+
----------------------------------------------------------------------------
9396+
9397+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_fluent_source
9398+
:members:
9399+
:show-inheritance:
9400+
9401+
datadog\_api\_client.v2.model.observability\_pipeline\_fluent\_source\_type module
9402+
----------------------------------------------------------------------------------
9403+
9404+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_fluent_source_type
9405+
:members:
9406+
:show-inheritance:
9407+
93949408
datadog\_api\_client.v2.model.observability\_pipeline\_kafka\_source module
93959409
---------------------------------------------------------------------------
93969410

src/datadog_api_client/v2/model/observability_pipeline_config.py

+21-13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -42,6 +44,7 @@
4244
from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import (
4345
ObservabilityPipelineDatadogAgentSource,
4446
)
47+
from datadog_api_client.v2.model.observability_pipeline_fluent_source import ObservabilityPipelineFluentSource
4548

4649

4750
class ObservabilityPipelineConfig(ModelNormal):
@@ -74,24 +77,28 @@ def __init__(
7477
destinations: List[
7578
Union[ObservabilityPipelineConfigDestinationItem, ObservabilityPipelineDatadogLogsDestination]
7679
],
77-
processors: List[
78-
Union[
79-
ObservabilityPipelineConfigProcessorItem,
80-
ObservabilityPipelineFilterProcessor,
81-
ObservabilityPipelineParseJSONProcessor,
82-
ObservabilityPipelineQuotaProcessor,
83-
ObservabilityPipelineAddFieldsProcessor,
84-
ObservabilityPipelineRemoveFieldsProcessor,
85-
ObservabilityPipelineRenameFieldsProcessor,
86-
]
87-
],
8880
sources: List[
8981
Union[
9082
ObservabilityPipelineConfigSourceItem,
9183
ObservabilityPipelineKafkaSource,
9284
ObservabilityPipelineDatadogAgentSource,
85+
ObservabilityPipelineFluentSource,
9386
]
9487
],
88+
processors: Union[
89+
List[
90+
Union[
91+
ObservabilityPipelineConfigProcessorItem,
92+
ObservabilityPipelineFilterProcessor,
93+
ObservabilityPipelineParseJSONProcessor,
94+
ObservabilityPipelineQuotaProcessor,
95+
ObservabilityPipelineAddFieldsProcessor,
96+
ObservabilityPipelineRemoveFieldsProcessor,
97+
ObservabilityPipelineRenameFieldsProcessor,
98+
]
99+
],
100+
UnsetType,
101+
] = unset,
95102
**kwargs,
96103
):
97104
"""
@@ -101,13 +108,14 @@ def __init__(
101108
:type destinations: [ObservabilityPipelineConfigDestinationItem]
102109
103110
:param processors: A list of processors that transform or enrich log data.
104-
:type processors: [ObservabilityPipelineConfigProcessorItem]
111+
:type processors: [ObservabilityPipelineConfigProcessorItem], optional
105112
106113
:param sources: A list of configured data sources for the pipeline.
107114
:type sources: [ObservabilityPipelineConfigSourceItem]
108115
"""
116+
if processors is not unset:
117+
kwargs["processors"] = processors
109118
super().__init__(kwargs)
110119

111120
self_.destinations = destinations
112-
self_.processors = processors
113121
self_.sources = sources

src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, **kwargs):
3939
:param limit: The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.
4040
:type limit: ObservabilityPipelineQuotaProcessorLimit
4141
42-
:param name: Name for identifying the processor.
42+
:param name: Name of the quota.
4343
:type name: str
4444
4545
:param overrides: A list of alternate quota rules that apply to specific sets of events, identified by matching field values. Each override can define a custom limit.

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

+2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ def _composed_schemas(_):
5151
from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import (
5252
ObservabilityPipelineDatadogAgentSource,
5353
)
54+
from datadog_api_client.v2.model.observability_pipeline_fluent_source import ObservabilityPipelineFluentSource
5455

5556
return {
5657
"oneOf": [
5758
ObservabilityPipelineKafkaSource,
5859
ObservabilityPipelineDatadogAgentSource,
60+
ObservabilityPipelineFluentSource,
5961
],
6062
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
18+
from datadog_api_client.v2.model.observability_pipeline_fluent_source_type import (
19+
ObservabilityPipelineFluentSourceType,
20+
)
21+
22+
23+
class ObservabilityPipelineFluentSource(ModelNormal):
24+
@cached_property
25+
def openapi_types(_):
26+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
27+
from datadog_api_client.v2.model.observability_pipeline_fluent_source_type import (
28+
ObservabilityPipelineFluentSourceType,
29+
)
30+
31+
return {
32+
"id": (str,),
33+
"tls": (ObservabilityPipelineTls,),
34+
"type": (ObservabilityPipelineFluentSourceType,),
35+
}
36+
37+
attribute_map = {
38+
"id": "id",
39+
"tls": "tls",
40+
"type": "type",
41+
}
42+
43+
def __init__(
44+
self_,
45+
id: str,
46+
type: ObservabilityPipelineFluentSourceType,
47+
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
48+
**kwargs,
49+
):
50+
"""
51+
The ``fluent`` source ingests logs from a Fluentd-compatible service.
52+
53+
:param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the ``input`` to downstream components).
54+
:type id: str
55+
56+
:param tls: Configuration for enabling TLS encryption.
57+
:type tls: ObservabilityPipelineTls, optional
58+
59+
:param type: The source type. The value should always be ``fluent``.
60+
:type type: ObservabilityPipelineFluentSourceType
61+
"""
62+
if tls is not unset:
63+
kwargs["tls"] = tls
64+
super().__init__(kwargs)
65+
66+
self_.id = id
67+
self_.type = type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class ObservabilityPipelineFluentSourceType(ModelSimple):
16+
"""
17+
The source type. The value should always be `fluent`.
18+
19+
:param value: If omitted defaults to "fluent". Must be one of ["fluent"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"fluent",
25+
}
26+
FLUENT: ClassVar["ObservabilityPipelineFluentSourceType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
ObservabilityPipelineFluentSourceType.FLUENT = ObservabilityPipelineFluentSourceType("fluent")

src/datadog_api_client/v2/model/observability_pipeline_quota_processor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__(
9999
:param limit: The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.
100100
:type limit: ObservabilityPipelineQuotaProcessorLimit
101101
102-
:param name: Name for identifying the processor.
102+
:param name: Name of the quota.
103103
:type name: str
104104
105105
:param overrides: A list of alternate quota rules that apply to specific sets of events, identified by matching field values. Each override can define a custom limit.

src/datadog_api_client/v2/models/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,8 @@
17151715
from datadog_api_client.v2.model.observability_pipeline_filter_processor_type import (
17161716
ObservabilityPipelineFilterProcessorType,
17171717
)
1718+
from datadog_api_client.v2.model.observability_pipeline_fluent_source import ObservabilityPipelineFluentSource
1719+
from datadog_api_client.v2.model.observability_pipeline_fluent_source_type import ObservabilityPipelineFluentSourceType
17181720
from datadog_api_client.v2.model.observability_pipeline_kafka_source import ObservabilityPipelineKafkaSource
17191721
from datadog_api_client.v2.model.observability_pipeline_kafka_source_librdkafka_option import (
17201722
ObservabilityPipelineKafkaSourceLibrdkafkaOption,
@@ -4089,6 +4091,8 @@
40894091
"ObservabilityPipelineFieldValue",
40904092
"ObservabilityPipelineFilterProcessor",
40914093
"ObservabilityPipelineFilterProcessorType",
4094+
"ObservabilityPipelineFluentSource",
4095+
"ObservabilityPipelineFluentSourceType",
40924096
"ObservabilityPipelineKafkaSource",
40934097
"ObservabilityPipelineKafkaSourceLibrdkafkaOption",
40944098
"ObservabilityPipelineKafkaSourceSasl",

0 commit comments

Comments
 (0)