Skip to content

Commit e7d8b02

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 17aa8b0 of spec repo
1 parent 71b9eac commit e7d8b02

4 files changed

Lines changed: 76 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17796,6 +17796,18 @@ components:
1779617796
CustomCostListResponseMeta:
1779717797
description: Meta for the response from the List Custom Costs endpoints.
1779817798
properties:
17799+
count_by_status:
17800+
additionalProperties:
17801+
format: int64
17802+
type: integer
17803+
description: Number of Custom Costs files per status.
17804+
type: object
17805+
providers:
17806+
description: List of available providers.
17807+
items:
17808+
description: A provider name.
17809+
type: string
17810+
type: array
1779917811
total_filtered_count:
1780017812
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1780117813
format: int64
@@ -85747,6 +85759,18 @@ paths:
8574785759
name: filter[status]
8574885760
schema:
8574985761
type: string
85762+
- description: Filter files by name with case-insensitive substring matching.
85763+
in: query
85764+
name: filter[name]
85765+
schema:
85766+
type: string
85767+
- description: Filter by provider.
85768+
in: query
85769+
name: filter[provider]
85770+
schema:
85771+
items:
85772+
type: string
85773+
type: array
8575085774
- description: Sort key with optional descending prefix
8575185775
in: query
8575285776
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
@@ -5429,6 +5429,14 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
54295429
type: "string",
54305430
format: "",
54315431
},
5432+
filterName: {
5433+
type: "string",
5434+
format: "",
5435+
},
5436+
filterProvider: {
5437+
type: "Array<string>",
5438+
format: "",
5439+
},
54325440
sort: {
54335441
type: "string",
54345442
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)