Skip to content

Commit 65f2402

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove prerequisite, table_id, and attached_to fields from incident user-defined field API (#1816)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fdcd9fa commit 65f2402

2 files changed

Lines changed: 0 additions & 70 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47115,11 +47115,6 @@ components:
4711547115
IncidentUserDefinedFieldAttributesResponse:
4711647116
description: Attributes of an incident user-defined field.
4711747117
properties:
47118-
attached_to:
47119-
description: The resource type this field is attached to. Always "incidents".
47120-
example: "incidents"
47121-
readOnly: true
47122-
type: string
4712347118
category:
4712447119
$ref: "#/components/schemas/IncidentUserDefinedFieldCategory"
4712547120
collected:
@@ -47164,12 +47159,6 @@ components:
4716447159
example: "1.5"
4716547160
nullable: true
4716647161
type: string
47167-
prerequisite:
47168-
description: Reserved for future use. Always null.
47169-
example:
47170-
nullable: true
47171-
readOnly: true
47172-
type: string
4717347162
required:
4717447163
description: When true, users must fill out this field on incidents.
4717547164
example: false
@@ -47179,12 +47168,6 @@ components:
4717947168
example: false
4718047169
readOnly: true
4718147170
type: boolean
47182-
table_id:
47183-
description: Reserved for internal use. Always 0.
47184-
example: 0
47185-
format: int64
47186-
readOnly: true
47187-
type: integer
4718847171
tag_key:
4718947172
description: For metric tag-type fields only, the metric tag key that powers the autocomplete options.
4719047173
example:
@@ -47205,7 +47188,6 @@ components:
4720547188
nullable: true
4720647189
type: array
4720747190
required:
47208-
- attached_to
4720947191
- category
4721047192
- collected
4721147193
- created
@@ -47216,10 +47198,8 @@ components:
4721647198
- modified
4721747199
- name
4721847200
- ordinal
47219-
- prerequisite
4722047201
- required
4722147202
- reserved
47222-
- table_id
4722347203
- tag_key
4722447204
- type
4722547205
- valid_values
@@ -139523,7 +139503,6 @@ paths:
139523139503
value:
139524139504
data:
139525139505
- attributes:
139526-
attached_to: "incidents"
139527139506
category: "what_happened"
139528139507
collected: "active"
139529139508
created: "2026-03-18T08:40:04.437887Z"
@@ -139534,10 +139513,8 @@ paths:
139534139513
modified: "2026-03-18T08:40:04.437887Z"
139535139514
name: "root_cause"
139536139515
ordinal: "1.1"
139537-
prerequisite:
139538139516
required: false
139539139517
reserved: false
139540-
table_id: 0
139541139518
tag_key:
139542139519
type: 1
139543139520
valid_values:
@@ -139642,7 +139619,6 @@ paths:
139642139619
value:
139643139620
data:
139644139621
attributes:
139645-
attached_to: "incidents"
139646139622
category:
139647139623
collected:
139648139624
created: "2026-03-18T08:40:05.185406Z"
@@ -139653,10 +139629,8 @@ paths:
139653139629
modified: "2026-03-18T08:40:05.185406Z"
139654139630
name: "root_cause"
139655139631
ordinal: "9"
139656-
prerequisite:
139657139632
required: false
139658139633
reserved: false
139659-
table_id: 0
139660139634
tag_key:
139661139635
type: 3
139662139636
valid_values:
@@ -139773,7 +139747,6 @@ paths:
139773139747
value:
139774139748
data:
139775139749
attributes:
139776-
attached_to: "incidents"
139777139750
category: "what_happened"
139778139751
collected: "active"
139779139752
created: "2026-03-18T08:40:04.437887Z"
@@ -139784,10 +139757,8 @@ paths:
139784139757
modified: "2026-03-18T08:40:04.437887Z"
139785139758
name: "root_cause"
139786139759
ordinal: "1.1"
139787-
prerequisite:
139788139760
required: false
139789139761
reserved: false
139790-
table_id: 0
139791139762
tag_key:
139792139763
type: 1
139793139764
valid_values:
@@ -139883,7 +139854,6 @@ paths:
139883139854
value:
139884139855
data:
139885139856
attributes:
139886-
attached_to: "incidents"
139887139857
category: "what_happened"
139888139858
collected:
139889139859
created: "2026-03-18T08:39:49.913895Z"
@@ -139894,10 +139864,8 @@ paths:
139894139864
modified: "2026-03-18T08:39:49.922909Z"
139895139865
name: "root_cause"
139896139866
ordinal: "8"
139897-
prerequisite:
139898139867
required: false
139899139868
reserved: false
139900-
table_id: 0
139901139869
tag_key:
139902139870
type: 3
139903139871
valid_values:

src/datadogV2/model/model_incident_user_defined_field_attributes_response.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct IncidentUserDefinedFieldAttributesResponse {
14-
/// The resource type this field is attached to. Always "incidents".
15-
#[serde(rename = "attached_to")]
16-
pub attached_to: String,
1714
/// The section in which the field appears: "what_happened" or "why_it_happened". When null, the field appears in the Attributes section.
1815
#[serialize_always]
1916
#[serde(rename = "category")]
@@ -51,19 +48,12 @@ pub struct IncidentUserDefinedFieldAttributesResponse {
5148
#[serialize_always]
5249
#[serde(rename = "ordinal")]
5350
pub ordinal: Option<String>,
54-
/// Reserved for future use. Always null.
55-
#[serialize_always]
56-
#[serde(rename = "prerequisite")]
57-
pub prerequisite: Option<String>,
5851
/// When true, users must fill out this field on incidents.
5952
#[serde(rename = "required")]
6053
pub required: bool,
6154
/// When true, this field is reserved for system use and cannot be deleted.
6255
#[serde(rename = "reserved")]
6356
pub reserved: bool,
64-
/// Reserved for internal use. Always 0.
65-
#[serde(rename = "table_id")]
66-
pub table_id: i64,
6757
/// For metric tag-type fields only, the metric tag key that powers the autocomplete options.
6858
#[serialize_always]
6959
#[serde(rename = "tag_key")]
@@ -85,7 +75,6 @@ pub struct IncidentUserDefinedFieldAttributesResponse {
8575

8676
impl IncidentUserDefinedFieldAttributesResponse {
8777
pub fn new(
88-
attached_to: String,
8978
category: Option<crate::datadogV2::model::IncidentUserDefinedFieldCategory>,
9079
collected: Option<crate::datadogV2::model::IncidentUserDefinedFieldCollected>,
9180
created: chrono::DateTime<chrono::Utc>,
@@ -96,16 +85,13 @@ impl IncidentUserDefinedFieldAttributesResponse {
9685
modified: Option<chrono::DateTime<chrono::Utc>>,
9786
name: String,
9887
ordinal: Option<String>,
99-
prerequisite: Option<String>,
10088
required: bool,
10189
reserved: bool,
102-
table_id: i64,
10390
tag_key: Option<String>,
10491
type_: Option<i32>,
10592
valid_values: Option<Vec<crate::datadogV2::model::IncidentUserDefinedFieldValidValue>>,
10693
) -> IncidentUserDefinedFieldAttributesResponse {
10794
IncidentUserDefinedFieldAttributesResponse {
108-
attached_to,
10995
category,
11096
collected,
11197
created,
@@ -116,10 +102,8 @@ impl IncidentUserDefinedFieldAttributesResponse {
116102
modified,
117103
name,
118104
ordinal,
119-
prerequisite,
120105
required,
121106
reserved,
122-
table_id,
123107
tag_key,
124108
type_,
125109
valid_values,
@@ -154,7 +138,6 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
154138
where
155139
M: MapAccess<'a>,
156140
{
157-
let mut attached_to: Option<String> = None;
158141
let mut category: Option<
159142
Option<crate::datadogV2::model::IncidentUserDefinedFieldCategory>,
160143
> = None;
@@ -171,10 +154,8 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
171154
let mut modified: Option<Option<chrono::DateTime<chrono::Utc>>> = None;
172155
let mut name: Option<String> = None;
173156
let mut ordinal: Option<Option<String>> = None;
174-
let mut prerequisite: Option<Option<String>> = None;
175157
let mut required: Option<bool> = None;
176158
let mut reserved: Option<bool> = None;
177-
let mut table_id: Option<i64> = None;
178159
let mut tag_key: Option<Option<String>> = None;
179160
let mut type_: Option<Option<i32>> = None;
180161
let mut valid_values: Option<
@@ -188,10 +169,6 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
188169

189170
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
190171
match k.as_str() {
191-
"attached_to" => {
192-
attached_to =
193-
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
194-
}
195172
"category" => {
196173
category = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
197174
if let Some(ref _category) = category {
@@ -240,19 +217,12 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
240217
"ordinal" => {
241218
ordinal = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
242219
}
243-
"prerequisite" => {
244-
prerequisite =
245-
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
246-
}
247220
"required" => {
248221
required = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
249222
}
250223
"reserved" => {
251224
reserved = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
252225
}
253-
"table_id" => {
254-
table_id = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
255-
}
256226
"tag_key" => {
257227
tag_key = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
258228
}
@@ -270,8 +240,6 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
270240
}
271241
}
272242
}
273-
let attached_to =
274-
attached_to.ok_or_else(|| M::Error::missing_field("attached_to"))?;
275243
let category = category.ok_or_else(|| M::Error::missing_field("category"))?;
276244
let collected = collected.ok_or_else(|| M::Error::missing_field("collected"))?;
277245
let created = created.ok_or_else(|| M::Error::missing_field("created"))?;
@@ -284,18 +252,14 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
284252
let modified = modified.ok_or_else(|| M::Error::missing_field("modified"))?;
285253
let name = name.ok_or_else(|| M::Error::missing_field("name"))?;
286254
let ordinal = ordinal.ok_or_else(|| M::Error::missing_field("ordinal"))?;
287-
let prerequisite =
288-
prerequisite.ok_or_else(|| M::Error::missing_field("prerequisite"))?;
289255
let required = required.ok_or_else(|| M::Error::missing_field("required"))?;
290256
let reserved = reserved.ok_or_else(|| M::Error::missing_field("reserved"))?;
291-
let table_id = table_id.ok_or_else(|| M::Error::missing_field("table_id"))?;
292257
let tag_key = tag_key.ok_or_else(|| M::Error::missing_field("tag_key"))?;
293258
let type_ = type_.ok_or_else(|| M::Error::missing_field("type_"))?;
294259
let valid_values =
295260
valid_values.ok_or_else(|| M::Error::missing_field("valid_values"))?;
296261

297262
let content = IncidentUserDefinedFieldAttributesResponse {
298-
attached_to,
299263
category,
300264
collected,
301265
created,
@@ -306,10 +270,8 @@ impl<'de> Deserialize<'de> for IncidentUserDefinedFieldAttributesResponse {
306270
modified,
307271
name,
308272
ordinal,
309-
prerequisite,
310273
required,
311274
reserved,
312-
table_id,
313275
tag_key,
314276
type_,
315277
valid_values,

0 commit comments

Comments
 (0)