Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
223 changes: 223 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17294,11 +17294,201 @@ components:
schema:
$ref: '#/components/schemas/EntityToSchema'
type: object
EntityResponseArray:
properties:
data:
items:
$ref: '#/components/schemas/PreviewEntityResponseData'
type: array
required:
- data
type: object
EntityResponseData:
description: List of entity data.
items:
$ref: '#/components/schemas/EntityData'
type: array
EntityResponseDataAttributes:
properties:
apiVersion:
type: string
description:
type: string
displayName:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
owner:
type: string
properties:
additionalProperties: {}
type: object
tags:
items:
type: string
type: array
type: object
EntityResponseDataRelationships:
properties:
incidents:
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidents'
oncalls:
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncalls'
rawSchema:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchema'
relatedEntities:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntities'
schema:
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchema'
type: object
EntityResponseDataRelationshipsIncidents:
properties:
data:
items:
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidentsDataItems'
type: array
type: object
EntityResponseDataRelationshipsIncidentsDataItems:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/EntityResponseDataRelationshipsIncidentsDataItemsType'
required:
- type
- id
type: object
EntityResponseDataRelationshipsIncidentsDataItemsType:
default: incident
description: Incident resource type.
enum:
- incident
example: incident
type: string
x-enum-varnames:
- INCIDENT
EntityResponseDataRelationshipsOncalls:
properties:
data:
items:
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncallsDataItems'
type: array
type: object
EntityResponseDataRelationshipsOncallsDataItems:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/EntityResponseDataRelationshipsOncallsDataItemsType'
required:
- type
- id
type: object
EntityResponseDataRelationshipsOncallsDataItemsType:
default: oncall
description: Oncall resource type.
enum:
- oncall
example: oncall
type: string
x-enum-varnames:
- ONCALL
EntityResponseDataRelationshipsRawSchema:
properties:
data:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchemaData'
required:
- data
type: object
EntityResponseDataRelationshipsRawSchemaData:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRawSchemaDataType'
required:
- type
- id
type: object
EntityResponseDataRelationshipsRawSchemaDataType:
default: rawSchema
description: Raw schema resource type.
enum:
- rawSchema
example: rawSchema
type: string
x-enum-varnames:
- RAWSCHEMA
EntityResponseDataRelationshipsRelatedEntities:
properties:
data:
items:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntitiesDataItems'
type: array
type: object
EntityResponseDataRelationshipsRelatedEntitiesDataItems:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType'
required:
- type
- id
type: object
EntityResponseDataRelationshipsRelatedEntitiesDataItemsType:
default: relatedEntity
description: Related entity resource type.
enum:
- relatedEntity
example: relatedEntity
type: string
x-enum-varnames:
- RELATEDENTITY
EntityResponseDataRelationshipsSchema:
properties:
data:
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchemaData'
required:
- data
type: object
EntityResponseDataRelationshipsSchemaData:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/EntityResponseDataRelationshipsSchemaDataType'
required:
- type
- id
type: object
EntityResponseDataRelationshipsSchemaDataType:
default: schema
description: Schema resource type.
enum:
- schema
example: schema
type: string
x-enum-varnames:
- SCHEMA
EntityResponseDataType:
default: entity
description: Entity resource type.
enum:
- entity
example: entity
type: string
x-enum-varnames:
- ENTITY
EntityResponseIncludedIncident:
description: Included incident.
properties:
Expand Down Expand Up @@ -37681,6 +37871,19 @@ components:
description: Offset type.
type: string
type: object
PreviewEntityResponseData:
properties:
attributes:
$ref: '#/components/schemas/EntityResponseDataAttributes'
id:
type: string
relationships:
$ref: '#/components/schemas/EntityResponseDataRelationships'
type:
$ref: '#/components/schemas/EntityResponseDataType'
required:
- type
type: object
ProcessSummariesMeta:
description: Response metadata object.
properties:
Expand Down Expand Up @@ -58421,6 +58624,26 @@ paths:
tags:
- Software Catalog
x-codegen-request-body-name: body
/api/v2/catalog/entity/preview:
post:
operationId: PreviewCatalogEntities
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/EntityResponseArray'
description: Accepted
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- apm_service_catalog_read
summary: Preview catalog entities
tags:
- Software Catalog
/api/v2/catalog/entity/{entity_id}:
delete:
description: Delete a single entity in Software Catalog.
Expand Down
6 changes: 6 additions & 0 deletions features/v2/software_catalog.feature
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,9 @@ Feature: Software Catalog
And request contains "page[limit]" parameter with value 20
When the request with pagination is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/service-catalog
Scenario: Preview catalog entities returns "Accepted" response
Given new "PreviewCatalogEntities" request
When the request is sent
Then the response status is 202 Accepted
6 changes: 6 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,12 @@
"type": "unsafe"
}
},
"PreviewCatalogEntities": {
"tag": "Software Catalog",
"undo": {
"type": "safe"
}
},
"DeleteCatalogEntity": {
"tag": "Software Catalog",
"undo": {
Expand Down
3 changes: 3 additions & 0 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3504,6 +3504,9 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
},
operationResponseType: "UpsertCatalogEntityResponse",
},
"SoftwareCatalogApi.V2.PreviewCatalogEntities": {
operationResponseType: "EntityResponseArray",
},
"SoftwareCatalogApi.V2.DeleteCatalogEntity": {
entityId: {
type: "string",
Expand Down
Loading