Skip to content

Commit 9a9d348

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 82e0b7e of spec repo
1 parent c658240 commit 9a9d348

26 files changed

+3465
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17294,11 +17294,199 @@ components:
1729417294
schema:
1729517295
$ref: '#/components/schemas/EntityToSchema'
1729617296
type: object
17297+
EntityResponseArray:
17298+
properties:
17299+
data:
17300+
items:
17301+
$ref: '#/components/schemas/PreviewEntityResponseData'
17302+
type: array
17303+
required:
17304+
- data
17305+
type: object
1729717306
EntityResponseData:
1729817307
description: List of entity data.
1729917308
items:
1730017309
$ref: '#/components/schemas/EntityData'
1730117310
type: array
17311+
EntityResponseDataAttributes:
17312+
properties:
17313+
apiVersion:
17314+
type: string
17315+
description:
17316+
type: string
17317+
displayName:
17318+
type: string
17319+
kind:
17320+
type: string
17321+
name:
17322+
type: string
17323+
namespace:
17324+
type: string
17325+
owner:
17326+
type: string
17327+
properties: {}
17328+
tags:
17329+
items:
17330+
type: string
17331+
type: array
17332+
type: object
17333+
EntityResponseDataRelationships:
17334+
properties:
17335+
incidents:
17336+
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidents'
17337+
oncalls:
17338+
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncalls'
17339+
rawSchema:
17340+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchema'
17341+
relatedEntities:
17342+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntities'
17343+
schema:
17344+
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchema'
17345+
type: object
17346+
EntityResponseDataRelationshipsIncidents:
17347+
properties:
17348+
data:
17349+
items:
17350+
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidentsDataItems'
17351+
type: array
17352+
type: object
17353+
EntityResponseDataRelationshipsIncidentsDataItems:
17354+
properties:
17355+
id:
17356+
example: ''
17357+
type: string
17358+
type:
17359+
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidentsDataItemsType'
17360+
required:
17361+
- type
17362+
- id
17363+
type: object
17364+
EntityResponseDataRelationshipsIncidentsDataItemsType:
17365+
default: incident
17366+
description: Incident resource type.
17367+
enum:
17368+
- incident
17369+
example: incident
17370+
type: string
17371+
x-enum-varnames:
17372+
- INCIDENT
17373+
EntityResponseDataRelationshipsOncalls:
17374+
properties:
17375+
data:
17376+
items:
17377+
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncallsDataItems'
17378+
type: array
17379+
type: object
17380+
EntityResponseDataRelationshipsOncallsDataItems:
17381+
properties:
17382+
id:
17383+
example: ''
17384+
type: string
17385+
type:
17386+
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncallsDataItemsType'
17387+
required:
17388+
- type
17389+
- id
17390+
type: object
17391+
EntityResponseDataRelationshipsOncallsDataItemsType:
17392+
default: oncall
17393+
description: Oncall resource type.
17394+
enum:
17395+
- oncall
17396+
example: oncall
17397+
type: string
17398+
x-enum-varnames:
17399+
- ONCALL
17400+
EntityResponseDataRelationshipsRawSchema:
17401+
properties:
17402+
data:
17403+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchemaData'
17404+
required:
17405+
- data
17406+
type: object
17407+
EntityResponseDataRelationshipsRawSchemaData:
17408+
properties:
17409+
id:
17410+
example: ''
17411+
type: string
17412+
type:
17413+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchemaDataType'
17414+
required:
17415+
- type
17416+
- id
17417+
type: object
17418+
EntityResponseDataRelationshipsRawSchemaDataType:
17419+
default: rawSchema
17420+
description: Raw schema resource type.
17421+
enum:
17422+
- rawSchema
17423+
example: rawSchema
17424+
type: string
17425+
x-enum-varnames:
17426+
- RAWSCHEMA
17427+
EntityResponseDataRelationshipsRelatedEntities:
17428+
properties:
17429+
data:
17430+
items:
17431+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntitiesDataItems'
17432+
type: array
17433+
type: object
17434+
EntityResponseDataRelationshipsRelatedEntitiesDataItems:
17435+
properties:
17436+
id:
17437+
example: ''
17438+
type: string
17439+
type:
17440+
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType'
17441+
required:
17442+
- type
17443+
- id
17444+
type: object
17445+
EntityResponseDataRelationshipsRelatedEntitiesDataItemsType:
17446+
default: relatedEntity
17447+
description: Related entity resource type.
17448+
enum:
17449+
- relatedEntity
17450+
example: relatedEntity
17451+
type: string
17452+
x-enum-varnames:
17453+
- RELATEDENTITY
17454+
EntityResponseDataRelationshipsSchema:
17455+
properties:
17456+
data:
17457+
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchemaData'
17458+
required:
17459+
- data
17460+
type: object
17461+
EntityResponseDataRelationshipsSchemaData:
17462+
properties:
17463+
id:
17464+
example: ''
17465+
type: string
17466+
type:
17467+
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchemaDataType'
17468+
required:
17469+
- type
17470+
- id
17471+
type: object
17472+
EntityResponseDataRelationshipsSchemaDataType:
17473+
default: schema
17474+
description: Schema resource type.
17475+
enum:
17476+
- schema
17477+
example: schema
17478+
type: string
17479+
x-enum-varnames:
17480+
- SCHEMA
17481+
EntityResponseDataType:
17482+
default: entity
17483+
description: Entity resource type.
17484+
enum:
17485+
- entity
17486+
example: entity
17487+
type: string
17488+
x-enum-varnames:
17489+
- ENTITY
1730217490
EntityResponseIncludedIncident:
1730317491
description: Included incident.
1730417492
properties:
@@ -37681,6 +37869,19 @@ components:
3768137869
description: Offset type.
3768237870
type: string
3768337871
type: object
37872+
PreviewEntityResponseData:
37873+
properties:
37874+
attributes:
37875+
$ref: '#/components/schemas/EntityResponseDataAttributes'
37876+
id:
37877+
type: string
37878+
relationships:
37879+
$ref: '#/components/schemas/EntityResponseDataRelationships'
37880+
type:
37881+
$ref: '#/components/schemas/EntityResponseDataType'
37882+
required:
37883+
- type
37884+
type: object
3768437885
ProcessSummariesMeta:
3768537886
description: Response metadata object.
3768637887
properties:
@@ -58421,6 +58622,27 @@ paths:
5842158622
tags:
5842258623
- Software Catalog
5842358624
x-codegen-request-body-name: body
58625+
/api/v2/catalog/entity/preview:
58626+
post:
58627+
operationId: PreviewCatalogEntities
58628+
responses:
58629+
'202':
58630+
content:
58631+
application/json:
58632+
schema:
58633+
$ref: '#/components/schemas/EntityResponseArray'
58634+
description: Accepted
58635+
'429':
58636+
$ref: '#/components/responses/TooManyRequestsResponse'
58637+
security:
58638+
- apiKeyAuth: []
58639+
appKeyAuth: []
58640+
- AuthZ:
58641+
- apm_service_catalog_read
58642+
summary: Preview catalog entities
58643+
tags:
58644+
- Software Catalog
58645+
x-unstable: '**Note**: This endpoint may be subject to changes.'
5842458646
/api/v2/catalog/entity/{entity_id}:
5842558647
delete:
5842658648
description: Delete a single entity in Software Catalog.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Preview catalog entities returns "Accepted" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.SoftwareCatalogApi;
6+
import com.datadog.api.client.v2.model.EntityResponseArray;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.previewCatalogEntities", true);
12+
SoftwareCatalogApi apiInstance = new SoftwareCatalogApi(defaultClient);
13+
14+
try {
15+
EntityResponseArray result = apiInstance.previewCatalogEntities();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling SoftwareCatalogApi#previewCatalogEntities");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ public class ApiClient {
696696
put("v2.getOpenAPI", false);
697697
put("v2.listAPIs", false);
698698
put("v2.updateOpenAPI", false);
699+
put("v2.previewCatalogEntities", false);
699700
put("v2.cancelThreatHuntingJob", false);
700701
put("v2.convertJobResultToSignal", false);
701702
put("v2.deleteThreatHuntingJob", false);

0 commit comments

Comments
 (0)