Skip to content

Commit 9c7546f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add a new includeDiscovered query parameter to Software Catalog APIs (#2845)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent cfb56d6 commit 9c7546f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63547,6 +63547,14 @@ paths:
6354763547
- $ref: '#/components/parameters/FilterByRelationType'
6354863548
- $ref: '#/components/parameters/FilterByExcludeSnapshot'
6354963549
- $ref: '#/components/parameters/Include'
63550+
- description: If true, includes discovered services from APM and USM that do
63551+
not have entity definitions.
63552+
in: query
63553+
name: includeDiscovered
63554+
required: false
63555+
schema:
63556+
default: false
63557+
type: boolean
6355063558
responses:
6355163559
'200':
6355263560
content:
@@ -63765,6 +63773,13 @@ paths:
6376563773
- $ref: '#/components/parameters/FilterRelationByFromRef'
6376663774
- $ref: '#/components/parameters/FilterRelationByToRef'
6376763775
- $ref: '#/components/parameters/RelationInclude'
63776+
- description: If true, includes relationships discovered by APM and USM.
63777+
in: query
63778+
name: includeDiscovered
63779+
required: false
63780+
schema:
63781+
default: false
63782+
type: boolean
6376863783
responses:
6376963784
'200':
6377063785
content:

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,7 @@
12781278
"filter_relation_type" => "RelationType",
12791279
"filter_exclude_snapshot" => "String",
12801280
"include" => "IncludeType",
1281+
"include_discovered" => "Boolean",
12811282
},
12821283
"v2.UpsertCatalogEntity" => {
12831284
"body" => "UpsertCatalogEntityRequest",
@@ -1304,6 +1305,7 @@
13041305
"filter_from_ref" => "String",
13051306
"filter_to_ref" => "String",
13061307
"include" => "RelationIncludeType",
1308+
"include_discovered" => "Boolean",
13071309
},
13081310
"v2.CreateCIAppPipelineEvent" => {
13091311
"body" => "CIAppCreatePipelineEventRequest",

lib/datadog_api_client/v2/api/software_catalog_api.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def list_catalog_entity(opts = {})
176176
# @option opts [RelationType] :filter_relation_type Filter entities by relation type.
177177
# @option opts [String] :filter_exclude_snapshot Filter entities by excluding snapshotted entities.
178178
# @option opts [IncludeType] :include Include relationship data.
179+
# @option opts [Boolean] :include_discovered If true, includes discovered services from APM and USM that do not have entity definitions.
179180
# @return [Array<(ListEntityCatalogResponse, Integer, Hash)>] ListEntityCatalogResponse data, response status code and response headers
180181
def list_catalog_entity_with_http_info(opts = {})
181182

@@ -205,6 +206,7 @@ def list_catalog_entity_with_http_info(opts = {})
205206
query_params[:'filter[relation][type]'] = opts[:'filter_relation_type'] if !opts[:'filter_relation_type'].nil?
206207
query_params[:'filter[exclude_snapshot]'] = opts[:'filter_exclude_snapshot'] if !opts[:'filter_exclude_snapshot'].nil?
207208
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
209+
query_params[:'includeDiscovered'] = opts[:'include_discovered'] if !opts[:'include_discovered'].nil?
208210

209211
# header parameters
210212
header_params = opts[:header_params] || {}
@@ -370,6 +372,7 @@ def list_catalog_relation(opts = {})
370372
# @option opts [String] :filter_from_ref Filter relations by the reference of the first entity in the relation.
371373
# @option opts [String] :filter_to_ref Filter relations by the reference of the second entity in the relation.
372374
# @option opts [RelationIncludeType] :include Include relationship data.
375+
# @option opts [Boolean] :include_discovered If true, includes relationships discovered by APM and USM.
373376
# @return [Array<(ListRelationCatalogResponse, Integer, Hash)>] ListRelationCatalogResponse data, response status code and response headers
374377
def list_catalog_relation_with_http_info(opts = {})
375378

@@ -395,6 +398,7 @@ def list_catalog_relation_with_http_info(opts = {})
395398
query_params[:'filter[from_ref]'] = opts[:'filter_from_ref'] if !opts[:'filter_from_ref'].nil?
396399
query_params[:'filter[to_ref]'] = opts[:'filter_to_ref'] if !opts[:'filter_to_ref'].nil?
397400
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
401+
query_params[:'includeDiscovered'] = opts[:'include_discovered'] if !opts[:'include_discovered'].nil?
398402

399403
# header parameters
400404
header_params = opts[:header_params] || {}

0 commit comments

Comments
 (0)