-
Notifications
You must be signed in to change notification settings - Fork 22
Add support for multi form parameter support #2028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
api-clients-generation-pipeline
merged 9 commits into
master
from
datadog-api-spec/generated/3157
Nov 4, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d779806
mult form parameter support
amaskara-dd f2529f2
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] e8ee758
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] 5f977dd
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] 6825d1e
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] 5169ced
only add non rails for some apis
amaskara-dd 961809f
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] c6351fb
Merge master into datadog-api-spec/test/sherz/test
api-clients-generation-pipeline[bot] d028084
Regenerate client from commit aeb956c4 of spec repo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...urity_monitoring/List-findings-with-detection-type-query-param-returns-OK-response.frozen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 2024-10-21T20:05:58.636Z |
20 changes: 20 additions & 0 deletions
20
...security_monitoring/List-findings-with-detection-type-query-param-returns-OK-response.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
examples/v2/security-monitoring/ListFindings_1668290866.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # List findings with detection_type query param returns "OK" response | ||
|
|
||
| require "datadog_api_client" | ||
| DatadogAPIClient.configure do |config| | ||
| config.unstable_operations["v2.list_findings".to_sym] = true | ||
| end | ||
| api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new | ||
| opts = { | ||
| filter_vulnerability_type: [ | ||
| FindingVulnerabilityType::MISCONFIGURATION, | ||
| FindingVulnerabilityType::ATTACK_PATH, | ||
| ], | ||
| } | ||
| p api_instance.list_findings(opts) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ Code Quality Violation
Consider using the %i syntax instead (...read more)
The rule "Prefer
%ito the literal array syntax" is a guideline that encourages the use of the%isyntax 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
%isyntax 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%isyntax like%i[foo bar baz]. It's a good practice to consistently use%ifor arrays of symbols as it enhances code readability and maintainability.