Skip to content

Commit a845eb1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add 2 more enums for ChangeEventCustomAttributesAuthorType (#732)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c98bae5 commit a845eb1

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-19 12:11:31.707864",
8-
"spec_repo_commit": "a171e0a8"
7+
"regenerated": "2025-06-20 19:51:47.574925",
8+
"spec_repo_commit": "51272749"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-19 12:11:31.726573",
13-
"spec_repo_commit": "a171e0a8"
12+
"regenerated": "2025-06-20 19:51:47.591597",
13+
"spec_repo_commit": "51272749"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7089,11 +7089,15 @@ components:
70897089
enum:
70907090
- user
70917091
- system
7092+
- api
7093+
- automation
70927094
example: user
70937095
type: string
70947096
x-enum-varnames:
70957097
- USER
70967098
- SYSTEM
7099+
- API
7100+
- AUTOMATION
70977101
ChangeEventCustomAttributesChangedResource:
70987102
additionalProperties: false
70997103
description: A uniquely identified resource.

src/datadogV2/model/model_change_event_custom_attributes_author_type.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
99
pub enum ChangeEventCustomAttributesAuthorType {
1010
USER,
1111
SYSTEM,
12+
API,
13+
AUTOMATION,
1214
UnparsedObject(crate::datadog::UnparsedObject),
1315
}
1416

@@ -17,6 +19,8 @@ impl ToString for ChangeEventCustomAttributesAuthorType {
1719
match self {
1820
Self::USER => String::from("user"),
1921
Self::SYSTEM => String::from("system"),
22+
Self::API => String::from("api"),
23+
Self::AUTOMATION => String::from("automation"),
2024
Self::UnparsedObject(v) => v.value.to_string(),
2125
}
2226
}
@@ -43,6 +47,8 @@ impl<'de> Deserialize<'de> for ChangeEventCustomAttributesAuthorType {
4347
Ok(match s.as_str() {
4448
"user" => Self::USER,
4549
"system" => Self::SYSTEM,
50+
"api" => Self::API,
51+
"automation" => Self::AUTOMATION,
4652
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4753
value: serde_json::Value::String(s.into()),
4854
}),

0 commit comments

Comments
 (0)