Skip to content

Commit 7e1b2e3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e03163b of spec repo
1 parent b7e9f9e commit 7e1b2e3

11 files changed

+457
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29261,6 +29261,7 @@ components:
2926129261
- $ref: '#/components/schemas/ObservabilityPipelineSocketDestination'
2926229262
- $ref: '#/components/schemas/ObservabilityPipelineAmazonSecurityLakeDestination'
2926329263
- $ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestination'
29264+
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestination'
2926429265
ObservabilityPipelineConfigProcessorItem:
2926529266
description: A processor for the pipeline.
2926629267
oneOf:
@@ -29300,6 +29301,7 @@ components:
2930029301
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubSource'
2930129302
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
2930229303
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
29304+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
2930329305
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
2930429306
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
2930529307
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
@@ -30322,6 +30324,65 @@ components:
3032230324
type: string
3032330325
x-enum-varnames:
3032430326
- GOOGLE_CLOUD_STORAGE
30327+
ObservabilityPipelineGooglePubSubDestination:
30328+
description: The `google_pubsub` destination publishes logs to a Google Cloud
30329+
Pub/Sub topic.
30330+
properties:
30331+
auth:
30332+
$ref: '#/components/schemas/ObservabilityPipelineGcpAuth'
30333+
encoding:
30334+
$ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestinationEncoding'
30335+
id:
30336+
description: The unique identifier for this component.
30337+
example: google-pubsub-destination
30338+
type: string
30339+
inputs:
30340+
description: A list of component IDs whose output is used as the `input`
30341+
for this component.
30342+
example:
30343+
- filter-processor
30344+
items:
30345+
type: string
30346+
type: array
30347+
project:
30348+
description: The GCP project ID that owns the Pub/Sub topic.
30349+
example: my-gcp-project
30350+
type: string
30351+
tls:
30352+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30353+
topic:
30354+
description: The Pub/Sub topic name to publish logs to.
30355+
example: logs-subscription
30356+
type: string
30357+
type:
30358+
$ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestinationType'
30359+
required:
30360+
- id
30361+
- type
30362+
- inputs
30363+
- encoding
30364+
- project
30365+
- topic
30366+
type: object
30367+
ObservabilityPipelineGooglePubSubDestinationEncoding:
30368+
description: Encoding format for log events.
30369+
enum:
30370+
- json
30371+
- raw_message
30372+
example: json
30373+
type: string
30374+
x-enum-varnames:
30375+
- JSON
30376+
- RAW_MESSAGE
30377+
ObservabilityPipelineGooglePubSubDestinationType:
30378+
default: google_pubsub
30379+
description: The destination type. The value should always be `google_pubsub`.
30380+
enum:
30381+
- google_pubsub
30382+
example: google_pubsub
30383+
type: string
30384+
x-enum-varnames:
30385+
- GOOGLE_PUBSUB
3032530386
ObservabilityPipelineGooglePubSubSource:
3032630387
description: The `google_pubsub` source ingests logs from a Google Cloud Pub/Sub
3032730388
subscription.
@@ -30749,6 +30810,33 @@ components:
3074930810
type: string
3075030811
x-enum-varnames:
3075130812
- OPENSEARCH
30813+
ObservabilityPipelineOpentelemetrySource:
30814+
description: The `opentelemetry` source receives OpenTelemetry data through
30815+
gRPC or HTTP.
30816+
properties:
30817+
id:
30818+
description: The unique identifier for this component. Used to reference
30819+
this component in other parts of the pipeline (e.g., as input to downstream
30820+
components).
30821+
example: opentelemetry-source
30822+
type: string
30823+
tls:
30824+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30825+
type:
30826+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
30827+
required:
30828+
- id
30829+
- type
30830+
type: object
30831+
ObservabilityPipelineOpentelemetrySourceType:
30832+
default: opentelemetry
30833+
description: The source type. The value should always be `opentelemetry`.
30834+
enum:
30835+
- opentelemetry
30836+
example: opentelemetry
30837+
type: string
30838+
x-enum-varnames:
30839+
- OPENTELEMETRY
3075230840
ObservabilityPipelineParseGrokProcessor:
3075330841
description: The `parse_grok` processor extracts structured fields from unstructured
3075430842
log messages using Grok patterns.

docs/datadog_api_client.v2.model.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13276,6 +13276,27 @@ datadog\_api\_client.v2.model.observability\_pipeline\_google\_cloud\_storage\_d
1327613276
:members:
1327713277
:show-inheritance:
1327813278

13279+
datadog\_api\_client.v2.model.observability\_pipeline\_google\_pub\_sub\_destination module
13280+
-------------------------------------------------------------------------------------------
13281+
13282+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination
13283+
:members:
13284+
:show-inheritance:
13285+
13286+
datadog\_api\_client.v2.model.observability\_pipeline\_google\_pub\_sub\_destination\_encoding module
13287+
-----------------------------------------------------------------------------------------------------
13288+
13289+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_encoding
13290+
:members:
13291+
:show-inheritance:
13292+
13293+
datadog\_api\_client.v2.model.observability\_pipeline\_google\_pub\_sub\_destination\_type module
13294+
-------------------------------------------------------------------------------------------------
13295+
13296+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_type
13297+
:members:
13298+
:show-inheritance:
13299+
1327913300
datadog\_api\_client.v2.model.observability\_pipeline\_google\_pub\_sub\_source module
1328013301
--------------------------------------------------------------------------------------
1328113302

@@ -13458,6 +13479,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1345813479
:members:
1345913480
:show-inheritance:
1346013481

13482+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source module
13483+
-----------------------------------------------------------------------------------
13484+
13485+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source
13486+
:members:
13487+
:show-inheritance:
13488+
13489+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source\_type module
13490+
-----------------------------------------------------------------------------------------
13491+
13492+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type
13493+
:members:
13494+
:show-inheritance:
13495+
1346113496
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor module
1346213497
------------------------------------------------------------------------------------
1346313498

src/datadog_api_client/v2/model/observability_pipeline_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
from datadog_api_client.v2.model.observability_pipeline_crowd_strike_next_gen_siem_destination import (
7474
ObservabilityPipelineCrowdStrikeNextGenSiemDestination,
7575
)
76+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination import (
77+
ObservabilityPipelineGooglePubSubDestination,
78+
)
7679
from datadog_api_client.v2.model.observability_pipeline_filter_processor import ObservabilityPipelineFilterProcessor
7780
from datadog_api_client.v2.model.observability_pipeline_parse_json_processor import (
7881
ObservabilityPipelineParseJSONProcessor,
@@ -148,6 +151,9 @@
148151
ObservabilityPipelineHttpClientSource,
149152
)
150153
from datadog_api_client.v2.model.observability_pipeline_logstash_source import ObservabilityPipelineLogstashSource
154+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
155+
ObservabilityPipelineOpentelemetrySource,
156+
)
151157
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
152158

153159

@@ -199,6 +205,7 @@ def __init__(
199205
ObservabilityPipelineSocketDestination,
200206
ObservabilityPipelineAmazonSecurityLakeDestination,
201207
ObservabilityPipelineCrowdStrikeNextGenSiemDestination,
208+
ObservabilityPipelineGooglePubSubDestination,
202209
]
203210
],
204211
sources: List[
@@ -219,6 +226,7 @@ def __init__(
219226
ObservabilityPipelineGooglePubSubSource,
220227
ObservabilityPipelineHttpClientSource,
221228
ObservabilityPipelineLogstashSource,
229+
ObservabilityPipelineOpentelemetrySource,
222230
ObservabilityPipelineSocketSource,
223231
]
224232
],

src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ def __init__(self, **kwargs):
120120
121121
:param compression: Compression configuration for log events.
122122
:type compression: ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression, optional
123+
124+
:param project: The GCP project ID that owns the Pub/Sub topic.
125+
:type project: str
126+
127+
:param topic: The Pub/Sub topic name to publish logs to.
128+
:type topic: str
123129
"""
124130
super().__init__(kwargs)
125131

@@ -182,6 +188,9 @@ def _composed_schemas(_):
182188
from datadog_api_client.v2.model.observability_pipeline_crowd_strike_next_gen_siem_destination import (
183189
ObservabilityPipelineCrowdStrikeNextGenSiemDestination,
184190
)
191+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination import (
192+
ObservabilityPipelineGooglePubSubDestination,
193+
)
185194

186195
return {
187196
"oneOf": [
@@ -203,5 +212,6 @@ def _composed_schemas(_):
203212
ObservabilityPipelineSocketDestination,
204213
ObservabilityPipelineAmazonSecurityLakeDestination,
205214
ObservabilityPipelineCrowdStrikeNextGenSiemDestination,
215+
ObservabilityPipelineGooglePubSubDestination,
206216
],
207217
}

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def _composed_schemas(_):
118118
from datadog_api_client.v2.model.observability_pipeline_logstash_source import (
119119
ObservabilityPipelineLogstashSource,
120120
)
121+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
122+
ObservabilityPipelineOpentelemetrySource,
123+
)
121124
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
122125

123126
return {
@@ -137,6 +140,7 @@ def _composed_schemas(_):
137140
ObservabilityPipelineGooglePubSubSource,
138141
ObservabilityPipelineHttpClientSource,
139142
ObservabilityPipelineLogstashSource,
143+
ObservabilityPipelineOpentelemetrySource,
140144
ObservabilityPipelineSocketSource,
141145
],
142146
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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 List, 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_gcp_auth import ObservabilityPipelineGcpAuth
18+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_encoding import (
19+
ObservabilityPipelineGooglePubSubDestinationEncoding,
20+
)
21+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
22+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_type import (
23+
ObservabilityPipelineGooglePubSubDestinationType,
24+
)
25+
26+
27+
class ObservabilityPipelineGooglePubSubDestination(ModelNormal):
28+
@cached_property
29+
def openapi_types(_):
30+
from datadog_api_client.v2.model.observability_pipeline_gcp_auth import ObservabilityPipelineGcpAuth
31+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_encoding import (
32+
ObservabilityPipelineGooglePubSubDestinationEncoding,
33+
)
34+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
35+
from datadog_api_client.v2.model.observability_pipeline_google_pub_sub_destination_type import (
36+
ObservabilityPipelineGooglePubSubDestinationType,
37+
)
38+
39+
return {
40+
"auth": (ObservabilityPipelineGcpAuth,),
41+
"encoding": (ObservabilityPipelineGooglePubSubDestinationEncoding,),
42+
"id": (str,),
43+
"inputs": ([str],),
44+
"project": (str,),
45+
"tls": (ObservabilityPipelineTls,),
46+
"topic": (str,),
47+
"type": (ObservabilityPipelineGooglePubSubDestinationType,),
48+
}
49+
50+
attribute_map = {
51+
"auth": "auth",
52+
"encoding": "encoding",
53+
"id": "id",
54+
"inputs": "inputs",
55+
"project": "project",
56+
"tls": "tls",
57+
"topic": "topic",
58+
"type": "type",
59+
}
60+
61+
def __init__(
62+
self_,
63+
encoding: ObservabilityPipelineGooglePubSubDestinationEncoding,
64+
id: str,
65+
inputs: List[str],
66+
project: str,
67+
topic: str,
68+
type: ObservabilityPipelineGooglePubSubDestinationType,
69+
auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset,
70+
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
71+
**kwargs,
72+
):
73+
"""
74+
The ``google_pubsub`` destination publishes logs to a Google Cloud Pub/Sub topic.
75+
76+
:param auth: GCP credentials used to authenticate with Google Cloud Storage.
77+
:type auth: ObservabilityPipelineGcpAuth, optional
78+
79+
:param encoding: Encoding format for log events.
80+
:type encoding: ObservabilityPipelineGooglePubSubDestinationEncoding
81+
82+
:param id: The unique identifier for this component.
83+
:type id: str
84+
85+
:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
86+
:type inputs: [str]
87+
88+
:param project: The GCP project ID that owns the Pub/Sub topic.
89+
:type project: str
90+
91+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
92+
:type tls: ObservabilityPipelineTls, optional
93+
94+
:param topic: The Pub/Sub topic name to publish logs to.
95+
:type topic: str
96+
97+
:param type: The destination type. The value should always be ``google_pubsub``.
98+
:type type: ObservabilityPipelineGooglePubSubDestinationType
99+
"""
100+
if auth is not unset:
101+
kwargs["auth"] = auth
102+
if tls is not unset:
103+
kwargs["tls"] = tls
104+
super().__init__(kwargs)
105+
106+
self_.encoding = encoding
107+
self_.id = id
108+
self_.inputs = inputs
109+
self_.project = project
110+
self_.topic = topic
111+
self_.type = type

0 commit comments

Comments
 (0)