Skip to content
Open
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
5 changes: 1 addition & 4 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -767,14 +767,11 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@team:ddoghq/cloud-cost-management
@generated @skip @team:ddoghq/cloud-cost-management
Scenario: List Cloud Cost Management cloud accounts returns "Bad Request" response
Given new "ListCostCloudAccountsV2" request
And request contains "filter[cloud]" parameter with value "gcp"
When the request is sent
Then the response status is 400 Bad Request
And the response "errors[0].status" is equal to "400"
And the response "errors[0].detail" is equal to "attribute \"filter[cloud]\" must be one of: oci, aws_cur2"

@team:ddoghq/cloud-cost-management
Scenario: List Cloud Cost Management cloud accounts returns "OK" response
Expand Down
7 changes: 0 additions & 7 deletions generated-test/test-runner-data/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4151,13 +4151,6 @@
"scenario": "List Cloud Cost Management Azure configs returns \"OK\" response",
"version": "v2"
},
{
"feature": "Cloud Cost Management",
"feature_file": "../../features/v2/cloud_cost_management.feature",
"file": "v2/cloud-cost-management/list-cloud-cost-management-cloud-accounts-returns-bad-request-response.json",
"scenario": "List Cloud Cost Management cloud accounts returns \"Bad Request\" response",
"version": "v2"
},
{
"feature": "Cloud Cost Management",
"feature_file": "../../features/v2/cloud_cost_management.feature",
Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions generated-test/test-server-data/v2/cloud-cost-management.json
Original file line number Diff line number Diff line change
Expand Up @@ -1108,42 +1108,6 @@
"scenario": "List Cloud Cost Management Azure configs returns \"OK\" response",
"version": "v2"
},
{
"feature": "Cloud Cost Management",
"frozen_at": "2026-09-28T21:36:23.736Z",
"interactions": [
{
"request": {
"body": {
"type": "empty",
"value": null
},
"content_type": "",
"method": "GET",
"path": "/api/v2/cost/cloud_accounts",
"query": [
[
"filter[cloud]",
"gcp"
]
]
},
"response": {
"body": {
"encoding": "text",
"value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"attribute \\\"filter[cloud]\\\" must be one of: oci, aws_cur2\"}]}"
},
"headers": {
"content-type": "application/vnd.api+json"
},
"reason": "Bad Request",
"status": 400
}
}
],
"scenario": "List Cloud Cost Management cloud accounts returns \"Bad Request\" response",
"version": "v2"
},
{
"feature": "Cloud Cost Management",
"frozen_at": "2026-09-28T21:36:24.451Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3204,7 +3204,7 @@ def list_cost_cloud_accounts_v2_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_cloud_accounts_v2 ...'
end
pattern = Regexp.new("^([oO][cC][iI]|[aA][wW][sS]_[cC][uU][rR]2)?(?![\s\S])")
pattern = Regexp.new('^([oO][cC][iI]|[aA][wW][sS]_[cC][uU][rR]2)?(?![\\s\\S])')
if @api_client.config.client_side_validation && !opts[:'filter_cloud'].nil? && opts[:'filter_cloud'] !~ pattern
fail ArgumentError, "invalid value for 'opts[:\"filter_cloud\"]' when calling CloudCostManagementAPI.list_cost_cloud_accounts_v2, must conform to the pattern #{pattern}."
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/api/fleet_automation_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def get_fleet_agent_detail_v2_with_http_info(agent_key, opts = {})
if @api_client.config.client_side_validation && agent_key.nil?
fail ArgumentError, "Missing the required parameter 'agent_key' when calling FleetAutomationAPI.get_fleet_agent_detail_v2"
end
pattern = Regexp.new("^[0-9a-f]{32}$")
pattern = Regexp.new('^[0-9a-f]{32}$')
if @api_client.config.client_side_validation && agent_key !~ pattern
fail ArgumentError, "invalid value for 'agent_key' when calling FleetAutomationAPI.get_fleet_agent_detail_v2, must conform to the pattern #{pattern}."
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if @day.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
return false if @day !~ pattern
return false if @is_active.nil?
return false if @tools.nil?
return false if @tools.length < 1
return false if @user_email.nil?
pattern = Regexp.new(/^[^@]+@[^@.]+(?:\.[^@.]+)+$/)
pattern = Regexp.new('^[^@]+@[^@.]+(?:\\.[^@.]+)+$')
return false if @user_email !~ pattern
true
end
Expand All @@ -129,7 +129,7 @@ def day=(day)
if day.nil?
fail ArgumentError, 'invalid value for "day", day cannot be nil.'
end
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
if day !~ pattern
fail ArgumentError, "invalid value for \"day\", must conform to the pattern #{pattern}."
end
Expand Down Expand Up @@ -166,7 +166,7 @@ def user_email=(user_email)
if user_email.nil?
fail ArgumentError, 'invalid value for "user_email", user_email cannot be nil.'
end
pattern = Regexp.new(/^[^@]+@[^@.]+(?:\.[^@.]+)+$/)
pattern = Regexp.new('^[^@]+@[^@.]+(?:\\.[^@.]+)+$')
if user_email !~ pattern
fail ArgumentError, "invalid value for \"user_email\", must conform to the pattern #{pattern}."
end
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/aws_assume_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if @account_id.nil?
pattern = Regexp.new(/^\d{12}$/)
pattern = Regexp.new('^\\d{12}$')
return false if @account_id !~ pattern
return false if @role.nil?
return false if @type.nil?
Expand All @@ -120,7 +120,7 @@ def account_id=(account_id)
if account_id.nil?
fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.'
end
pattern = Regexp.new(/^\d{12}$/)
pattern = Regexp.new('^\\d{12}$')
if account_id !~ pattern
fail ArgumentError, "invalid value for \"account_id\", must conform to the pattern #{pattern}."
end
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/aws_assume_role_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
pattern = Regexp.new(/^\d{12}$/)
pattern = Regexp.new('^\\d{12}$')
return false if !@account_id.nil? && @account_id !~ pattern
return false if @type.nil?
true
Expand All @@ -106,7 +106,7 @@ def valid?
# @param account_id [Object] Object to be assigned
# @!visibility private
def account_id=(account_id)
pattern = Regexp.new(/^\d{12}$/)
pattern = Regexp.new('^\\d{12}$')
if !account_id.nil? && account_id !~ pattern
fail ArgumentError, "invalid value for \"account_id\", must conform to the pattern #{pattern}."
end
Expand Down
12 changes: 6 additions & 6 deletions lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ def valid?
return false if @account_id.nil?
return false if @bucket_name.nil?
return false if @bucket_region.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@created_at.nil? && @created_at !~ pattern
return false if !@months.nil? && @months > 36
return false if @report_name.nil?
return false if @report_prefix.nil?
return false if @status.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@status_updated_at.nil? && @status_updated_at !~ pattern
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@updated_at.nil? && @updated_at !~ pattern
true
end
Expand Down Expand Up @@ -228,7 +228,7 @@ def bucket_region=(bucket_region)
# @param created_at [Object] Object to be assigned
# @!visibility private
def created_at=(created_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !created_at.nil? && created_at !~ pattern
fail ArgumentError, "invalid value for \"created_at\", must conform to the pattern #{pattern}."
end
Expand Down Expand Up @@ -279,7 +279,7 @@ def status=(status)
# @param status_updated_at [Object] Object to be assigned
# @!visibility private
def status_updated_at=(status_updated_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !status_updated_at.nil? && status_updated_at !~ pattern
fail ArgumentError, "invalid value for \"status_updated_at\", must conform to the pattern #{pattern}."
end
Expand All @@ -290,7 +290,7 @@ def status_updated_at=(status_updated_at)
# @param updated_at [Object] Object to be assigned
# @!visibility private
def updated_at=(updated_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !updated_at.nil? && updated_at !~ pattern
fail ArgumentError, "invalid value for \"updated_at\", must conform to the pattern #{pattern}."
end
Expand Down
12 changes: 6 additions & 6 deletions lib/datadog_api_client/v2/models/azure_uc_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,19 @@ def initialize(attributes = {})
def valid?
return false if @account_id.nil?
return false if @client_id.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@created_at.nil? && @created_at !~ pattern
return false if @dataset_type.nil?
return false if @export_name.nil?
return false if @export_path.nil?
return false if !@months.nil? && @months > 36
return false if @scope.nil?
return false if @status.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@status_updated_at.nil? && @status_updated_at !~ pattern
return false if @storage_account.nil?
return false if @storage_container.nil?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
return false if !@updated_at.nil? && @updated_at !~ pattern
true
end
Expand Down Expand Up @@ -248,7 +248,7 @@ def client_id=(client_id)
# @param created_at [Object] Object to be assigned
# @!visibility private
def created_at=(created_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !created_at.nil? && created_at !~ pattern
fail ArgumentError, "invalid value for \"created_at\", must conform to the pattern #{pattern}."
end
Expand Down Expand Up @@ -319,7 +319,7 @@ def status=(status)
# @param status_updated_at [Object] Object to be assigned
# @!visibility private
def status_updated_at=(status_updated_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !status_updated_at.nil? && status_updated_at !~ pattern
fail ArgumentError, "invalid value for \"status_updated_at\", must conform to the pattern #{pattern}."
end
Expand Down Expand Up @@ -350,7 +350,7 @@ def storage_container=(storage_container)
# @param updated_at [Object] Object to be assigned
# @!visibility private
def updated_at=(updated_at)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}$')
if !updated_at.nil? && updated_at !~ pattern
fail ArgumentError, "invalid value for \"updated_at\", must conform to the pattern #{pattern}."
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def valid?
return false if @name.nil?
return false if @name.to_s.length > 128
return false if @name.to_s.length < 1
pattern = Regexp.new(/.*\S.*/)
pattern = Regexp.new('.*\\S.*')
return false if @name !~ pattern
return false if @type.nil?
true
Expand All @@ -96,7 +96,7 @@ def name=(name)
if name.to_s.length < 1
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
end
pattern = Regexp.new(/.*\S.*/)
pattern = Regexp.new('.*\\S.*')
if name !~ pattern
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
end
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/ci_app_git_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def valid?
return false if @author_email.nil?
return false if @repository_url.nil?
return false if @sha.nil?
pattern = Regexp.new(/^[a-fA-F0-9]{40}$/)
pattern = Regexp.new('^[a-fA-F0-9]{40}$')
return false if @sha !~ pattern
true
end
Expand Down Expand Up @@ -220,7 +220,7 @@ def sha=(sha)
if sha.nil?
fail ArgumentError, 'invalid value for "sha", sha cannot be nil.'
end
pattern = Regexp.new(/^[a-fA-F0-9]{40}$/)
pattern = Regexp.new('^[a-fA-F0-9]{40}$')
if sha !~ pattern
fail ArgumentError, "invalid value for \"sha\", must conform to the pattern #{pattern}."
end
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/ci_log_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def valid?
return false if @pipeline_unique_id.nil?
return false if @pipeline_unique_id.to_s.length < 1
return false if !@provider_name.nil? && @provider_name.to_s.length < 1
pattern = Regexp.new(/^[^,]+$/)
pattern = Regexp.new('^[^,]+$')
return false if !@provider_name.nil? && @provider_name !~ pattern
true
end
Expand Down Expand Up @@ -219,7 +219,7 @@ def provider_name=(provider_name)
if !provider_name.nil? && provider_name.to_s.length < 1
fail ArgumentError, 'invalid value for "provider_name", the character length must be great than or equal to 1.'
end
pattern = Regexp.new(/^[^,]+$/)
pattern = Regexp.new('^[^,]+$')
if !provider_name.nil? && provider_name !~ pattern
fail ArgumentError, "invalid value for \"provider_name\", must conform to the pattern #{pattern}."
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if @commit_sha.nil?
pattern = Regexp.new(/^[a-fA-F0-9]{40}$/)
pattern = Regexp.new('^[a-fA-F0-9]{40}$')
return false if @commit_sha !~ pattern
return false if !@repository_id.nil? && @repository_id.to_s.length < 1
return false if !@repository_url.nil? && @repository_url.to_s.length < 1
Expand All @@ -102,7 +102,7 @@ def commit_sha=(commit_sha)
if commit_sha.nil?
fail ArgumentError, 'invalid value for "commit_sha", commit_sha cannot be nil.'
end
pattern = Regexp.new(/^[a-fA-F0-9]{40}$/)
pattern = Regexp.new('^[a-fA-F0-9]{40}$')
if commit_sha !~ pattern
fail ArgumentError, "invalid value for \"commit_sha\", must conform to the pattern #{pattern}."
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
return false if !@charge_period_end.nil? && @charge_period_end !~ pattern
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
return false if !@charge_period_start.nil? && @charge_period_start !~ pattern
true
end
Expand All @@ -134,7 +134,7 @@ def valid?
# @param charge_period_end [Object] Object to be assigned
# @!visibility private
def charge_period_end=(charge_period_end)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
if !charge_period_end.nil? && charge_period_end !~ pattern
fail ArgumentError, "invalid value for \"charge_period_end\", must conform to the pattern #{pattern}."
end
Expand All @@ -145,7 +145,7 @@ def charge_period_end=(charge_period_end)
# @param charge_period_start [Object] Object to be assigned
# @!visibility private
def charge_period_start=(charge_period_start)
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}$/)
pattern = Regexp.new('^\\d{4}-\\d{2}-\\d{2}$')
if !charge_period_start.nil? && charge_period_start !~ pattern
fail ArgumentError, "invalid value for \"charge_period_start\", must conform to the pattern #{pattern}."
end
Expand Down
Loading
Loading