diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f3d3ffaa5..5051b6890 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -35837,6 +35837,12 @@ components: RUMApplicationAttributes: description: RUM application attributes. properties: + api_key_id: + description: ID of the API key associated with the application. + example: 123456789 + format: int32 + maximum: 2147483647 + type: integer application_id: description: ID of the RUM application. example: abcd1234-0000-0000-abcd-1234abcd5678 diff --git a/src/datadogV2/model/model_rum_application_attributes.rs b/src/datadogV2/model/model_rum_application_attributes.rs index 66f42298b..196b3c944 100644 --- a/src/datadogV2/model/model_rum_application_attributes.rs +++ b/src/datadogV2/model/model_rum_application_attributes.rs @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct RUMApplicationAttributes { + /// ID of the API key associated with the application. + #[serde(rename = "api_key_id")] + pub api_key_id: Option, /// ID of the RUM application. #[serde(rename = "application_id")] pub application_id: String, @@ -67,6 +70,7 @@ impl RUMApplicationAttributes { updated_by_handle: String, ) -> RUMApplicationAttributes { RUMApplicationAttributes { + api_key_id: None, application_id, client_token, created_at, @@ -84,6 +88,11 @@ impl RUMApplicationAttributes { } } + pub fn api_key_id(mut self, value: i32) -> Self { + self.api_key_id = Some(value); + self + } + pub fn hash(mut self, value: String) -> Self { self.hash = Some(value); self @@ -125,6 +134,7 @@ impl<'de> Deserialize<'de> for RUMApplicationAttributes { where M: MapAccess<'a>, { + let mut api_key_id: Option = None; let mut application_id: Option = None; let mut client_token: Option = None; let mut created_at: Option = None; @@ -145,6 +155,12 @@ impl<'de> Deserialize<'de> for RUMApplicationAttributes { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { + "api_key_id" => { + if v.is_null() { + continue; + } + api_key_id = Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "application_id" => { application_id = Some(serde_json::from_value(v).map_err(M::Error::custom)?); @@ -217,6 +233,7 @@ impl<'de> Deserialize<'de> for RUMApplicationAttributes { .ok_or_else(|| M::Error::missing_field("updated_by_handle"))?; let content = RUMApplicationAttributes { + api_key_id, application_id, client_token, created_at,