Skip to content

Commit 4cd83af

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ccb4b9f of spec repo (#136)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 912368a commit 4cd83af

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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.4.1.dev6",
7-
"regenerated": "2021-05-18 08:19:41.200180",
8-
"spec_repo_commit": "cd769d5"
7+
"regenerated": "2021-05-19 07:45:55.048760",
8+
"spec_repo_commit": "ccb4b9f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-05-18 08:19:46.080524",
13-
"spec_repo_commit": "cd769d5"
12+
"regenerated": "2021-05-19 07:46:01.011673",
13+
"spec_repo_commit": "ccb4b9f"
1414
}
1515
}
1616
}

features/v2/incidents.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Feature: Incidents
106106
Given operation "UpdateIncident" enabled
107107
And new "UpdateIncident" request
108108
And request contains "incident_id" parameter from "<PATH>"
109-
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": ["@[email protected]"], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integration_metadata"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integration_metadata"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
109+
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": ["@[email protected]"], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
110110
When the request is sent
111111
Then the response status is 400 Bad Request
112112

@@ -115,7 +115,7 @@ Feature: Incidents
115115
Given operation "UpdateIncident" enabled
116116
And new "UpdateIncident" request
117117
And request contains "incident_id" parameter from "<PATH>"
118-
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": ["@[email protected]"], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integration_metadata"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integration_metadata"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
118+
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": ["@[email protected]"], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
119119
When the request is sent
120120
Then the response status is 404 Not Found
121121

packages/datadog-api-client-v2/models/IncidentIntegrationMetadataType.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { ObjectSerializer } from './ObjectSerializer';
1515
* Integration metadata resource type.
1616
*/
1717

18-
export type IncidentIntegrationMetadataType = typeof INCIDENT_INTEGRATION_METADATA ;
19-
export const INCIDENT_INTEGRATION_METADATA = 'incident_integration_metadata';
18+
export type IncidentIntegrationMetadataType = typeof INCIDENT_INTEGRATIONS ;
19+
export const INCIDENT_INTEGRATIONS = 'incident_integrations';
2020

2121

packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadataData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class RelationshipToIncidentIntegrationMetadataData {
5252
if (data.type === undefined) {
5353
throw new TypeError("missing required attribute 'type' on 'RelationshipToIncidentIntegrationMetadataData' object");
5454
}
55-
if (['incident_integration_metadata', undefined].includes(data.type)) {
55+
if (['incident_integrations', undefined].includes(data.type)) {
5656
res.type = data.type;
5757
} else {
5858
throw TypeError(`invalid enum value ${ data.type } for type`);
@@ -78,7 +78,7 @@ export class RelationshipToIncidentIntegrationMetadataData {
7878
if (data.type === undefined) {
7979
throw new TypeError("missing required attribute 'type' on 'RelationshipToIncidentIntegrationMetadataData' object");
8080
}
81-
if (['incident_integration_metadata', undefined].includes(data.type)) {
81+
if (['incident_integrations', undefined].includes(data.type)) {
8282
res.type = data.type;
8383
} else {
8484
throw TypeError(`invalid enum value ${ data.type } for type`);

0 commit comments

Comments
 (0)