@@ -27,9 +27,9 @@ pub struct DatasetResponse {
2727 /// Unique identifier for the dataset.
2828 #[ serde( rename = "id" ) ]
2929 pub id : Option < String > ,
30- /// Resource type, always " dataset" .
30+ /// Resource type, always set to ` dataset` .
3131 #[ serde( rename = "type" ) ]
32- pub type_ : Option < String > ,
32+ pub type_ : Option < crate :: datadogV2 :: model :: DatasetType > ,
3333 #[ serde( flatten) ]
3434 pub additional_properties : std:: collections:: BTreeMap < String , serde_json:: Value > ,
3535 #[ serde( skip) ]
@@ -58,7 +58,7 @@ impl DatasetResponse {
5858 self
5959 }
6060
61- pub fn type_ ( mut self , value : String ) -> Self {
61+ pub fn type_ ( mut self , value : crate :: datadogV2 :: model :: DatasetType ) -> Self {
6262 self . type_ = Some ( value) ;
6363 self
6464 }
@@ -98,7 +98,7 @@ impl<'de> Deserialize<'de> for DatasetResponse {
9898 let mut attributes: Option < crate :: datadogV2:: model:: DatasetAttributesResponse > =
9999 None ;
100100 let mut id: Option < String > = None ;
101- let mut type_: Option < String > = None ;
101+ let mut type_: Option < crate :: datadogV2 :: model :: DatasetType > = None ;
102102 let mut additional_properties: std:: collections:: BTreeMap <
103103 String ,
104104 serde_json:: Value ,
@@ -124,6 +124,16 @@ impl<'de> Deserialize<'de> for DatasetResponse {
124124 continue ;
125125 }
126126 type_ = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
127+ if let Some ( ref _type_) = type_ {
128+ match _type_ {
129+ crate :: datadogV2:: model:: DatasetType :: UnparsedObject (
130+ _type_,
131+ ) => {
132+ _unparsed = true ;
133+ }
134+ _ => { }
135+ }
136+ }
127137 }
128138 & _ => {
129139 if let Ok ( value) = serde_json:: from_value ( v. clone ( ) ) {
0 commit comments