Skip to content

Commit 43a6300

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f486a915 of spec repo (#1097)
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 afb3309 commit 43a6300

File tree

6 files changed

+8
-22
lines changed

6 files changed

+8
-22
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.791241",
8-
"spec_repo_commit": "d854c667"
7+
"regenerated": "2022-07-18 17:54:28.205368",
8+
"spec_repo_commit": "f486a915"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-15 12:26:10.807992",
13-
"spec_repo_commit": "d854c667"
12+
"regenerated": "2022-07-18 17:54:28.232847",
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.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from datadog_api_client.v1.model.hourly_usage_attribution_usage_type import HourlyUsageAttributionUsageType
1010

1111
configuration = Configuration()
12-
configuration.unstable_operations["get_hourly_usage_attribution"] = True
1312
with ApiClient(configuration) as api_client:
1413
api_instance = UsageMeteringApi(api_client)
1514
response = api_instance.get_hourly_usage_attribution(

examples/v1/usage-metering/GetMonthlyUsageAttribution.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
)
1212

1313
configuration = Configuration()
14-
configuration.unstable_operations["get_monthly_usage_attribution"] = True
1514
with ApiClient(configuration) as api_client:
1615
api_instance = UsageMeteringApi(api_client)
1716
response = api_instance.get_monthly_usage_attribution(

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ def __init__(
222222
self.unstable_operations = _UnstableOperations(
223223
{
224224
"v1.get_daily_custom_reports": False,
225-
"v1.get_hourly_usage_attribution": False,
226225
"v1.get_monthly_custom_reports": False,
227-
"v1.get_monthly_usage_attribution": False,
228226
"v1.get_specified_daily_custom_reports": False,
229227
"v1.get_specified_monthly_custom_reports": False,
230228
"v1.get_usage_attribution": False,

tests/v1/features/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

0 commit comments

Comments
 (0)