Skip to content

Commit 2561edd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 663f45f of spec repo
1 parent b043c32 commit 2561edd

7 files changed

Lines changed: 74 additions & 13 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17596,6 +17596,18 @@ components:
1759617596
CustomCostListResponseMeta:
1759717597
description: Meta for the response from the List Custom Costs endpoints.
1759817598
properties:
17599+
count_by_status:
17600+
additionalProperties:
17601+
format: int64
17602+
type: integer
17603+
description: Number of Custom Costs files per status.
17604+
type: object
17605+
providers:
17606+
description: List of available providers.
17607+
items:
17608+
description: A provider name.
17609+
type: string
17610+
type: array
1759917611
total_filtered_count:
1760017612
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1760117613
format: int64
@@ -60999,7 +61011,7 @@ components:
6099961011
- TIMESTAMP_DESCENDING
6100061012
SecurityMonitoringStandardDataSource:
6100161013
default: logs
61002-
description: Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
61014+
description: Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
6100361015
enum:
6100461016
- logs
6100561017
- audit
@@ -61008,7 +61020,6 @@ components:
6100861020
- security_runtime
6100961021
- network
6101061022
- events
61011-
- security_signals
6101261023
example: logs
6101361024
type: string
6101461025
x-enum-varnames:
@@ -61019,7 +61030,6 @@ components:
6101961030
- SECURITY_RUNTIME
6102061031
- NETWORK
6102161032
- EVENTS
61022-
- SECURITY_SIGNALS
6102361033
SecurityMonitoringStandardRuleCreatePayload:
6102461034
description: Create a new rule.
6102561035
properties:
@@ -84155,6 +84165,18 @@ paths:
8415584165
name: filter[status]
8415684166
schema:
8415784167
type: string
84168+
- description: Filter files by name with case-insensitive substring matching.
84169+
in: query
84170+
name: filter[name]
84171+
schema:
84172+
type: string
84173+
- description: Filter by provider.
84174+
in: query
84175+
name: filter[provider]
84176+
schema:
84177+
items:
84178+
type: string
84179+
type: array
8415884180
- description: Sort key with optional descending prefix
8415984181
in: query
8416084182
name: sort

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,17 @@ def __init__(self, api_client=None):
584584
"attribute": "filter[status]",
585585
"location": "query",
586586
},
587+
"filter_name": {
588+
"openapi_types": (str,),
589+
"attribute": "filter[name]",
590+
"location": "query",
591+
},
592+
"filter_provider": {
593+
"openapi_types": ([str],),
594+
"attribute": "filter[provider]",
595+
"location": "query",
596+
"collection_format": "multi",
597+
},
587598
"sort": {
588599
"openapi_types": (str,),
589600
"attribute": "sort",
@@ -1277,6 +1288,8 @@ def list_custom_costs_files(
12771288
page_number: Union[int, UnsetType] = unset,
12781289
page_size: Union[int, UnsetType] = unset,
12791290
filter_status: Union[str, UnsetType] = unset,
1291+
filter_name: Union[str, UnsetType] = unset,
1292+
filter_provider: Union[List[str], UnsetType] = unset,
12801293
sort: Union[str, UnsetType] = unset,
12811294
) -> CustomCostsFileListResponse:
12821295
"""List Custom Costs files.
@@ -1289,6 +1302,10 @@ def list_custom_costs_files(
12891302
:type page_size: int, optional
12901303
:param filter_status: Filter by file status
12911304
:type filter_status: str, optional
1305+
:param filter_name: Filter files by name with case-insensitive substring matching.
1306+
:type filter_name: str, optional
1307+
:param filter_provider: Filter by provider.
1308+
:type filter_provider: [str], optional
12921309
:param sort: Sort key with optional descending prefix
12931310
:type sort: str, optional
12941311
:rtype: CustomCostsFileListResponse
@@ -1303,6 +1320,12 @@ def list_custom_costs_files(
13031320
if filter_status is not unset:
13041321
kwargs["filter_status"] = filter_status
13051322

1323+
if filter_name is not unset:
1324+
kwargs["filter_name"] = filter_name
1325+
1326+
if filter_provider is not unset:
1327+
kwargs["filter_provider"] = filter_provider
1328+
13061329
if sort is not unset:
13071330
kwargs["sort"] = sort
13081331

src/datadog_api_client/v2/model/custom_cost_list_response_meta.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import Dict, List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -17,27 +17,46 @@ class CustomCostListResponseMeta(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"count_by_status": ({str: (int,)},),
21+
"providers": ([str],),
2022
"total_filtered_count": (int,),
2123
"version": (str,),
2224
}
2325

2426
attribute_map = {
27+
"count_by_status": "count_by_status",
28+
"providers": "providers",
2529
"total_filtered_count": "total_filtered_count",
2630
"version": "version",
2731
}
2832

2933
def __init__(
30-
self_, total_filtered_count: Union[int, UnsetType] = unset, version: Union[str, UnsetType] = unset, **kwargs
34+
self_,
35+
count_by_status: Union[Dict[str, int], UnsetType] = unset,
36+
providers: Union[List[str], UnsetType] = unset,
37+
total_filtered_count: Union[int, UnsetType] = unset,
38+
version: Union[str, UnsetType] = unset,
39+
**kwargs,
3140
):
3241
"""
3342
Meta for the response from the List Custom Costs endpoints.
3443
44+
:param count_by_status: Number of Custom Costs files per status.
45+
:type count_by_status: {str: (int,)}, optional
46+
47+
:param providers: List of available providers.
48+
:type providers: [str], optional
49+
3550
:param total_filtered_count: Number of Custom Costs files returned by the List Custom Costs endpoint
3651
:type total_filtered_count: int, optional
3752
3853
:param version: Version of Custom Costs file
3954
:type version: str, optional
4055
"""
56+
if count_by_status is not unset:
57+
kwargs["count_by_status"] = count_by_status
58+
if providers is not unset:
59+
kwargs["providers"] = providers
4160
if total_filtered_count is not unset:
4261
kwargs["total_filtered_count"] = total_filtered_count
4362
if version is not unset:

src/datadog_api_client/v2/model/security_monitoring_rule_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
2121
:param custom_query_extension: Query extension to append to the logs query.
2222
:type custom_query_extension: str, optional
2323
24-
:param data_source: Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
24+
:param data_source: Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
2525
:type data_source: SecurityMonitoringStandardDataSource, optional
2626
2727
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

src/datadog_api_client/v2/model/security_monitoring_standard_data_source.py

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

1515
class SecurityMonitoringStandardDataSource(ModelSimple):
1616
"""
17-
Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
17+
Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
1818
19-
:param value: If omitted defaults to "logs". Must be one of ["logs", "audit", "app_sec_spans", "spans", "security_runtime", "network", "events", "security_signals"].
19+
:param value: If omitted defaults to "logs". Must be one of ["logs", "audit", "app_sec_spans", "spans", "security_runtime", "network", "events"].
2020
:type value: str
2121
"""
2222

@@ -28,7 +28,6 @@ class SecurityMonitoringStandardDataSource(ModelSimple):
2828
"security_runtime",
2929
"network",
3030
"events",
31-
"security_signals",
3231
}
3332
LOGS: ClassVar["SecurityMonitoringStandardDataSource"]
3433
AUDIT: ClassVar["SecurityMonitoringStandardDataSource"]
@@ -37,7 +36,6 @@ class SecurityMonitoringStandardDataSource(ModelSimple):
3736
SECURITY_RUNTIME: ClassVar["SecurityMonitoringStandardDataSource"]
3837
NETWORK: ClassVar["SecurityMonitoringStandardDataSource"]
3938
EVENTS: ClassVar["SecurityMonitoringStandardDataSource"]
40-
SECURITY_SIGNALS: ClassVar["SecurityMonitoringStandardDataSource"]
4139

4240
@cached_property
4341
def openapi_types(_):
@@ -53,4 +51,3 @@ def openapi_types(_):
5351
SecurityMonitoringStandardDataSource.SECURITY_RUNTIME = SecurityMonitoringStandardDataSource("security_runtime")
5452
SecurityMonitoringStandardDataSource.NETWORK = SecurityMonitoringStandardDataSource("network")
5553
SecurityMonitoringStandardDataSource.EVENTS = SecurityMonitoringStandardDataSource("events")
56-
SecurityMonitoringStandardDataSource.SECURITY_SIGNALS = SecurityMonitoringStandardDataSource("security_signals")

src/datadog_api_client/v2/model/security_monitoring_standard_rule_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(
8787
:param custom_query_extension: Query extension to append to the logs query.
8888
:type custom_query_extension: str, optional
8989
90-
:param data_source: Source of events, either logs, audit trail, security signals, or Datadog events. ``app_sec_spans`` is deprecated in favor of ``spans``.
90+
:param data_source: Source of events, either logs, audit trail, or Datadog events. ``app_sec_spans`` is deprecated in favor of ``spans``.
9191
:type data_source: SecurityMonitoringStandardDataSource, optional
9292
9393
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

src/datadog_api_client/v2/model/threat_hunting_job_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(
7272
:param aggregation: The aggregation type.
7373
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional
7474
75-
:param data_source: Source of events, either logs, audit trail, security signals, or Datadog events. ``app_sec_spans`` is deprecated in favor of ``spans``.
75+
:param data_source: Source of events, either logs, audit trail, or Datadog events. ``app_sec_spans`` is deprecated in favor of ``spans``.
7676
:type data_source: SecurityMonitoringStandardDataSource, optional
7777
7878
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

0 commit comments

Comments
 (0)