Skip to content

Commit 2b48e56

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d9760384 of spec repo
1 parent d518b28 commit 2b48e56

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-10 19:46:03.896755",
8-
"spec_repo_commit": "049920eb"
7+
"regenerated": "2024-10-15 10:12:37.350120",
8+
"spec_repo_commit": "d9760384"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-10 19:46:04.041839",
13-
"spec_repo_commit": "049920eb"
12+
"regenerated": "2024-10-15 10:12:37.368764",
13+
"spec_repo_commit": "d9760384"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28730,7 +28730,7 @@ paths:
2873028730
for cost ending this month.'
2873128731
in: query
2873228732
name: end_month
28733-
required: true
28733+
required: false
2873428734
schema:
2873528735
format: date-time
2873628736
type: string

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

+7-12
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
356356

357357
public async getMonthlyCostAttribution(
358358
startMonth: Date,
359-
endMonth: Date,
360359
fields: string,
360+
endMonth?: Date,
361361
sortDirection?: SortDirection,
362362
sortName?: string,
363363
tagBreakdownKeys?: string,
@@ -379,11 +379,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
379379
throw new RequiredError("startMonth", "getMonthlyCostAttribution");
380380
}
381381

382-
// verify required parameter 'endMonth' is not null or undefined
383-
if (endMonth === null || endMonth === undefined) {
384-
throw new RequiredError("endMonth", "getMonthlyCostAttribution");
385-
}
386-
387382
// verify required parameter 'fields' is not null or undefined
388383
if (fields === null || fields === undefined) {
389384
throw new RequiredError("fields", "getMonthlyCostAttribution");
@@ -1420,11 +1415,6 @@ export interface UsageMeteringApiGetMonthlyCostAttributionRequest {
14201415
* @type Date
14211416
*/
14221417
startMonth: Date;
1423-
/**
1424-
* Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month.
1425-
* @type Date
1426-
*/
1427-
endMonth: Date;
14281418
/**
14291419
* Comma-separated list specifying cost types (e.g., `<billing_dimension>_on_demand_cost`, `<billing_dimension>_committed_cost`, `<billing_dimension>_total_cost`) and the
14301420
* proportions (`<billing_dimension>_percentage_in_org`, `<billing_dimension>_percentage_in_account`). Use `*` to retrieve all fields.
@@ -1434,6 +1424,11 @@ export interface UsageMeteringApiGetMonthlyCostAttributionRequest {
14341424
* @type string
14351425
*/
14361426
fields: string;
1427+
/**
1428+
* Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month.
1429+
* @type Date
1430+
*/
1431+
endMonth?: Date;
14371432
/**
14381433
* The direction to sort by: `[desc, asc]`.
14391434
* @type SortDirection
@@ -1694,8 +1689,8 @@ export class UsageMeteringApi {
16941689
): Promise<MonthlyCostAttributionResponse> {
16951690
const requestContextPromise = this.requestFactory.getMonthlyCostAttribution(
16961691
param.startMonth,
1697-
param.endMonth,
16981692
param.fields,
1693+
param.endMonth,
16991694
param.sortDirection,
17001695
param.sortName,
17011696
param.tagBreakdownKeys,

0 commit comments

Comments
 (0)