Skip to content

Commit ca08e20

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

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

features/support/scenarios_model_mapping.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5374,6 +5374,14 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
53745374
"type": "string",
53755375
"format": "",
53765376
},
5377+
"filterName": {
5378+
"type": "string",
5379+
"format": "",
5380+
},
5381+
"filterProvider": {
5382+
"type": "Array<string>",
5383+
"format": "",
5384+
},
53775385
"sort": {
53785386
"type": "string",
53795387
"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)