Skip to content

Commit 7f95287

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f486a915 of spec repo (#762)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent ee7c40e commit 7f95287

File tree

7 files changed

+8
-36
lines changed

7 files changed

+8
-36
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-07-15 12:26:10.260767",
8-
"spec_repo_commit": "d854c667"
7+
"regenerated": "2022-07-18 17:54:13.322165",
8+
"spec_repo_commit": "f486a915"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-15 12:26:10.273504",
13-
"spec_repo_commit": "d854c667"
12+
"regenerated": "2022-07-18 17:54:13.337817",
13+
"spec_repo_commit": "f486a915"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27461,9 +27461,6 @@ paths:
2746127461
x-menu-order: 30
2746227462
x-undo:
2746327463
type: safe
27464-
x-unstable: '**Note**: This endpoint is in public beta.
27465-
27466-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2746727464
/api/v1/usage/incident-management:
2746827465
get:
2746927466
description: Get hourly usage for incident management.
@@ -27989,9 +27986,6 @@ paths:
2798927986
x-menu-order: 31
2799027987
x-undo:
2799127988
type: safe
27992-
x-unstable: '**Note**: This endpoint is in public beta.
27993-
27994-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2799527989
/api/v1/usage/network_flows:
2799627990
get:
2799727991
description: Get hourly usage for network flows.

examples/v1/usage-metering/GetHourlyUsageAttribution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v1 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["getHourlyUsageAttribution"] = true;
98
const apiInstance = new v1.UsageMeteringApi(configuration);
109

1110
const params: v1.UsageMeteringApiGetHourlyUsageAttributionRequest = {

examples/v1/usage-metering/GetMonthlyUsageAttribution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v1 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["getMonthlyUsageAttribution"] = true;
98
const apiInstance = new v1.UsageMeteringApi(configuration);
109

1110
const params: v1.UsageMeteringApiGetMonthlyUsageAttributionRequest = {

features/v1/usage_metering.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,15 @@ Feature: Usage Metering
5757

5858
@skip @team:DataDog/red-zone-revenue-query
5959
Scenario: Get hourly usage attribution returns "Bad Request" response
60-
Given operation "GetHourlyUsageAttribution" enabled
61-
And new "GetHourlyUsageAttribution" request
60+
Given new "GetHourlyUsageAttribution" request
6261
And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}"
6362
And request contains "usage_type" parameter with value "not_a_product"
6463
When the request is sent
6564
Then the response status is 400 Bad Request
6665

6766
@team:DataDog/red-zone-revenue-query
6867
Scenario: Get hourly usage attribution returns "OK" response
69-
Given operation "GetHourlyUsageAttribution" enabled
70-
And new "GetHourlyUsageAttribution" request
68+
Given new "GetHourlyUsageAttribution" request
7169
And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}"
7270
And request contains "usage_type" parameter with value "infra_host_usage"
7371
When the request is sent
@@ -507,17 +505,15 @@ Feature: Usage Metering
507505

508506
@skip @team:DataDog/red-zone-revenue-query
509507
Scenario: Get monthly usage attribution returns "Bad Request" response
510-
Given operation "GetMonthlyUsageAttribution" enabled
511-
And new "GetMonthlyUsageAttribution" request
508+
Given new "GetMonthlyUsageAttribution" request
512509
And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}"
513510
And request contains "fields" parameter with value "not_a_product"
514511
When the request is sent
515512
Then the response status is 400 Bad Request
516513

517514
@team:DataDog/red-zone-revenue-query
518515
Scenario: Get monthly usage attribution returns "OK" response
519-
Given operation "GetMonthlyUsageAttribution" enabled
520-
And new "GetMonthlyUsageAttribution" request
516+
Given new "GetMonthlyUsageAttribution" request
521517
And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}"
522518
And request contains "fields" parameter with value "infra_host_usage"
523519
When the request is sent

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ export function createConfiguration(
104104
operationServerIndices: conf.operationServerIndices || {},
105105
unstableOperations: {
106106
"v1.getDailyCustomReports": false,
107-
"v1.getHourlyUsageAttribution": false,
108107
"v1.getMonthlyCustomReports": false,
109-
"v1.getMonthlyUsageAttribution": false,
110108
"v1.getSpecifiedDailyCustomReports": false,
111109
"v1.getSpecifiedMonthlyCustomReports": false,
112110
"v1.getUsageAttribution": false,

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
138138
): Promise<RequestContext> {
139139
const _config = _options || this.configuration;
140140

141-
logger.warn("Using unstable operation 'getHourlyUsageAttribution'");
142-
if (!_config.unstableOperations["v1.getHourlyUsageAttribution"]) {
143-
throw new Error(
144-
"Unstable operation 'getHourlyUsageAttribution' is disabled"
145-
);
146-
}
147-
148141
// verify required parameter 'startHr' is not null or undefined
149142
if (startHr === null || startHr === undefined) {
150143
throw new RequiredError(
@@ -408,13 +401,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
408401
): Promise<RequestContext> {
409402
const _config = _options || this.configuration;
410403

411-
logger.warn("Using unstable operation 'getMonthlyUsageAttribution'");
412-
if (!_config.unstableOperations["v1.getMonthlyUsageAttribution"]) {
413-
throw new Error(
414-
"Unstable operation 'getMonthlyUsageAttribution' is disabled"
415-
);
416-
}
417-
418404
// verify required parameter 'startMonth' is not null or undefined
419405
if (startMonth === null || startMonth === undefined) {
420406
throw new RequiredError(

0 commit comments

Comments
 (0)