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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112959,7 +112959,7 @@ components:
description: The templated content of the postmortem, supporting Markdown and incident template variables.
example: "# Overview\n\n# What Happened\n\n# Timeline\n\n# Action Items"
type: string
createdAt:
created:
description: When the template was created.
example: "2026-01-13T17:15:53.208340Z"
format: date-time
Expand All @@ -112974,7 +112974,7 @@ components:
type: string
location:
$ref: "#/components/schemas/PostmortemTemplateLocation"
modifiedAt:
modified:
description: When the template was last modified.
example: "2026-01-13T17:15:53.208340Z"
format: date-time
Expand All @@ -112988,8 +112988,8 @@ components:
- content
- is_default
- location
- createdAt
- modifiedAt
- created
- modified
type: object
PostmortemTemplateCreateRelationships:
description: Relationships for a postmortem template. `incident_type` is required when creating a template and is immutable afterwards.
Expand Down Expand Up @@ -206232,10 +206232,10 @@ paths:
data:
- attributes:
content: "# Overview\n\n# What Happened\n\n# Timeline\n\n# Action Items"
createdAt: "2024-01-01T00:00:00+00:00"
created: "2024-01-01T00:00:00+00:00"
is_default: "2024-01-01T00:00:00+00:00"
location: datadog_notebooks
modifiedAt: "2024-01-01T00:00:00+00:00"
modified: "2024-01-01T00:00:00+00:00"
name: Standard Postmortem Template
id: 00000000-0000-0000-0000-000000000001
relationships:
Expand Down Expand Up @@ -206293,10 +206293,10 @@ paths:
data:
attributes:
content: "# Overview\n\n# What Happened\n\n# Timeline\n\n# Action Items"
createdAt: "2024-01-01T00:00:00+00:00"
created: "2024-01-01T00:00:00+00:00"
is_default:
location: datadog_notebooks
modifiedAt: "2024-01-01T00:00:00+00:00"
modified: "2024-01-01T00:00:00+00:00"
name: Standard Postmortem Template
id: 00000000-0000-0000-0000-000000000002
relationships:
Expand Down Expand Up @@ -206372,10 +206372,10 @@ paths:
data:
attributes:
content: "# Overview\n\n# What Happened\n\n# Timeline\n\n# Action Items"
createdAt: "2024-01-01T00:00:00+00:00"
created: "2024-01-01T00:00:00+00:00"
is_default:
location: datadog_notebooks
modifiedAt: "2024-01-01T00:00:00+00:00"
modified: "2024-01-01T00:00:00+00:00"
name: Standard Postmortem Template
id: 00000000-0000-0000-0000-000000000003
relationships:
Expand Down Expand Up @@ -206436,10 +206436,10 @@ paths:
data:
attributes:
content: "# Overview\n\n# What Happened\n\n# Timeline\n\n# Action Items"
createdAt: "2024-01-01T00:00:00+00:00"
created: "2024-01-01T00:00:00+00:00"
is_default:
location: datadog_notebooks
modifiedAt: "2024-01-01T00:00:00+00:00"
modified: "2024-01-01T00:00:00+00:00"
name: Standard Postmortem Template
id: 00000000-0000-0000-0000-000000000004
relationships:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,32 @@ def openapi_types(_):
return {
"confluence_postmortem_settings": (ConfluencePostmortemSettings,),
"content": (str,),
"created_at": (datetime,),
"created": (datetime,),
"google_docs_postmortem_settings": (GoogleDocsPostmortemSettings,),
"is_default": (datetime, none_type),
"location": (PostmortemTemplateLocation,),
"modified_at": (datetime,),
"modified": (datetime,),
"name": (str,),
}

attribute_map = {
"confluence_postmortem_settings": "confluence_postmortem_settings",
"content": "content",
"created_at": "createdAt",
"created": "created",
"google_docs_postmortem_settings": "google_docs_postmortem_settings",
"is_default": "is_default",
"location": "location",
"modified_at": "modifiedAt",
"modified": "modified",
"name": "name",
}

def __init__(
self_,
content: str,
created_at: datetime,
created: datetime,
is_default: Union[datetime, none_type],
location: PostmortemTemplateLocation,
modified_at: datetime,
modified: datetime,
name: str,
confluence_postmortem_settings: Union[ConfluencePostmortemSettings, UnsetType] = unset,
google_docs_postmortem_settings: Union[GoogleDocsPostmortemSettings, UnsetType] = unset,
Expand All @@ -71,8 +71,8 @@ def __init__(
:param content: The templated content of the postmortem, supporting Markdown and incident template variables.
:type content: str

:param created_at: When the template was created.
:type created_at: datetime
:param created: When the template was created.
:type created: datetime

:param google_docs_postmortem_settings: Settings for a postmortem template stored in Google Docs. Required when ``location`` is ``google_docs``.
:type google_docs_postmortem_settings: GoogleDocsPostmortemSettings, optional
Expand All @@ -83,8 +83,8 @@ def __init__(
:param location: The location where the postmortem is created and stored.
:type location: PostmortemTemplateLocation

:param modified_at: When the template was last modified.
:type modified_at: datetime
:param modified: When the template was last modified.
:type modified: datetime

:param name: The name of the template.
:type name: str
Expand All @@ -96,8 +96,8 @@ def __init__(
super().__init__(kwargs)

self_.content = content
self_.created_at = created_at
self_.created = created
self_.is_default = is_default
self_.location = location
self_.modified_at = modified_at
self_.modified = modified
self_.name = name
Loading