diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 188cceacb..4075c222c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -46771,11 +46771,6 @@ components: description: An optional message shown to users when they declare an incident of this type. example: "Create an incident here" type: string - disable_out_of_the_box_postmortem_template: - default: false - description: Whether the out-of-the-box postmortem template is disabled for incidents of this type. - example: false - type: boolean editable_timestamps: default: false description: Whether responders can edit incident timestamps for incidents of this type. diff --git a/src/datadogV2/model/model_incident_type_configuration.rs b/src/datadogV2/model/model_incident_type_configuration.rs index 1dc8fade2..812bcb037 100644 --- a/src/datadogV2/model/model_incident_type_configuration.rs +++ b/src/datadogV2/model/model_incident_type_configuration.rs @@ -20,9 +20,6 @@ pub struct IncidentTypeConfiguration { /// An optional message shown to users when they declare an incident of this type. #[serde(rename = "create_message")] pub create_message: Option, - /// Whether the out-of-the-box postmortem template is disabled for incidents of this type. - #[serde(rename = "disable_out_of_the_box_postmortem_template")] - pub disable_out_of_the_box_postmortem_template: Option, /// Whether responders can edit incident timestamps for incidents of this type. #[serde(rename = "editable_timestamps")] pub editable_timestamps: Option, @@ -51,7 +48,6 @@ impl IncidentTypeConfiguration { allow_incident_deletion: None, allow_workflows: None, create_message: None, - disable_out_of_the_box_postmortem_template: None, editable_timestamps: None, private_incidents: None, private_incidents_by_default: None, @@ -77,11 +73,6 @@ impl IncidentTypeConfiguration { self } - pub fn disable_out_of_the_box_postmortem_template(mut self, value: bool) -> Self { - self.disable_out_of_the_box_postmortem_template = Some(value); - self - } - pub fn editable_timestamps(mut self, value: bool) -> Self { self.editable_timestamps = Some(value); self @@ -142,7 +133,6 @@ impl<'de> Deserialize<'de> for IncidentTypeConfiguration { let mut allow_incident_deletion: Option = None; let mut allow_workflows: Option = None; let mut create_message: Option = None; - let mut disable_out_of_the_box_postmortem_template: Option = None; let mut editable_timestamps: Option = None; let mut private_incidents: Option = None; let mut private_incidents_by_default: Option = None; @@ -177,13 +167,6 @@ impl<'de> Deserialize<'de> for IncidentTypeConfiguration { create_message = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } - "disable_out_of_the_box_postmortem_template" => { - if v.is_null() { - continue; - } - disable_out_of_the_box_postmortem_template = - Some(serde_json::from_value(v).map_err(M::Error::custom)?); - } "editable_timestamps" => { if v.is_null() { continue; @@ -239,7 +222,6 @@ impl<'de> Deserialize<'de> for IncidentTypeConfiguration { allow_incident_deletion, allow_workflows, create_message, - disable_out_of_the_box_postmortem_template, editable_timestamps, private_incidents, private_incidents_by_default, diff --git a/tests/scenarios/features/v2/incidents.feature b/tests/scenarios/features/v2/incidents.feature index 646ec88d8..62c70d5c5 100644 --- a/tests/scenarios/features/v2/incidents.feature +++ b/tests/scenarios/features/v2/incidents.feature @@ -166,7 +166,7 @@ Feature: Incidents Scenario: Create an incident type returns "Bad Request" response Given operation "CreateIncidentType" enabled And new "CreateIncidentType" request - And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}} + And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}} When the request is sent Then the response status is 400 Bad Request @@ -182,7 +182,7 @@ Feature: Incidents Scenario: Create an incident type returns "Not Found" response Given operation "CreateIncidentType" enabled And new "CreateIncidentType" request - And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}} + And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}} When the request is sent Then the response status is 404 Not Found @@ -1298,7 +1298,7 @@ Feature: Incidents Given operation "UpdateIncidentType" enabled And new "UpdateIncidentType" request And request contains "incident_type_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}} + And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}} When the request is sent Then the response status is 400 Bad Request @@ -1307,7 +1307,7 @@ Feature: Incidents Given operation "UpdateIncidentType" enabled And new "UpdateIncidentType" request And request contains "incident_type_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}} + And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}} When the request is sent Then the response status is 404 Not Found