Skip to content

Commit 866760c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 1010045c of spec repo (#1197)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3e0b8a4 commit 866760c

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
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.4",
7-
"regenerated": "2022-10-07 13:12:58.196696",
8-
"spec_repo_commit": "a09fec54"
7+
"regenerated": "2022-10-07 16:18:38.021199",
8+
"spec_repo_commit": "1010045c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-07 13:12:58.212913",
13-
"spec_repo_commit": "a09fec54"
12+
"regenerated": "2022-10-07 16:18:38.032879",
13+
"spec_repo_commit": "1010045c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,8 @@ components:
26202620
format: int64
26212621
type: integer
26222622
resolved:
2623-
description: Timestamp when the incident's state was set to resolved.
2623+
description: Timestamp when the incident's state was last changed from active
2624+
or stable to resolved or completed.
26242625
format: date-time
26252626
nullable: true
26262627
type: string
@@ -3129,11 +3130,6 @@ components:
31293130
items:
31303131
$ref: '#/components/schemas/IncidentNotificationHandle'
31313132
type: array
3132-
resolved:
3133-
description: Timestamp when the incident's state was set to resolved.
3134-
format: date-time
3135-
nullable: true
3136-
type: string
31373133
title:
31383134
description: The title of the incident, which summarizes what happened.
31393135
example: A test incident title

src/datadog_api_client/v2/model/incident_response_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__(self_, title, *args, **kwargs):
104104
:param public_id: The monotonically increasing integer ID for the incident.
105105
:type public_id: int, optional
106106
107-
:param resolved: Timestamp when the incident's state was set to resolved.
107+
:param resolved: Timestamp when the incident's state was last changed from active or stable to resolved or completed.
108108
:type resolved: datetime, none_type, optional
109109
110110
:param time_to_detect: The amount of time in seconds to detect the incident.

src/datadog_api_client/v2/model/incident_update_attributes.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def openapi_types(_):
2525
"detected": (datetime, none_type),
2626
"fields": ({str: (IncidentFieldAttributes,)},),
2727
"notification_handles": ([IncidentNotificationHandle],),
28-
"resolved": (datetime, none_type),
2928
"title": (str,),
3029
}
3130

@@ -37,7 +36,6 @@ def openapi_types(_):
3736
"detected": "detected",
3837
"fields": "fields",
3938
"notification_handles": "notification_handles",
40-
"resolved": "resolved",
4139
"title": "title",
4240
}
4341

@@ -66,9 +64,6 @@ def __init__(self_, *args, **kwargs):
6664
:param notification_handles: Notification handles that will be notified of the incident during update.
6765
:type notification_handles: [IncidentNotificationHandle], optional
6866
69-
:param resolved: Timestamp when the incident's state was set to resolved.
70-
:type resolved: datetime, none_type, optional
71-
7267
:param title: The title of the incident, which summarizes what happened.
7368
:type title: str, optional
7469
"""

tests/v2/features/incidents.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Feature: Incidents
215215
Given operation "UpdateIncident" enabled
216216
And new "UpdateIncident" request
217217
And request contains "incident_id" parameter from "REPLACE.ME"
218-
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
218+
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
219219
When the request is sent
220220
Then the response status is 400 Bad Request
221221

@@ -224,7 +224,7 @@ Feature: Incidents
224224
Given operation "UpdateIncident" enabled
225225
And new "UpdateIncident" request
226226
And request contains "incident_id" parameter from "REPLACE.ME"
227-
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
227+
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
228228
When the request is sent
229229
Then the response status is 404 Not Found
230230

0 commit comments

Comments
 (0)