Skip to content

Commit e940e1b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8fa8b05 of spec repo
1 parent 0733181 commit e940e1b

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 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
@@ -83201,6 +83213,18 @@ paths:
8320183213
name: filter[status]
8320283214
schema:
8320383215
type: string
83216+
- description: Filter files by name with case-insensitive substring matching.
83217+
in: query
83218+
name: filter[name]
83219+
schema:
83220+
type: string
83221+
- description: Filter by provider.
83222+
in: query
83223+
name: filter[provider]
83224+
schema:
83225+
items:
83226+
type: string
83227+
type: array
8320483228
- description: Sort key with optional descending prefix
8320583229
in: query
8320683230
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:

0 commit comments

Comments
 (0)