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": "2025-03-10 19:35:53.803678",
"spec_repo_commit": "7d0b49f6"
"regenerated": "2025-03-11 13:16:50.144910",
"spec_repo_commit": "d7618fa5"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-10 19:35:53.819390",
"spec_repo_commit": "7d0b49f6"
"regenerated": "2025-03-11 13:16:50.165212",
"spec_repo_commit": "d7618fa5"
}
}
}
4 changes: 0 additions & 4 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28773,10 +28773,6 @@ paths:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsIndex'
description: OK
'403':
content:
Expand Down
10 changes: 5 additions & 5 deletions lib/datadog_api_client/v1/api/logs_indexes_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def create_logs_index_with_http_info(body, opts = {})
#
# @see #delete_logs_index_with_http_info
def delete_logs_index(name, opts = {})
data, _status_code, _headers = delete_logs_index_with_http_info(name, opts)
data
delete_logs_index_with_http_info(name, opts)
nil
end

# Delete an index.
Expand All @@ -105,7 +105,7 @@ def delete_logs_index(name, opts = {})
#
# @param name [String] Name of the log index.
# @param opts [Hash] the optional parameters
# @return [Array<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def delete_logs_index_with_http_info(name, opts = {})

if @api_client.config.debugging
Expand All @@ -124,7 +124,7 @@ def delete_logs_index_with_http_info(name, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
header_params['Accept'] = @api_client.select_header_accept(['*/*'])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Quality Violation

Suggested change
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
header_params['Accept'] = @api_client.select_header_accept(%w[*/*])
Consider using the %w syntax instead (...read more)

The rule "Prefer %w to the literal array syntax" is a Ruby style guideline that encourages the use of %w notation instead of the traditional array syntax when defining arrays of strings. This rule is part of the Ruby community's efforts to promote readability and simplicity in Ruby code.

This rule is important because it helps to keep the code concise and easy to read. The %w notation allows you to define an array of strings without having to use quotes and commas. This can make the code cleaner and easier to understand, especially when dealing with large arrays.

To follow this rule, replace the traditional array syntax with the %w notation. For example, instead of writing ['foo', 'bar', 'baz'], you should write %w[foo bar baz]. This will create the same array, but in a more readable and concise way. By following this rule, you can help to make your Ruby code cleaner and easier to understand.

View in Datadog  Leave us feedback  Documentation


# form parameters
form_params = opts[:form_params] || {}
Expand All @@ -133,7 +133,7 @@ def delete_logs_index_with_http_info(name, opts = {})
post_body = opts[:debug_body]

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

# auth_names
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
Expand Down
Loading