diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 27ad049e17c7..0a91df83bb96 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19304,10 +19304,6 @@ components: description: The title of the degradation. example: Elevated API Latency type: string - updates: - items: - $ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItems" - type: array required: - components_affected - status @@ -19345,48 +19341,6 @@ components: - IDENTIFIED - MONITORING - RESOLVED - CreateDegradationRequestDataAttributesUpdatesItems: - description: A degradation update entry. - properties: - components_affected: - description: The components affected. - items: - $ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems" - type: array - description: - description: A description of the update. - example: "" - type: string - started_at: - description: Timestamp of when the update occurred. - example: "" - format: date-time - type: string - status: - $ref: "#/components/schemas/CreateDegradationRequestDataAttributesStatus" - required: - - components_affected - - description - - started_at - - status - type: object - CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems: - description: A component affected by a degradation update. - properties: - id: - description: The ID of the component. Must be a component of type `component`. - example: "" - type: string - name: - description: The name of the component. - readOnly: true - type: string - status: - $ref: "#/components/schemas/StatusPagesComponentDataAttributesStatus" - required: - - id - - status - type: object CreateDeploymentGateParams: description: Parameters for creating a deployment gate. properties: @@ -19755,10 +19709,6 @@ components: description: The title of the maintenance. example: "API Maintenance" type: string - updates: - items: - $ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItems" - type: array required: - components_affected - title @@ -19786,48 +19736,6 @@ components: - id - status type: object - CreateMaintenanceRequestDataAttributesUpdatesItems: - description: A maintenance update entry. - properties: - components_affected: - description: The components affected. - items: - $ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems" - type: array - description: - description: A description of the update. - example: "" - type: string - started_at: - description: Timestamp of when the update occurred. - example: "" - format: date-time - type: string - status: - $ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsStatus" - required: - - components_affected - - description - - started_at - - status - type: object - CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems: - description: A component affected by a maintenance update. - properties: - id: - description: The ID of the component. Must be a component of type `component`. - example: "" - type: string - name: - description: The name of the component. - readOnly: true - type: string - status: - $ref: "#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus" - required: - - id - - status - type: object CreateMaintenanceRequestDataAttributesUpdatesItemsStatus: description: The status of a maintenance update. enum: @@ -25007,6 +24915,9 @@ components: format: uuid readOnly: true type: string + last_modified_by_user_uuid: + description: UUID of the user who last modified the resource. + type: string modified_at: description: Timestamp of when the update was last modified. format: date-time diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index adddf2eef454..cfa1bcf866d8 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -2576,8 +2576,6 @@ export { CreateDegradationRequestData } from "./models/CreateDegradationRequestD export { CreateDegradationRequestDataAttributes } from "./models/CreateDegradationRequestDataAttributes"; export { CreateDegradationRequestDataAttributesComponentsAffectedItems } from "./models/CreateDegradationRequestDataAttributesComponentsAffectedItems"; export { CreateDegradationRequestDataAttributesStatus } from "./models/CreateDegradationRequestDataAttributesStatus"; -export { CreateDegradationRequestDataAttributesUpdatesItems } from "./models/CreateDegradationRequestDataAttributesUpdatesItems"; -export { CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./models/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems"; export { CreateDeploymentGateParams } from "./models/CreateDeploymentGateParams"; export { CreateDeploymentGateParamsData } from "./models/CreateDeploymentGateParamsData"; export { CreateDeploymentGateParamsDataAttributes } from "./models/CreateDeploymentGateParamsDataAttributes"; @@ -2603,8 +2601,6 @@ export { CreateMaintenanceRequest } from "./models/CreateMaintenanceRequest"; export { CreateMaintenanceRequestData } from "./models/CreateMaintenanceRequestData"; export { CreateMaintenanceRequestDataAttributes } from "./models/CreateMaintenanceRequestDataAttributes"; export { CreateMaintenanceRequestDataAttributesComponentsAffectedItems } from "./models/CreateMaintenanceRequestDataAttributesComponentsAffectedItems"; -export { CreateMaintenanceRequestDataAttributesUpdatesItems } from "./models/CreateMaintenanceRequestDataAttributesUpdatesItems"; -export { CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./models/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems"; export { CreateMaintenanceRequestDataAttributesUpdatesItemsStatus } from "./models/CreateMaintenanceRequestDataAttributesUpdatesItemsStatus"; export { CreateNotificationChannelAttributes } from "./models/CreateNotificationChannelAttributes"; export { CreateNotificationChannelConfig } from "./models/CreateNotificationChannelConfig"; diff --git a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributes.ts index e4122544b27e..bd192e389a7a 100644 --- a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributes.ts @@ -5,7 +5,6 @@ */ import { CreateDegradationRequestDataAttributesComponentsAffectedItems } from "./CreateDegradationRequestDataAttributesComponentsAffectedItems"; import { CreateDegradationRequestDataAttributesStatus } from "./CreateDegradationRequestDataAttributesStatus"; -import { CreateDegradationRequestDataAttributesUpdatesItems } from "./CreateDegradationRequestDataAttributesUpdatesItems"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -29,7 +28,6 @@ export class CreateDegradationRequestDataAttributes { * The title of the degradation. */ "title": string; - "updates"?: Array; /** * A container for additional, undeclared properties. @@ -66,10 +64,6 @@ export class CreateDegradationRequestDataAttributes { type: "string", required: true, }, - updates: { - baseName: "updates", - type: "Array", - }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItems.ts b/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItems.ts deleted file mode 100644 index c4353f90ec61..000000000000 --- a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItems.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * 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 { CreateDegradationRequestDataAttributesStatus } from "./CreateDegradationRequestDataAttributesStatus"; -import { CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * A degradation update entry. - */ -export class CreateDegradationRequestDataAttributesUpdatesItems { - /** - * The components affected. - */ - "componentsAffected": Array; - /** - * A description of the update. - */ - "description": string; - /** - * Timestamp of when the update occurred. - */ - "startedAt": Date; - /** - * The status of the degradation. - */ - "status": CreateDegradationRequestDataAttributesStatus; - - /** - * 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 = { - componentsAffected: { - baseName: "components_affected", - type: "Array", - required: true, - }, - description: { - baseName: "description", - type: "string", - required: true, - }, - startedAt: { - baseName: "started_at", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CreateDegradationRequestDataAttributesStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return CreateDegradationRequestDataAttributesUpdatesItems.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts b/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts deleted file mode 100644 index 0d5c48f84677..000000000000 --- a/packages/datadog-api-client-v2/models/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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 { StatusPagesComponentDataAttributesStatus } from "./StatusPagesComponentDataAttributesStatus"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * A component affected by a degradation update. - */ -export class CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems { - /** - * The ID of the component. Must be a component of type `component`. - */ - "id": string; - /** - * The name of the component. - */ - "name"?: string; - /** - * The status of the component. - */ - "status": StatusPagesComponentDataAttributesStatus; - - /** - * 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, - }, - name: { - baseName: "name", - type: "string", - }, - status: { - baseName: "status", - type: "StatusPagesComponentDataAttributesStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributes.ts index 0e1310dcaeca..79bfdc25c8fa 100644 --- a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributes.ts +++ b/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributes.ts @@ -4,7 +4,6 @@ * Copyright 2020-Present Datadog, Inc. */ import { CreateMaintenanceRequestDataAttributesComponentsAffectedItems } from "./CreateMaintenanceRequestDataAttributesComponentsAffectedItems"; -import { CreateMaintenanceRequestDataAttributesUpdatesItems } from "./CreateMaintenanceRequestDataAttributesUpdatesItems"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -40,7 +39,6 @@ export class CreateMaintenanceRequestDataAttributes { * The title of the maintenance. */ "title": string; - "updates"?: Array; /** * A container for additional, undeclared properties. @@ -95,10 +93,6 @@ export class CreateMaintenanceRequestDataAttributes { type: "string", required: true, }, - updates: { - baseName: "updates", - type: "Array", - }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItems.ts b/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItems.ts deleted file mode 100644 index dc16c43d2afd..000000000000 --- a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItems.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * 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 { CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems"; -import { CreateMaintenanceRequestDataAttributesUpdatesItemsStatus } from "./CreateMaintenanceRequestDataAttributesUpdatesItemsStatus"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * A maintenance update entry. - */ -export class CreateMaintenanceRequestDataAttributesUpdatesItems { - /** - * The components affected. - */ - "componentsAffected": Array; - /** - * A description of the update. - */ - "description": string; - /** - * Timestamp of when the update occurred. - */ - "startedAt": Date; - /** - * The status of a maintenance update. - */ - "status": CreateMaintenanceRequestDataAttributesUpdatesItemsStatus; - - /** - * 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 = { - componentsAffected: { - baseName: "components_affected", - type: "Array", - required: true, - }, - description: { - baseName: "description", - type: "string", - required: true, - }, - startedAt: { - baseName: "started_at", - type: "Date", - required: true, - format: "date-time", - }, - status: { - baseName: "status", - type: "CreateMaintenanceRequestDataAttributesUpdatesItemsStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return CreateMaintenanceRequestDataAttributesUpdatesItems.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts b/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts deleted file mode 100644 index 106b2cbb75f7..000000000000 --- a/packages/datadog-api-client-v2/models/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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 { PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus } from "./PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * A component affected by a maintenance update. - */ -export class CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems { - /** - * The ID of the component. Must be a component of type `component`. - */ - "id": string; - /** - * The name of the component. - */ - "name"?: string; - /** - * The status of the component. - */ - "status": PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus; - - /** - * 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, - }, - name: { - baseName: "name", - type: "string", - }, - status: { - baseName: "status", - type: "PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/DegradationDataAttributesUpdatesItems.ts b/packages/datadog-api-client-v2/models/DegradationDataAttributesUpdatesItems.ts index e3cc12fb9328..219b5db59799 100644 --- a/packages/datadog-api-client-v2/models/DegradationDataAttributesUpdatesItems.ts +++ b/packages/datadog-api-client-v2/models/DegradationDataAttributesUpdatesItems.ts @@ -28,6 +28,10 @@ export class DegradationDataAttributesUpdatesItems { * Identifier of the update. */ "id"?: string; + /** + * UUID of the user who last modified the resource. + */ + "lastModifiedByUserUuid"?: string; /** * Timestamp of when the update was last modified. */ @@ -75,6 +79,10 @@ export class DegradationDataAttributesUpdatesItems { type: "string", format: "uuid", }, + lastModifiedByUserUuid: { + baseName: "last_modified_by_user_uuid", + type: "string", + }, modifiedAt: { baseName: "modified_at", type: "Date", diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 1a0931691776..6aba40906e93 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -833,8 +833,6 @@ import { CreateDegradationRequest } from "./CreateDegradationRequest"; import { CreateDegradationRequestData } from "./CreateDegradationRequestData"; import { CreateDegradationRequestDataAttributes } from "./CreateDegradationRequestDataAttributes"; import { CreateDegradationRequestDataAttributesComponentsAffectedItems } from "./CreateDegradationRequestDataAttributesComponentsAffectedItems"; -import { CreateDegradationRequestDataAttributesUpdatesItems } from "./CreateDegradationRequestDataAttributesUpdatesItems"; -import { CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems"; import { CreateDeploymentGateParams } from "./CreateDeploymentGateParams"; import { CreateDeploymentGateParamsData } from "./CreateDeploymentGateParamsData"; import { CreateDeploymentGateParamsDataAttributes } from "./CreateDeploymentGateParamsDataAttributes"; @@ -858,8 +856,6 @@ import { CreateMaintenanceRequest } from "./CreateMaintenanceRequest"; import { CreateMaintenanceRequestData } from "./CreateMaintenanceRequestData"; import { CreateMaintenanceRequestDataAttributes } from "./CreateMaintenanceRequestDataAttributes"; import { CreateMaintenanceRequestDataAttributesComponentsAffectedItems } from "./CreateMaintenanceRequestDataAttributesComponentsAffectedItems"; -import { CreateMaintenanceRequestDataAttributesUpdatesItems } from "./CreateMaintenanceRequestDataAttributesUpdatesItems"; -import { CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems } from "./CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems"; import { CreateNotificationChannelAttributes } from "./CreateNotificationChannelAttributes"; import { CreateNotificationChannelData } from "./CreateNotificationChannelData"; import { CreateNotificationRuleParameters } from "./CreateNotificationRuleParameters"; @@ -7794,10 +7790,6 @@ const typeMap: { [index: string]: any } = { CreateDegradationRequestDataAttributes, CreateDegradationRequestDataAttributesComponentsAffectedItems: CreateDegradationRequestDataAttributesComponentsAffectedItems, - CreateDegradationRequestDataAttributesUpdatesItems: - CreateDegradationRequestDataAttributesUpdatesItems, - CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems: - CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems, CreateDeploymentGateParams: CreateDeploymentGateParams, CreateDeploymentGateParamsData: CreateDeploymentGateParamsData, CreateDeploymentGateParamsDataAttributes: @@ -7827,10 +7819,6 @@ const typeMap: { [index: string]: any } = { CreateMaintenanceRequestDataAttributes, CreateMaintenanceRequestDataAttributesComponentsAffectedItems: CreateMaintenanceRequestDataAttributesComponentsAffectedItems, - CreateMaintenanceRequestDataAttributesUpdatesItems: - CreateMaintenanceRequestDataAttributesUpdatesItems, - CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems: - CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems, CreateNotificationChannelAttributes: CreateNotificationChannelAttributes, CreateNotificationChannelData: CreateNotificationChannelData, CreateNotificationRuleParameters: CreateNotificationRuleParameters,