Skip to content

Commit b353eb1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d2284723 of spec repo
1 parent 130eb02 commit b353eb1

File tree

11 files changed

+4
-554
lines changed

11 files changed

+4
-554
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": "2024-12-09 11:21:38.816823",
8-
"spec_repo_commit": "21da0df3"
7+
"regenerated": "2024-12-10 13:50:48.942062",
8+
"spec_repo_commit": "d2284723"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-09 11:21:38.838595",
13-
"spec_repo_commit": "21da0df3"
12+
"regenerated": "2024-12-10 13:50:48.963287",
13+
"spec_repo_commit": "d2284723"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4929,42 +4929,6 @@ components:
49294929
type: string
49304930
x-enum-varnames:
49314931
- CLOUD_CONFIGURATION
4932-
CloudCostActivity:
4933-
description: Cloud Cost Activity.
4934-
properties:
4935-
attributes:
4936-
$ref: '#/components/schemas/CloudCostActivityAttributes'
4937-
type:
4938-
$ref: '#/components/schemas/CloudCostActivityType'
4939-
required:
4940-
- attributes
4941-
- type
4942-
type: object
4943-
CloudCostActivityAttributes:
4944-
description: Attributes for Cloud Cost activity.
4945-
properties:
4946-
is_enabled:
4947-
description: Whether or not the cloud account is enabled.
4948-
example: true
4949-
type: boolean
4950-
required:
4951-
- is_enabled
4952-
type: object
4953-
CloudCostActivityResponse:
4954-
description: Response for Cloud Cost activity.
4955-
properties:
4956-
data:
4957-
$ref: '#/components/schemas/CloudCostActivity'
4958-
type: object
4959-
CloudCostActivityType:
4960-
default: cloud_cost_activity
4961-
description: Type of Cloud Cost Activity.
4962-
enum:
4963-
- cloud_cost_activity
4964-
example: cloud_cost_activity
4965-
type: string
4966-
x-enum-varnames:
4967-
- CLOUD_COST_ACTIVITY
49684932
CloudWorkloadSecurityAgentRuleAction:
49694933
description: The action the rule can perform if triggered.
49704934
properties:
@@ -30568,38 +30532,6 @@ paths:
3056830532
summary: Get Custom Costs file
3056930533
tags:
3057030534
- Cloud Cost Management
30571-
/api/v2/cost/enabled:
30572-
get:
30573-
deprecated: true
30574-
description: Get the Cloud Cost Management activity.
30575-
operationId: GetCloudCostActivity
30576-
responses:
30577-
'200':
30578-
content:
30579-
application/json:
30580-
schema:
30581-
$ref: '#/components/schemas/CloudCostActivityResponse'
30582-
description: OK
30583-
'403':
30584-
content:
30585-
application/json:
30586-
schema:
30587-
$ref: '#/components/schemas/APIErrorResponse'
30588-
description: Forbidden
30589-
'429':
30590-
$ref: '#/components/responses/TooManyRequestsResponse'
30591-
security:
30592-
- apiKeyAuth: []
30593-
appKeyAuth: []
30594-
- AuthZ:
30595-
- cloud_cost_management_read
30596-
summary: Cloud Cost Enabled
30597-
tags:
30598-
- Cloud Cost Management
30599-
x-permission:
30600-
operator: OR
30601-
permissions:
30602-
- cloud_cost_management_read
3060330535
/api/v2/cost_by_tag/active_billing_dimensions:
3060430536
get:
3060530537
description: Get active billing dimensions for cost attribution. Cost data for

examples/v2/cloud-cost-management/GetCloudCostActivity.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

features/v2/cloud_cost_management.feature

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ Feature: Cloud Cost Management
1313
And a valid "appKeyAuth" key in the system
1414
And an instance of "CloudCostManagement" API
1515

16-
@generated @skip @team:Datadog/cloud-cost-management
17-
Scenario: Cloud Cost Enabled returns "OK" response
18-
Given new "GetCloudCostActivity" request
19-
When the request is sent
20-
Then the response status is 200 OK
21-
2216
@generated @skip @team:Datadog/cloud-cost-management
2317
Scenario: Create Cloud Cost Management AWS CUR config returns "Bad Request" response
2418
Given new "CreateCostAWSCURConfig" request

features/v2/undo.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,6 @@
462462
"type": "safe"
463463
}
464464
},
465-
"GetCloudCostActivity": {
466-
"tag": "Cloud Cost Management",
467-
"undo": {
468-
"type": "safe"
469-
}
470-
},
471465
"GetActiveBillingDimensions": {
472466
"tag": "Usage Metering",
473467
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,10 +1167,6 @@ def overrides
11671167
"v2.cloud_configuration_rule_options" => "CloudConfigurationRuleOptions",
11681168
"v2.cloud_configuration_rule_payload" => "CloudConfigurationRulePayload",
11691169
"v2.cloud_configuration_rule_type" => "CloudConfigurationRuleType",
1170-
"v2.cloud_cost_activity" => "CloudCostActivity",
1171-
"v2.cloud_cost_activity_attributes" => "CloudCostActivityAttributes",
1172-
"v2.cloud_cost_activity_response" => "CloudCostActivityResponse",
1173-
"v2.cloud_cost_activity_type" => "CloudCostActivityType",
11741170
"v2.cloudflare_account_create_request" => "CloudflareAccountCreateRequest",
11751171
"v2.cloudflare_account_create_request_attributes" => "CloudflareAccountCreateRequestAttributes",
11761172
"v2.cloudflare_account_create_request_data" => "CloudflareAccountCreateRequestData",

lib/datadog_api_client/v2/api/cloud_cost_management_api.rb

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -352,69 +352,6 @@ def delete_custom_costs_file_with_http_info(file_id, opts = {})
352352
return data, status_code, headers
353353
end
354354

355-
# Cloud Cost Enabled.
356-
#
357-
# @see #get_cloud_cost_activity_with_http_info
358-
def get_cloud_cost_activity(opts = {})
359-
data, _status_code, _headers = get_cloud_cost_activity_with_http_info(opts)
360-
data
361-
end
362-
363-
# Cloud Cost Enabled.
364-
#
365-
# Get the Cloud Cost Management activity.
366-
#
367-
# @deprecated This API is deprecated.
368-
#
369-
# @param opts [Hash] the optional parameters
370-
# @return [Array<(CloudCostActivityResponse, Integer, Hash)>] CloudCostActivityResponse data, response status code and response headers
371-
def get_cloud_cost_activity_with_http_info(opts = {})
372-
warn "[DEPRECATION] `GetCloudCostActivity` is deprecated."
373-
374-
if @api_client.config.debugging
375-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cloud_cost_activity ...'
376-
end
377-
# resource path
378-
local_var_path = '/api/v2/cost/enabled'
379-
380-
# query parameters
381-
query_params = opts[:query_params] || {}
382-
383-
# header parameters
384-
header_params = opts[:header_params] || {}
385-
# HTTP header 'Accept' (if needed)
386-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
387-
388-
# form parameters
389-
form_params = opts[:form_params] || {}
390-
391-
# http body (model)
392-
post_body = opts[:debug_body]
393-
394-
# return_type
395-
return_type = opts[:debug_return_type] || 'CloudCostActivityResponse'
396-
397-
# auth_names
398-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
399-
400-
new_options = opts.merge(
401-
:operation => :get_cloud_cost_activity,
402-
:header_params => header_params,
403-
:query_params => query_params,
404-
:form_params => form_params,
405-
:body => post_body,
406-
:auth_names => auth_names,
407-
:return_type => return_type,
408-
:api_version => "V2"
409-
)
410-
411-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
412-
if @api_client.config.debugging
413-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cloud_cost_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
414-
end
415-
return data, status_code, headers
416-
end
417-
418355
# Get Custom Costs file.
419356
#
420357
# @see #get_custom_costs_file_with_http_info

lib/datadog_api_client/v2/models/cloud_cost_activity.rb

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)