Skip to content

Commit 03e7473

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ccb4b9f of spec repo (#444)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d02c18c commit 03e7473

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
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 18:42:12.523737",
8-
"spec_repo_commit": "5765426"
7+
"regenerated": "2021-05-19 07:45:36.672116",
8+
"spec_repo_commit": "ccb4b9f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-05-18 18:42:40.336409",
13-
"spec_repo_commit": "5765426"
12+
"regenerated": "2021-05-19 07:46:00.367946",
13+
"spec_repo_commit": "ccb4b9f"
1414
}
1515
}
1616
}

docs/v2/IncidentIntegrationMetadataType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Integration metadata resource type.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | **str** | Integration metadata resource type. | defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ]
8+
**value** | **str** | Integration metadata resource type. | defaults to "incident_integrations", must be one of ["incident_integrations", ]
99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1111

docs/v2/IncidentsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ with ApiClient(configuration) as api_client:
393393
data=[
394394
RelationshipToIncidentIntegrationMetadataData(
395395
id="00000000-0000-0000-0000-000000000000",
396-
type=IncidentIntegrationMetadataType("incident_integration_metadata"),
396+
type=IncidentIntegrationMetadataType("incident_integrations"),
397397
),
398398
],
399399
),

src/datadog_api_client/v2/model/incident_integration_metadata_type.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class IncidentIntegrationMetadataType(ModelSimple):
4444

4545
allowed_values = {
4646
("value",): {
47-
"INCIDENT_INTEGRATION_METADATA": "incident_integration_metadata",
47+
"INCIDENT_INTEGRATIONS": "incident_integrations",
4848
},
4949
}
5050

@@ -94,10 +94,10 @@ def __init__(self, *args, **kwargs):
9494
Note that value can be passed either in args or in kwargs, but not in both.
9595
9696
Args:
97-
args[0] (str): Integration metadata resource type.. if omitted defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ] # noqa: E501
97+
args[0] (str): Integration metadata resource type.. if omitted defaults to "incident_integrations", must be one of ["incident_integrations", ] # noqa: E501
9898
9999
Keyword Args:
100-
value (str): Integration metadata resource type.. if omitted defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ] # noqa: E501
100+
value (str): Integration metadata resource type.. if omitted defaults to "incident_integrations", must be one of ["incident_integrations", ] # noqa: E501
101101
_check_type (bool): if True, values for parameters in openapi_types
102102
will be type checked and a TypeError will be
103103
raised if the wrong type is input.
@@ -138,7 +138,7 @@ def __init__(self, *args, **kwargs):
138138
args = list(args)
139139
value = args.pop(0)
140140
else:
141-
value = "incident_integration_metadata"
141+
value = "incident_integrations"
142142

143143
_check_type = kwargs.pop("_check_type", True)
144144
_spec_property_naming = kwargs.pop("_spec_property_naming", False)

src/datadog_api_client/v2/openapi.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -960,14 +960,14 @@ components:
960960
- METRICTAG
961961
- AUTOCOMPLETE
962962
IncidentIntegrationMetadataType:
963-
default: incident_integration_metadata
963+
default: incident_integrations
964964
description: Integration metadata resource type.
965965
enum:
966-
- incident_integration_metadata
967-
example: incident_integration_metadata
966+
- incident_integrations
967+
example: incident_integrations
968968
type: string
969969
x-enum-varnames:
970-
- INCIDENT_INTEGRATION_METADATA
970+
- INCIDENT_INTEGRATIONS
971971
IncidentPostmortemType:
972972
default: incident_postmortems
973973
description: Incident postmortem resource type.
@@ -1685,9 +1685,9 @@ components:
16851685
integrations:
16861686
data:
16871687
- id: 00000000-0000-0000-0000-000000000000
1688-
type: incident_integration_metadata
1688+
type: incident_integrations
16891689
- id: 00000000-0000-0000-0000-000000000000
1690-
type: incident_integration_metadata
1690+
type: incident_integrations
16911691
last_modified_by_user:
16921692
data:
16931693
id: 00000000-0000-0000-0000-000000000000
@@ -1729,9 +1729,9 @@ components:
17291729
integrations:
17301730
data:
17311731
- id: 00000000-0000-0000-0000-000000000000
1732-
type: incident_integration_metadata
1732+
type: incident_integrations
17331733
- id: 00000000-0000-0000-0000-000000000000
1734-
type: incident_integration_metadata
1734+
type: incident_integrations
17351735
last_modified_by_user:
17361736
data:
17371737
id: 00000000-0000-0000-0000-000000000000
@@ -3495,7 +3495,7 @@ components:
34953495
description: A relationship reference for an integration metadata object.
34963496
example:
34973497
id: 00000000-0000-0000-0000-000000000000
3498-
type: incident_integration_metadata
3498+
type: incident_integrations
34993499
properties:
35003500
id:
35013501
description: A unique identifier that represents the integration metadata.
@@ -3512,17 +3512,17 @@ components:
35123512
example:
35133513
data:
35143514
- id: 00000000-0000-0000-0000-000000000000
3515-
type: incident_integration_metadata
3515+
type: incident_integrations
35163516
- id: 00000000-0000-0000-0000-000000000000
3517-
type: incident_integration_metadata
3517+
type: incident_integrations
35183518
properties:
35193519
data:
35203520
description: The integration metadata relationship array
35213521
example:
35223522
- id: 00000000-0000-0000-0000-000000000000
3523-
type: incident_integration_metadata
3523+
type: incident_integrations
35243524
- id: 00000000-0000-0000-0000-000000000000
3525-
type: incident_integration_metadata
3525+
type: incident_integrations
35263526
items:
35273527
$ref: '#/components/schemas/RelationshipToIncidentIntegrationMetadataData'
35283528
type: array

tests/v2/features/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

0 commit comments

Comments
 (0)