Skip to content

Commit 7012e31

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

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

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5564,6 +5564,14 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
55645564
type: "string",
55655565
format: "",
55665566
},
5567+
filterName: {
5568+
type: "string",
5569+
format: "",
5570+
},
5571+
filterProvider: {
5572+
type: "Array<string>",
5573+
format: "",
5574+
},
55675575
sort: {
55685576
type: "string",
55695577
format: "",

services/cloud_cost_management/src/v2/CloudCostManagementApi.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,8 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
11381138
pageNumber?: number,
11391139
pageSize?: number,
11401140
filterStatus?: string,
1141+
filterName?: string,
1142+
filterProvider?: Array<string>,
11411143
sort?: string,
11421144
_options?: Configuration,
11431145
): Promise<RequestContext> {
@@ -1186,6 +1188,20 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
11861188
"",
11871189
);
11881190
}
1191+
if (filterName !== undefined) {
1192+
requestContext.setQueryParam(
1193+
"filter[name]",
1194+
serialize(filterName, TypingInfo, "string", ""),
1195+
"",
1196+
);
1197+
}
1198+
if (filterProvider !== undefined) {
1199+
requestContext.setQueryParam(
1200+
"filter[provider]",
1201+
serialize(filterProvider, TypingInfo, "Array<string>", ""),
1202+
"multi",
1203+
);
1204+
}
11891205
if (sort !== undefined) {
11901206
requestContext.setQueryParam(
11911207
"sort",
@@ -4123,6 +4139,16 @@ export interface CloudCostManagementApiListCustomCostsFilesRequest {
41234139
* @type string
41244140
*/
41254141
filterStatus?: string;
4142+
/**
4143+
* Filter files by name with case-insensitive substring matching.
4144+
* @type string
4145+
*/
4146+
filterName?: string;
4147+
/**
4148+
* Filter by provider.
4149+
* @type Array<string>
4150+
*/
4151+
filterProvider?: Array<string>;
41264152
/**
41274153
* Sort key with optional descending prefix
41284154
* @type string
@@ -4781,6 +4807,8 @@ export class CloudCostManagementApi {
47814807
param.pageNumber,
47824808
param.pageSize,
47834809
param.filterStatus,
4810+
param.filterName,
4811+
param.filterProvider,
47844812
param.sort,
47854813
options,
47864814
);

services/cloud_cost_management/src/v2/models/CustomCostListResponseMeta.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client";
44
* Meta for the response from the List Custom Costs endpoints.
55
*/
66
export class CustomCostListResponseMeta {
7+
/**
8+
* Number of Custom Costs files per status.
9+
*/
10+
"countByStatus"?: { [key: string]: number };
11+
/**
12+
* List of available providers.
13+
*/
14+
"providers"?: Array<string>;
715
/**
816
* Number of Custom Costs files returned by the List Custom Costs endpoint
917
*/
@@ -27,6 +35,14 @@ export class CustomCostListResponseMeta {
2735
* @ignore
2836
*/
2937
static readonly attributeTypeMap: AttributeTypeMap = {
38+
countByStatus: {
39+
baseName: "count_by_status",
40+
type: "{ [key: string]: number; }",
41+
},
42+
providers: {
43+
baseName: "providers",
44+
type: "Array<string>",
45+
},
3046
totalFilteredCount: {
3147
baseName: "total_filtered_count",
3248
type: "number",

0 commit comments

Comments
 (0)