diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a954de475f..a70382470b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -63547,6 +63547,14 @@ paths: - $ref: '#/components/parameters/FilterByRelationType' - $ref: '#/components/parameters/FilterByExcludeSnapshot' - $ref: '#/components/parameters/Include' + - description: If true, includes discovered services from APM and USM that do + not have entity definitions. + in: query + name: includeDiscovered + required: false + schema: + default: false + type: boolean responses: '200': content: @@ -63765,6 +63773,13 @@ paths: - $ref: '#/components/parameters/FilterRelationByFromRef' - $ref: '#/components/parameters/FilterRelationByToRef' - $ref: '#/components/parameters/RelationInclude' + - description: If true, includes relationships discovered by APM and USM. + in: query + name: includeDiscovered + required: false + schema: + default: false + type: boolean responses: '200': content: diff --git a/src/datadog_api_client/v2/api/software_catalog_api.py b/src/datadog_api_client/v2/api/software_catalog_api.py index bb6a2579f3..16113c7bba 100644 --- a/src/datadog_api_client/v2/api/software_catalog_api.py +++ b/src/datadog_api_client/v2/api/software_catalog_api.py @@ -148,6 +148,11 @@ def __init__(self, api_client=None): "attribute": "include", "location": "query", }, + "include_discovered": { + "openapi_types": (bool,), + "attribute": "includeDiscovered", + "location": "query", + }, }, headers_map={ "accept": ["application/json"], @@ -232,6 +237,11 @@ def __init__(self, api_client=None): "attribute": "include", "location": "query", }, + "include_discovered": { + "openapi_types": (bool,), + "attribute": "includeDiscovered", + "location": "query", + }, }, headers_map={ "accept": ["application/json"], @@ -342,6 +352,7 @@ def list_catalog_entity( filter_relation_type: Union[RelationType, UnsetType] = unset, filter_exclude_snapshot: Union[str, UnsetType] = unset, include: Union[IncludeType, UnsetType] = unset, + include_discovered: Union[bool, UnsetType] = unset, ) -> ListEntityCatalogResponse: """Get a list of entities. @@ -367,6 +378,8 @@ def list_catalog_entity( :type filter_exclude_snapshot: str, optional :param include: Include relationship data. :type include: IncludeType, optional + :param include_discovered: If true, includes discovered services from APM and USM that do not have entity definitions. + :type include_discovered: bool, optional :rtype: ListEntityCatalogResponse """ kwargs: Dict[str, Any] = {} @@ -400,6 +413,9 @@ def list_catalog_entity( if include is not unset: kwargs["include"] = include + if include_discovered is not unset: + kwargs["include_discovered"] = include_discovered + return self._list_catalog_entity_endpoint.call_with_http_info(**kwargs) def list_catalog_entity_with_pagination( @@ -415,6 +431,7 @@ def list_catalog_entity_with_pagination( filter_relation_type: Union[RelationType, UnsetType] = unset, filter_exclude_snapshot: Union[str, UnsetType] = unset, include: Union[IncludeType, UnsetType] = unset, + include_discovered: Union[bool, UnsetType] = unset, ) -> collections.abc.Iterable[EntityData]: """Get a list of entities. @@ -440,6 +457,8 @@ def list_catalog_entity_with_pagination( :type filter_exclude_snapshot: str, optional :param include: Include relationship data. :type include: IncludeType, optional + :param include_discovered: If true, includes discovered services from APM and USM that do not have entity definitions. + :type include_discovered: bool, optional :return: A generator of paginated results. :rtype: collections.abc.Iterable[EntityData] @@ -475,6 +494,9 @@ def list_catalog_entity_with_pagination( if include is not unset: kwargs["include"] = include + if include_discovered is not unset: + kwargs["include_discovered"] = include_discovered + local_page_size = get_attribute_from_path(kwargs, "page_limit", 100) endpoint = self._list_catalog_entity_endpoint set_attribute_from_path(kwargs, "page_limit", local_page_size, endpoint.params_map) @@ -582,6 +604,7 @@ def list_catalog_relation( filter_from_ref: Union[str, UnsetType] = unset, filter_to_ref: Union[str, UnsetType] = unset, include: Union[RelationIncludeType, UnsetType] = unset, + include_discovered: Union[bool, UnsetType] = unset, ) -> ListRelationCatalogResponse: """Get a list of entity relations. @@ -599,6 +622,8 @@ def list_catalog_relation( :type filter_to_ref: str, optional :param include: Include relationship data. :type include: RelationIncludeType, optional + :param include_discovered: If true, includes relationships discovered by APM and USM. + :type include_discovered: bool, optional :rtype: ListRelationCatalogResponse """ kwargs: Dict[str, Any] = {} @@ -620,6 +645,9 @@ def list_catalog_relation( if include is not unset: kwargs["include"] = include + if include_discovered is not unset: + kwargs["include_discovered"] = include_discovered + return self._list_catalog_relation_endpoint.call_with_http_info(**kwargs) def list_catalog_relation_with_pagination( @@ -631,6 +659,7 @@ def list_catalog_relation_with_pagination( filter_from_ref: Union[str, UnsetType] = unset, filter_to_ref: Union[str, UnsetType] = unset, include: Union[RelationIncludeType, UnsetType] = unset, + include_discovered: Union[bool, UnsetType] = unset, ) -> collections.abc.Iterable[RelationResponse]: """Get a list of entity relations. @@ -648,6 +677,8 @@ def list_catalog_relation_with_pagination( :type filter_to_ref: str, optional :param include: Include relationship data. :type include: RelationIncludeType, optional + :param include_discovered: If true, includes relationships discovered by APM and USM. + :type include_discovered: bool, optional :return: A generator of paginated results. :rtype: collections.abc.Iterable[RelationResponse] @@ -671,6 +702,9 @@ def list_catalog_relation_with_pagination( if include is not unset: kwargs["include"] = include + if include_discovered is not unset: + kwargs["include_discovered"] = include_discovered + local_page_size = get_attribute_from_path(kwargs, "page_limit", 100) endpoint = self._list_catalog_relation_endpoint set_attribute_from_path(kwargs, "page_limit", local_page_size, endpoint.params_map)