Skip to content

Commit a9d1f71

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5822021c of spec repo
1 parent 375c92b commit a9d1f71

20 files changed

+1571
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-20 07:21:24.854718",
8-
"spec_repo_commit": "fec20f97"
7+
"regenerated": "2025-05-22 21:11:12.846130",
8+
"spec_repo_commit": "5822021c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-20 07:21:24.871057",
13-
"spec_repo_commit": "fec20f97"
12+
"regenerated": "2025-05-22 21:11:12.867093",
13+
"spec_repo_commit": "5822021c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ components:
351351
type: string
352352
FilterByRef:
353353
description: Filter entities by reference
354+
example: service:shopping-cart
354355
explode: true
355356
in: query
356357
name: filter[ref]
@@ -365,6 +366,32 @@ components:
365366
required: false
366367
schema:
367368
$ref: '#/components/schemas/RelationType'
369+
FilterRelationByFromRef:
370+
description: Filter relations by the reference of the first entity in the relation.
371+
example: service:shopping-cart
372+
explode: true
373+
in: query
374+
name: filter[from_ref]
375+
required: false
376+
schema:
377+
type: string
378+
FilterRelationByToRef:
379+
description: Filter relations by the reference of the second entity in the relation.
380+
example: service:shopping-cart
381+
explode: true
382+
in: query
383+
name: filter[to_ref]
384+
required: false
385+
schema:
386+
type: string
387+
FilterRelationByType:
388+
description: Filter relations by type.
389+
explode: true
390+
in: query
391+
name: filter[type]
392+
required: false
393+
schema:
394+
$ref: '#/components/schemas/RelationType'
368395
GCPSTSServiceAccountID:
369396
description: Your GCP STS enabled service account's unique ID.
370397
in: path
@@ -675,6 +702,14 @@ components:
675702
required: true
676703
schema:
677704
type: string
705+
RelationInclude:
706+
description: Include relationship data.
707+
explode: true
708+
in: query
709+
name: include
710+
required: false
711+
schema:
712+
$ref: '#/components/schemas/RelationIncludeType'
678713
ReportID:
679714
description: The ID of the report job.
680715
in: path
@@ -19491,6 +19526,38 @@ components:
1949119526
meta:
1949219527
$ref: '#/components/schemas/PowerpacksResponseMeta'
1949319528
type: object
19529+
ListRelationCatalogResponse:
19530+
description: List entity relation response.
19531+
properties:
19532+
data:
19533+
$ref: '#/components/schemas/RelationResponseData'
19534+
included:
19535+
$ref: '#/components/schemas/ListRelationCatalogResponseIncluded'
19536+
links:
19537+
$ref: '#/components/schemas/ListRelationCatalogResponseLinks'
19538+
meta:
19539+
$ref: '#/components/schemas/RelationResponseMeta'
19540+
type: object
19541+
ListRelationCatalogResponseIncluded:
19542+
description: List relation response included entities.
19543+
items:
19544+
$ref: '#/components/schemas/EntityData'
19545+
type: array
19546+
ListRelationCatalogResponseLinks:
19547+
description: List relation response links.
19548+
properties:
19549+
next:
19550+
description: Next link.
19551+
example: /api/v2/catalog/relation?filter[from_ref]=service:service-catalog&include=entity&page[limit]=2&page[offset]=2
19552+
type: string
19553+
previous:
19554+
description: Previous link.
19555+
type: string
19556+
self:
19557+
description: Current link.
19558+
example: /api/v2/catalog/relation?filter[from_ref]=service:service-catalog&include=entity&page[limit]=2&page[offset]=0
19559+
type: string
19560+
type: object
1949419561
ListRulesResponse:
1949519562
description: Scorecard rules response.
1949619563
properties:
@@ -28773,6 +28840,114 @@ components:
2877328840
x-enum-varnames:
2877428841
- ANY
2877528842
- ALL
28843+
RelationAttributes:
28844+
description: Relation attributes.
28845+
properties:
28846+
from:
28847+
$ref: '#/components/schemas/RelationEntity'
28848+
to:
28849+
$ref: '#/components/schemas/RelationEntity'
28850+
type:
28851+
$ref: '#/components/schemas/RelationType'
28852+
type: object
28853+
RelationEntity:
28854+
description: Relation entity reference.
28855+
properties:
28856+
kind:
28857+
description: Entity kind.
28858+
type: string
28859+
name:
28860+
description: Entity name.
28861+
type: string
28862+
namespace:
28863+
description: Entity namespace.
28864+
type: string
28865+
type: object
28866+
RelationIncludeType:
28867+
description: Supported include types for relations.
28868+
enum:
28869+
- entity
28870+
- schema
28871+
type: string
28872+
x-enum-varnames:
28873+
- ENTITY
28874+
- SCHEMA
28875+
RelationMeta:
28876+
description: Relation metadata.
28877+
properties:
28878+
createdAt:
28879+
description: Relation creation time.
28880+
format: date-time
28881+
type: string
28882+
definedBy:
28883+
description: Relation defined by.
28884+
type: string
28885+
modifiedAt:
28886+
description: Relation modification time.
28887+
format: date-time
28888+
type: string
28889+
source:
28890+
description: Relation source.
28891+
type: string
28892+
type: object
28893+
RelationRelationships:
28894+
description: Relation relationships.
28895+
properties:
28896+
fromEntity:
28897+
$ref: '#/components/schemas/RelationToEntity'
28898+
toEntity:
28899+
$ref: '#/components/schemas/RelationToEntity'
28900+
type: object
28901+
RelationResponse:
28902+
description: Relation response data.
28903+
properties:
28904+
attributes:
28905+
$ref: '#/components/schemas/RelationAttributes'
28906+
id:
28907+
description: Relation ID.
28908+
type: string
28909+
meta:
28910+
$ref: '#/components/schemas/RelationMeta'
28911+
relationships:
28912+
$ref: '#/components/schemas/RelationRelationships'
28913+
subtype:
28914+
description: Relation subtype.
28915+
type: string
28916+
type:
28917+
$ref: '#/components/schemas/RelationResponseType'
28918+
type: object
28919+
RelationResponseData:
28920+
description: Array of relation responses
28921+
items:
28922+
$ref: '#/components/schemas/RelationResponse'
28923+
type: array
28924+
RelationResponseMeta:
28925+
description: Relation response metadata.
28926+
properties:
28927+
count:
28928+
description: Total relations count.
28929+
format: int64
28930+
type: integer
28931+
includeCount:
28932+
description: Total included data count.
28933+
format: int64
28934+
type: integer
28935+
type: object
28936+
RelationResponseType:
28937+
description: Relation type.
28938+
enum:
28939+
- relation
28940+
type: string
28941+
x-enum-varnames:
28942+
- RELATION
28943+
RelationToEntity:
28944+
description: Relation to entity.
28945+
properties:
28946+
data:
28947+
$ref: '#/components/schemas/RelationshipItem'
28948+
meta:
28949+
$ref: '#/components/schemas/EntityMeta'
28950+
type: object
2877628951
RelationType:
2877728952
description: Supported relation types.
2877828953
enum:
@@ -43187,6 +43362,48 @@ paths:
4318743362
summary: Delete a single entity
4318843363
tags:
4318943364
- Software Catalog
43365+
/api/v2/catalog/relation:
43366+
get:
43367+
description: Get a list of entity relations from Software Catalog.
43368+
operationId: ListCatalogRelation
43369+
parameters:
43370+
- $ref: '#/components/parameters/PageOffset'
43371+
- description: Maximum number of relations in the response.
43372+
example: 100
43373+
in: query
43374+
name: page[limit]
43375+
required: false
43376+
schema:
43377+
default: 100
43378+
format: int64
43379+
type: integer
43380+
- $ref: '#/components/parameters/FilterRelationByType'
43381+
- $ref: '#/components/parameters/FilterRelationByFromRef'
43382+
- $ref: '#/components/parameters/FilterRelationByToRef'
43383+
- $ref: '#/components/parameters/RelationInclude'
43384+
responses:
43385+
'200':
43386+
content:
43387+
application/json:
43388+
schema:
43389+
$ref: '#/components/schemas/ListRelationCatalogResponse'
43390+
description: OK
43391+
'403':
43392+
$ref: '#/components/responses/ForbiddenResponse'
43393+
'429':
43394+
$ref: '#/components/responses/TooManyRequestsResponse'
43395+
security:
43396+
- apiKeyAuth: []
43397+
appKeyAuth: []
43398+
- AuthZ:
43399+
- apm_service_catalog_read
43400+
summary: Get a list of entity relations
43401+
tags:
43402+
- Software Catalog
43403+
x-pagination:
43404+
limitParam: page[limit]
43405+
pageOffsetParam: page[offset]
43406+
resultsPath: data
4319043407
/api/v2/ci/pipeline:
4319143408
post:
4319243409
description: 'Send your pipeline event to your Datadog platform over HTTP. For
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a list of entity relations returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new
5+
p api_instance.list_catalog_relation()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a list of entity relations returns "OK" response with pagination
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new
5+
api_instance.list_catalog_relation_with_pagination() { |item| puts item }

features/scenarios_model_mapping.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,14 @@
11061106
"v2.DeleteCatalogEntity" => {
11071107
"entity_id" => "String",
11081108
},
1109+
"v2.ListCatalogRelation" => {
1110+
"page_offset" => "Integer",
1111+
"page_limit" => "Integer",
1112+
"filter_type" => "RelationType",
1113+
"filter_from_ref" => "String",
1114+
"filter_to_ref" => "String",
1115+
"include" => "RelationIncludeType",
1116+
},
11091117
"v2.CreateCIAppPipelineEvent" => {
11101118
"body" => "CIAppCreatePipelineEventRequest",
11111119
},

features/v2/software_catalog.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ Feature: Software Catalog
7878
Given new "ListCatalogEntity" request
7979
When the request with pagination is sent
8080
Then the response status is 200 OK
81+
82+
@generated @skip @team:DataDog/service-catalog
83+
Scenario: Get a list of entity relations returns "OK" response
84+
Given new "ListCatalogRelation" request
85+
When the request is sent
86+
Then the response status is 200 OK
87+
88+
@generated @skip @team:DataDog/service-catalog @with-pagination
89+
Scenario: Get a list of entity relations returns "OK" response with pagination
90+
Given new "ListCatalogRelation" request
91+
When the request with pagination is sent
92+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@
471471
"type": "idempotent"
472472
}
473473
},
474+
"ListCatalogRelation": {
475+
"tag": "Software Catalog",
476+
"undo": {
477+
"type": "safe"
478+
}
479+
},
474480
"CreateCIAppPipelineEvent": {
475481
"tag": "CI Visibility Pipelines",
476482
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,8 @@ def overrides
20812081
"v2.list_pipelines_response" => "ListPipelinesResponse",
20822082
"v2.list_pipelines_response_meta" => "ListPipelinesResponseMeta",
20832083
"v2.list_powerpacks_response" => "ListPowerpacksResponse",
2084+
"v2.list_relation_catalog_response" => "ListRelationCatalogResponse",
2085+
"v2.list_relation_catalog_response_links" => "ListRelationCatalogResponseLinks",
20842086
"v2.list_rules_response" => "ListRulesResponse",
20852087
"v2.list_rules_response_data_item" => "ListRulesResponseDataItem",
20862088
"v2.list_rules_response_links" => "ListRulesResponseLinks",
@@ -2634,6 +2636,14 @@ def overrides
26342636
"v2.query_sort_order" => "QuerySortOrder",
26352637
"v2.readiness_gate" => "ReadinessGate",
26362638
"v2.readiness_gate_threshold_type" => "ReadinessGateThresholdType",
2639+
"v2.relation_attributes" => "RelationAttributes",
2640+
"v2.relation_entity" => "RelationEntity",
2641+
"v2.relation_include_type" => "RelationIncludeType",
2642+
"v2.relation_meta" => "RelationMeta",
2643+
"v2.relation_relationships" => "RelationRelationships",
2644+
"v2.relation_response" => "RelationResponse",
2645+
"v2.relation_response_meta" => "RelationResponseMeta",
2646+
"v2.relation_response_type" => "RelationResponseType",
26372647
"v2.relationship_item" => "RelationshipItem",
26382648
"v2.relationship_to_incident_attachment" => "RelationshipToIncidentAttachment",
26392649
"v2.relationship_to_incident_attachment_data" => "RelationshipToIncidentAttachmentData",
@@ -2676,6 +2686,7 @@ def overrides
26762686
"v2.relationship_to_user_team_team_data" => "RelationshipToUserTeamTeamData",
26772687
"v2.relationship_to_user_team_user" => "RelationshipToUserTeamUser",
26782688
"v2.relationship_to_user_team_user_data" => "RelationshipToUserTeamUserData",
2689+
"v2.relation_to_entity" => "RelationToEntity",
26792690
"v2.relation_type" => "RelationType",
26802691
"v2.remediation" => "Remediation",
26812692
"v2.reorder_retention_filters_request" => "ReorderRetentionFiltersRequest",

0 commit comments

Comments
 (0)