Skip to content

Commit 0675c9b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f88cc028 of spec repo
1 parent 0098887 commit 0675c9b

20 files changed

+1156
-4
lines changed

.apigentools-info

+4-4
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-02 04:31:14.572410",
8-
"spec_repo_commit": "272cce39"
7+
"regenerated": "2025-05-02 16:32:08.517528",
8+
"spec_repo_commit": "f88cc028"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-02 04:31:14.659660",
13-
"spec_repo_commit": "272cce39"
12+
"regenerated": "2025-05-02 16:32:08.532391",
13+
"spec_repo_commit": "f88cc028"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+217
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ components:
335335
type: string
336336
FilterByRef:
337337
description: Filter entities by reference
338+
example: service:shopping-cart
338339
explode: true
339340
in: query
340341
name: filter[ref]
@@ -349,6 +350,32 @@ components:
349350
required: false
350351
schema:
351352
$ref: '#/components/schemas/RelationType'
353+
FilterRelationByFromRef:
354+
description: Filter relations by the reference of the first entity in the relation.
355+
example: service:shopping-cart
356+
explode: true
357+
in: query
358+
name: filter[from_ref]
359+
required: false
360+
schema:
361+
type: string
362+
FilterRelationByToRef:
363+
description: Filter relations by the reference of the second entity in the relation.
364+
example: service:shopping-cart
365+
explode: true
366+
in: query
367+
name: filter[to_ref]
368+
required: false
369+
schema:
370+
type: string
371+
FilterRelationByType:
372+
description: Filter relations by type.
373+
explode: true
374+
in: query
375+
name: filter[type]
376+
required: false
377+
schema:
378+
$ref: '#/components/schemas/RelationType'
352379
GCPSTSServiceAccountID:
353380
description: Your GCP STS enabled service account's unique ID.
354381
in: path
@@ -659,6 +686,14 @@ components:
659686
required: true
660687
schema:
661688
type: string
689+
RelationInclude:
690+
description: Include relationship data.
691+
explode: true
692+
in: query
693+
name: include
694+
required: false
695+
schema:
696+
$ref: '#/components/schemas/RelationIncludeType'
662697
ReportID:
663698
description: The ID of the report job.
664699
in: path
@@ -19254,6 +19289,38 @@ components:
1925419289
meta:
1925519290
$ref: '#/components/schemas/PowerpacksResponseMeta'
1925619291
type: object
19292+
ListRelationCatalogResponse:
19293+
description: List entity relation response.
19294+
properties:
19295+
data:
19296+
$ref: '#/components/schemas/RelationResponseData'
19297+
included:
19298+
$ref: '#/components/schemas/ListRelationCatalogResponseIncluded'
19299+
links:
19300+
$ref: '#/components/schemas/ListRelationCatalogResponseLinks'
19301+
meta:
19302+
$ref: '#/components/schemas/RelationResponseMeta'
19303+
type: object
19304+
ListRelationCatalogResponseIncluded:
19305+
description: List relation response included entities.
19306+
items:
19307+
$ref: '#/components/schemas/EntityData'
19308+
type: array
19309+
ListRelationCatalogResponseLinks:
19310+
description: List relation response links.
19311+
properties:
19312+
next:
19313+
description: Next link.
19314+
example: /api/v2/catalog/relation?filter[from_ref]=service:service-catalog&include=entity&page[limit]=2&page[offset]=2
19315+
type: string
19316+
previous:
19317+
description: Previous link.
19318+
type: string
19319+
self:
19320+
description: Current link.
19321+
example: /api/v2/catalog/relation?filter[from_ref]=service:service-catalog&include=entity&page[limit]=2&page[offset]=0
19322+
type: string
19323+
type: object
1925719324
ListRulesResponse:
1925819325
description: Scorecard rules response.
1925919326
properties:
@@ -28556,6 +28623,114 @@ components:
2855628623
x-enum-varnames:
2855728624
- ANY
2855828625
- ALL
28626+
RelationAttributes:
28627+
description: Relation attributes.
28628+
properties:
28629+
from:
28630+
$ref: '#/components/schemas/RelationEntity'
28631+
to:
28632+
$ref: '#/components/schemas/RelationEntity'
28633+
type:
28634+
$ref: '#/components/schemas/RelationType'
28635+
type: object
28636+
RelationEntity:
28637+
description: Relation entity reference.
28638+
properties:
28639+
kind:
28640+
description: Entity kind.
28641+
type: string
28642+
name:
28643+
description: Entity name.
28644+
type: string
28645+
namespace:
28646+
description: Entity namespace.
28647+
type: string
28648+
type: object
28649+
RelationIncludeType:
28650+
description: Supported include types for relations.
28651+
enum:
28652+
- entity
28653+
- schema
28654+
type: string
28655+
x-enum-varnames:
28656+
- ENTITY
28657+
- SCHEMA
28658+
RelationMeta:
28659+
description: Relation metadata.
28660+
properties:
28661+
createdAt:
28662+
description: Relation creation time.
28663+
format: date-time
28664+
type: string
28665+
definedBy:
28666+
description: Relation defined by.
28667+
type: string
28668+
modifiedAt:
28669+
description: Relation modification time.
28670+
format: date-time
28671+
type: string
28672+
source:
28673+
description: Relation source.
28674+
type: string
28675+
type: object
28676+
RelationRelationships:
28677+
description: Relation relationships.
28678+
properties:
28679+
fromEntity:
28680+
$ref: '#/components/schemas/RelationToEntity'
28681+
toEntity:
28682+
$ref: '#/components/schemas/RelationToEntity'
28683+
type: object
28684+
RelationResponse:
28685+
description: Relation response data.
28686+
properties:
28687+
attributes:
28688+
$ref: '#/components/schemas/RelationAttributes'
28689+
id:
28690+
description: Relation ID.
28691+
type: string
28692+
meta:
28693+
$ref: '#/components/schemas/RelationMeta'
28694+
relationships:
28695+
$ref: '#/components/schemas/RelationRelationships'
28696+
subtype:
28697+
description: Relation subtype.
28698+
type: string
28699+
type:
28700+
$ref: '#/components/schemas/RelationResponseType'
28701+
type: object
28702+
RelationResponseData:
28703+
description: Array of relation responses
28704+
items:
28705+
$ref: '#/components/schemas/RelationResponse'
28706+
type: array
28707+
RelationResponseMeta:
28708+
description: Relation response metadata.
28709+
properties:
28710+
count:
28711+
description: Total relations count.
28712+
format: int64
28713+
type: integer
28714+
includeCount:
28715+
description: Total included data count.
28716+
format: int64
28717+
type: integer
28718+
type: object
28719+
RelationResponseType:
28720+
description: Relation type.
28721+
enum:
28722+
- relation
28723+
type: string
28724+
x-enum-varnames:
28725+
- RELATION
28726+
RelationToEntity:
28727+
description: Relation to entity.
28728+
properties:
28729+
data:
28730+
$ref: '#/components/schemas/RelationshipItem'
28731+
meta:
28732+
$ref: '#/components/schemas/EntityMeta'
28733+
type: object
2855928734
RelationType:
2856028735
description: Supported relation types.
2856128736
enum:
@@ -42634,6 +42809,48 @@ paths:
4263442809
summary: Delete a single entity
4263542810
tags:
4263642811
- Software Catalog
42812+
/api/v2/catalog/relation:
42813+
get:
42814+
description: Get a list of entity relations from Software Catalog.
42815+
operationId: ListCatalogRelation
42816+
parameters:
42817+
- $ref: '#/components/parameters/PageOffset'
42818+
- description: Maximum number of relations in the response.
42819+
example: 100
42820+
in: query
42821+
name: page[limit]
42822+
required: false
42823+
schema:
42824+
default: 100
42825+
format: int64
42826+
type: integer
42827+
- $ref: '#/components/parameters/FilterRelationByType'
42828+
- $ref: '#/components/parameters/FilterRelationByFromRef'
42829+
- $ref: '#/components/parameters/FilterRelationByToRef'
42830+
- $ref: '#/components/parameters/RelationInclude'
42831+
responses:
42832+
'200':
42833+
content:
42834+
application/json:
42835+
schema:
42836+
$ref: '#/components/schemas/ListRelationCatalogResponse'
42837+
description: OK
42838+
'403':
42839+
$ref: '#/components/responses/ForbiddenResponse'
42840+
'429':
42841+
$ref: '#/components/responses/TooManyRequestsResponse'
42842+
security:
42843+
- apiKeyAuth: []
42844+
appKeyAuth: []
42845+
- AuthZ:
42846+
- apm_service_catalog_read
42847+
summary: Get a list of entity relations
42848+
tags:
42849+
- Software Catalog
42850+
x-pagination:
42851+
limitParam: page[limit]
42852+
pageOffsetParam: page[offset]
42853+
resultsPath: data
4263742854
/api/v2/ci/pipeline:
4263842855
post:
4263942856
description: 'Send your pipeline event to your Datadog platform over HTTP. For

docs/datadog_api_client.v2.model.rst

+77
Original file line numberDiff line numberDiff line change
@@ -8089,6 +8089,20 @@ datadog\_api\_client.v2.model.list\_powerpacks\_response module
80898089
:members:
80908090
:show-inheritance:
80918091

8092+
datadog\_api\_client.v2.model.list\_relation\_catalog\_response module
8093+
----------------------------------------------------------------------
8094+
8095+
.. automodule:: datadog_api_client.v2.model.list_relation_catalog_response
8096+
:members:
8097+
:show-inheritance:
8098+
8099+
datadog\_api\_client.v2.model.list\_relation\_catalog\_response\_links module
8100+
-----------------------------------------------------------------------------
8101+
8102+
.. automodule:: datadog_api_client.v2.model.list_relation_catalog_response_links
8103+
:members:
8104+
:show-inheritance:
8105+
80928106
datadog\_api\_client.v2.model.list\_rules\_response module
80938107
----------------------------------------------------------
80948108

@@ -11981,6 +11995,69 @@ datadog\_api\_client.v2.model.readiness\_gate\_threshold\_type module
1198111995
:members:
1198211996
:show-inheritance:
1198311997

11998+
datadog\_api\_client.v2.model.relation\_attributes module
11999+
---------------------------------------------------------
12000+
12001+
.. automodule:: datadog_api_client.v2.model.relation_attributes
12002+
:members:
12003+
:show-inheritance:
12004+
12005+
datadog\_api\_client.v2.model.relation\_entity module
12006+
-----------------------------------------------------
12007+
12008+
.. automodule:: datadog_api_client.v2.model.relation_entity
12009+
:members:
12010+
:show-inheritance:
12011+
12012+
datadog\_api\_client.v2.model.relation\_include\_type module
12013+
------------------------------------------------------------
12014+
12015+
.. automodule:: datadog_api_client.v2.model.relation_include_type
12016+
:members:
12017+
:show-inheritance:
12018+
12019+
datadog\_api\_client.v2.model.relation\_meta module
12020+
---------------------------------------------------
12021+
12022+
.. automodule:: datadog_api_client.v2.model.relation_meta
12023+
:members:
12024+
:show-inheritance:
12025+
12026+
datadog\_api\_client.v2.model.relation\_relationships module
12027+
------------------------------------------------------------
12028+
12029+
.. automodule:: datadog_api_client.v2.model.relation_relationships
12030+
:members:
12031+
:show-inheritance:
12032+
12033+
datadog\_api\_client.v2.model.relation\_response module
12034+
-------------------------------------------------------
12035+
12036+
.. automodule:: datadog_api_client.v2.model.relation_response
12037+
:members:
12038+
:show-inheritance:
12039+
12040+
datadog\_api\_client.v2.model.relation\_response\_meta module
12041+
-------------------------------------------------------------
12042+
12043+
.. automodule:: datadog_api_client.v2.model.relation_response_meta
12044+
:members:
12045+
:show-inheritance:
12046+
12047+
datadog\_api\_client.v2.model.relation\_response\_type module
12048+
-------------------------------------------------------------
12049+
12050+
.. automodule:: datadog_api_client.v2.model.relation_response_type
12051+
:members:
12052+
:show-inheritance:
12053+
12054+
datadog\_api\_client.v2.model.relation\_to\_entity module
12055+
---------------------------------------------------------
12056+
12057+
.. automodule:: datadog_api_client.v2.model.relation_to_entity
12058+
:members:
12059+
:show-inheritance:
12060+
1198412061
datadog\_api\_client.v2.model.relation\_type module
1198512062
---------------------------------------------------
1198612063

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get a list of entity relations returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.software_catalog_api import SoftwareCatalogApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = SoftwareCatalogApi(api_client)
11+
response = api_instance.list_catalog_relation()
12+
13+
print(response)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get a list of entity relations returns "OK" response with pagination
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.software_catalog_api import SoftwareCatalogApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = SoftwareCatalogApi(api_client)
11+
items = api_instance.list_catalog_relation_with_pagination()
12+
for item in items:
13+
print(item)

0 commit comments

Comments
 (0)