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
16 changes: 16 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12638,6 +12638,7 @@ components:
data:
attributes:
compliance_host: false
function: true
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand All @@ -12652,6 +12653,7 @@ components:
data:
- attributes:
compliance_host: false
function: true
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -12686,6 +12688,9 @@ components:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
function:
description: Indicates if scanning of Azure Functions is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -12733,6 +12738,9 @@ components:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
function:
description: Indicates if scanning of Azure Functions is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -40828,6 +40836,7 @@ components:
example:
data:
attributes:
cloud_function: true
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
Expand All @@ -40842,6 +40851,7 @@ components:
example:
data:
- attributes:
cloud_function: true
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
Expand Down Expand Up @@ -40874,6 +40884,9 @@ components:
GcpScanOptionsDataAttributes:
description: Attributes for GCP scan options configuration.
properties:
cloud_function:
description: Indicates if scanning of Cloud Functions is enabled.
type: boolean
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
Expand Down Expand Up @@ -40921,6 +40934,9 @@ components:
GcpScanOptionsInputUpdateDataAttributes:
description: Attributes for updating GCP scan options configuration.
properties:
cloud_function:
description: Indicates if scanning of Cloud Functions is enabled.
type: boolean
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-23T22:21:55.015Z
2026-07-17T06:38:46.211Z

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:55.656Z
2026-07-17T06:38:47.064Z

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:22:02.253Z
2026-07-17T06:38:47.452Z

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/CreateAzureScanOptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
body = DatadogAPIClient::V2::AzureScanOptions.new({
data: DatadogAPIClient::V2::AzureScanOptionsData.new({
attributes: DatadogAPIClient::V2::AzureScanOptionsDataAttributes.new({
function: true,
vuln_containers_os: true,
vuln_host_os: true,
}),
Expand Down
1 change: 1 addition & 0 deletions examples/v2/agentless-scanning/CreateGcpScanOptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
id: "new-project",
type: DatadogAPIClient::V2::GcpScanOptionsDataType::GCP_SCAN_OPTIONS,
attributes: DatadogAPIClient::V2::GcpScanOptionsDataAttributes.new({
cloud_function: true,
vuln_host_os: true,
vuln_containers_os: true,
}),
Expand Down
1 change: 1 addition & 0 deletions examples/v2/agentless-scanning/UpdateGcpScanOptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
id: "api-spec-test",
type: DatadogAPIClient::V2::GcpScanOptionsInputUpdateDataType::GCP_SCAN_OPTIONS,
attributes: DatadogAPIClient::V2::GcpScanOptionsInputUpdateDataAttributes.new({
cloud_function: true,
vuln_containers_os: false,
}),
}),
Expand Down
9 changes: 6 additions & 3 deletions features/v2/agentless_scanning.feature
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ Feature: Agentless Scanning
@skip-validation @team:DataDog/k9-agentless
Scenario: Create Azure scan options returns "Created" response
Given new "CreateAzureScanOptions" request
And body with value {"data": {"attributes": {"vuln_containers_os": true, "vuln_host_os": true}, "id": "12345678-90ab-cdef-1234-567890abcdef", "type": "azure_scan_options"}}
And body with value {"data": {"attributes": {"function": true, "vuln_containers_os": true, "vuln_host_os": true}, "id": "12345678-90ab-cdef-1234-567890abcdef", "type": "azure_scan_options"}}
When the request is sent
Then the response status is 201 Created
And the response "data.attributes.function" is equal to true

@team:DataDog/k9-agentless
Scenario: Create GCP scan options returns "Agentless scan options enabled successfully." response
Given new "CreateGcpScanOptions" request
And body with value {"data": {"id": "new-project", "type": "gcp_scan_options", "attributes": {"vuln_host_os": true, "vuln_containers_os": true}}}
And body with value {"data": {"id": "new-project", "type": "gcp_scan_options", "attributes": {"cloud_function": true, "vuln_host_os": true, "vuln_containers_os": true}}}
When the request is sent
Then the response status is 201 Created
And the response "data.attributes.cloud_function" is equal to true

@team:DataDog/k9-agentless
Scenario: Create GCP scan options returns "Bad Request" response
Expand Down Expand Up @@ -301,9 +303,10 @@ Feature: Agentless Scanning
Scenario: Update GCP scan options returns "OK" response
Given new "UpdateGcpScanOptions" request
And request contains "project_id" parameter with value "api-spec-test"
And body with value {"data": {"id": "api-spec-test", "type": "gcp_scan_options", "attributes": {"vuln_containers_os": false}}}
And body with value {"data": {"id": "api-spec-test", "type": "gcp_scan_options", "attributes": {"cloud_function": true, "vuln_containers_os": false}}}
When the request is sent
Then the response status is 200 OK
And the response "data.id" is equal to "api-spec-test"
And the response "data.attributes.vuln_host_os" is equal to true
And the response "data.attributes.vuln_containers_os" is equal to false
And the response "data.attributes.cloud_function" is equal to true
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class AzureScanOptionsDataAttributes
# Indicates whether host compliance scanning is enabled.
attr_accessor :compliance_host

# Indicates if scanning of Azure Functions is enabled.
attr_accessor :function

# Indicates if scanning for vulnerabilities in containers is enabled.
attr_accessor :vuln_containers_os

Expand All @@ -37,6 +40,7 @@ class AzureScanOptionsDataAttributes
def self.attribute_map
{
:'compliance_host' => :'compliance_host',
:'function' => :'function',
:'vuln_containers_os' => :'vuln_containers_os',
:'vuln_host_os' => :'vuln_host_os'
}
Expand All @@ -47,6 +51,7 @@ def self.attribute_map
def self.openapi_types
{
:'compliance_host' => :'Boolean',
:'function' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
:'vuln_host_os' => :'Boolean'
}
Expand Down Expand Up @@ -74,6 +79,10 @@ def initialize(attributes = {})
self.compliance_host = attributes[:'compliance_host']
end

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

if attributes.key?(:'vuln_containers_os')
self.vuln_containers_os = attributes[:'vuln_containers_os']
end
Expand Down Expand Up @@ -110,6 +119,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
compliance_host == o.compliance_host &&
function == o.function &&
vuln_containers_os == o.vuln_containers_os &&
vuln_host_os == o.vuln_host_os &&
additional_properties == o.additional_properties
Expand All @@ -119,7 +129,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[compliance_host, vuln_containers_os, vuln_host_os, additional_properties].hash
[compliance_host, function, vuln_containers_os, vuln_host_os, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class AzureScanOptionsInputUpdateDataAttributes
# Indicates whether host compliance scanning is enabled.
attr_accessor :compliance_host

# Indicates if scanning of Azure Functions is enabled.
attr_accessor :function

# Indicates if scanning for vulnerabilities in containers is enabled.
attr_accessor :vuln_containers_os

Expand All @@ -37,6 +40,7 @@ class AzureScanOptionsInputUpdateDataAttributes
def self.attribute_map
{
:'compliance_host' => :'compliance_host',
:'function' => :'function',
:'vuln_containers_os' => :'vuln_containers_os',
:'vuln_host_os' => :'vuln_host_os'
}
Expand All @@ -47,6 +51,7 @@ def self.attribute_map
def self.openapi_types
{
:'compliance_host' => :'Boolean',
:'function' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
:'vuln_host_os' => :'Boolean'
}
Expand Down Expand Up @@ -74,6 +79,10 @@ def initialize(attributes = {})
self.compliance_host = attributes[:'compliance_host']
end

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

if attributes.key?(:'vuln_containers_os')
self.vuln_containers_os = attributes[:'vuln_containers_os']
end
Expand Down Expand Up @@ -110,6 +119,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
compliance_host == o.compliance_host &&
function == o.function &&
vuln_containers_os == o.vuln_containers_os &&
vuln_host_os == o.vuln_host_os &&
additional_properties == o.additional_properties
Expand All @@ -119,7 +129,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[compliance_host, vuln_containers_os, vuln_host_os, additional_properties].hash
[compliance_host, function, 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 GcpScanOptionsDataAttributes
include BaseGenericModel

# Indicates if scanning of Cloud Functions is enabled.
attr_accessor :cloud_function

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

Expand All @@ -36,6 +39,7 @@ class GcpScanOptionsDataAttributes
# @!visibility private
def self.attribute_map
{
:'cloud_function' => :'cloud_function',
:'compliance_host' => :'compliance_host',
:'vuln_containers_os' => :'vuln_containers_os',
:'vuln_host_os' => :'vuln_host_os'
Expand All @@ -46,6 +50,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'cloud_function' => :'Boolean',
:'compliance_host' => :'Boolean',
:'vuln_containers_os' => :'Boolean',
:'vuln_host_os' => :'Boolean'
Expand All @@ -70,6 +75,10 @@ def initialize(attributes = {})
end
}

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

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