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
1 change: 1 addition & 0 deletions examples/v2_agentless-scanning_CreateAzureScanOptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ async fn main() {
)
.attributes(
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.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async fn main() {
)
.attributes(
GcpScanOptionsDataAttributes::new()
.cloud_function(true)
.vuln_containers_os(true)
.vuln_host_os(true),
),
Expand Down
6 changes: 5 additions & 1 deletion examples/v2_agentless-scanning_UpdateGcpScanOptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ async fn main() {
"api-spec-test".to_string(),
GcpScanOptionsInputUpdateDataType::GCP_SCAN_OPTIONS,
)
.attributes(GcpScanOptionsInputUpdateDataAttributes::new().vuln_containers_os(false)),
.attributes(
GcpScanOptionsInputUpdateDataAttributes::new()
.cloud_function(true)
.vuln_containers_os(false),
),
);
let configuration = datadog::Configuration::new();
let api = AgentlessScanningAPI::with_config(configuration);
Expand Down
17 changes: 17 additions & 0 deletions src/datadogV2/model/model_azure_scan_options_data_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pub struct AzureScanOptionsDataAttributes {
/// Indicates whether host compliance scanning is enabled.
#[serde(rename = "compliance_host")]
pub compliance_host: Option<bool>,
/// Indicates if scanning of Azure Functions is enabled.
#[serde(rename = "function")]
pub function: Option<bool>,
/// Indicates if scanning for vulnerabilities in containers is enabled.
#[serde(rename = "vuln_containers_os")]
pub vuln_containers_os: Option<bool>,
Expand All @@ -31,6 +34,7 @@ impl AzureScanOptionsDataAttributes {
pub fn new() -> AzureScanOptionsDataAttributes {
AzureScanOptionsDataAttributes {
compliance_host: None,
function: None,
vuln_containers_os: None,
vuln_host_os: None,
additional_properties: std::collections::BTreeMap::new(),
Expand All @@ -43,6 +47,11 @@ impl AzureScanOptionsDataAttributes {
self
}

pub fn function(mut self, value: bool) -> Self {
self.function = Some(value);
self
}

pub fn vuln_containers_os(mut self, value: bool) -> Self {
self.vuln_containers_os = Some(value);
self
Expand Down Expand Up @@ -86,6 +95,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {
M: MapAccess<'a>,
{
let mut compliance_host: Option<bool> = None;
let mut function: Option<bool> = None;
let mut vuln_containers_os: Option<bool> = None;
let mut vuln_host_os: Option<bool> = None;
let mut additional_properties: std::collections::BTreeMap<
Expand All @@ -103,6 +113,12 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {
compliance_host =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"function" => {
if v.is_null() {
continue;
}
function = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"vuln_containers_os" => {
if v.is_null() {
continue;
Expand All @@ -127,6 +143,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {

let content = AzureScanOptionsDataAttributes {
compliance_host,
function,
vuln_containers_os,
vuln_host_os,
additional_properties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pub struct AzureScanOptionsInputUpdateDataAttributes {
/// Indicates whether host compliance scanning is enabled.
#[serde(rename = "compliance_host")]
pub compliance_host: Option<bool>,
/// Indicates if scanning of Azure Functions is enabled.
#[serde(rename = "function")]
pub function: Option<bool>,
/// Indicates if scanning for vulnerabilities in containers is enabled.
#[serde(rename = "vuln_containers_os")]
pub vuln_containers_os: Option<bool>,
Expand All @@ -31,6 +34,7 @@ impl AzureScanOptionsInputUpdateDataAttributes {
pub fn new() -> AzureScanOptionsInputUpdateDataAttributes {
AzureScanOptionsInputUpdateDataAttributes {
compliance_host: None,
function: None,
vuln_containers_os: None,
vuln_host_os: None,
additional_properties: std::collections::BTreeMap::new(),
Expand All @@ -43,6 +47,11 @@ impl AzureScanOptionsInputUpdateDataAttributes {
self
}

pub fn function(mut self, value: bool) -> Self {
self.function = Some(value);
self
}

pub fn vuln_containers_os(mut self, value: bool) -> Self {
self.vuln_containers_os = Some(value);
self
Expand Down Expand Up @@ -86,6 +95,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {
M: MapAccess<'a>,
{
let mut compliance_host: Option<bool> = None;
let mut function: Option<bool> = None;
let mut vuln_containers_os: Option<bool> = None;
let mut vuln_host_os: Option<bool> = None;
let mut additional_properties: std::collections::BTreeMap<
Expand All @@ -103,6 +113,12 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {
compliance_host =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"function" => {
if v.is_null() {
continue;
}
function = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"vuln_containers_os" => {
if v.is_null() {
continue;
Expand All @@ -127,6 +143,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {

let content = AzureScanOptionsInputUpdateDataAttributes {
compliance_host,
function,
vuln_containers_os,
vuln_host_os,
additional_properties,
Expand Down
18 changes: 18 additions & 0 deletions src/datadogV2/model/model_gcp_scan_options_data_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct GcpScanOptionsDataAttributes {
/// Indicates if scanning of Cloud Functions is enabled.
#[serde(rename = "cloud_function")]
pub cloud_function: Option<bool>,
/// Indicates whether host compliance scanning is enabled.
#[serde(rename = "compliance_host")]
pub compliance_host: Option<bool>,
Expand All @@ -30,6 +33,7 @@ pub struct GcpScanOptionsDataAttributes {
impl GcpScanOptionsDataAttributes {
pub fn new() -> GcpScanOptionsDataAttributes {
GcpScanOptionsDataAttributes {
cloud_function: None,
compliance_host: None,
vuln_containers_os: None,
vuln_host_os: None,
Expand All @@ -38,6 +42,11 @@ impl GcpScanOptionsDataAttributes {
}
}

pub fn cloud_function(mut self, value: bool) -> Self {
self.cloud_function = Some(value);
self
}

pub fn compliance_host(mut self, value: bool) -> Self {
self.compliance_host = Some(value);
self
Expand Down Expand Up @@ -85,6 +94,7 @@ impl<'de> Deserialize<'de> for GcpScanOptionsDataAttributes {
where
M: MapAccess<'a>,
{
let mut cloud_function: Option<bool> = None;
let mut compliance_host: Option<bool> = None;
let mut vuln_containers_os: Option<bool> = None;
let mut vuln_host_os: Option<bool> = None;
Expand All @@ -96,6 +106,13 @@ impl<'de> Deserialize<'de> for GcpScanOptionsDataAttributes {

while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
match k.as_str() {
"cloud_function" => {
if v.is_null() {
continue;
}
cloud_function =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"compliance_host" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -126,6 +143,7 @@ impl<'de> Deserialize<'de> for GcpScanOptionsDataAttributes {
}

let content = GcpScanOptionsDataAttributes {
cloud_function,
compliance_host,
vuln_containers_os,
vuln_host_os,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct GcpScanOptionsInputUpdateDataAttributes {
/// Indicates if scanning of Cloud Functions is enabled.
#[serde(rename = "cloud_function")]
pub cloud_function: Option<bool>,
/// Indicates whether host compliance scanning is enabled.
#[serde(rename = "compliance_host")]
pub compliance_host: Option<bool>,
Expand All @@ -30,6 +33,7 @@ pub struct GcpScanOptionsInputUpdateDataAttributes {
impl GcpScanOptionsInputUpdateDataAttributes {
pub fn new() -> GcpScanOptionsInputUpdateDataAttributes {
GcpScanOptionsInputUpdateDataAttributes {
cloud_function: None,
compliance_host: None,
vuln_containers_os: None,
vuln_host_os: None,
Expand All @@ -38,6 +42,11 @@ impl GcpScanOptionsInputUpdateDataAttributes {
}
}

pub fn cloud_function(mut self, value: bool) -> Self {
self.cloud_function = Some(value);
self
}

pub fn compliance_host(mut self, value: bool) -> Self {
self.compliance_host = Some(value);
self
Expand Down Expand Up @@ -85,6 +94,7 @@ impl<'de> Deserialize<'de> for GcpScanOptionsInputUpdateDataAttributes {
where
M: MapAccess<'a>,
{
let mut cloud_function: Option<bool> = None;
let mut compliance_host: Option<bool> = None;
let mut vuln_containers_os: Option<bool> = None;
let mut vuln_host_os: Option<bool> = None;
Expand All @@ -96,6 +106,13 @@ impl<'de> Deserialize<'de> for GcpScanOptionsInputUpdateDataAttributes {

while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
match k.as_str() {
"cloud_function" => {
if v.is_null() {
continue;
}
cloud_function =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"compliance_host" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -126,6 +143,7 @@ impl<'de> Deserialize<'de> for GcpScanOptionsInputUpdateDataAttributes {
}

let content = GcpScanOptionsInputUpdateDataAttributes {
cloud_function,
compliance_host,
vuln_containers_os,
vuln_host_os,
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"request": {
"body": {
"string": "{\"data\":{\"attributes\":{\"vuln_containers_os\":true,\"vuln_host_os\":true},\"id\":\"12345678-90ab-cdef-1234-567890abcdef\",\"type\":\"azure_scan_options\"}}",
"string": "{\"data\":{\"attributes\":{\"function\":true,\"vuln_containers_os\":true,\"vuln_host_os\":true},\"id\":\"12345678-90ab-cdef-1234-567890abcdef\",\"type\":\"azure_scan_options\"}}",
"encoding": null
},
"headers": {
Expand All @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"12345678-90ab-cdef-1234-567890abcdef\",\"type\":\"azure_scan_options\",\"attributes\":{\"vuln_containers_os\":true,\"vuln_host_os\":true}}}",
"string": "{\"data\":{\"id\":\"12345678-90ab-cdef-1234-567890abcdef\",\"type\":\"azure_scan_options\",\"attributes\":{\"compliance_host\":false,\"function\":true,\"vuln_containers_os\":true,\"vuln_host_os\":true}}}",
"encoding": null
},
"headers": {
Expand All @@ -32,7 +32,7 @@
"message": "Created"
}
},
"recorded_at": "Thu, 23 Oct 2025 22:21:55 GMT"
"recorded_at": "Fri, 17 Jul 2026 06:38:46 GMT"
},
{
"request": {
Expand Down Expand Up @@ -60,7 +60,7 @@
"message": "OK"
}
},
"recorded_at": "Thu, 23 Oct 2025 22:21:55 GMT"
"recorded_at": "Fri, 17 Jul 2026 06:38:46 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-23T22:21:55.656Z
2026-07-17T06:38:47.064Z
Loading
Loading