diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4afc5c00f085..206b8ba19047 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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: @@ -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. diff --git a/examples/v2/software-catalog/PreviewCatalogEntities.ts b/examples/v2/software-catalog/PreviewCatalogEntities.ts new file mode 100644 index 000000000000..63ce6a208a8f --- /dev/null +++ b/examples/v2/software-catalog/PreviewCatalogEntities.ts @@ -0,0 +1,17 @@ +/** + * Preview catalog entities returns "Accepted" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.SoftwareCatalogApi(configuration); + +apiInstance + .previewCatalogEntities() + .then((data: v2.EntityResponseArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index ac768aaaf6ce..36b9e78e4946 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -3494,6 +3494,9 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "UpsertCatalogEntityResponse", }, + "v2.PreviewCatalogEntities": { + "operationResponseType": "EntityResponseArray", + }, "v2.DeleteCatalogEntity": { "entityId": { "type": "string", diff --git a/features/v2/software_catalog.feature b/features/v2/software_catalog.feature index 070e066a944a..34e9f95314da 100644 --- a/features/v2/software_catalog.feature +++ b/features/v2/software_catalog.feature @@ -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 diff --git a/features/v2/undo.json b/features/v2/undo.json index f4a7f9e7f8de..1865379ddbe0 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -751,6 +751,12 @@ "type": "unsafe" } }, + "PreviewCatalogEntities": { + "tag": "Software Catalog", + "undo": { + "type": "safe" + } + }, "DeleteCatalogEntity": { "tag": "Software Catalog", "undo": { diff --git a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts index 4f3edf14215a..80a513d79034 100644 --- a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts +++ b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts @@ -18,6 +18,7 @@ import { ApiException } from "../../datadog-api-client-common/exception"; import { APIErrorResponse } from "../models/APIErrorResponse"; import { EntityData } from "../models/EntityData"; +import { EntityResponseArray } from "../models/EntityResponseArray"; import { IncludeType } from "../models/IncludeType"; import { KindData } from "../models/KindData"; import { ListEntityCatalogResponse } from "../models/ListEntityCatalogResponse"; @@ -341,6 +342,31 @@ export class SoftwareCatalogApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async previewCatalogEntities( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/catalog/entity/preview"; + + // Make Request Context + const requestContext = _config + .getServer("v2.SoftwareCatalogApi.previewCatalogEntities") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + public async upsertCatalogEntity( body: UpsertCatalogEntityRequest, _options?: Configuration @@ -709,6 +735,64 @@ export class SoftwareCatalogApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to previewCatalogEntities + * @throws ApiException if the response code was not in [200, 299] + */ + public async previewCatalogEntities( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 202) { + const body: EntityResponseArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "EntityResponseArray" + ) as EntityResponseArray; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: EntityResponseArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "EntityResponseArray", + "" + ) as EntityResponseArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -1260,6 +1344,23 @@ export class SoftwareCatalogApi { } } + /** + * @param param The request object + */ + public previewCatalogEntities( + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.previewCatalogEntities(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.previewCatalogEntities(responseContext); + }); + }); + } + /** * Create or update entities in Software Catalog. * @param param The request object diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 2b88e0c902ed..94cccb0b2f5d 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -1897,6 +1897,25 @@ export { EntityAttributes } from "./models/EntityAttributes"; export { EntityData } from "./models/EntityData"; export { EntityMeta } from "./models/EntityMeta"; export { EntityRelationships } from "./models/EntityRelationships"; +export { EntityResponseArray } from "./models/EntityResponseArray"; +export { EntityResponseDataAttributes } from "./models/EntityResponseDataAttributes"; +export { EntityResponseDataRelationships } from "./models/EntityResponseDataRelationships"; +export { EntityResponseDataRelationshipsIncidents } from "./models/EntityResponseDataRelationshipsIncidents"; +export { EntityResponseDataRelationshipsIncidentsDataItems } from "./models/EntityResponseDataRelationshipsIncidentsDataItems"; +export { EntityResponseDataRelationshipsIncidentsDataItemsType } from "./models/EntityResponseDataRelationshipsIncidentsDataItemsType"; +export { EntityResponseDataRelationshipsOncalls } from "./models/EntityResponseDataRelationshipsOncalls"; +export { EntityResponseDataRelationshipsOncallsDataItems } from "./models/EntityResponseDataRelationshipsOncallsDataItems"; +export { EntityResponseDataRelationshipsOncallsDataItemsType } from "./models/EntityResponseDataRelationshipsOncallsDataItemsType"; +export { EntityResponseDataRelationshipsRawSchema } from "./models/EntityResponseDataRelationshipsRawSchema"; +export { EntityResponseDataRelationshipsRawSchemaData } from "./models/EntityResponseDataRelationshipsRawSchemaData"; +export { EntityResponseDataRelationshipsRawSchemaDataType } from "./models/EntityResponseDataRelationshipsRawSchemaDataType"; +export { EntityResponseDataRelationshipsRelatedEntities } from "./models/EntityResponseDataRelationshipsRelatedEntities"; +export { EntityResponseDataRelationshipsRelatedEntitiesDataItems } from "./models/EntityResponseDataRelationshipsRelatedEntitiesDataItems"; +export { EntityResponseDataRelationshipsRelatedEntitiesDataItemsType } from "./models/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType"; +export { EntityResponseDataRelationshipsSchema } from "./models/EntityResponseDataRelationshipsSchema"; +export { EntityResponseDataRelationshipsSchemaData } from "./models/EntityResponseDataRelationshipsSchemaData"; +export { EntityResponseDataRelationshipsSchemaDataType } from "./models/EntityResponseDataRelationshipsSchemaDataType"; +export { EntityResponseDataType } from "./models/EntityResponseDataType"; export { EntityResponseIncludedIncident } from "./models/EntityResponseIncludedIncident"; export { EntityResponseIncludedIncidentType } from "./models/EntityResponseIncludedIncidentType"; export { EntityResponseIncludedOncall } from "./models/EntityResponseIncludedOncall"; @@ -3234,6 +3253,7 @@ export { PowerpackResponseLinks } from "./models/PowerpackResponseLinks"; export { PowerpacksResponseMeta } from "./models/PowerpacksResponseMeta"; export { PowerpacksResponseMetaPagination } from "./models/PowerpacksResponseMetaPagination"; export { PowerpackTemplateVariable } from "./models/PowerpackTemplateVariable"; +export { PreviewEntityResponseData } from "./models/PreviewEntityResponseData"; export { ProcessSummariesMeta } from "./models/ProcessSummariesMeta"; export { ProcessSummariesMetaPage } from "./models/ProcessSummariesMetaPage"; export { ProcessSummariesResponse } from "./models/ProcessSummariesResponse"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseArray.ts b/packages/datadog-api-client-v2/models/EntityResponseArray.ts new file mode 100644 index 000000000000..b2af0270b3bd --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseArray.ts @@ -0,0 +1,48 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { PreviewEntityResponseData } from "./PreviewEntityResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseArray { + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/EntityResponseDataAttributes.ts new file mode 100644 index 000000000000..c00211224e0d --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataAttributes.ts @@ -0,0 +1,86 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataAttributes { + "apiVersion"?: string; + "description"?: string; + "displayName"?: string; + "kind"?: string; + "name"?: string; + "namespace"?: string; + "owner"?: string; + "properties"?: { [key: string]: any }; + "tags"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + apiVersion: { + baseName: "apiVersion", + type: "string", + }, + description: { + baseName: "description", + type: "string", + }, + displayName: { + baseName: "displayName", + type: "string", + }, + kind: { + baseName: "kind", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + namespace: { + baseName: "namespace", + type: "string", + }, + owner: { + baseName: "owner", + type: "string", + }, + properties: { + baseName: "properties", + type: "{ [key: string]: any; }", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationships.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationships.ts new file mode 100644 index 000000000000..9372c5ce9162 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationships.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsIncidents } from "./EntityResponseDataRelationshipsIncidents"; +import { EntityResponseDataRelationshipsOncalls } from "./EntityResponseDataRelationshipsOncalls"; +import { EntityResponseDataRelationshipsRawSchema } from "./EntityResponseDataRelationshipsRawSchema"; +import { EntityResponseDataRelationshipsRelatedEntities } from "./EntityResponseDataRelationshipsRelatedEntities"; +import { EntityResponseDataRelationshipsSchema } from "./EntityResponseDataRelationshipsSchema"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationships { + "incidents"?: EntityResponseDataRelationshipsIncidents; + "oncalls"?: EntityResponseDataRelationshipsOncalls; + "rawSchema"?: EntityResponseDataRelationshipsRawSchema; + "relatedEntities"?: EntityResponseDataRelationshipsRelatedEntities; + "schema"?: EntityResponseDataRelationshipsSchema; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + incidents: { + baseName: "incidents", + type: "EntityResponseDataRelationshipsIncidents", + }, + oncalls: { + baseName: "oncalls", + type: "EntityResponseDataRelationshipsOncalls", + }, + rawSchema: { + baseName: "rawSchema", + type: "EntityResponseDataRelationshipsRawSchema", + }, + relatedEntities: { + baseName: "relatedEntities", + type: "EntityResponseDataRelationshipsRelatedEntities", + }, + schema: { + baseName: "schema", + type: "EntityResponseDataRelationshipsSchema", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationships.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidents.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidents.ts new file mode 100644 index 000000000000..ef8402690510 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidents.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsIncidentsDataItems } from "./EntityResponseDataRelationshipsIncidentsDataItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsIncidents { + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsIncidents.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItems.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItems.ts new file mode 100644 index 000000000000..d1226b9c6b8d --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItems.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsIncidentsDataItemsType } from "./EntityResponseDataRelationshipsIncidentsDataItemsType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsIncidentsDataItems { + "id": string; + /** + * Incident resource type. + */ + "type": EntityResponseDataRelationshipsIncidentsDataItemsType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "EntityResponseDataRelationshipsIncidentsDataItemsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsIncidentsDataItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItemsType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItemsType.ts new file mode 100644 index 000000000000..4664e49cfe68 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsIncidentsDataItemsType.ts @@ -0,0 +1,16 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Incident resource type. + */ + +export type EntityResponseDataRelationshipsIncidentsDataItemsType = + | typeof INCIDENT + | UnparsedObject; +export const INCIDENT = "incident"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncalls.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncalls.ts new file mode 100644 index 000000000000..bfada42b1cd3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncalls.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsOncallsDataItems } from "./EntityResponseDataRelationshipsOncallsDataItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsOncalls { + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsOncalls.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItems.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItems.ts new file mode 100644 index 000000000000..5a2116ee4e9f --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItems.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsOncallsDataItemsType } from "./EntityResponseDataRelationshipsOncallsDataItemsType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsOncallsDataItems { + "id": string; + /** + * Oncall resource type. + */ + "type": EntityResponseDataRelationshipsOncallsDataItemsType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "EntityResponseDataRelationshipsOncallsDataItemsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsOncallsDataItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItemsType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItemsType.ts new file mode 100644 index 000000000000..9296df449c71 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsOncallsDataItemsType.ts @@ -0,0 +1,16 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Oncall resource type. + */ + +export type EntityResponseDataRelationshipsOncallsDataItemsType = + | typeof ONCALL + | UnparsedObject; +export const ONCALL = "oncall"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchema.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchema.ts new file mode 100644 index 000000000000..28bda049b3e9 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchema.ts @@ -0,0 +1,48 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsRawSchemaData } from "./EntityResponseDataRelationshipsRawSchemaData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsRawSchema { + "data": EntityResponseDataRelationshipsRawSchemaData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "EntityResponseDataRelationshipsRawSchemaData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsRawSchema.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaData.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaData.ts new file mode 100644 index 000000000000..46e109f6dfcb --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaData.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsRawSchemaDataType } from "./EntityResponseDataRelationshipsRawSchemaDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsRawSchemaData { + "id": string; + /** + * Raw schema resource type. + */ + "type": EntityResponseDataRelationshipsRawSchemaDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "EntityResponseDataRelationshipsRawSchemaDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsRawSchemaData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaDataType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaDataType.ts new file mode 100644 index 000000000000..8c8571c5fb47 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRawSchemaDataType.ts @@ -0,0 +1,16 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Raw schema resource type. + */ + +export type EntityResponseDataRelationshipsRawSchemaDataType = + | typeof RAWSCHEMA + | UnparsedObject; +export const RAWSCHEMA = "rawSchema"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntities.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntities.ts new file mode 100644 index 000000000000..ddc963646499 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntities.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsRelatedEntitiesDataItems } from "./EntityResponseDataRelationshipsRelatedEntitiesDataItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsRelatedEntities { + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsRelatedEntities.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItems.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItems.ts new file mode 100644 index 000000000000..3408a20945a1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItems.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsRelatedEntitiesDataItemsType } from "./EntityResponseDataRelationshipsRelatedEntitiesDataItemsType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsRelatedEntitiesDataItems { + "id": string; + /** + * Related entity resource type. + */ + "type": EntityResponseDataRelationshipsRelatedEntitiesDataItemsType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "EntityResponseDataRelationshipsRelatedEntitiesDataItemsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsRelatedEntitiesDataItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType.ts new file mode 100644 index 000000000000..28d712b9d6e6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsRelatedEntitiesDataItemsType.ts @@ -0,0 +1,16 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Related entity resource type. + */ + +export type EntityResponseDataRelationshipsRelatedEntitiesDataItemsType = + | typeof RELATEDENTITY + | UnparsedObject; +export const RELATEDENTITY = "relatedEntity"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchema.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchema.ts new file mode 100644 index 000000000000..fcf94509ac2c --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchema.ts @@ -0,0 +1,48 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsSchemaData } from "./EntityResponseDataRelationshipsSchemaData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsSchema { + "data": EntityResponseDataRelationshipsSchemaData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "EntityResponseDataRelationshipsSchemaData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsSchema.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaData.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaData.ts new file mode 100644 index 000000000000..7bf1051675f8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaData.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataRelationshipsSchemaDataType } from "./EntityResponseDataRelationshipsSchemaDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class EntityResponseDataRelationshipsSchemaData { + "id": string; + /** + * Schema resource type. + */ + "type": EntityResponseDataRelationshipsSchemaDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "EntityResponseDataRelationshipsSchemaDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return EntityResponseDataRelationshipsSchemaData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaDataType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaDataType.ts new file mode 100644 index 000000000000..19bcecf39bcc --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataRelationshipsSchemaDataType.ts @@ -0,0 +1,16 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Schema resource type. + */ + +export type EntityResponseDataRelationshipsSchemaDataType = + | typeof SCHEMA + | UnparsedObject; +export const SCHEMA = "schema"; diff --git a/packages/datadog-api-client-v2/models/EntityResponseDataType.ts b/packages/datadog-api-client-v2/models/EntityResponseDataType.ts new file mode 100644 index 000000000000..f0309adba209 --- /dev/null +++ b/packages/datadog-api-client-v2/models/EntityResponseDataType.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Entity resource type. + */ + +export type EntityResponseDataType = typeof ENTITY | UnparsedObject; +export const ENTITY = "entity"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 7feb98ff88f6..568e81a664c3 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -758,6 +758,19 @@ import { EntityAttributes } from "./EntityAttributes"; import { EntityData } from "./EntityData"; import { EntityMeta } from "./EntityMeta"; import { EntityRelationships } from "./EntityRelationships"; +import { EntityResponseArray } from "./EntityResponseArray"; +import { EntityResponseDataAttributes } from "./EntityResponseDataAttributes"; +import { EntityResponseDataRelationships } from "./EntityResponseDataRelationships"; +import { EntityResponseDataRelationshipsIncidents } from "./EntityResponseDataRelationshipsIncidents"; +import { EntityResponseDataRelationshipsIncidentsDataItems } from "./EntityResponseDataRelationshipsIncidentsDataItems"; +import { EntityResponseDataRelationshipsOncalls } from "./EntityResponseDataRelationshipsOncalls"; +import { EntityResponseDataRelationshipsOncallsDataItems } from "./EntityResponseDataRelationshipsOncallsDataItems"; +import { EntityResponseDataRelationshipsRawSchema } from "./EntityResponseDataRelationshipsRawSchema"; +import { EntityResponseDataRelationshipsRawSchemaData } from "./EntityResponseDataRelationshipsRawSchemaData"; +import { EntityResponseDataRelationshipsRelatedEntities } from "./EntityResponseDataRelationshipsRelatedEntities"; +import { EntityResponseDataRelationshipsRelatedEntitiesDataItems } from "./EntityResponseDataRelationshipsRelatedEntitiesDataItems"; +import { EntityResponseDataRelationshipsSchema } from "./EntityResponseDataRelationshipsSchema"; +import { EntityResponseDataRelationshipsSchemaData } from "./EntityResponseDataRelationshipsSchemaData"; import { EntityResponseIncludedIncident } from "./EntityResponseIncludedIncident"; import { EntityResponseIncludedOncall } from "./EntityResponseIncludedOncall"; import { EntityResponseIncludedRawSchema } from "./EntityResponseIncludedRawSchema"; @@ -1718,6 +1731,7 @@ import { PowerpackResponseLinks } from "./PowerpackResponseLinks"; import { PowerpackTemplateVariable } from "./PowerpackTemplateVariable"; import { PowerpacksResponseMeta } from "./PowerpacksResponseMeta"; import { PowerpacksResponseMetaPagination } from "./PowerpacksResponseMetaPagination"; +import { PreviewEntityResponseData } from "./PreviewEntityResponseData"; import { ProcessSummariesMeta } from "./ProcessSummariesMeta"; import { ProcessSummariesMetaPage } from "./ProcessSummariesMetaPage"; import { ProcessSummariesResponse } from "./ProcessSummariesResponse"; @@ -2942,6 +2956,14 @@ const enumsMap: { [key: string]: any[] } = { DowntimeNotifyEndStateTypes: ["alert", "no data", "warn"], DowntimeResourceType: ["downtime"], DowntimeStatus: ["active", "canceled", "ended", "scheduled"], + EntityResponseDataRelationshipsIncidentsDataItemsType: ["incident"], + EntityResponseDataRelationshipsOncallsDataItemsType: ["oncall"], + EntityResponseDataRelationshipsRawSchemaDataType: ["rawSchema"], + EntityResponseDataRelationshipsRelatedEntitiesDataItemsType: [ + "relatedEntity", + ], + EntityResponseDataRelationshipsSchemaDataType: ["schema"], + EntityResponseDataType: ["entity"], EntityResponseIncludedIncidentType: ["incident"], EntityResponseIncludedOncallType: ["oncall"], EntityResponseIncludedRawSchemaType: ["rawSchema"], @@ -5046,6 +5068,28 @@ const typeMap: { [index: string]: any } = { EntityData: EntityData, EntityMeta: EntityMeta, EntityRelationships: EntityRelationships, + EntityResponseArray: EntityResponseArray, + EntityResponseDataAttributes: EntityResponseDataAttributes, + EntityResponseDataRelationships: EntityResponseDataRelationships, + EntityResponseDataRelationshipsIncidents: + EntityResponseDataRelationshipsIncidents, + EntityResponseDataRelationshipsIncidentsDataItems: + EntityResponseDataRelationshipsIncidentsDataItems, + EntityResponseDataRelationshipsOncalls: + EntityResponseDataRelationshipsOncalls, + EntityResponseDataRelationshipsOncallsDataItems: + EntityResponseDataRelationshipsOncallsDataItems, + EntityResponseDataRelationshipsRawSchema: + EntityResponseDataRelationshipsRawSchema, + EntityResponseDataRelationshipsRawSchemaData: + EntityResponseDataRelationshipsRawSchemaData, + EntityResponseDataRelationshipsRelatedEntities: + EntityResponseDataRelationshipsRelatedEntities, + EntityResponseDataRelationshipsRelatedEntitiesDataItems: + EntityResponseDataRelationshipsRelatedEntitiesDataItems, + EntityResponseDataRelationshipsSchema: EntityResponseDataRelationshipsSchema, + EntityResponseDataRelationshipsSchemaData: + EntityResponseDataRelationshipsSchemaData, EntityResponseIncludedIncident: EntityResponseIncludedIncident, EntityResponseIncludedOncall: EntityResponseIncludedOncall, EntityResponseIncludedRawSchema: EntityResponseIncludedRawSchema, @@ -6188,6 +6232,7 @@ const typeMap: { [index: string]: any } = { PowerpackTemplateVariable: PowerpackTemplateVariable, PowerpacksResponseMeta: PowerpacksResponseMeta, PowerpacksResponseMetaPagination: PowerpacksResponseMetaPagination, + PreviewEntityResponseData: PreviewEntityResponseData, ProcessSummariesMeta: ProcessSummariesMeta, ProcessSummariesMetaPage: ProcessSummariesMetaPage, ProcessSummariesResponse: ProcessSummariesResponse, diff --git a/packages/datadog-api-client-v2/models/PreviewEntityResponseData.ts b/packages/datadog-api-client-v2/models/PreviewEntityResponseData.ts new file mode 100644 index 000000000000..6a6fccb5cca1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/PreviewEntityResponseData.ts @@ -0,0 +1,68 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { EntityResponseDataAttributes } from "./EntityResponseDataAttributes"; +import { EntityResponseDataRelationships } from "./EntityResponseDataRelationships"; +import { EntityResponseDataType } from "./EntityResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class PreviewEntityResponseData { + "attributes"?: EntityResponseDataAttributes; + "id"?: string; + "relationships"?: EntityResponseDataRelationships; + /** + * Entity resource type. + */ + "type": EntityResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "EntityResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + relationships: { + baseName: "relationships", + type: "EntityResponseDataRelationships", + }, + type: { + baseName: "type", + type: "EntityResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return PreviewEntityResponseData.attributeTypeMap; + } + + public constructor() {} +}