Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "d93d991",
"generated": "2025-07-15 09:31:41.973"
"spec_repo_commit": "7342b0d",
"generated": "2025-07-15 16:17:05.332"
}
3 changes: 3 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34316,13 +34316,16 @@ paths:
appKeyAuth: []
- AuthZ:
- synthetics_global_variable_read
- AuthZ:
- apm_api_catalog_read
summary: Get all global variables
tags:
- Synthetics
x-permission:
operator: OR
permissions:
- synthetics_global_variable_read
- apm_api_catalog_read
post:
description: Create a Synthetic global variable.
operationId: CreateGlobalVariable
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v1/api/synthetics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ def list_global_variables_with_http_info(opts = {})
return_type = opts[:debug_return_type] || 'SyntheticsListGlobalVariablesResponse'

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

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
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ, :AuthZ]
auth_names = opts[:debug_auth_names] || %i[apiKeyAuth appKeyAuth AuthZ AuthZ]
Consider using the %i syntax instead (...read more)

The rule "Prefer %i to the literal array syntax" is a guideline that encourages the use of the %i syntax for arrays of symbols. This is a part of the Ruby style guide that aims to promote conciseness and readability.

Symbols are immutable, reusable objects often used in Ruby instead of strings when the value does not need to be changed. When declaring an array of symbols, using the %i syntax can make your code cleaner and easier to read.

To adhere to this rule, instead of declaring an array of symbols using the literal array syntax like [:foo, :bar, :baz], use the %i syntax like %i[foo bar baz]. It's a good practice to consistently use %i for arrays of symbols as it enhances code readability and maintainability.

View in Datadog  Leave us feedback  Documentation


new_options = opts.merge(
:operation => :list_global_variables,
Expand Down
Loading