Skip to content

Commit

Permalink
Regenerate client from commit df48196b of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 6, 2022
1 parent fcbb6e1 commit 86ddb14
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-06 09:26:23.301724",
"spec_repo_commit": "c520a0fb"
"regenerated": "2022-10-06 12:24:05.004338",
"spec_repo_commit": "df48196b"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-06 09:26:23.314622",
"spec_repo_commit": "c520a0fb"
"regenerated": "2022-10-06 12:24:05.016861",
"spec_repo_commit": "df48196b"
}
}
}
8 changes: 2 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2620,7 +2620,8 @@ components:
format: int64
type: integer
resolved:
description: Timestamp when the incident's state was set to resolved.
description: Timestamp when the incident's state was last changed from active
or stable to resolved or completed.
format: date-time
nullable: true
type: string
Expand Down Expand Up @@ -3129,11 +3130,6 @@ components:
items:
$ref: '#/components/schemas/IncidentNotificationHandle'
type: array
resolved:
description: Timestamp when the incident's state was set to resolved.
format: date-time
nullable: true
type: string
title:
description: The title of the incident, which summarizes what happened.
example: A test incident title
Expand Down
4 changes: 2 additions & 2 deletions features/v2/incidents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Feature: Incidents
Given operation "UpdateIncident" enabled
And new "UpdateIncident" request
And request contains "incident_id" parameter from "REPLACE.ME"
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"}}
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"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -224,7 +224,7 @@ Feature: Incidents
Given operation "UpdateIncident" enabled
And new "UpdateIncident" request
And request contains "incident_id" parameter from "REPLACE.ME"
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"}}
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"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class IncidentResponseAttributes {
*/
"publicId"?: number;
/**
* Timestamp when the incident's state was set to resolved.
* Timestamp when the incident's state was last changed from active or stable to resolved or completed.
*/
"resolved"?: Date;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export class IncidentUpdateAttributes {
* Notification handles that will be notified of the incident during update.
*/
"notificationHandles"?: Array<IncidentNotificationHandle>;
/**
* Timestamp when the incident's state was set to resolved.
*/
"resolved"?: Date;
/**
* The title of the incident, which summarizes what happened.
*/
Expand Down Expand Up @@ -89,11 +85,6 @@ export class IncidentUpdateAttributes {
baseName: "notification_handles",
type: "Array<IncidentNotificationHandle>",
},
resolved: {
baseName: "resolved",
type: "Date",
format: "date-time",
},
title: {
baseName: "title",
type: "string",
Expand Down

0 comments on commit 86ddb14

Please sign in to comment.