Skip to content

Commit 2d6a4ee

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 17aa8b0 of spec repo
1 parent f722578 commit 2d6a4ee

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
@@ -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

features/support/scenarios_model_mapping.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5417,6 +5417,14 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
54175417
"type": "string",
54185418
"format": "",
54195419
},
5420+
"filterName": {
5421+
"type": "string",
5422+
"format": "",
5423+
},
5424+
"filterProvider": {
5425+
"type": "Array<string>",
5426+
"format": "",
5427+
},
54205428
"sort": {
54215429
"type": "string",
54225430
"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)