Skip to content

Commit d9e12f1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update entity version documentation in Software Catalog (#767)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2a7ad3e commit d9e12f1

File tree

8 files changed

+25
-9
lines changed

8 files changed

+25
-9
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "f2ae7eb",
3-
"generated": "2025-07-17 19:58:01.335"
2+
"spec_repo_commit": "20279f4",
3+
"generated": "2025-07-18 10:27:51.182"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13911,14 +13911,21 @@ components:
1391113911
type: string
1391213912
type: object
1391313913
EntityV3APIVersion:
13914-
description: The schema version of entity type. The field is known as schema-version
13915-
in the previous version.
13914+
description: The version of the schema data that was used to populate this entity's
13915+
data. This could be via the API, Terraform, or YAML file in a repository.
13916+
The field is known as schema-version in the previous version.
1391613917
enum:
1391713918
- v3
13919+
- v2.2
13920+
- v2.1
13921+
- v2
1391813922
example: v3
1391913923
type: string
1392013924
x-enum-varnames:
1392113925
- V3
13926+
- V2_2
13927+
- V2_1
13928+
- V2
1392213929
EntityV3DatadogCodeLocationItem:
1392313930
additionalProperties: false
1392413931
description: Code location item.

src/datadogV2/model/model_entity_v3_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct EntityV3API {
14-
/// The schema version of entity type. The field is known as schema-version in the previous version.
14+
/// The version of the schema data that was used to populate this entity's data. This could be via the API, Terraform, or YAML file in a repository. The field is known as schema-version in the previous version.
1515
#[serde(rename = "apiVersion")]
1616
pub api_version: crate::datadogV2::model::EntityV3APIVersion,
1717
/// Datadog product integrations for the API entity.

src/datadogV2/model/model_entity_v3_api_version.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
88
#[derive(Clone, Debug, Eq, PartialEq)]
99
pub enum EntityV3APIVersion {
1010
V3,
11+
V2_2,
12+
V2_1,
13+
V2,
1114
UnparsedObject(crate::datadog::UnparsedObject),
1215
}
1316

1417
impl ToString for EntityV3APIVersion {
1518
fn to_string(&self) -> String {
1619
match self {
1720
Self::V3 => String::from("v3"),
21+
Self::V2_2 => String::from("v2.2"),
22+
Self::V2_1 => String::from("v2.1"),
23+
Self::V2 => String::from("v2"),
1824
Self::UnparsedObject(v) => v.value.to_string(),
1925
}
2026
}
@@ -40,6 +46,9 @@ impl<'de> Deserialize<'de> for EntityV3APIVersion {
4046
let s: String = String::deserialize(deserializer)?;
4147
Ok(match s.as_str() {
4248
"v3" => Self::V3,
49+
"v2.2" => Self::V2_2,
50+
"v2.1" => Self::V2_1,
51+
"v2" => Self::V2,
4352
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4453
value: serde_json::Value::String(s.into()),
4554
}),

src/datadogV2/model/model_entity_v3_datastore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct EntityV3Datastore {
14-
/// The schema version of entity type. The field is known as schema-version in the previous version.
14+
/// The version of the schema data that was used to populate this entity's data. This could be via the API, Terraform, or YAML file in a repository. The field is known as schema-version in the previous version.
1515
#[serde(rename = "apiVersion")]
1616
pub api_version: crate::datadogV2::model::EntityV3APIVersion,
1717
/// Datadog product integrations for the datastore entity.

src/datadogV2/model/model_entity_v3_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct EntityV3Queue {
14-
/// The schema version of entity type. The field is known as schema-version in the previous version.
14+
/// The version of the schema data that was used to populate this entity's data. This could be via the API, Terraform, or YAML file in a repository. The field is known as schema-version in the previous version.
1515
#[serde(rename = "apiVersion")]
1616
pub api_version: crate::datadogV2::model::EntityV3APIVersion,
1717
/// Datadog product integrations for the datastore entity.

src/datadogV2/model/model_entity_v3_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct EntityV3Service {
14-
/// The schema version of entity type. The field is known as schema-version in the previous version.
14+
/// The version of the schema data that was used to populate this entity's data. This could be via the API, Terraform, or YAML file in a repository. The field is known as schema-version in the previous version.
1515
#[serde(rename = "apiVersion")]
1616
pub api_version: crate::datadogV2::model::EntityV3APIVersion,
1717
/// Datadog product integrations for the service entity.

src/datadogV2/model/model_entity_v3_system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct EntityV3System {
14-
/// The schema version of entity type. The field is known as schema-version in the previous version.
14+
/// The version of the schema data that was used to populate this entity's data. This could be via the API, Terraform, or YAML file in a repository. The field is known as schema-version in the previous version.
1515
#[serde(rename = "apiVersion")]
1616
pub api_version: crate::datadogV2::model::EntityV3APIVersion,
1717
/// Datadog product integrations for the service entity.

0 commit comments

Comments
 (0)