Skip to content

Commit b687973

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 266d9ef of spec repo
1 parent eedb307 commit b687973

File tree

6 files changed

+106
-1
lines changed

6 files changed

+106
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38580,12 +38580,14 @@ components:
3858038580
- none
3858138581
- basic
3858238582
- bearer
38583+
- custom
3858338584
example: basic
3858438585
type: string
3858538586
x-enum-varnames:
3858638587
- NONE
3858738588
- BASIC
3858838589
- BEARER
38590+
- CUSTOM
3858938591
ObservabilityPipelineHttpClientSourceType:
3859038592
default: http_client
3859138593
description: The source type. The value should always be `http_client`.
@@ -39148,6 +39150,8 @@ components:
3914839150
description: The index to write logs to.
3914939151
example: logs-index
3915039152
type: string
39153+
data_stream:
39154+
$ref: '#/components/schemas/ObservabilityPipelineOpenSearchDestinationDataStream'
3915139155
id:
3915239156
description: The unique identifier for this component.
3915339157
example: opensearch-destination
@@ -39169,6 +39173,23 @@ components:
3916939173
type: object
3917039174
x-pipeline-types:
3917139175
- logs
39176+
ObservabilityPipelineOpenSearchDestinationDataStream:
39177+
description: Configuration options for writing to OpenSearch Data Streams instead
39178+
of a fixed index.
39179+
properties:
39180+
dataset:
39181+
description: The data stream dataset for your logs. This groups logs by
39182+
their source or application.
39183+
type: string
39184+
dtype:
39185+
description: The data stream type for your logs. This determines how logs
39186+
are categorized within the data stream.
39187+
type: string
39188+
namespace:
39189+
description: The data stream namespace for your logs. This separates logs
39190+
into different environments or domains.
39191+
type: string
39192+
type: object
3917239193
ObservabilityPipelineOpenSearchDestinationType:
3917339194
default: opensearch
3917439195
description: The destination type. The value should always be `opensearch`.

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16860,6 +16860,13 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1686016860
:members:
1686116861
:show-inheritance:
1686216862

16863+
datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination\_data\_stream module
16864+
-----------------------------------------------------------------------------------------------------
16865+
16866+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_open_search_destination_data_stream
16867+
:members:
16868+
:show-inheritance:
16869+
1686316870
datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination\_type module
1686416871
---------------------------------------------------------------------------------------------
1686516872

src/datadog_api_client/v2/model/observability_pipeline_http_client_source_auth_strategy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ class ObservabilityPipelineHttpClientSourceAuthStrategy(ModelSimple):
1616
"""
1717
Optional authentication strategy for HTTP requests.
1818
19-
:param value: Must be one of ["none", "basic", "bearer"].
19+
:param value: Must be one of ["none", "basic", "bearer", "custom"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"none",
2525
"basic",
2626
"bearer",
27+
"custom",
2728
}
2829
NONE: ClassVar["ObservabilityPipelineHttpClientSourceAuthStrategy"]
2930
BASIC: ClassVar["ObservabilityPipelineHttpClientSourceAuthStrategy"]
3031
BEARER: ClassVar["ObservabilityPipelineHttpClientSourceAuthStrategy"]
32+
CUSTOM: ClassVar["ObservabilityPipelineHttpClientSourceAuthStrategy"]
3133

3234
@cached_property
3335
def openapi_types(_):
@@ -39,3 +41,4 @@ def openapi_types(_):
3941
ObservabilityPipelineHttpClientSourceAuthStrategy.NONE = ObservabilityPipelineHttpClientSourceAuthStrategy("none")
4042
ObservabilityPipelineHttpClientSourceAuthStrategy.BASIC = ObservabilityPipelineHttpClientSourceAuthStrategy("basic")
4143
ObservabilityPipelineHttpClientSourceAuthStrategy.BEARER = ObservabilityPipelineHttpClientSourceAuthStrategy("bearer")
44+
ObservabilityPipelineHttpClientSourceAuthStrategy.CUSTOM = ObservabilityPipelineHttpClientSourceAuthStrategy("custom")

src/datadog_api_client/v2/model/observability_pipeline_open_search_destination.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515

1616
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_data_stream import (
18+
ObservabilityPipelineOpenSearchDestinationDataStream,
19+
)
1720
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
1821
ObservabilityPipelineOpenSearchDestinationType,
1922
)
@@ -22,19 +25,24 @@
2225
class ObservabilityPipelineOpenSearchDestination(ModelNormal):
2326
@cached_property
2427
def openapi_types(_):
28+
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_data_stream import (
29+
ObservabilityPipelineOpenSearchDestinationDataStream,
30+
)
2531
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
2632
ObservabilityPipelineOpenSearchDestinationType,
2733
)
2834

2935
return {
3036
"bulk_index": (str,),
37+
"data_stream": (ObservabilityPipelineOpenSearchDestinationDataStream,),
3138
"id": (str,),
3239
"inputs": ([str],),
3340
"type": (ObservabilityPipelineOpenSearchDestinationType,),
3441
}
3542

3643
attribute_map = {
3744
"bulk_index": "bulk_index",
45+
"data_stream": "data_stream",
3846
"id": "id",
3947
"inputs": "inputs",
4048
"type": "type",
@@ -46,6 +54,7 @@ def __init__(
4654
inputs: List[str],
4755
type: ObservabilityPipelineOpenSearchDestinationType,
4856
bulk_index: Union[str, UnsetType] = unset,
57+
data_stream: Union[ObservabilityPipelineOpenSearchDestinationDataStream, UnsetType] = unset,
4958
**kwargs,
5059
):
5160
"""
@@ -56,6 +65,9 @@ def __init__(
5665
:param bulk_index: The index to write logs to.
5766
:type bulk_index: str, optional
5867
68+
:param data_stream: Configuration options for writing to OpenSearch Data Streams instead of a fixed index.
69+
:type data_stream: ObservabilityPipelineOpenSearchDestinationDataStream, optional
70+
5971
:param id: The unique identifier for this component.
6072
:type id: str
6173
@@ -67,6 +79,8 @@ def __init__(
6779
"""
6880
if bulk_index is not unset:
6981
kwargs["bulk_index"] = bulk_index
82+
if data_stream is not unset:
83+
kwargs["data_stream"] = data_stream
7084
super().__init__(kwargs)
7185

7286
self_.id = id
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class ObservabilityPipelineOpenSearchDestinationDataStream(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"dataset": (str,),
21+
"dtype": (str,),
22+
"namespace": (str,),
23+
}
24+
25+
attribute_map = {
26+
"dataset": "dataset",
27+
"dtype": "dtype",
28+
"namespace": "namespace",
29+
}
30+
31+
def __init__(
32+
self_,
33+
dataset: Union[str, UnsetType] = unset,
34+
dtype: Union[str, UnsetType] = unset,
35+
namespace: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
38+
"""
39+
Configuration options for writing to OpenSearch Data Streams instead of a fixed index.
40+
41+
:param dataset: The data stream dataset for your logs. This groups logs by their source or application.
42+
:type dataset: str, optional
43+
44+
:param dtype: The data stream type for your logs. This determines how logs are categorized within the data stream.
45+
:type dtype: str, optional
46+
47+
:param namespace: The data stream namespace for your logs. This separates logs into different environments or domains.
48+
:type namespace: str, optional
49+
"""
50+
if dataset is not unset:
51+
kwargs["dataset"] = dataset
52+
if dtype is not unset:
53+
kwargs["dtype"] = dtype
54+
if namespace is not unset:
55+
kwargs["namespace"] = namespace
56+
super().__init__(kwargs)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,6 +3364,9 @@
33643364
from datadog_api_client.v2.model.observability_pipeline_open_search_destination import (
33653365
ObservabilityPipelineOpenSearchDestination,
33663366
)
3367+
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_data_stream import (
3368+
ObservabilityPipelineOpenSearchDestinationDataStream,
3369+
)
33673370
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
33683371
ObservabilityPipelineOpenSearchDestinationType,
33693372
)
@@ -8085,6 +8088,7 @@
80858088
"ObservabilityPipelineOcsfMapperProcessorType",
80868089
"ObservabilityPipelineOcsfMappingLibrary",
80878090
"ObservabilityPipelineOpenSearchDestination",
8091+
"ObservabilityPipelineOpenSearchDestinationDataStream",
80888092
"ObservabilityPipelineOpenSearchDestinationType",
80898093
"ObservabilityPipelineOpentelemetrySource",
80908094
"ObservabilityPipelineOpentelemetrySourceType",

0 commit comments

Comments
 (0)