Skip to content

Commit 7d4cb7e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 795b9a0 of spec repo
1 parent 96661fa commit 7d4cb7e

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40833,6 +40833,8 @@ components:
4083340833
type: integer
4083440834
type:
4083540835
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40836+
when_full:
40837+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4083640838
type: object
4083740839
ObservabilityPipelineMemoryBufferSizeOptions:
4083840840
description: Options for configuring a memory buffer by queue length.
@@ -40844,6 +40846,8 @@ components:
4084440846
type: integer
4084540847
type:
4084640848
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40849+
when_full:
40850+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4084740851
type: object
4084840852
ObservabilityPipelineMetadataEntry:
4084940853
description: A custom metadata entry.

src/datadog_api_client/v2/model/observability_pipeline_memory_buffer_options.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
1818
ObservabilityPipelineBufferOptionsMemoryType,
1919
)
20+
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
21+
ObservabilityPipelineBufferOptionsWhenFull,
22+
)
2023

2124

2225
class ObservabilityPipelineMemoryBufferOptions(ModelNormal):
@@ -25,21 +28,27 @@ def openapi_types(_):
2528
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
2629
ObservabilityPipelineBufferOptionsMemoryType,
2730
)
31+
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
32+
ObservabilityPipelineBufferOptionsWhenFull,
33+
)
2834

2935
return {
3036
"max_size": (int,),
3137
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
38+
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
3239
}
3340

3441
attribute_map = {
3542
"max_size": "max_size",
3643
"type": "type",
44+
"when_full": "when_full",
3745
}
3846

3947
def __init__(
4048
self_,
4149
max_size: Union[int, UnsetType] = unset,
4250
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
51+
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
4352
**kwargs,
4453
):
4554
"""
@@ -50,9 +59,14 @@ def __init__(
5059
5160
:param type: The type of the buffer that will be configured, a memory buffer.
5261
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional
62+
63+
:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
64+
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
5365
"""
5466
if max_size is not unset:
5567
kwargs["max_size"] = max_size
5668
if type is not unset:
5769
kwargs["type"] = type
70+
if when_full is not unset:
71+
kwargs["when_full"] = when_full
5872
super().__init__(kwargs)

src/datadog_api_client/v2/model/observability_pipeline_memory_buffer_size_options.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
1818
ObservabilityPipelineBufferOptionsMemoryType,
1919
)
20+
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
21+
ObservabilityPipelineBufferOptionsWhenFull,
22+
)
2023

2124

2225
class ObservabilityPipelineMemoryBufferSizeOptions(ModelNormal):
@@ -25,21 +28,27 @@ def openapi_types(_):
2528
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
2629
ObservabilityPipelineBufferOptionsMemoryType,
2730
)
31+
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
32+
ObservabilityPipelineBufferOptionsWhenFull,
33+
)
2834

2935
return {
3036
"max_events": (int,),
3137
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
38+
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
3239
}
3340

3441
attribute_map = {
3542
"max_events": "max_events",
3643
"type": "type",
44+
"when_full": "when_full",
3745
}
3846

3947
def __init__(
4048
self_,
4149
max_events: Union[int, UnsetType] = unset,
4250
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
51+
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
4352
**kwargs,
4453
):
4554
"""
@@ -50,9 +59,14 @@ def __init__(
5059
5160
:param type: The type of the buffer that will be configured, a memory buffer.
5261
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional
62+
63+
:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
64+
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
5365
"""
5466
if max_events is not unset:
5567
kwargs["max_events"] = max_events
5668
if type is not unset:
5769
kwargs["type"] = type
70+
if when_full is not unset:
71+
kwargs["when_full"] = when_full
5872
super().__init__(kwargs)

0 commit comments

Comments
 (0)