Skip to content

Commit 47423b5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 359f8c7 of spec repo
1 parent 9fa4783 commit 47423b5

4 files changed

Lines changed: 51 additions & 16 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63463,6 +63463,14 @@ paths:
6346363463
- $ref: '#/components/parameters/FilterByRelationType'
6346463464
- $ref: '#/components/parameters/FilterByExcludeSnapshot'
6346563465
- $ref: '#/components/parameters/Include'
63466+
- description: If true, includes discovered services from APM and USM that do
63467+
not have entity definitions.
63468+
in: query
63469+
name: includeDiscovered
63470+
required: false
63471+
schema:
63472+
default: false
63473+
type: boolean
6346663474
responses:
6346763475
'200':
6346863476
content:
@@ -63681,6 +63689,13 @@ paths:
6368163689
- $ref: '#/components/parameters/FilterRelationByFromRef'
6368263690
- $ref: '#/components/parameters/FilterRelationByToRef'
6368363691
- $ref: '#/components/parameters/RelationInclude'
63692+
- description: If true, includes relationships discovered by APM and USM.
63693+
in: query
63694+
name: includeDiscovered
63695+
required: false
63696+
schema:
63697+
default: false
63698+
type: boolean
6368463699
responses:
6368563700
'200':
6368663701
content:
@@ -69334,9 +69349,6 @@ paths:
6933469349
operator: OR
6933569350
permissions:
6933669351
- incident_read
69337-
x-unstable: '**Note**: This endpoint is in Preview.
69338-
69339-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6934069352
post:
6934169353
description: Create an impact for an incident.
6934269354
operationId: CreateIncidentImpact
@@ -69380,9 +69392,6 @@ paths:
6938069392
operator: OR
6938169393
permissions:
6938269394
- incident_write
69383-
x-unstable: '**Note**: This endpoint is in Preview.
69384-
69385-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6938669395
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6938769396
delete:
6938869397
description: Delete an incident impact.
@@ -69413,9 +69422,6 @@ paths:
6941369422
operator: OR
6941469423
permissions:
6941569424
- incident_write
69416-
x-unstable: '**Note**: This endpoint is in Preview.
69417-
69418-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6941969425
/api/v2/incidents/{incident_id}/relationships/integrations:
6942069426
get:
6942169427
description: Get all integration metadata for an incident.

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,12 @@ def __init__(
307307
"v2.update_deployment_gate": False,
308308
"v2.update_deployment_rule": False,
309309
"v2.create_incident": False,
310-
"v2.create_incident_impact": False,
311310
"v2.create_incident_integration": False,
312311
"v2.create_incident_notification_rule": False,
313312
"v2.create_incident_notification_template": False,
314313
"v2.create_incident_todo": False,
315314
"v2.create_incident_type": False,
316315
"v2.delete_incident": False,
317-
"v2.delete_incident_impact": False,
318316
"v2.delete_incident_integration": False,
319317
"v2.delete_incident_notification_rule": False,
320318
"v2.delete_incident_notification_template": False,
@@ -327,7 +325,6 @@ def __init__(
327325
"v2.get_incident_todo": False,
328326
"v2.get_incident_type": False,
329327
"v2.list_incident_attachments": False,
330-
"v2.list_incident_impacts": False,
331328
"v2.list_incident_integrations": False,
332329
"v2.list_incident_notification_rules": False,
333330
"v2.list_incident_notification_templates": False,

src/datadog_api_client/v2/api/software_catalog_api.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ def __init__(self, api_client=None):
148148
"attribute": "include",
149149
"location": "query",
150150
},
151+
"include_discovered": {
152+
"openapi_types": (bool,),
153+
"attribute": "includeDiscovered",
154+
"location": "query",
155+
},
151156
},
152157
headers_map={
153158
"accept": ["application/json"],
@@ -232,6 +237,11 @@ def __init__(self, api_client=None):
232237
"attribute": "include",
233238
"location": "query",
234239
},
240+
"include_discovered": {
241+
"openapi_types": (bool,),
242+
"attribute": "includeDiscovered",
243+
"location": "query",
244+
},
235245
},
236246
headers_map={
237247
"accept": ["application/json"],
@@ -342,6 +352,7 @@ def list_catalog_entity(
342352
filter_relation_type: Union[RelationType, UnsetType] = unset,
343353
filter_exclude_snapshot: Union[str, UnsetType] = unset,
344354
include: Union[IncludeType, UnsetType] = unset,
355+
include_discovered: Union[bool, UnsetType] = unset,
345356
) -> ListEntityCatalogResponse:
346357
"""Get a list of entities.
347358
@@ -367,6 +378,8 @@ def list_catalog_entity(
367378
:type filter_exclude_snapshot: str, optional
368379
:param include: Include relationship data.
369380
:type include: IncludeType, optional
381+
:param include_discovered: If true, includes discovered services from APM and USM that do not have entity definitions.
382+
:type include_discovered: bool, optional
370383
:rtype: ListEntityCatalogResponse
371384
"""
372385
kwargs: Dict[str, Any] = {}
@@ -400,6 +413,9 @@ def list_catalog_entity(
400413
if include is not unset:
401414
kwargs["include"] = include
402415

416+
if include_discovered is not unset:
417+
kwargs["include_discovered"] = include_discovered
418+
403419
return self._list_catalog_entity_endpoint.call_with_http_info(**kwargs)
404420

405421
def list_catalog_entity_with_pagination(
@@ -415,6 +431,7 @@ def list_catalog_entity_with_pagination(
415431
filter_relation_type: Union[RelationType, UnsetType] = unset,
416432
filter_exclude_snapshot: Union[str, UnsetType] = unset,
417433
include: Union[IncludeType, UnsetType] = unset,
434+
include_discovered: Union[bool, UnsetType] = unset,
418435
) -> collections.abc.Iterable[EntityData]:
419436
"""Get a list of entities.
420437
@@ -440,6 +457,8 @@ def list_catalog_entity_with_pagination(
440457
:type filter_exclude_snapshot: str, optional
441458
:param include: Include relationship data.
442459
:type include: IncludeType, optional
460+
:param include_discovered: If true, includes discovered services from APM and USM that do not have entity definitions.
461+
:type include_discovered: bool, optional
443462
444463
:return: A generator of paginated results.
445464
:rtype: collections.abc.Iterable[EntityData]
@@ -475,6 +494,9 @@ def list_catalog_entity_with_pagination(
475494
if include is not unset:
476495
kwargs["include"] = include
477496

497+
if include_discovered is not unset:
498+
kwargs["include_discovered"] = include_discovered
499+
478500
local_page_size = get_attribute_from_path(kwargs, "page_limit", 100)
479501
endpoint = self._list_catalog_entity_endpoint
480502
set_attribute_from_path(kwargs, "page_limit", local_page_size, endpoint.params_map)
@@ -582,6 +604,7 @@ def list_catalog_relation(
582604
filter_from_ref: Union[str, UnsetType] = unset,
583605
filter_to_ref: Union[str, UnsetType] = unset,
584606
include: Union[RelationIncludeType, UnsetType] = unset,
607+
include_discovered: Union[bool, UnsetType] = unset,
585608
) -> ListRelationCatalogResponse:
586609
"""Get a list of entity relations.
587610
@@ -599,6 +622,8 @@ def list_catalog_relation(
599622
:type filter_to_ref: str, optional
600623
:param include: Include relationship data.
601624
:type include: RelationIncludeType, optional
625+
:param include_discovered: If true, includes relationships discovered by APM and USM.
626+
:type include_discovered: bool, optional
602627
:rtype: ListRelationCatalogResponse
603628
"""
604629
kwargs: Dict[str, Any] = {}
@@ -620,6 +645,9 @@ def list_catalog_relation(
620645
if include is not unset:
621646
kwargs["include"] = include
622647

648+
if include_discovered is not unset:
649+
kwargs["include_discovered"] = include_discovered
650+
623651
return self._list_catalog_relation_endpoint.call_with_http_info(**kwargs)
624652

625653
def list_catalog_relation_with_pagination(
@@ -631,6 +659,7 @@ def list_catalog_relation_with_pagination(
631659
filter_from_ref: Union[str, UnsetType] = unset,
632660
filter_to_ref: Union[str, UnsetType] = unset,
633661
include: Union[RelationIncludeType, UnsetType] = unset,
662+
include_discovered: Union[bool, UnsetType] = unset,
634663
) -> collections.abc.Iterable[RelationResponse]:
635664
"""Get a list of entity relations.
636665
@@ -648,6 +677,8 @@ def list_catalog_relation_with_pagination(
648677
:type filter_to_ref: str, optional
649678
:param include: Include relationship data.
650679
:type include: RelationIncludeType, optional
680+
:param include_discovered: If true, includes relationships discovered by APM and USM.
681+
:type include_discovered: bool, optional
651682
652683
:return: A generator of paginated results.
653684
:rtype: collections.abc.Iterable[RelationResponse]
@@ -671,6 +702,9 @@ def list_catalog_relation_with_pagination(
671702
if include is not unset:
672703
kwargs["include"] = include
673704

705+
if include_discovered is not unset:
706+
kwargs["include_discovered"] = include_discovered
707+
674708
local_page_size = get_attribute_from_path(kwargs, "page_limit", 100)
675709
endpoint = self._list_catalog_relation_endpoint
676710
set_attribute_from_path(kwargs, "page_limit", local_page_size, endpoint.params_map)

tests/v2/features/incidents.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,14 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given operation "ListIncidentImpacts" enabled
810-
And new "ListIncidentImpacts" request
809+
Given new "ListIncidentImpacts" request
811810
And request contains "incident_id" parameter from "REPLACE.ME"
812811
When the request is sent
813812
Then the response status is 400 Bad Request
814813

815814
@generated @skip @team:DataDog/incident-app
816815
Scenario: List an incident's impacts returns "Not Found" response
817-
Given operation "ListIncidentImpacts" enabled
818-
And new "ListIncidentImpacts" request
816+
Given new "ListIncidentImpacts" request
819817
And request contains "incident_id" parameter from "REPLACE.ME"
820818
When the request is sent
821819
Then the response status is 404 Not Found

0 commit comments

Comments
 (0)