Skip to content

Commit 97dbae8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing params to ListCustomCostsFiles (#3909)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3549c31 commit 97dbae8

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17831,6 +17831,18 @@ components:
1783117831
CustomCostListResponseMeta:
1783217832
description: Meta for the response from the List Custom Costs endpoints.
1783317833
properties:
17834+
count_by_status:
17835+
additionalProperties:
17836+
format: int64
17837+
type: integer
17838+
description: Number of Custom Costs files per status.
17839+
type: object
17840+
providers:
17841+
description: List of available providers.
17842+
items:
17843+
description: A provider name.
17844+
type: string
17845+
type: array
1783417846
total_filtered_count:
1783517847
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1783617848
format: int64
@@ -86879,6 +86891,18 @@ paths:
8687986891
name: filter[status]
8688086892
schema:
8688186893
type: string
86894+
- description: Filter files by name with case-insensitive substring matching.
86895+
in: query
86896+
name: filter[name]
86897+
schema:
86898+
type: string
86899+
- description: Filter by provider.
86900+
in: query
86901+
name: filter[provider]
86902+
schema:
86903+
items:
86904+
type: string
86905+
type: array
8688286906
- description: Sort key with optional descending prefix
8688386907
in: query
8688486908
name: sort

features/support/scenarios_model_mapping.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5552,6 +5552,14 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
55525552
"type": "string",
55535553
"format": "",
55545554
},
5555+
"filterName": {
5556+
"type": "string",
5557+
"format": "",
5558+
},
5559+
"filterProvider": {
5560+
"type": "Array<string>",
5561+
"format": "",
5562+
},
55555563
"sort": {
55565564
"type": "string",
55575565
"format": "",

packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
869869
pageNumber?: number,
870870
pageSize?: number,
871871
filterStatus?: string,
872+
filterName?: string,
873+
filterProvider?: Array<string>,
872874
sort?: string,
873875
_options?: Configuration
874876
): Promise<RequestContext> {
@@ -906,6 +908,20 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
906908
""
907909
);
908910
}
911+
if (filterName !== undefined) {
912+
requestContext.setQueryParam(
913+
"filter[name]",
914+
ObjectSerializer.serialize(filterName, "string", ""),
915+
""
916+
);
917+
}
918+
if (filterProvider !== undefined) {
919+
requestContext.setQueryParam(
920+
"filter[provider]",
921+
ObjectSerializer.serialize(filterProvider, "Array<string>", ""),
922+
"multi"
923+
);
924+
}
909925
if (sort !== undefined) {
910926
requestContext.setQueryParam(
911927
"sort",
@@ -3816,6 +3832,16 @@ export interface CloudCostManagementApiListCustomCostsFilesRequest {
38163832
* @type string
38173833
*/
38183834
filterStatus?: string;
3835+
/**
3836+
* Filter files by name with case-insensitive substring matching.
3837+
* @type string
3838+
*/
3839+
filterName?: string;
3840+
/**
3841+
* Filter by provider.
3842+
* @type Array<string>
3843+
*/
3844+
filterProvider?: Array<string>;
38193845
/**
38203846
* Sort key with optional descending prefix
38213847
* @type string
@@ -4471,6 +4497,8 @@ export class CloudCostManagementApi {
44714497
param.pageNumber,
44724498
param.pageSize,
44734499
param.filterStatus,
4500+
param.filterName,
4501+
param.filterProvider,
44744502
param.sort,
44754503
options
44764504
);

packages/datadog-api-client-v2/models/CustomCostListResponseMeta.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Meta for the response from the List Custom Costs endpoints.
1111
*/
1212
export class CustomCostListResponseMeta {
13+
/**
14+
* Number of Custom Costs files per status.
15+
*/
16+
"countByStatus"?: { [key: string]: number };
17+
/**
18+
* List of available providers.
19+
*/
20+
"providers"?: Array<string>;
1321
/**
1422
* Number of Custom Costs files returned by the List Custom Costs endpoint
1523
*/
@@ -35,6 +43,14 @@ export class CustomCostListResponseMeta {
3543
* @ignore
3644
*/
3745
static readonly attributeTypeMap: AttributeTypeMap = {
46+
countByStatus: {
47+
baseName: "count_by_status",
48+
type: "{ [key: string]: number; }",
49+
},
50+
providers: {
51+
baseName: "providers",
52+
type: "Array<string>",
53+
},
3854
totalFilteredCount: {
3955
baseName: "total_filtered_count",
4056
type: "number",

0 commit comments

Comments
 (0)