@@ -14,6 +14,9 @@ pub struct AzureScanOptionsInputUpdateDataAttributes {
1414 /// Indicates whether host compliance scanning is enabled.
1515 #[ serde( rename = "compliance_host" ) ]
1616 pub compliance_host : Option < bool > ,
17+ /// Indicates if scanning of Azure Functions is enabled.
18+ #[ serde( rename = "function" ) ]
19+ pub function : Option < bool > ,
1720 /// Indicates if scanning for vulnerabilities in containers is enabled.
1821 #[ serde( rename = "vuln_containers_os" ) ]
1922 pub vuln_containers_os : Option < bool > ,
@@ -31,6 +34,7 @@ impl AzureScanOptionsInputUpdateDataAttributes {
3134 pub fn new ( ) -> AzureScanOptionsInputUpdateDataAttributes {
3235 AzureScanOptionsInputUpdateDataAttributes {
3336 compliance_host : None ,
37+ function : None ,
3438 vuln_containers_os : None ,
3539 vuln_host_os : None ,
3640 additional_properties : std:: collections:: BTreeMap :: new ( ) ,
@@ -43,6 +47,11 @@ impl AzureScanOptionsInputUpdateDataAttributes {
4347 self
4448 }
4549
50+ pub fn function ( mut self , value : bool ) -> Self {
51+ self . function = Some ( value) ;
52+ self
53+ }
54+
4655 pub fn vuln_containers_os ( mut self , value : bool ) -> Self {
4756 self . vuln_containers_os = Some ( value) ;
4857 self
@@ -86,6 +95,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {
8695 M : MapAccess < ' a > ,
8796 {
8897 let mut compliance_host: Option < bool > = None ;
98+ let mut function: Option < bool > = None ;
8999 let mut vuln_containers_os: Option < bool > = None ;
90100 let mut vuln_host_os: Option < bool > = None ;
91101 let mut additional_properties: std:: collections:: BTreeMap <
@@ -103,6 +113,12 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {
103113 compliance_host =
104114 Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
105115 }
116+ "function" => {
117+ if v. is_null ( ) {
118+ continue ;
119+ }
120+ function = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
121+ }
106122 "vuln_containers_os" => {
107123 if v. is_null ( ) {
108124 continue ;
@@ -127,6 +143,7 @@ impl<'de> Deserialize<'de> for AzureScanOptionsInputUpdateDataAttributes {
127143
128144 let content = AzureScanOptionsInputUpdateDataAttributes {
129145 compliance_host,
146+ function,
130147 vuln_containers_os,
131148 vuln_host_os,
132149 additional_properties,
0 commit comments