Skip to content

Commit f06c7f7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 39c88ed of spec repo
1 parent 52bf42c commit f06c7f7

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,10 +980,12 @@ components:
980980
type: string
981981
ResourceID:
982982
description: 'Identifier, formatted as `type:id`. Supported types: `dashboard`,
983-
`integration-service`, `integration-webhook`, `notebook`, `reference-table`,
984-
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`,
983+
`integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`,
984+
`security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`,
985+
`monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`,
985986
`rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`,
986-
`on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`.'
987+
`on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`,
988+
`case-management-project`.'
987989
example: dashboard:abc-def-ghi
988990
in: path
989991
name: resource_id
@@ -40874,6 +40876,8 @@ components:
4087440876
type: integer
4087540877
type:
4087640878
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40879+
when_full:
40880+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087740881
type: object
4087840882
ObservabilityPipelineMemoryBufferSizeOptions:
4087940883
description: Options for configuring a memory buffer by queue length.
@@ -40885,6 +40889,8 @@ components:
4088540889
type: integer
4088640890
type:
4088740891
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40892+
when_full:
40893+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088840894
type: object
4088940895
ObservabilityPipelineMetadataEntry:
4089040896
description: A custom metadata entry.

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def delete_restriction_policy(
112112
113113
Deletes the restriction policy associated with a specified resource.
114114
115-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline``.
115+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``powerpack`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``synthetics-global-variable`` , ``synthetics-test`` , ``synthetics-private-location`` , ``monitor`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline`` , ``case-management-project``.
116116
:type resource_id: str
117117
:rtype: None
118118
"""
@@ -129,7 +129,7 @@ def get_restriction_policy(
129129
130130
Retrieves the restriction policy associated with a specified resource.
131131
132-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline``.
132+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``powerpack`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``synthetics-global-variable`` , ``synthetics-test`` , ``synthetics-private-location`` , ``monitor`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline`` , ``case-management-project``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -235,7 +235,7 @@ def update_restriction_policy(
235235
- ``viewer`` , ``contributor`` , ``manager``
236236
237237
238-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline``.
238+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``powerpack`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``synthetics-global-variable`` , ``synthetics-test`` , ``synthetics-private-location`` , ``monitor`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , ``on-call-team-routing-rules`` , ``logs-pipeline`` , ``case-management-project``.
239239
:type resource_id: str
240240
:param body: Restriction policy payload
241241
:type body: RestrictionPolicyUpdateRequest

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)