Skip to content

Commit a9df92c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f985f8bc of spec repo
1 parent 709d7ec commit a9df92c

File tree

6 files changed

+7
-22
lines changed

6 files changed

+7
-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.6",
7-
"regenerated": "2025-01-22 15:54:06.915165",
8-
"spec_repo_commit": "7a8ea4b1"
7+
"regenerated": "2025-01-23 20:01:32.815243",
8+
"spec_repo_commit": "f985f8bc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-22 15:54:06.930505",
13-
"spec_repo_commit": "7a8ea4b1"
12+
"regenerated": "2025-01-23 20:01:32.830396",
13+
"spec_repo_commit": "f985f8bc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47793,9 +47793,6 @@ paths:
4779347793
operator: OR
4779447794
permissions:
4779547795
- usage_read
47796-
x-unstable: '**Note**: This endpoint is in Preview.
47797-
47798-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
4779947796
/api/v2/usage/cost_by_org:
4780047797
get:
4780147798
deprecated: true

examples/v2_usage-metering_GetBillingDimensionMapping.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use datadog_api_client::datadogV2::api_usage_metering::UsageMeteringAPI;
55

66
#[tokio::main]
77
async fn main() {
8-
let mut configuration = datadog::Configuration::new();
9-
configuration.set_unstable_operation_enabled("v2.GetBillingDimensionMapping", true);
8+
let configuration = datadog::Configuration::new();
109
let api = UsageMeteringAPI::with_config(configuration);
1110
let resp = api
1211
.get_billing_dimension_mapping(GetBillingDimensionMappingOptionalParams::default())

src/datadog/configuration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ impl Default for Configuration {
143143
("v2.list_apps".to_owned(), false),
144144
("v2.update_app".to_owned(), false),
145145
("v2.get_active_billing_dimensions".to_owned(), false),
146-
("v2.get_billing_dimension_mapping".to_owned(), false),
147146
("v2.get_monthly_cost_attribution".to_owned(), false),
148147
("v2.cancel_data_deletion_request".to_owned(), false),
149148
("v2.create_data_deletion_request".to_owned(), false),

src/datadogV2/api/api_usage_metering.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -638,14 +638,6 @@ impl UsageMeteringAPI {
638638
> {
639639
let local_configuration = &self.config;
640640
let operation_id = "v2.get_billing_dimension_mapping";
641-
if local_configuration.is_unstable_operation_enabled(operation_id) {
642-
warn!("Using unstable operation {operation_id}");
643-
} else {
644-
let local_error = datadog::UnstableOperationDisabledError {
645-
msg: "Operation 'v2.get_billing_dimension_mapping' is not enabled".to_string(),
646-
};
647-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
648-
}
649641

650642
// unbox and build optional parameters
651643
let filter_month = params.filter_month;

tests/scenarios/features/v2/usage_metering.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ Feature: Usage Metering
5050

5151
@team:DataDog/revenue-query
5252
Scenario: Get billing dimension mapping for usage endpoints returns "Bad Request" response
53-
Given operation "GetBillingDimensionMapping" enabled
54-
And new "GetBillingDimensionMapping" request
53+
Given new "GetBillingDimensionMapping" request
5554
When the request is sent
5655
Then the response status is 400 Bad Request
5756

5857
@skip @team:DataDog/revenue-query
5958
Scenario: Get billing dimension mapping for usage endpoints returns "OK" response
60-
Given operation "GetBillingDimensionMapping" enabled
61-
And new "GetBillingDimensionMapping" request
59+
Given new "GetBillingDimensionMapping" request
6260
When the request is sent
6361
Then the response status is 200 OK
6462

0 commit comments

Comments
 (0)