diff --git a/.apigentools-info b/.apigentools-info index 1336407531..b3815bf301 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-05-18 18:42:12.523737", - "spec_repo_commit": "5765426" + "regenerated": "2021-05-19 07:45:36.672116", + "spec_repo_commit": "ccb4b9f" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-05-18 18:42:40.336409", - "spec_repo_commit": "5765426" + "regenerated": "2021-05-19 07:46:00.367946", + "spec_repo_commit": "ccb4b9f" } } } \ No newline at end of file diff --git a/docs/v2/IncidentIntegrationMetadataType.md b/docs/v2/IncidentIntegrationMetadataType.md index 9abd278a96..9129cd59ac 100644 --- a/docs/v2/IncidentIntegrationMetadataType.md +++ b/docs/v2/IncidentIntegrationMetadataType.md @@ -5,7 +5,7 @@ Integration metadata resource type. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Integration metadata resource type. | defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ] +**value** | **str** | Integration metadata resource type. | defaults to "incident_integrations", must be one of ["incident_integrations", ] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/v2/IncidentsApi.md b/docs/v2/IncidentsApi.md index 3c90085b75..a026dd3743 100644 --- a/docs/v2/IncidentsApi.md +++ b/docs/v2/IncidentsApi.md @@ -393,7 +393,7 @@ with ApiClient(configuration) as api_client: data=[ RelationshipToIncidentIntegrationMetadataData( id="00000000-0000-0000-0000-000000000000", - type=IncidentIntegrationMetadataType("incident_integration_metadata"), + type=IncidentIntegrationMetadataType("incident_integrations"), ), ], ), diff --git a/src/datadog_api_client/v2/model/incident_integration_metadata_type.py b/src/datadog_api_client/v2/model/incident_integration_metadata_type.py index 6efe23d970..0564bde03e 100644 --- a/src/datadog_api_client/v2/model/incident_integration_metadata_type.py +++ b/src/datadog_api_client/v2/model/incident_integration_metadata_type.py @@ -44,7 +44,7 @@ class IncidentIntegrationMetadataType(ModelSimple): allowed_values = { ("value",): { - "INCIDENT_INTEGRATION_METADATA": "incident_integration_metadata", + "INCIDENT_INTEGRATIONS": "incident_integrations", }, } @@ -94,10 +94,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Integration metadata resource type.. if omitted defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ] # noqa: E501 + args[0] (str): Integration metadata resource type.. if omitted defaults to "incident_integrations", must be one of ["incident_integrations", ] # noqa: E501 Keyword Args: - value (str): Integration metadata resource type.. if omitted defaults to "incident_integration_metadata", must be one of ["incident_integration_metadata", ] # noqa: E501 + value (str): Integration metadata resource type.. if omitted defaults to "incident_integrations", must be one of ["incident_integrations", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -138,7 +138,7 @@ def __init__(self, *args, **kwargs): args = list(args) value = args.pop(0) else: - value = "incident_integration_metadata" + value = "incident_integrations" _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) diff --git a/src/datadog_api_client/v2/openapi.yaml b/src/datadog_api_client/v2/openapi.yaml index 9e0f96cd5b..d7c41b299a 100644 --- a/src/datadog_api_client/v2/openapi.yaml +++ b/src/datadog_api_client/v2/openapi.yaml @@ -960,14 +960,14 @@ components: - METRICTAG - AUTOCOMPLETE IncidentIntegrationMetadataType: - default: incident_integration_metadata + default: incident_integrations description: Integration metadata resource type. enum: - - incident_integration_metadata - example: incident_integration_metadata + - incident_integrations + example: incident_integrations type: string x-enum-varnames: - - INCIDENT_INTEGRATION_METADATA + - INCIDENT_INTEGRATIONS IncidentPostmortemType: default: incident_postmortems description: Incident postmortem resource type. @@ -1685,9 +1685,9 @@ components: integrations: data: - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations last_modified_by_user: data: id: 00000000-0000-0000-0000-000000000000 @@ -1729,9 +1729,9 @@ components: integrations: data: - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations last_modified_by_user: data: id: 00000000-0000-0000-0000-000000000000 @@ -3495,7 +3495,7 @@ components: description: A relationship reference for an integration metadata object. example: id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations properties: id: description: A unique identifier that represents the integration metadata. @@ -3512,17 +3512,17 @@ components: example: data: - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations properties: data: description: The integration metadata relationship array example: - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations - id: 00000000-0000-0000-0000-000000000000 - type: incident_integration_metadata + type: incident_integrations items: $ref: '#/components/schemas/RelationshipToIncidentIntegrationMetadataData' type: array diff --git a/tests/v2/features/incidents.feature b/tests/v2/features/incidents.feature index 8f7bfebaa5..12a400cad8 100644 --- a/tests/v2/features/incidents.feature +++ b/tests/v2/features/incidents.feature @@ -106,7 +106,7 @@ Feature: Incidents Given operation "UpdateIncident" enabled And new "UpdateIncident" request And request contains "incident_id" parameter from "" - 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": ["@test.user@test.com"], "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"}} + 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": ["@test.user@test.com"], "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"}} When the request is sent Then the response status is 400 Bad Request @@ -115,7 +115,7 @@ Feature: Incidents Given operation "UpdateIncident" enabled And new "UpdateIncident" request And request contains "incident_id" parameter from "" - 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": ["@test.user@test.com"], "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"}} + 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": ["@test.user@test.com"], "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"}} When the request is sent Then the response status is 404 Not Found