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
355 changes: 340 additions & 15 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:21.682Z
2026-04-22T20:15:48.773Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:23.134Z
2026-04-22T20:15:50.594Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-04-01T20:36:45.896Z
2026-04-22T20:15:51.642Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:23.896Z
2026-04-22T20:15:55.045Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:24.320Z
2026-04-22T20:15:56.395Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:24.940Z
2026-04-22T20:15:57.469Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-03-17T17:26:25.094Z
2026-04-22T20:15:57.687Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-04-01T20:36:50.944Z
2026-04-22T20:15:58.838Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List custom allocation rule statuses returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
p api_instance.list_custom_allocation_rules_status()
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List tag pipeline ruleset statuses returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
p api_instance.list_tag_pipelines_rulesets_status()
5 changes: 4 additions & 1 deletion examples/v2/feature-flags/ListFeatureFlags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new
p api_instance.list_feature_flags()
opts = {
limit: 10,
}
p api_instance.list_feature_flags(opts)
12 changes: 12 additions & 0 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,25 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/cloud-cost-management
Scenario: List custom allocation rule statuses returns "OK" response
Given new "ListCustomAllocationRulesStatus" request
When the request is sent
Then the response status is 200 OK

@replay-only @team:DataDog/cloud-cost-management
Scenario: List custom allocation rules returns "OK" response
Given new "ListCustomAllocationRules" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.rule_name" is equal to "example-arbitrary-cost-rule"

@generated @skip @team:DataDog/cloud-cost-management
Scenario: List tag pipeline ruleset statuses returns "OK" response
Given new "ListTagPipelinesRulesetsStatus" request
When the request is sent
Then the response status is 200 OK

@replay-only @team:DataDog/cloud-cost-management
Scenario: List tag pipeline rulesets returns "OK" response
Given new "ListTagPipelinesRulesets" request
Expand Down
1 change: 1 addition & 0 deletions features/v2/feature_flags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ Feature: Feature Flags
@team:DataDog/feature-flags
Scenario: List feature flags returns "OK" response
Given new "ListFeatureFlags" request
And request contains "limit" parameter with value 10
When the request is sent
Then the response status is 200 OK

Expand Down
12 changes: 12 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,12 @@
"type": "idempotent"
}
},
"ListCustomAllocationRulesStatus": {
"tag": "Cloud Cost Management",
"undo": {
"type": "safe"
}
},
"DeleteCustomAllocationRule": {
"tag": "Cloud Cost Management",
"undo": {
Expand Down Expand Up @@ -6703,6 +6709,12 @@
"type": "idempotent"
}
},
"ListTagPipelinesRulesetsStatus": {
"tag": "Cloud Cost Management",
"undo": {
"type": "safe"
}
},
"ValidateQuery": {
"tag": "Cloud Cost Management",
"undo": {
Expand Down
11 changes: 11 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,10 @@ def overrides
"v2.arbitrary_rule_response_data_attributes_strategy_based_on_costs_items" => "ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems",
"v2.arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items" => "ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems",
"v2.arbitrary_rule_response_data_type" => "ArbitraryRuleResponseDataType",
"v2.arbitrary_rule_status_response_array" => "ArbitraryRuleStatusResponseArray",
"v2.arbitrary_rule_status_response_data" => "ArbitraryRuleStatusResponseData",
"v2.arbitrary_rule_status_response_data_attributes" => "ArbitraryRuleStatusResponseDataAttributes",
"v2.arbitrary_rule_status_response_data_type" => "ArbitraryRuleStatusResponseDataType",
"v2.argument" => "Argument",
"v2.asana_access_token" => "AsanaAccessToken",
"v2.asana_access_token_type" => "AsanaAccessTokenType",
Expand Down Expand Up @@ -2705,6 +2709,9 @@ def overrides
"v2.feature_flag" => "FeatureFlag",
"v2.feature_flag_attributes" => "FeatureFlagAttributes",
"v2.feature_flag_environment" => "FeatureFlagEnvironment",
"v2.feature_flag_environment_list_item" => "FeatureFlagEnvironmentListItem",
"v2.feature_flag_list_item" => "FeatureFlagListItem",
"v2.feature_flag_list_item_attributes" => "FeatureFlagListItemAttributes",
"v2.feature_flag_response" => "FeatureFlagResponse",
"v2.feature_flags_pagination_meta" => "FeatureFlagsPaginationMeta",
"v2.feature_flags_pagination_meta_page" => "FeatureFlagsPaginationMetaPage",
Expand Down Expand Up @@ -4840,6 +4847,10 @@ def overrides
"v2.ruleset_resp_data_attributes_rules_items_reference_table" => "RulesetRespDataAttributesRulesItemsReferenceTable",
"v2.ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items" => "RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems",
"v2.ruleset_resp_data_type" => "RulesetRespDataType",
"v2.ruleset_status_resp_array" => "RulesetStatusRespArray",
"v2.ruleset_status_resp_data" => "RulesetStatusRespData",
"v2.ruleset_status_resp_data_attributes" => "RulesetStatusRespDataAttributes",
"v2.ruleset_status_resp_data_type" => "RulesetStatusRespDataType",
"v2.rule_severity" => "RuleSeverity",
"v2.rules_validate_query_request" => "RulesValidateQueryRequest",
"v2.rules_validate_query_request_data" => "RulesValidateQueryRequestData",
Expand Down
120 changes: 120 additions & 0 deletions lib/datadog_api_client/v2/api/cloud_cost_management_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,66 @@ def list_custom_allocation_rules_with_http_info(opts = {})
return data, status_code, headers
end

# List custom allocation rule statuses.
#
# @see #list_custom_allocation_rules_status_with_http_info
def list_custom_allocation_rules_status(opts = {})
data, _status_code, _headers = list_custom_allocation_rules_status_with_http_info(opts)
data
end

# List custom allocation rule statuses.
#
# List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule.
#
# @param opts [Hash] the optional parameters
# @return [Array<(ArbitraryRuleStatusResponseArray, Integer, Hash)>] ArbitraryRuleStatusResponseArray data, response status code and response headers
def list_custom_allocation_rules_status_with_http_info(opts = {})

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

# 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] || 'ArbitraryRuleStatusResponseArray'

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

new_options = opts.merge(
:operation => :list_custom_allocation_rules_status,
: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#list_custom_allocation_rules_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# List Custom Costs files.
#
# @see #list_custom_costs_files_with_http_info
Expand Down Expand Up @@ -1773,6 +1833,66 @@ def list_tag_pipelines_rulesets_with_http_info(opts = {})
return data, status_code, headers
end

# List tag pipeline ruleset statuses.
#
# @see #list_tag_pipelines_rulesets_status_with_http_info
def list_tag_pipelines_rulesets_status(opts = {})
data, _status_code, _headers = list_tag_pipelines_rulesets_status_with_http_info(opts)
data
end

# List tag pipeline ruleset statuses.
#
# List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset.
#
# @param opts [Hash] the optional parameters
# @return [Array<(RulesetStatusRespArray, Integer, Hash)>] RulesetStatusRespArray data, response status code and response headers
def list_tag_pipelines_rulesets_status_with_http_info(opts = {})

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_tag_pipelines_rulesets_status ...'
end
# resource path
local_var_path = '/api/v2/tags/enrichment/status'

# 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] || 'RulesetStatusRespArray'

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

new_options = opts.merge(
:operation => :list_tag_pipelines_rulesets_status,
: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#list_tag_pipelines_rulesets_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Reorder custom allocation rules.
#
# @see #reorder_custom_allocation_rules_with_http_info
Expand Down
Loading
Loading