-
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 1920836f of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jan 8, 2025
1 parent
fdc8194
commit 1c031ac
Showing
13 changed files
with
610 additions
and
4 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
1 change: 1 addition & 0 deletions
1
cassettes/features/v2/agentless_scanning/Get-AWS-Scan-Options-returns-OK-response.frozen
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 @@ | ||
2024-12-18T15:40:11.636Z |
20 changes: 20 additions & 0 deletions
20
cassettes/features/v2/agentless_scanning/Get-AWS-Scan-Options-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.
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,5 @@ | ||
# Get AWS Scan Options returns "OK" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new | ||
p api_instance.list_aws_scan_options() |
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,16 @@ | ||
@endpoint(agentless-scanning) @endpoint(agentless-scanning-v2) | ||
Feature: Agentless Scanning | ||
Datadog Agentless Scanning provides visibility into risks and | ||
vulnerabilities within your hosts, running containers, and serverless | ||
functions—all without requiring teams to install Agents on every host or | ||
where Agents cannot be installed. Go to | ||
https://www.datadoghq.com/blog/agentless-scanning/ to learn more | ||
|
||
@team:DataDog/k9-cloud-security-platform | ||
Scenario: Get AWS Scan Options returns "OK" response | ||
Given a valid "apiKeyAuth" key in the system | ||
And a valid "appKeyAuth" key in the system | ||
And an instance of "AgentlessScanning" API | ||
And new "ListAwsScanOptions" request | ||
When the request is sent | ||
Then the response status is 200 OK |
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,86 @@ | ||
=begin | ||
#Datadog API V2 Collection | ||
#Collection of all Datadog Public endpoints. | ||
The version of the OpenAPI document: 1.0 | ||
Contact: [email protected] | ||
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator | ||
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
Copyright 2020-Present Datadog, Inc. | ||
=end | ||
|
||
require 'cgi' | ||
|
||
module DatadogAPIClient::V2 | ||
class AgentlessScanningAPI | ||
attr_accessor :api_client | ||
|
||
def initialize(api_client = DatadogAPIClient::APIClient.default) | ||
@api_client = api_client | ||
end | ||
|
||
# Get AWS Scan Options. | ||
# | ||
# @see #list_aws_scan_options_with_http_info | ||
def list_aws_scan_options(opts = {}) | ||
data, _status_code, _headers = list_aws_scan_options_with_http_info(opts) | ||
data | ||
end | ||
|
||
# Get AWS Scan Options. | ||
# | ||
# Fetches the scan options configured for AWS accounts. | ||
# | ||
# @param opts [Hash] the optional parameters | ||
# @return [Array<(AwsScanOptionsResponse, Integer, Hash)>] AwsScanOptionsResponse data, response status code and response headers | ||
def list_aws_scan_options_with_http_info(opts = {}) | ||
|
||
if @api_client.config.debugging | ||
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.list_aws_scan_options ...' | ||
end | ||
# resource path | ||
local_var_path = '/api/v2/agentless_scanning/accounts/aws' | ||
|
||
# query parameters | ||
query_params = opts[:query_params] || {} | ||
|
||
# header parameters | ||
header_params = opts[:header_params] || {} | ||
# HTTP header 'Accept' (if needed) | ||
header_params['Accept'] = @api_client.select_header_accept(['application/json']) | ||
|
||
# form parameters | ||
form_params = opts[:form_params] || {} | ||
|
||
# http body (model) | ||
post_body = opts[:debug_body] | ||
|
||
# return_type | ||
return_type = opts[:debug_return_type] || 'AwsScanOptionsResponse' | ||
|
||
# auth_names | ||
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] | ||
|
||
new_options = opts.merge( | ||
:operation => :list_aws_scan_options, | ||
:header_params => header_params, | ||
:query_params => query_params, | ||
:form_params => form_params, | ||
:body => post_body, | ||
:auth_names => auth_names, | ||
:return_type => return_type, | ||
:api_version => "V2" | ||
) | ||
|
||
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) | ||
if @api_client.config.debugging | ||
@api_client.config.logger.debug "API called: AgentlessScanningAPI#list_aws_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" | ||
end | ||
return data, status_code, headers | ||
end | ||
end | ||
end |
Oops, something went wrong.