Skip to content

Commit

Permalink
Fix downtimes v2 schema and add missing field canceled (#1228)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 10, 2023
1 parent dff9d25 commit b607cfb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-10 14:14:43.894933",
"spec_repo_commit": "19d6892e"
"regenerated": "2023-07-10 14:43:43.540365",
"spec_repo_commit": "96fb94b8"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-10 14:14:43.911312",
"spec_repo_commit": "19d6892e"
"regenerated": "2023-07-10 14:43:43.553752",
"spec_repo_commit": "96fb94b8"
}
}
}
10 changes: 8 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3974,7 +3974,13 @@ components:
DowntimeResponseAttributes:
description: Downtime details.
properties:
created_at:
canceled:
description: Time that the downtime was canceled.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
nullable: true
type: string
created:
description: Creation time of the downtime.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
Expand All @@ -3983,7 +3989,7 @@ components:
$ref: '#/components/schemas/DowntimeDisplayTimezone'
message:
$ref: '#/components/schemas/DowntimeMessage'
modified_at:
modified:
description: Time that the downtime was last modified.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Downtime details.
*/
export class DowntimeResponseAttributes {
/**
* Time that the downtime was canceled.
*/
"canceled"?: Date;
/**
* Creation time of the downtime.
*/
"createdAt"?: Date;
"created"?: Date;
/**
* The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
* as an offset for scheduling.
Expand All @@ -32,7 +36,7 @@ export class DowntimeResponseAttributes {
/**
* Time that the downtime was last modified.
*/
"modifiedAt"?: Date;
"modified"?: Date;
/**
* Monitor identifier for the downtime.
*/
Expand Down Expand Up @@ -73,8 +77,13 @@ export class DowntimeResponseAttributes {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
createdAt: {
baseName: "created_at",
canceled: {
baseName: "canceled",
type: "Date",
format: "date-time",
},
created: {
baseName: "created",
type: "Date",
format: "date-time",
},
Expand All @@ -86,8 +95,8 @@ export class DowntimeResponseAttributes {
baseName: "message",
type: "string",
},
modifiedAt: {
baseName: "modified_at",
modified: {
baseName: "modified",
type: "Date",
format: "date-time",
},
Expand Down

0 comments on commit b607cfb

Please sign in to comment.