Skip to content

Commit d6ceaad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6e6d2b4 of spec repo
1 parent 06993f6 commit d6ceaad

14 files changed

Lines changed: 164 additions & 10 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7731,6 +7731,10 @@ components:
77317731
AwsScanOptionsAttributes:
77327732
description: Attributes for the AWS scan options.
77337733
properties:
7734+
compliance_host:
7735+
description: Indicates whether host compliance scanning is enabled.
7736+
example: false
7737+
type: boolean
77347738
lambda:
77357739
description: Indicates if scanning of Lambda functions is enabled.
77367740
example: true
@@ -7751,6 +7755,10 @@ components:
77517755
AwsScanOptionsCreateAttributes:
77527756
description: Attributes for the AWS scan options to create.
77537757
properties:
7758+
compliance_host:
7759+
description: Indicates whether host compliance scanning is enabled.
7760+
example: false
7761+
type: boolean
77547762
lambda:
77557763
description: Indicates if scanning of Lambda functions is enabled.
77567764
example: true
@@ -7768,6 +7776,7 @@ components:
77687776
example: true
77697777
type: boolean
77707778
required:
7779+
- compliance_host
77717780
- lambda
77727781
- sensitive_data
77737782
- vuln_containers_os
@@ -7833,6 +7842,10 @@ components:
78337842
AwsScanOptionsUpdateAttributes:
78347843
description: Attributes for the AWS scan options to update.
78357844
properties:
7845+
compliance_host:
7846+
description: Indicates whether host compliance scanning is enabled.
7847+
example: false
7848+
type: boolean
78367849
lambda:
78377850
description: Indicates if scanning of Lambda functions is enabled.
78387851
example: true
@@ -7914,6 +7927,7 @@ components:
79147927
example:
79157928
data:
79167929
attributes:
7930+
compliance_host: false
79177931
vuln_containers_os: true
79187932
vuln_host_os: true
79197933
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7927,6 +7941,7 @@ components:
79277941
example:
79287942
data:
79297943
- attributes:
7944+
compliance_host: false
79307945
vuln_containers_os: true
79317946
vuln_host_os: true
79327947
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7958,6 +7973,9 @@ components:
79587973
AzureScanOptionsDataAttributes:
79597974
description: Attributes for Azure scan options configuration.
79607975
properties:
7976+
compliance_host:
7977+
description: Indicates whether host compliance scanning is enabled.
7978+
type: boolean
79617979
vuln_containers_os:
79627980
description: Indicates if scanning for vulnerabilities in containers is enabled.
79637981
type: boolean
@@ -8002,6 +8020,9 @@ components:
80028020
AzureScanOptionsInputUpdateDataAttributes:
80038021
description: Attributes for updating Azure scan options configuration.
80048022
properties:
8023+
compliance_host:
8024+
description: Indicates whether host compliance scanning is enabled.
8025+
type: boolean
80058026
vuln_containers_os:
80068027
description: Indicates if scanning for vulnerabilities in containers is enabled.
80078028
type: boolean
@@ -30081,6 +30102,7 @@ components:
3008130102
example:
3008230103
data:
3008330104
attributes:
30105+
compliance_host: false
3008430106
vuln_containers_os: true
3008530107
vuln_host_os: true
3008630108
id: company-project-id
@@ -30094,6 +30116,7 @@ components:
3009430116
example:
3009530117
data:
3009630118
- attributes:
30119+
compliance_host: false
3009730120
vuln_containers_os: true
3009830121
vuln_host_os: true
3009930122
id: company-project-id
@@ -30125,6 +30148,9 @@ components:
3012530148
GcpScanOptionsDataAttributes:
3012630149
description: Attributes for GCP scan options configuration.
3012730150
properties:
30151+
compliance_host:
30152+
description: Indicates whether host compliance scanning is enabled.
30153+
type: boolean
3012830154
vuln_containers_os:
3012930155
description: Indicates if scanning for vulnerabilities in containers is enabled.
3013030156
type: boolean
@@ -30169,6 +30195,9 @@ components:
3016930195
GcpScanOptionsInputUpdateDataAttributes:
3017030196
description: Attributes for updating GCP scan options configuration.
3017130197
properties:
30198+
compliance_host:
30199+
description: Indicates whether host compliance scanning is enabled.
30200+
type: boolean
3017230201
vuln_containers_os:
3017330202
description: Indicates if scanning for vulnerabilities in containers is enabled.
3017430203
type: boolean
@@ -85813,6 +85842,7 @@ paths:
8581385842
value:
8581485843
data:
8581585844
attributes:
85845+
compliance_host: false
8581685846
lambda: true
8581785847
sensitive_data: false
8581885848
vuln_containers_os: true
@@ -85910,6 +85940,7 @@ paths:
8591085940
value:
8591185941
data:
8591285942
attributes:
85943+
compliance_host: false
8591385944
lambda: true
8591485945
sensitive_data: false
8591585946
vuln_containers_os: true
@@ -85971,6 +86002,7 @@ paths:
8597186002
value:
8597286003
data:
8597386004
attributes:
86005+
compliance_host: false
8597486006
vuln_containers_os: true
8597586007
vuln_host_os: true
8597686008
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -86129,6 +86161,7 @@ paths:
8612986161
value:
8613086162
data:
8613186163
attributes:
86164+
compliance_host: false
8613286165
vuln_containers_os: true
8613386166
vuln_host_os: true
8613486167
id: company-project-id

examples/v2_agentless-scanning_CreateAwsScanOptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use datadog_api_client::datadogV2::model::AwsScanOptionsType;
1010
#[tokio::main]
1111
async fn main() {
1212
let body = AwsScanOptionsCreateRequest::new(AwsScanOptionsCreateData::new(
13-
AwsScanOptionsCreateAttributes::new(true, false, true, true),
13+
AwsScanOptionsCreateAttributes::new(true, true, false, true, true),
1414
"000000000003".to_string(),
1515
AwsScanOptionsType::AWS_SCAN_OPTIONS,
1616
));

src/datadogV2/model/model_aws_scan_options_attributes.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct AwsScanOptionsAttributes {
14+
/// Indicates whether host compliance scanning is enabled.
15+
#[serde(rename = "compliance_host")]
16+
pub compliance_host: Option<bool>,
1417
/// Indicates if scanning of Lambda functions is enabled.
1518
#[serde(rename = "lambda")]
1619
pub lambda: Option<bool>,
@@ -33,6 +36,7 @@ pub struct AwsScanOptionsAttributes {
3336
impl AwsScanOptionsAttributes {
3437
pub fn new() -> AwsScanOptionsAttributes {
3538
AwsScanOptionsAttributes {
39+
compliance_host: None,
3640
lambda: None,
3741
sensitive_data: None,
3842
vuln_containers_os: None,
@@ -42,6 +46,11 @@ impl AwsScanOptionsAttributes {
4246
}
4347
}
4448

49+
pub fn compliance_host(mut self, value: bool) -> Self {
50+
self.compliance_host = Some(value);
51+
self
52+
}
53+
4554
pub fn lambda(mut self, value: bool) -> Self {
4655
self.lambda = Some(value);
4756
self
@@ -94,6 +103,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsAttributes {
94103
where
95104
M: MapAccess<'a>,
96105
{
106+
let mut compliance_host: Option<bool> = None;
97107
let mut lambda: Option<bool> = None;
98108
let mut sensitive_data: Option<bool> = None;
99109
let mut vuln_containers_os: Option<bool> = None;
@@ -106,6 +116,13 @@ impl<'de> Deserialize<'de> for AwsScanOptionsAttributes {
106116

107117
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
108118
match k.as_str() {
119+
"compliance_host" => {
120+
if v.is_null() {
121+
continue;
122+
}
123+
compliance_host =
124+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
125+
}
109126
"lambda" => {
110127
if v.is_null() {
111128
continue;
@@ -142,6 +159,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsAttributes {
142159
}
143160

144161
let content = AwsScanOptionsAttributes {
162+
compliance_host,
145163
lambda,
146164
sensitive_data,
147165
vuln_containers_os,

src/datadogV2/model/model_aws_scan_options_create_attributes.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct AwsScanOptionsCreateAttributes {
14+
/// Indicates whether host compliance scanning is enabled.
15+
#[serde(rename = "compliance_host")]
16+
pub compliance_host: bool,
1417
/// Indicates if scanning of Lambda functions is enabled.
1518
#[serde(rename = "lambda")]
1619
pub lambda: bool,
@@ -32,12 +35,14 @@ pub struct AwsScanOptionsCreateAttributes {
3235

3336
impl AwsScanOptionsCreateAttributes {
3437
pub fn new(
38+
compliance_host: bool,
3539
lambda: bool,
3640
sensitive_data: bool,
3741
vuln_containers_os: bool,
3842
vuln_host_os: bool,
3943
) -> AwsScanOptionsCreateAttributes {
4044
AwsScanOptionsCreateAttributes {
45+
compliance_host,
4146
lambda,
4247
sensitive_data,
4348
vuln_containers_os,
@@ -73,6 +78,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsCreateAttributes {
7378
where
7479
M: MapAccess<'a>,
7580
{
81+
let mut compliance_host: Option<bool> = None;
7682
let mut lambda: Option<bool> = None;
7783
let mut sensitive_data: Option<bool> = None;
7884
let mut vuln_containers_os: Option<bool> = None;
@@ -85,6 +91,10 @@ impl<'de> Deserialize<'de> for AwsScanOptionsCreateAttributes {
8591

8692
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
8793
match k.as_str() {
94+
"compliance_host" => {
95+
compliance_host =
96+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
97+
}
8898
"lambda" => {
8999
lambda = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
90100
}
@@ -107,6 +117,8 @@ impl<'de> Deserialize<'de> for AwsScanOptionsCreateAttributes {
107117
}
108118
}
109119
}
120+
let compliance_host =
121+
compliance_host.ok_or_else(|| M::Error::missing_field("compliance_host"))?;
110122
let lambda = lambda.ok_or_else(|| M::Error::missing_field("lambda"))?;
111123
let sensitive_data =
112124
sensitive_data.ok_or_else(|| M::Error::missing_field("sensitive_data"))?;
@@ -116,6 +128,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsCreateAttributes {
116128
vuln_host_os.ok_or_else(|| M::Error::missing_field("vuln_host_os"))?;
117129

118130
let content = AwsScanOptionsCreateAttributes {
131+
compliance_host,
119132
lambda,
120133
sensitive_data,
121134
vuln_containers_os,

src/datadogV2/model/model_aws_scan_options_update_attributes.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct AwsScanOptionsUpdateAttributes {
14+
/// Indicates whether host compliance scanning is enabled.
15+
#[serde(rename = "compliance_host")]
16+
pub compliance_host: Option<bool>,
1417
/// Indicates if scanning of Lambda functions is enabled.
1518
#[serde(rename = "lambda")]
1619
pub lambda: Option<bool>,
@@ -33,6 +36,7 @@ pub struct AwsScanOptionsUpdateAttributes {
3336
impl AwsScanOptionsUpdateAttributes {
3437
pub fn new() -> AwsScanOptionsUpdateAttributes {
3538
AwsScanOptionsUpdateAttributes {
39+
compliance_host: None,
3640
lambda: None,
3741
sensitive_data: None,
3842
vuln_containers_os: None,
@@ -42,6 +46,11 @@ impl AwsScanOptionsUpdateAttributes {
4246
}
4347
}
4448

49+
pub fn compliance_host(mut self, value: bool) -> Self {
50+
self.compliance_host = Some(value);
51+
self
52+
}
53+
4554
pub fn lambda(mut self, value: bool) -> Self {
4655
self.lambda = Some(value);
4756
self
@@ -94,6 +103,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsUpdateAttributes {
94103
where
95104
M: MapAccess<'a>,
96105
{
106+
let mut compliance_host: Option<bool> = None;
97107
let mut lambda: Option<bool> = None;
98108
let mut sensitive_data: Option<bool> = None;
99109
let mut vuln_containers_os: Option<bool> = None;
@@ -106,6 +116,13 @@ impl<'de> Deserialize<'de> for AwsScanOptionsUpdateAttributes {
106116

107117
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
108118
match k.as_str() {
119+
"compliance_host" => {
120+
if v.is_null() {
121+
continue;
122+
}
123+
compliance_host =
124+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
125+
}
109126
"lambda" => {
110127
if v.is_null() {
111128
continue;
@@ -142,6 +159,7 @@ impl<'de> Deserialize<'de> for AwsScanOptionsUpdateAttributes {
142159
}
143160

144161
let content = AwsScanOptionsUpdateAttributes {
162+
compliance_host,
145163
lambda,
146164
sensitive_data,
147165
vuln_containers_os,

src/datadogV2/model/model_azure_scan_options_data_attributes.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct AzureScanOptionsDataAttributes {
14+
/// Indicates whether host compliance scanning is enabled.
15+
#[serde(rename = "compliance_host")]
16+
pub compliance_host: Option<bool>,
1417
/// Indicates if scanning for vulnerabilities in containers is enabled.
1518
#[serde(rename = "vuln_containers_os")]
1619
pub vuln_containers_os: Option<bool>,
@@ -27,13 +30,19 @@ pub struct AzureScanOptionsDataAttributes {
2730
impl AzureScanOptionsDataAttributes {
2831
pub fn new() -> AzureScanOptionsDataAttributes {
2932
AzureScanOptionsDataAttributes {
33+
compliance_host: None,
3034
vuln_containers_os: None,
3135
vuln_host_os: None,
3236
additional_properties: std::collections::BTreeMap::new(),
3337
_unparsed: false,
3438
}
3539
}
3640

41+
pub fn compliance_host(mut self, value: bool) -> Self {
42+
self.compliance_host = Some(value);
43+
self
44+
}
45+
3746
pub fn vuln_containers_os(mut self, value: bool) -> Self {
3847
self.vuln_containers_os = Some(value);
3948
self
@@ -76,6 +85,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {
7685
where
7786
M: MapAccess<'a>,
7887
{
88+
let mut compliance_host: Option<bool> = None;
7989
let mut vuln_containers_os: Option<bool> = None;
8090
let mut vuln_host_os: Option<bool> = None;
8191
let mut additional_properties: std::collections::BTreeMap<
@@ -86,6 +96,13 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {
8696

8797
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
8898
match k.as_str() {
99+
"compliance_host" => {
100+
if v.is_null() {
101+
continue;
102+
}
103+
compliance_host =
104+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
105+
}
89106
"vuln_containers_os" => {
90107
if v.is_null() {
91108
continue;
@@ -109,6 +126,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsDataAttributes {
109126
}
110127

111128
let content = AzureScanOptionsDataAttributes {
129+
compliance_host,
112130
vuln_containers_os,
113131
vuln_host_os,
114132
additional_properties,

0 commit comments

Comments
 (0)