Skip to content

Commit 86a547a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 3e311663 of spec repo (#702)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9d442f4 commit 86a547a

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.2",
7-
"regenerated": "2022-06-03 14:41:26.225908",
8-
"spec_repo_commit": "dfe05b82"
7+
"regenerated": "2022-06-07 09:26:53.708808",
8+
"spec_repo_commit": "3e311663"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-06-03 14:41:26.241896",
13-
"spec_repo_commit": "dfe05b82"
12+
"regenerated": "2022-06-07 09:26:53.724008",
13+
"spec_repo_commit": "3e311663"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26670,6 +26670,13 @@ paths:
2667026670
required: false
2667126671
schema:
2667226672
type: string
26673+
- description: Include child org usage in the response. Defaults to `true`.
26674+
in: query
26675+
name: include_descendants
26676+
required: false
26677+
schema:
26678+
default: true
26679+
type: boolean
2667326680
responses:
2667426681
'200':
2667526682
content:
@@ -27183,6 +27190,13 @@ paths:
2718327190
required: false
2718427191
schema:
2718527192
type: string
27193+
- description: Include child org usage in the response. Defaults to `true`.
27194+
in: query
27195+
name: include_descendants
27196+
required: false
27197+
schema:
27198+
default: true
27199+
type: boolean
2718627200
responses:
2718727201
'200':
2718827202
content:

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
126126
endHr?: Date,
127127
nextRecordId?: string,
128128
tagBreakdownKeys?: string,
129+
includeDescendants?: boolean,
129130
_options?: Configuration
130131
): Promise<RequestContext> {
131132
const _config = _options || this.configuration;
@@ -200,6 +201,12 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
200201
ObjectSerializer.serialize(tagBreakdownKeys, "string", "")
201202
);
202203
}
204+
if (includeDescendants !== undefined) {
205+
requestContext.setQueryParam(
206+
"include_descendants",
207+
ObjectSerializer.serialize(includeDescendants, "boolean", "")
208+
);
209+
}
203210

204211
// Apply auth methods
205212
applySecurityAuthentication(_config, requestContext, [
@@ -389,6 +396,7 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
389396
sortName?: MonthlyUsageAttributionSupportedMetrics,
390397
tagBreakdownKeys?: string,
391398
nextRecordId?: string,
399+
includeDescendants?: boolean,
392400
_options?: Configuration
393401
): Promise<RequestContext> {
394402
const _config = _options || this.configuration;
@@ -479,6 +487,12 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
479487
ObjectSerializer.serialize(nextRecordId, "string", "")
480488
);
481489
}
490+
if (includeDescendants !== undefined) {
491+
requestContext.setQueryParam(
492+
"include_descendants",
493+
ObjectSerializer.serialize(includeDescendants, "boolean", "")
494+
);
495+
}
482496

483497
// Apply auth methods
484498
applySecurityAuthentication(_config, requestContext, [
@@ -4650,6 +4664,11 @@ export interface UsageMeteringApiGetHourlyUsageAttributionRequest {
46504664
* @type string
46514665
*/
46524666
tagBreakdownKeys?: string;
4667+
/**
4668+
* Include child org usage in the response. Defaults to `true`.
4669+
* @type boolean
4670+
*/
4671+
includeDescendants?: boolean;
46534672
}
46544673

46554674
export interface UsageMeteringApiGetIncidentManagementRequest {
@@ -4742,6 +4761,11 @@ export interface UsageMeteringApiGetMonthlyUsageAttributionRequest {
47424761
* @type string
47434762
*/
47444763
nextRecordId?: string;
4764+
/**
4765+
* Include child org usage in the response. Defaults to `true`.
4766+
* @type boolean
4767+
*/
4768+
includeDescendants?: boolean;
47454769
}
47464770

47474771
export interface UsageMeteringApiGetSpecifiedDailyCustomReportsRequest {
@@ -5289,6 +5313,7 @@ export class UsageMeteringApi {
52895313
param.endHr,
52905314
param.nextRecordId,
52915315
param.tagBreakdownKeys,
5316+
param.includeDescendants,
52925317
options
52935318
);
52945319
return requestContextPromise.then((requestContext) => {
@@ -5403,6 +5428,7 @@ export class UsageMeteringApi {
54035428
param.sortName,
54045429
param.tagBreakdownKeys,
54055430
param.nextRecordId,
5431+
param.includeDescendants,
54065432
options
54075433
);
54085434
return requestContextPromise.then((requestContext) => {

0 commit comments

Comments
 (0)