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
33 changes: 33 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7731,6 +7731,10 @@ components:
AwsScanOptionsAttributes:
description: Attributes for the AWS scan options.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7751,6 +7755,10 @@ components:
AwsScanOptionsCreateAttributes:
description: Attributes for the AWS scan options to create.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7768,6 +7776,7 @@ components:
example: true
type: boolean
required:
- compliance_host
- lambda
- sensitive_data
- vuln_containers_os
Expand Down Expand Up @@ -7833,6 +7842,10 @@ components:
AwsScanOptionsUpdateAttributes:
description: Attributes for the AWS scan options to update.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand Down Expand Up @@ -7914,6 +7927,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand All @@ -7927,6 +7941,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -7958,6 +7973,9 @@ components:
AzureScanOptionsDataAttributes:
description: Attributes for Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -8002,6 +8020,9 @@ components:
AzureScanOptionsInputUpdateDataAttributes:
description: Attributes for updating Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -30081,6 +30102,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand All @@ -30094,6 +30116,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down Expand Up @@ -30125,6 +30148,9 @@ components:
GcpScanOptionsDataAttributes:
description: Attributes for GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -30169,6 +30195,9 @@ components:
GcpScanOptionsInputUpdateDataAttributes:
description: Attributes for updating GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -85870,6 +85899,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -85967,6 +85997,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -86028,6 +86059,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -86186,6 +86218,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-23T22:21:54.335Z
2026-04-28T07:51:17.007Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-23T22:21:54.694Z
2026-04-28T07:51:17.457Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/v2/agentless-scanning/CreateAwsScanOptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
id: "000000000003",
type: DatadogAPIClient::V2::AwsScanOptionsType::AWS_SCAN_OPTIONS,
attributes: DatadogAPIClient::V2::AwsScanOptionsCreateAttributes.new({
compliance_host: true,
lambda: true,
sensitive_data: false,
vuln_containers_os: true,
Expand Down
6 changes: 3 additions & 3 deletions features/v2/agentless_scanning.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ Feature: Agentless Scanning
@skip @team:DataDog/k9-agentless
Scenario: Create AWS scan options returns "Agentless scan options enabled successfully." response
Given new "CreateAwsScanOptions" request
And body with value {"data": {"id": "000000000003", "type": "aws_scan_options", "attributes": {"lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
And body with value {"data": {"id": "000000000003", "type": "aws_scan_options", "attributes": {"compliance_host": true, "lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
When the request is sent
Then the response status is 201 Created

@team:DataDog/k9-agentless
Scenario: Create AWS scan options returns "Bad Request" response
Given new "CreateAwsScanOptions" request
And body with value {"data": {"id": "123", "type": "aws_scan_options", "attributes": {"lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
And body with value {"data": {"id": "123", "type": "aws_scan_options", "attributes": {"compliance_host": true, "lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/k9-agentless
Scenario: Create AWS scan options returns "Conflict" response
Given new "CreateAwsScanOptions" request
And body with value {"data":{"type":"aws_scan_options","id":"000000000002","attributes":{"vuln_host_os":true,"vuln_containers_os":true,"sensitive_data":false,"lambda":false}}}
And body with value {"data":{"type":"aws_scan_options","id":"000000000002","attributes":{"compliance_host":true,"vuln_host_os":true,"vuln_containers_os":true,"sensitive_data":false,"lambda":false}}}
When the request is sent
Then the response status is 409 Conflict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class AwsScanOptionsAttributes
include BaseGenericModel

# Indicates whether host compliance scanning is enabled.
attr_accessor :compliance_host

# Indicates if scanning of Lambda functions is enabled.
attr_accessor :lambda

Expand All @@ -39,6 +42,7 @@ class AwsScanOptionsAttributes
# @!visibility private
def self.attribute_map
{
:'compliance_host' => :'compliance_host',
:'lambda' => :'lambda',
:'sensitive_data' => :'sensitive_data',
:'vuln_containers_os' => :'vuln_containers_os',
Expand All @@ -50,6 +54,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'compliance_host' => :'Boolean',
:'lambda' => :'Boolean',
:'sensitive_data' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
Expand All @@ -75,6 +80,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'compliance_host')
self.compliance_host = attributes[:'compliance_host']
end

if attributes.key?(:'lambda')
self.lambda = attributes[:'lambda']
end
Expand Down Expand Up @@ -118,6 +127,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
compliance_host == o.compliance_host &&
lambda == o.lambda &&
sensitive_data == o.sensitive_data &&
vuln_containers_os == o.vuln_containers_os &&
Expand All @@ -129,7 +139,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class AwsScanOptionsCreateAttributes
include BaseGenericModel

# Indicates whether host compliance scanning is enabled.
attr_reader :compliance_host

# Indicates if scanning of Lambda functions is enabled.
attr_reader :lambda

Expand All @@ -39,6 +42,7 @@ class AwsScanOptionsCreateAttributes
# @!visibility private
def self.attribute_map
{
:'compliance_host' => :'compliance_host',
:'lambda' => :'lambda',
:'sensitive_data' => :'sensitive_data',
:'vuln_containers_os' => :'vuln_containers_os',
Expand All @@ -50,6 +54,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'compliance_host' => :'Boolean',
:'lambda' => :'Boolean',
:'sensitive_data' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
Expand All @@ -75,6 +80,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'compliance_host')
self.compliance_host = attributes[:'compliance_host']
end

if attributes.key?(:'lambda')
self.lambda = attributes[:'lambda']
end
Expand All @@ -96,13 +105,24 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @compliance_host.nil?
return false if @lambda.nil?
return false if @sensitive_data.nil?
return false if @vuln_containers_os.nil?
return false if @vuln_host_os.nil?
true
end

# Custom attribute writer method with validation
# @param compliance_host [Object] Object to be assigned
# @!visibility private
def compliance_host=(compliance_host)
if compliance_host.nil?
fail ArgumentError, 'invalid value for "compliance_host", compliance_host cannot be nil.'
end
@compliance_host = compliance_host
end

# Custom attribute writer method with validation
# @param lambda [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -169,6 +189,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
compliance_host == o.compliance_host &&
lambda == o.lambda &&
sensitive_data == o.sensitive_data &&
vuln_containers_os == o.vuln_containers_os &&
Expand All @@ -180,7 +201,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class AwsScanOptionsUpdateAttributes
include BaseGenericModel

# Indicates whether host compliance scanning is enabled.
attr_accessor :compliance_host

# Indicates if scanning of Lambda functions is enabled.
attr_accessor :lambda

Expand All @@ -39,6 +42,7 @@ class AwsScanOptionsUpdateAttributes
# @!visibility private
def self.attribute_map
{
:'compliance_host' => :'compliance_host',
:'lambda' => :'lambda',
:'sensitive_data' => :'sensitive_data',
:'vuln_containers_os' => :'vuln_containers_os',
Expand All @@ -50,6 +54,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'compliance_host' => :'Boolean',
:'lambda' => :'Boolean',
:'sensitive_data' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
Expand All @@ -75,6 +80,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'compliance_host')
self.compliance_host = attributes[:'compliance_host']
end

if attributes.key?(:'lambda')
self.lambda = attributes[:'lambda']
end
Expand Down Expand Up @@ -118,6 +127,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
compliance_host == o.compliance_host &&
lambda == o.lambda &&
sensitive_data == o.sensitive_data &&
vuln_containers_os == o.vuln_containers_os &&
Expand All @@ -129,7 +139,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
end
end
end
Loading
Loading