Skip to content

Commit bc5d1f8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a492a6f8 of spec repo (#2213)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4a96019 commit bc5d1f8

File tree

7 files changed

+8
-38
lines changed

7 files changed

+8
-38
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-28 14:57:17.088435",
8-
"spec_repo_commit": "f832f43e"
7+
"regenerated": "2025-01-28 19:55:43.794227",
8+
"spec_repo_commit": "a492a6f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-28 14:57:17.104925",
13-
"spec_repo_commit": "f832f43e"
12+
"regenerated": "2025-01-28 19:55:43.810667",
13+
"spec_repo_commit": "a492a6f8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34557,9 +34557,6 @@ paths:
3455734557
operator: OR
3455834558
permissions:
3455934559
- usage_read
34560-
x-unstable: '**Note**: This endpoint is in public beta.
34561-
34562-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3456334560
/api/v2/cost_by_tag/monthly_cost_attribution:
3456434561
get:
3456534562
description: "Get monthly cost attribution by tag across multi-org and single
@@ -34685,9 +34682,6 @@ paths:
3468534682
operator: OR
3468634683
permissions:
3468734684
- usage_read
34688-
x-unstable: '**Note**: This endpoint is in public beta.
34689-
34690-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3469134685
/api/v2/csm/onboarding/agents:
3469234686
get:
3469334687
description: Get the list of all CSM Agents running on your hosts and containers.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Get active billing dimensions for cost attribution returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_active_billing_dimensions".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
85
p api_instance.get_active_billing_dimensions()

examples/v2/usage-metering/GetMonthlyCostAttribution.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Get Monthly Cost Attribution returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_monthly_cost_attribution".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
85
opts = {
96
end_month: (Time.now + -3 * 86400),

features/v2/usage_metering.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Feature: Usage Metering
1616

1717
@replay-only @team:DataDog/revenue-query
1818
Scenario: Get Monthly Cost Attribution returns "Bad Request" response
19-
Given operation "GetMonthlyCostAttribution" enabled
20-
And new "GetMonthlyCostAttribution" request
19+
Given new "GetMonthlyCostAttribution" request
2120
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
2221
And request contains "fields" parameter with value "not_a_product"
2322
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -26,8 +25,7 @@ Feature: Usage Metering
2625

2726
@replay-only @team:DataDog/revenue-query
2827
Scenario: Get Monthly Cost Attribution returns "OK" response
29-
Given operation "GetMonthlyCostAttribution" enabled
30-
And new "GetMonthlyCostAttribution" request
28+
Given new "GetMonthlyCostAttribution" request
3129
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
3230
And request contains "fields" parameter with value "infra_host_total_cost"
3331
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -36,15 +34,13 @@ Feature: Usage Metering
3634

3735
@generated @skip @team:DataDog/revenue-query
3836
Scenario: Get active billing dimensions for cost attribution returns "Bad Request" response
39-
Given operation "GetActiveBillingDimensions" enabled
40-
And new "GetActiveBillingDimensions" request
37+
Given new "GetActiveBillingDimensions" request
4138
When the request is sent
4239
Then the response status is 400 Bad Request
4340

4441
@team:DataDog/revenue-query
4542
Scenario: Get active billing dimensions for cost attribution returns "OK" response
46-
Given operation "GetActiveBillingDimensions" enabled
47-
And new "GetActiveBillingDimensions" request
43+
Given new "GetActiveBillingDimensions" request
4844
When the request is sent
4945
Then the response status is 200 OK
5046

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ def initialize
202202
"v2.publish_app": false,
203203
"v2.unpublish_app": false,
204204
"v2.update_app": false,
205-
"v2.get_active_billing_dimensions": false,
206-
"v2.get_monthly_cost_attribution": false,
207205
"v2.cancel_data_deletion_request": false,
208206
"v2.create_data_deletion_request": false,
209207
"v2.get_data_deletion_requests": false,

lib/datadog_api_client/v2/api/usage_metering_api.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ def get_active_billing_dimensions(opts = {})
3838
# @param opts [Hash] the optional parameters
3939
# @return [Array<(ActiveBillingDimensionsResponse, Integer, Hash)>] ActiveBillingDimensionsResponse data, response status code and response headers
4040
def get_active_billing_dimensions_with_http_info(opts = {})
41-
unstable_enabled = @api_client.config.unstable_operations["v2.get_active_billing_dimensions".to_sym]
42-
if unstable_enabled
43-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_active_billing_dimensions")
44-
else
45-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_active_billing_dimensions"))
46-
end
4741

4842
if @api_client.config.debugging
4943
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_active_billing_dimensions ...'
@@ -515,12 +509,6 @@ def get_monthly_cost_attribution(start_month, fields, opts = {})
515509
# @option opts [Boolean] :include_descendants Include child org cost in the response. Defaults to `true`.
516510
# @return [Array<(MonthlyCostAttributionResponse, Integer, Hash)>] MonthlyCostAttributionResponse data, response status code and response headers
517511
def get_monthly_cost_attribution_with_http_info(start_month, fields, opts = {})
518-
unstable_enabled = @api_client.config.unstable_operations["v2.get_monthly_cost_attribution".to_sym]
519-
if unstable_enabled
520-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_monthly_cost_attribution")
521-
else
522-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_monthly_cost_attribution"))
523-
end
524512

525513
if @api_client.config.debugging
526514
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_cost_attribution ...'

0 commit comments

Comments
 (0)