diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 705237266602..3e2dc0ac7adf 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -16972,6 +16972,89 @@ components: - started_at - finished_at type: object + DORADeploymentPatchRemediation: + description: Remediation details for the deployment. + properties: + id: + description: The ID of the remediation action. + example: eG42zNIkVjM + type: string + type: + $ref: '#/components/schemas/DORADeploymentPatchRemediationType' + required: + - id + - type + type: object + DORADeploymentPatchRemediationType: + description: The type of remediation action taken. + enum: + - rollback + - rollforward + example: rollback + type: string + x-enum-varnames: + - ROLLBACK + - ROLLFORWARD + DORADeploymentPatchRequest: + description: Request to patch a DORA deployment event. + example: + data: + attributes: + change_failure: true + remediation: + id: eG42zNIkVjM + type: rollback + id: z_RwVLi7v4Y + type: dora_deployment_patch_request + properties: + data: + $ref: '#/components/schemas/DORADeploymentPatchRequestData' + required: + - data + type: object + DORADeploymentPatchRequestAttributes: + description: Attributes for patching a DORA deployment event. + properties: + change_failure: + description: Indicates whether the deployment resulted in a change failure. + example: true + type: boolean + remediation: + $ref: '#/components/schemas/DORADeploymentPatchRemediation' + type: object + DORADeploymentPatchRequestData: + description: The JSON:API data for patching a deployment. + example: + attributes: + change_failure: true + remediation: + id: eG42zNIkVjM + type: rollback + id: z_RwVLi7v4Y + type: dora_deployment_patch_request + properties: + attributes: + $ref: '#/components/schemas/DORADeploymentPatchRequestAttributes' + id: + description: The ID of the deployment to patch. + example: z_RwVLi7v4Y + type: string + type: + $ref: '#/components/schemas/DORADeploymentPatchRequestDataType' + required: + - type + - id + - attributes + type: object + DORADeploymentPatchRequestDataType: + default: dora_deployment_patch_request + description: JSON:API type for DORA deployment patch request. + enum: + - dora_deployment_patch_request + example: dora_deployment_patch_request + type: string + x-enum-varnames: + - DORA_DEPLOYMENT_PATCH_REQUEST DORADeploymentRequest: description: Request to create a DORA deployment event. properties: @@ -74114,6 +74197,50 @@ paths: operator: OR permissions: - dora_metrics_read + patch: + description: Use this API endpoint to patch a deployment event. + operationId: PatchDORADeployment + parameters: + - description: The ID of the deployment event. + in: path + name: deployment_id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DORADeploymentPatchRequest' + required: true + responses: + '202': + content: + application/json: + schema: + $ref: '#/components/schemas/DORADeploymentFetchResponse' + description: Accepted + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/JSONAPIErrorResponse' + description: Bad Request + '403': + $ref: '#/components/responses/NotAuthorizedResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + summary: Patch a deployment event + tags: + - DORA Metrics + x-codegen-request-body-name: body + x-permission: + operator: OR + permissions: + - dora_metrics_write /api/v2/dora/failure: post: description: 'Use this API endpoint to provide failure data. diff --git a/examples/v2/dora-metrics/PatchDORADeployment.ts b/examples/v2/dora-metrics/PatchDORADeployment.ts new file mode 100644 index 000000000000..d5434dc1a88f --- /dev/null +++ b/examples/v2/dora-metrics/PatchDORADeployment.ts @@ -0,0 +1,34 @@ +/** + * Patch a deployment event returns "Accepted" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.DORAMetricsApi(configuration); + +const params: v2.DORAMetricsApiPatchDORADeploymentRequest = { + body: { + data: { + attributes: { + changeFailure: true, + remediation: { + id: "eG42zNIkVjM", + type: "rollback", + }, + }, + id: "z_RwVLi7v4Y", + type: "dora_deployment_patch_request", + }, + }, + deploymentId: "deployment_id", +}; + +apiInstance + .patchDORADeployment(params) + .then((data: v2.DORADeploymentFetchResponse) => { + 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 77de44e2ddfc..c0e17e9575fa 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -5650,6 +5650,17 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "DORADeploymentFetchResponse", }, + "v2.PatchDORADeployment": { + "deploymentId": { + "type": "string", + "format": "", + }, + "body": { + "type": "DORADeploymentPatchRequest", + "format": "", + }, + "operationResponseType": "DORADeploymentFetchResponse", + }, "v2.CreateDORAFailure": { "body": { "type": "DORAFailureRequest", diff --git a/features/v2/dora_metrics.feature b/features/v2/dora_metrics.feature index b11b0fc74df5..7a3275b54bf7 100644 --- a/features/v2/dora_metrics.feature +++ b/features/v2/dora_metrics.feature @@ -104,6 +104,24 @@ Feature: DORA Metrics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/ci-app-backend + Scenario: Patch a deployment event returns "Accepted" response + Given a valid "appKeyAuth" key in the system + And new "PatchDORADeployment" request + And request contains "deployment_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}} + When the request is sent + Then the response status is 202 Accepted + + @generated @skip @team:DataDog/ci-app-backend + Scenario: Patch a deployment event returns "Bad Request" response + Given a valid "appKeyAuth" key in the system + And new "PatchDORADeployment" request + And request contains "deployment_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}} + When the request is sent + Then the response status is 400 Bad Request + @skip @team:DataDog/ci-app-backend Scenario: Send a deployment event returns "Bad Request" response Given new "CreateDORADeployment" request diff --git a/features/v2/undo.json b/features/v2/undo.json index 5a347bddf111..307294e0212a 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -1448,6 +1448,12 @@ "type": "safe" } }, + "PatchDORADeployment": { + "tag": "DORA Metrics", + "undo": { + "type": "idempotent" + } + }, "CreateDORAFailure": { "tag": "DORA Metrics", "undo": { diff --git a/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts b/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts index 17fb64aa7fa9..2d03ee784fe8 100644 --- a/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/DORAMetricsApi.ts @@ -18,6 +18,7 @@ import { ApiException } from "../../datadog-api-client-common/exception"; import { APIErrorResponse } from "../models/APIErrorResponse"; import { DORADeploymentFetchResponse } from "../models/DORADeploymentFetchResponse"; +import { DORADeploymentPatchRequest } from "../models/DORADeploymentPatchRequest"; import { DORADeploymentRequest } from "../models/DORADeploymentRequest"; import { DORADeploymentResponse } from "../models/DORADeploymentResponse"; import { DORADeploymentsListResponse } from "../models/DORADeploymentsListResponse"; @@ -357,6 +358,56 @@ export class DORAMetricsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + + public async patchDORADeployment( + deploymentId: string, + body: DORADeploymentPatchRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'deploymentId' is not null or undefined + if (deploymentId === null || deploymentId === undefined) { + throw new RequiredError("deploymentId", "patchDORADeployment"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "patchDORADeployment"); + } + + // Path Params + const localVarPath = "/api/v2/dora/deployments/{deployment_id}".replace( + "{deployment_id}", + encodeURIComponent(String(deploymentId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.DORAMetricsApi.patchDORADeployment") + .makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "DORADeploymentPatchRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } } export class DORAMetricsApiResponseProcessor { @@ -1066,6 +1117,87 @@ export class DORAMetricsApiResponseProcessor { '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 + * + * @params response Response returned by the server for a request to patchDORADeployment + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchDORADeployment( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 202) { + const body: DORADeploymentFetchResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DORADeploymentFetchResponse" + ) as DORADeploymentFetchResponse; + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: JSONAPIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "JSONAPIErrorResponse" + ) as JSONAPIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException( + response.httpStatusCode, + body + ); + } + if (response.httpStatusCode === 403 || 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: DORADeploymentFetchResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "DORADeploymentFetchResponse", + "" + ) as DORADeploymentFetchResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } } export interface DORAMetricsApiCreateDORADeploymentRequest { @@ -1135,6 +1267,18 @@ export interface DORAMetricsApiListDORAFailuresRequest { body: DORAListFailuresRequest; } +export interface DORAMetricsApiPatchDORADeploymentRequest { + /** + * The ID of the deployment event. + * @type string + */ + deploymentId: string; + /** + * @type DORADeploymentPatchRequest + */ + body: DORADeploymentPatchRequest; +} + export class DORAMetricsApi { private requestFactory: DORAMetricsApiRequestFactory; private responseProcessor: DORAMetricsApiResponseProcessor; @@ -1355,4 +1499,26 @@ export class DORAMetricsApi { }); }); } + + /** + * Use this API endpoint to patch a deployment event. + * @param param The request object + */ + public patchDORADeployment( + param: DORAMetricsApiPatchDORADeploymentRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.patchDORADeployment( + param.deploymentId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.patchDORADeployment(responseContext); + }); + }); + } } diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index c06319281571..896dd8f3a249 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -271,6 +271,7 @@ export { DORAMetricsApiGetDORAFailureRequest, DORAMetricsApiListDORADeploymentsRequest, DORAMetricsApiListDORAFailuresRequest, + DORAMetricsApiPatchDORADeploymentRequest, DORAMetricsApi, } from "./apis/DORAMetricsApi"; @@ -2175,6 +2176,12 @@ export { DomainAllowlistType } from "./models/DomainAllowlistType"; export { DORADeploymentFetchResponse } from "./models/DORADeploymentFetchResponse"; export { DORADeploymentObject } from "./models/DORADeploymentObject"; export { DORADeploymentObjectAttributes } from "./models/DORADeploymentObjectAttributes"; +export { DORADeploymentPatchRemediation } from "./models/DORADeploymentPatchRemediation"; +export { DORADeploymentPatchRemediationType } from "./models/DORADeploymentPatchRemediationType"; +export { DORADeploymentPatchRequest } from "./models/DORADeploymentPatchRequest"; +export { DORADeploymentPatchRequestAttributes } from "./models/DORADeploymentPatchRequestAttributes"; +export { DORADeploymentPatchRequestData } from "./models/DORADeploymentPatchRequestData"; +export { DORADeploymentPatchRequestDataType } from "./models/DORADeploymentPatchRequestDataType"; export { DORADeploymentRequest } from "./models/DORADeploymentRequest"; export { DORADeploymentRequestAttributes } from "./models/DORADeploymentRequestAttributes"; export { DORADeploymentRequestData } from "./models/DORADeploymentRequestData"; diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediation.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediation.ts new file mode 100644 index 000000000000..edaaeac14a41 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediation.ts @@ -0,0 +1,63 @@ +/** + * 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 { DORADeploymentPatchRemediationType } from "./DORADeploymentPatchRemediationType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Remediation details for the deployment. + */ +export class DORADeploymentPatchRemediation { + /** + * The ID of the remediation action. + */ + "id": string; + /** + * The type of remediation action taken. + */ + "type": DORADeploymentPatchRemediationType; + + /** + * 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: "DORADeploymentPatchRemediationType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DORADeploymentPatchRemediation.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediationType.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediationType.ts new file mode 100644 index 000000000000..f2fa11b4326a --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRemediationType.ts @@ -0,0 +1,18 @@ +/** + * 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"; + +/** + * The type of remediation action taken. + */ + +export type DORADeploymentPatchRemediationType = + | typeof ROLLBACK + | typeof ROLLFORWARD + | UnparsedObject; +export const ROLLBACK = "rollback"; +export const ROLLFORWARD = "rollforward"; diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRequest.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequest.ts new file mode 100644 index 000000000000..2fc008df3a09 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 { DORADeploymentPatchRequestData } from "./DORADeploymentPatchRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Request to patch a DORA deployment event. + */ +export class DORADeploymentPatchRequest { + /** + * The JSON:API data for patching a deployment. + */ + "data": DORADeploymentPatchRequestData; + + /** + * 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: "DORADeploymentPatchRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DORADeploymentPatchRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestAttributes.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestAttributes.ts new file mode 100644 index 000000000000..1592506472ed --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestAttributes.ts @@ -0,0 +1,61 @@ +/** + * 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 { DORADeploymentPatchRemediation } from "./DORADeploymentPatchRemediation"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Attributes for patching a DORA deployment event. + */ +export class DORADeploymentPatchRequestAttributes { + /** + * Indicates whether the deployment resulted in a change failure. + */ + "changeFailure"?: boolean; + /** + * Remediation details for the deployment. + */ + "remediation"?: DORADeploymentPatchRemediation; + + /** + * 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 = { + changeFailure: { + baseName: "change_failure", + type: "boolean", + }, + remediation: { + baseName: "remediation", + type: "DORADeploymentPatchRemediation", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DORADeploymentPatchRequestAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestData.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestData.ts new file mode 100644 index 000000000000..8d17e4e04570 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestData.ts @@ -0,0 +1,73 @@ +/** + * 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 { DORADeploymentPatchRequestAttributes } from "./DORADeploymentPatchRequestAttributes"; +import { DORADeploymentPatchRequestDataType } from "./DORADeploymentPatchRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The JSON:API data for patching a deployment. + */ +export class DORADeploymentPatchRequestData { + /** + * Attributes for patching a DORA deployment event. + */ + "attributes": DORADeploymentPatchRequestAttributes; + /** + * The ID of the deployment to patch. + */ + "id": string; + /** + * JSON:API type for DORA deployment patch request. + */ + "type": DORADeploymentPatchRequestDataType; + + /** + * 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: "DORADeploymentPatchRequestAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "DORADeploymentPatchRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return DORADeploymentPatchRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestDataType.ts b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestDataType.ts new file mode 100644 index 000000000000..a6096beebb96 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DORADeploymentPatchRequestDataType.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"; + +/** + * JSON:API type for DORA deployment patch request. + */ + +export type DORADeploymentPatchRequestDataType = + | typeof DORA_DEPLOYMENT_PATCH_REQUEST + | UnparsedObject; +export const DORA_DEPLOYMENT_PATCH_REQUEST = "dora_deployment_patch_request"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index ac8e323a94c9..260824ceba65 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -744,6 +744,10 @@ import { CustomRulesetResponse } from "./CustomRulesetResponse"; import { DORADeploymentFetchResponse } from "./DORADeploymentFetchResponse"; import { DORADeploymentObject } from "./DORADeploymentObject"; import { DORADeploymentObjectAttributes } from "./DORADeploymentObjectAttributes"; +import { DORADeploymentPatchRemediation } from "./DORADeploymentPatchRemediation"; +import { DORADeploymentPatchRequest } from "./DORADeploymentPatchRequest"; +import { DORADeploymentPatchRequestAttributes } from "./DORADeploymentPatchRequestAttributes"; +import { DORADeploymentPatchRequestData } from "./DORADeploymentPatchRequestData"; import { DORADeploymentRequest } from "./DORADeploymentRequest"; import { DORADeploymentRequestAttributes } from "./DORADeploymentRequestAttributes"; import { DORADeploymentRequestData } from "./DORADeploymentRequestData"; @@ -3487,6 +3491,8 @@ const enumsMap: { [key: string]: any[] } = { CustomRuleRevisionAttributesSeverity: ["ERROR", "WARNING", "NOTICE"], CustomRuleRevisionDataType: ["custom_rule_revision"], CustomRulesetDataType: ["custom_ruleset"], + DORADeploymentPatchRemediationType: ["rollback", "rollforward"], + DORADeploymentPatchRequestDataType: ["dora_deployment_patch_request"], DORADeploymentType: ["dora_deployment"], DORAFailureType: ["dora_failure"], DORAListDeploymentsRequestDataType: ["dora_deployments_list_request"], @@ -5831,6 +5837,10 @@ const typeMap: { [index: string]: any } = { DORADeploymentFetchResponse: DORADeploymentFetchResponse, DORADeploymentObject: DORADeploymentObject, DORADeploymentObjectAttributes: DORADeploymentObjectAttributes, + DORADeploymentPatchRemediation: DORADeploymentPatchRemediation, + DORADeploymentPatchRequest: DORADeploymentPatchRequest, + DORADeploymentPatchRequestAttributes: DORADeploymentPatchRequestAttributes, + DORADeploymentPatchRequestData: DORADeploymentPatchRequestData, DORADeploymentRequest: DORADeploymentRequest, DORADeploymentRequestAttributes: DORADeploymentRequestAttributes, DORADeploymentRequestData: DORADeploymentRequestData,