Skip to content

Commit 7570675

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0c63c6a of spec repo
1 parent 2639971 commit 7570675

File tree

8 files changed

+39
-22
lines changed

8 files changed

+39
-22
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39639,8 +39639,6 @@ components:
3963939639
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType'
3964039640
when_full:
3964139641
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
39642-
required:
39643-
- max_size
3964439642
type: object
3964539643
ObservabilityPipelineElasticsearchDestination:
3964639644
description: 'The `elasticsearch` destination writes logs to an Elasticsearch
@@ -40894,8 +40892,6 @@ components:
4089440892
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
4089540893
when_full:
4089640894
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
40897-
required:
40898-
- max_size
4089940895
type: object
4090040896
ObservabilityPipelineMemoryBufferSizeOptions:
4090140897
description: Options for configuring a memory buffer by queue length.
@@ -40909,8 +40905,6 @@ components:
4090940905
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
4091040906
when_full:
4091140907
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
40912-
required:
40913-
- max_events
4091440908
type: object
4091540909
ObservabilityPipelineMetadataEntry:
4091640910
description: A custom metadata entry.
@@ -70851,6 +70845,14 @@ paths:
7085170845
/api/v2/apm/services:
7085270846
get:
7085370847
operationId: GetServiceList
70848+
parameters:
70849+
- description: Filter services by environment. Can be set to `*` to return all
70850+
services across all environments.
70851+
in: query
70852+
name: filter[env]
70853+
required: true
70854+
schema:
70855+
type: string
7085470856
responses:
7085570857
'200':
7085670858
content:

examples/v2/apm/GetServiceList.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
configuration = Configuration()
99
with ApiClient(configuration) as api_client:
1010
api_instance = APMApi(api_client)
11-
response = api_instance.get_service_list()
11+
response = api_instance.get_service_list(
12+
filter_env="filter[env]",
13+
)
1214

1315
print(response)

src/datadog_api_client/v2/api/apm_api.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ def __init__(self, api_client=None):
2929
"http_method": "GET",
3030
"version": "v2",
3131
},
32-
params_map={},
32+
params_map={
33+
"filter_env": {
34+
"required": True,
35+
"openapi_types": (str,),
36+
"attribute": "filter[env]",
37+
"location": "query",
38+
},
39+
},
3340
headers_map={
3441
"accept": ["application/json"],
3542
},
@@ -38,10 +45,15 @@ def __init__(self, api_client=None):
3845

3946
def get_service_list(
4047
self,
48+
filter_env: str,
4149
) -> ServiceList:
4250
"""Get service list.
4351
52+
:param filter_env: Filter services by environment. Can be set to ``*`` to return all services across all environments.
53+
:type filter_env: str
4454
:rtype: ServiceList
4555
"""
4656
kwargs: Dict[str, Any] = {}
57+
kwargs["filter_env"] = filter_env
58+
4759
return self._get_service_list_endpoint.call_with_http_info(**kwargs)

src/datadog_api_client/v2/model/observability_pipeline_buffer_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, **kwargs):
1616
Configuration for buffer settings on destination components.
1717
1818
:param max_size: Maximum size of the disk buffer.
19-
:type max_size: int
19+
:type max_size: int, optional
2020
2121
:param type: The type of the buffer that will be configured, a disk buffer.
2222
:type type: ObservabilityPipelineBufferOptionsDiskType, optional
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
2525
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
2626
2727
:param max_events: Maximum events for the memory buffer.
28-
:type max_events: int
28+
:type max_events: int, optional
2929
"""
3030
super().__init__(kwargs)
3131

src/datadog_api_client/v2/model/observability_pipeline_disk_buffer_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def openapi_types(_):
4646

4747
def __init__(
4848
self_,
49-
max_size: int,
49+
max_size: Union[int, UnsetType] = unset,
5050
type: Union[ObservabilityPipelineBufferOptionsDiskType, UnsetType] = unset,
5151
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
5252
**kwargs,
@@ -55,18 +55,18 @@ def __init__(
5555
Options for configuring a disk buffer.
5656
5757
:param max_size: Maximum size of the disk buffer.
58-
:type max_size: int
58+
:type max_size: int, optional
5959
6060
:param type: The type of the buffer that will be configured, a disk buffer.
6161
:type type: ObservabilityPipelineBufferOptionsDiskType, optional
6262
6363
:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
6464
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
6565
"""
66+
if max_size is not unset:
67+
kwargs["max_size"] = max_size
6668
if type is not unset:
6769
kwargs["type"] = type
6870
if when_full is not unset:
6971
kwargs["when_full"] = when_full
7072
super().__init__(kwargs)
71-
72-
self_.max_size = max_size

src/datadog_api_client/v2/model/observability_pipeline_memory_buffer_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def openapi_types(_):
4646

4747
def __init__(
4848
self_,
49-
max_size: int,
49+
max_size: Union[int, UnsetType] = unset,
5050
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
5151
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
5252
**kwargs,
@@ -55,18 +55,18 @@ def __init__(
5555
Options for configuring a memory buffer by byte size.
5656
5757
:param max_size: Maximum size of the memory buffer.
58-
:type max_size: int
58+
:type max_size: int, optional
5959
6060
:param type: The type of the buffer that will be configured, a memory buffer.
6161
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional
6262
6363
:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
6464
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
6565
"""
66+
if max_size is not unset:
67+
kwargs["max_size"] = max_size
6668
if type is not unset:
6769
kwargs["type"] = type
6870
if when_full is not unset:
6971
kwargs["when_full"] = when_full
7072
super().__init__(kwargs)
71-
72-
self_.max_size = max_size

src/datadog_api_client/v2/model/observability_pipeline_memory_buffer_size_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def openapi_types(_):
4646

4747
def __init__(
4848
self_,
49-
max_events: int,
49+
max_events: Union[int, UnsetType] = unset,
5050
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
5151
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
5252
**kwargs,
@@ -55,18 +55,18 @@ def __init__(
5555
Options for configuring a memory buffer by queue length.
5656
5757
:param max_events: Maximum events for the memory buffer.
58-
:type max_events: int
58+
:type max_events: int, optional
5959
6060
:param type: The type of the buffer that will be configured, a memory buffer.
6161
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional
6262
6363
:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
6464
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
6565
"""
66+
if max_events is not unset:
67+
kwargs["max_events"] = max_events
6668
if type is not unset:
6769
kwargs["type"] = type
6870
if when_full is not unset:
6971
kwargs["when_full"] = when_full
7072
super().__init__(kwargs)
71-
72-
self_.max_events = max_events

tests/v2/features/apm.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ Feature: APM
99
And a valid "appKeyAuth" key in the system
1010
And an instance of "APM" API
1111
And new "GetServiceList" request
12+
And request contains "filter[env]" parameter from "REPLACE.ME"
1213
When the request is sent
1314
Then the response status is 200 OK

0 commit comments

Comments
 (0)