-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 89d2bdc8 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jan 14, 2025
1 parent
a479276
commit b0709b6
Showing
14 changed files
with
1,318 additions
and
203 deletions.
There are no files selected for viewing
This file contains 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 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 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,24 @@ | ||
# Create a custom framework returns "OK" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new | ||
|
||
body = DatadogAPIClient::V2::CreateCustomFrameworkRequest.new({ | ||
handle: "", | ||
name: "", | ||
requirements: [ | ||
DatadogAPIClient::V2::FrameworkRequirement.new({ | ||
controls: [ | ||
DatadogAPIClient::V2::FrameworkControl.new({ | ||
name: "", | ||
rule_ids: [ | ||
"", | ||
], | ||
}), | ||
], | ||
name: "", | ||
}), | ||
], | ||
version: "", | ||
}) | ||
p api_instance.create_custom_framework(body) |
This file contains 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,24 @@ | ||
# Update a custom framework returns "OK" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new | ||
|
||
body = DatadogAPIClient::V2::UpdateCustomFrameworkRequest.new({ | ||
handle: "", | ||
name: "", | ||
requirements: [ | ||
DatadogAPIClient::V2::FrameworkRequirement.new({ | ||
controls: [ | ||
DatadogAPIClient::V2::FrameworkControl.new({ | ||
name: "", | ||
rule_ids: [ | ||
"", | ||
], | ||
}), | ||
], | ||
name: "", | ||
}), | ||
], | ||
version: "", | ||
}) | ||
p api_instance.update_custom_framework("handle", "version", body) |
Oops, something went wrong.