Skip to content

Commit

Permalink
Regenerate client from commit ccb4b9f of spec repo (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored May 19, 2021
1 parent d02c18c commit 03e7473
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 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.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"
}
}
}
2 changes: 1 addition & 1 deletion docs/v2/IncidentIntegrationMetadataType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/v2/IncidentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class IncidentIntegrationMetadataType(ModelSimple):

allowed_values = {
("value",): {
"INCIDENT_INTEGRATION_METADATA": "incident_integration_metadata",
"INCIDENT_INTEGRATIONS": "incident_integrations",
},
}

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
26 changes: 13 additions & 13 deletions src/datadog_api_client/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/v2/features/incidents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Feature: Incidents
Given operation "UpdateIncident" enabled
And new "UpdateIncident" request
And request contains "incident_id" parameter from "<PATH>"
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

Expand All @@ -115,7 +115,7 @@ Feature: Incidents
Given operation "UpdateIncident" enabled
And new "UpdateIncident" request
And request contains "incident_id" parameter from "<PATH>"
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

Expand Down

0 comments on commit 03e7473

Please sign in to comment.