Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-10 13:52:29.278222",
"spec_repo_commit": "4f71be94"
"regenerated": "2024-12-10 14:43:50.257656",
"spec_repo_commit": "408f0b84"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-10 13:52:29.297144",
"spec_repo_commit": "4f71be94"
"regenerated": "2024-12-10 14:43:50.276347",
"spec_repo_commit": "408f0b84"
}
}
}
68 changes: 0 additions & 68 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4929,42 +4929,6 @@ components:
type: string
x-enum-varnames:
- CLOUD_CONFIGURATION
CloudCostActivity:
description: Cloud Cost Activity.
properties:
attributes:
$ref: '#/components/schemas/CloudCostActivityAttributes'
type:
$ref: '#/components/schemas/CloudCostActivityType'
required:
- attributes
- type
type: object
CloudCostActivityAttributes:
description: Attributes for Cloud Cost activity.
properties:
is_enabled:
description: Whether or not the cloud account is enabled.
example: true
type: boolean
required:
- is_enabled
type: object
CloudCostActivityResponse:
description: Response for Cloud Cost activity.
properties:
data:
$ref: '#/components/schemas/CloudCostActivity'
type: object
CloudCostActivityType:
default: cloud_cost_activity
description: Type of Cloud Cost Activity.
enum:
- cloud_cost_activity
example: cloud_cost_activity
type: string
x-enum-varnames:
- CLOUD_COST_ACTIVITY
CloudWorkloadSecurityAgentRuleAction:
description: The action the rule can perform if triggered.
properties:
Expand Down Expand Up @@ -30572,38 +30536,6 @@ paths:
summary: Get Custom Costs file
tags:
- Cloud Cost Management
/api/v2/cost/enabled:
get:
deprecated: true
description: Get the Cloud Cost Management activity.
operationId: GetCloudCostActivity
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CloudCostActivityResponse'
description: OK
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: Cloud Cost Enabled
tags:
- Cloud Cost Management
x-permission:
operator: OR
permissions:
- cloud_cost_management_read
/api/v2/cost_by_tag/active_billing_dimensions:
get:
description: Get active billing dimensions for cost attribution. Cost data for
Expand Down
5 changes: 0 additions & 5 deletions examples/v2/cloud-cost-management/GetCloudCostActivity.rb

This file was deleted.

6 changes: 0 additions & 6 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ Feature: Cloud Cost Management
And a valid "appKeyAuth" key in the system
And an instance of "CloudCostManagement" API

@generated @skip @team:Datadog/cloud-cost-management
Scenario: Cloud Cost Enabled returns "OK" response
Given new "GetCloudCostActivity" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:Datadog/cloud-cost-management
Scenario: Create Cloud Cost Management AWS CUR config returns "Bad Request" response
Given new "CreateCostAWSCURConfig" request
Expand Down
6 changes: 0 additions & 6 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,6 @@
"type": "safe"
}
},
"GetCloudCostActivity": {
"tag": "Cloud Cost Management",
"undo": {
"type": "safe"
}
},
"GetActiveBillingDimensions": {
"tag": "Usage Metering",
"undo": {
Expand Down
4 changes: 0 additions & 4 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1167,10 +1167,6 @@ def overrides
"v2.cloud_configuration_rule_options" => "CloudConfigurationRuleOptions",
"v2.cloud_configuration_rule_payload" => "CloudConfigurationRulePayload",
"v2.cloud_configuration_rule_type" => "CloudConfigurationRuleType",
"v2.cloud_cost_activity" => "CloudCostActivity",
"v2.cloud_cost_activity_attributes" => "CloudCostActivityAttributes",
"v2.cloud_cost_activity_response" => "CloudCostActivityResponse",
"v2.cloud_cost_activity_type" => "CloudCostActivityType",
"v2.cloudflare_account_create_request" => "CloudflareAccountCreateRequest",
"v2.cloudflare_account_create_request_attributes" => "CloudflareAccountCreateRequestAttributes",
"v2.cloudflare_account_create_request_data" => "CloudflareAccountCreateRequestData",
Expand Down
63 changes: 0 additions & 63 deletions lib/datadog_api_client/v2/api/cloud_cost_management_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,69 +352,6 @@ def delete_custom_costs_file_with_http_info(file_id, opts = {})
return data, status_code, headers
end

# Cloud Cost Enabled.
#
# @see #get_cloud_cost_activity_with_http_info
def get_cloud_cost_activity(opts = {})
data, _status_code, _headers = get_cloud_cost_activity_with_http_info(opts)
data
end

# Cloud Cost Enabled.
#
# Get the Cloud Cost Management activity.
#
# @deprecated This API is deprecated.
#
# @param opts [Hash] the optional parameters
# @return [Array<(CloudCostActivityResponse, Integer, Hash)>] CloudCostActivityResponse data, response status code and response headers
def get_cloud_cost_activity_with_http_info(opts = {})
warn "[DEPRECATION] `GetCloudCostActivity` is deprecated."

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cloud_cost_activity ...'
end
# resource path
local_var_path = '/api/v2/cost/enabled'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'CloudCostActivityResponse'

# auth_names
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]

new_options = opts.merge(
:operation => :get_cloud_cost_activity,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type,
:api_version => "V2"
)

data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cloud_cost_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Get Custom Costs file.
#
# @see #get_custom_costs_file_with_http_info
Expand Down
144 changes: 0 additions & 144 deletions lib/datadog_api_client/v2/models/cloud_cost_activity.rb

This file was deleted.

Loading
Loading