Skip to content

Commit 2ab5dd4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 82f8476 of spec repo
1 parent 2b59847 commit 2ab5dd4

File tree

54 files changed

+1716
-1501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1716
-1501
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 339 additions & 307 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 140 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,76 @@ datadog\_api\_client.v2.model.attach\_jira\_issue\_request\_data\_relationships
12711271
:members:
12721272
:show-inheritance:
12731273

1274+
datadog\_api\_client.v2.model.attachment module
1275+
-----------------------------------------------
1276+
1277+
.. automodule:: datadog_api_client.v2.model.attachment
1278+
:members:
1279+
:show-inheritance:
1280+
1281+
datadog\_api\_client.v2.model.attachment\_array module
1282+
------------------------------------------------------
1283+
1284+
.. automodule:: datadog_api_client.v2.model.attachment_array
1285+
:members:
1286+
:show-inheritance:
1287+
1288+
datadog\_api\_client.v2.model.attachment\_data module
1289+
-----------------------------------------------------
1290+
1291+
.. automodule:: datadog_api_client.v2.model.attachment_data
1292+
:members:
1293+
:show-inheritance:
1294+
1295+
datadog\_api\_client.v2.model.attachment\_data\_attributes module
1296+
-----------------------------------------------------------------
1297+
1298+
.. automodule:: datadog_api_client.v2.model.attachment_data_attributes
1299+
:members:
1300+
:show-inheritance:
1301+
1302+
datadog\_api\_client.v2.model.attachment\_data\_attributes\_attachment module
1303+
-----------------------------------------------------------------------------
1304+
1305+
.. automodule:: datadog_api_client.v2.model.attachment_data_attributes_attachment
1306+
:members:
1307+
:show-inheritance:
1308+
1309+
datadog\_api\_client.v2.model.attachment\_data\_attributes\_attachment\_type module
1310+
-----------------------------------------------------------------------------------
1311+
1312+
.. automodule:: datadog_api_client.v2.model.attachment_data_attributes_attachment_type
1313+
:members:
1314+
:show-inheritance:
1315+
1316+
datadog\_api\_client.v2.model.attachment\_data\_relationships module
1317+
--------------------------------------------------------------------
1318+
1319+
.. automodule:: datadog_api_client.v2.model.attachment_data_relationships
1320+
:members:
1321+
:show-inheritance:
1322+
1323+
datadog\_api\_client.v2.model.attachment\_data\_relationships\_last\_modified\_by\_user module
1324+
----------------------------------------------------------------------------------------------
1325+
1326+
.. automodule:: datadog_api_client.v2.model.attachment_data_relationships_last_modified_by_user
1327+
:members:
1328+
:show-inheritance:
1329+
1330+
datadog\_api\_client.v2.model.attachment\_data\_relationships\_last\_modified\_by\_user\_data module
1331+
----------------------------------------------------------------------------------------------------
1332+
1333+
.. automodule:: datadog_api_client.v2.model.attachment_data_relationships_last_modified_by_user_data
1334+
:members:
1335+
:show-inheritance:
1336+
1337+
datadog\_api\_client.v2.model.attachment\_included module
1338+
---------------------------------------------------------
1339+
1340+
.. automodule:: datadog_api_client.v2.model.attachment_included
1341+
:members:
1342+
:show-inheritance:
1343+
12741344
datadog\_api\_client.v2.model.audit\_logs\_event module
12751345
-------------------------------------------------------
12761346

@@ -5121,6 +5191,34 @@ datadog\_api\_client.v2.model.create\_apps\_datastore\_response\_data module
51215191
:members:
51225192
:show-inheritance:
51235193

5194+
datadog\_api\_client.v2.model.create\_attachment\_request module
5195+
----------------------------------------------------------------
5196+
5197+
.. automodule:: datadog_api_client.v2.model.create_attachment_request
5198+
:members:
5199+
:show-inheritance:
5200+
5201+
datadog\_api\_client.v2.model.create\_attachment\_request\_data module
5202+
----------------------------------------------------------------------
5203+
5204+
.. automodule:: datadog_api_client.v2.model.create_attachment_request_data
5205+
:members:
5206+
:show-inheritance:
5207+
5208+
datadog\_api\_client.v2.model.create\_attachment\_request\_data\_attributes module
5209+
----------------------------------------------------------------------------------
5210+
5211+
.. automodule:: datadog_api_client.v2.model.create_attachment_request_data_attributes
5212+
:members:
5213+
:show-inheritance:
5214+
5215+
datadog\_api\_client.v2.model.create\_attachment\_request\_data\_attributes\_attachment module
5216+
----------------------------------------------------------------------------------------------
5217+
5218+
.. automodule:: datadog_api_client.v2.model.create_attachment_request_data_attributes_attachment
5219+
:members:
5220+
:show-inheritance:
5221+
51245222
datadog\_api\_client.v2.model.create\_case\_request\_array module
51255223
-----------------------------------------------------------------
51265224

@@ -10763,132 +10861,13 @@ datadog\_api\_client.v2.model.idp\_metadata\_form\_data module
1076310861
:members:
1076410862
:show-inheritance:
1076510863

10766-
datadog\_api\_client.v2.model.incident\_attachment\_attachment\_type module
10767-
---------------------------------------------------------------------------
10768-
10769-
.. automodule:: datadog_api_client.v2.model.incident_attachment_attachment_type
10770-
:members:
10771-
:show-inheritance:
10772-
10773-
datadog\_api\_client.v2.model.incident\_attachment\_attributes module
10774-
---------------------------------------------------------------------
10775-
10776-
.. automodule:: datadog_api_client.v2.model.incident_attachment_attributes
10777-
:members:
10778-
:show-inheritance:
10779-
10780-
datadog\_api\_client.v2.model.incident\_attachment\_data module
10781-
---------------------------------------------------------------
10782-
10783-
.. automodule:: datadog_api_client.v2.model.incident_attachment_data
10784-
:members:
10785-
:show-inheritance:
10786-
10787-
datadog\_api\_client.v2.model.incident\_attachment\_link\_attachment\_type module
10788-
---------------------------------------------------------------------------------
10789-
10790-
.. automodule:: datadog_api_client.v2.model.incident_attachment_link_attachment_type
10791-
:members:
10792-
:show-inheritance:
10793-
10794-
datadog\_api\_client.v2.model.incident\_attachment\_link\_attributes module
10795-
---------------------------------------------------------------------------
10796-
10797-
.. automodule:: datadog_api_client.v2.model.incident_attachment_link_attributes
10798-
:members:
10799-
:show-inheritance:
10800-
10801-
datadog\_api\_client.v2.model.incident\_attachment\_link\_attributes\_attachment\_object module
10802-
-----------------------------------------------------------------------------------------------
10803-
10804-
.. automodule:: datadog_api_client.v2.model.incident_attachment_link_attributes_attachment_object
10805-
:members:
10806-
:show-inheritance:
10807-
10808-
datadog\_api\_client.v2.model.incident\_attachment\_postmortem\_attachment\_type module
10809-
---------------------------------------------------------------------------------------
10810-
10811-
.. automodule:: datadog_api_client.v2.model.incident_attachment_postmortem_attachment_type
10812-
:members:
10813-
:show-inheritance:
10814-
10815-
datadog\_api\_client.v2.model.incident\_attachment\_postmortem\_attributes module
10816-
---------------------------------------------------------------------------------
10817-
10818-
.. automodule:: datadog_api_client.v2.model.incident_attachment_postmortem_attributes
10819-
:members:
10820-
:show-inheritance:
10821-
10822-
datadog\_api\_client.v2.model.incident\_attachment\_related\_object module
10823-
--------------------------------------------------------------------------
10824-
10825-
.. automodule:: datadog_api_client.v2.model.incident_attachment_related_object
10826-
:members:
10827-
:show-inheritance:
10828-
10829-
datadog\_api\_client.v2.model.incident\_attachment\_relationships module
10830-
------------------------------------------------------------------------
10831-
10832-
.. automodule:: datadog_api_client.v2.model.incident_attachment_relationships
10833-
:members:
10834-
:show-inheritance:
10835-
1083610864
datadog\_api\_client.v2.model.incident\_attachment\_type module
1083710865
---------------------------------------------------------------
1083810866

1083910867
.. automodule:: datadog_api_client.v2.model.incident_attachment_type
1084010868
:members:
1084110869
:show-inheritance:
1084210870

10843-
datadog\_api\_client.v2.model.incident\_attachment\_update\_attributes module
10844-
-----------------------------------------------------------------------------
10845-
10846-
.. automodule:: datadog_api_client.v2.model.incident_attachment_update_attributes
10847-
:members:
10848-
:show-inheritance:
10849-
10850-
datadog\_api\_client.v2.model.incident\_attachment\_update\_data module
10851-
-----------------------------------------------------------------------
10852-
10853-
.. automodule:: datadog_api_client.v2.model.incident_attachment_update_data
10854-
:members:
10855-
:show-inheritance:
10856-
10857-
datadog\_api\_client.v2.model.incident\_attachment\_update\_request module
10858-
--------------------------------------------------------------------------
10859-
10860-
.. automodule:: datadog_api_client.v2.model.incident_attachment_update_request
10861-
:members:
10862-
:show-inheritance:
10863-
10864-
datadog\_api\_client.v2.model.incident\_attachment\_update\_response module
10865-
---------------------------------------------------------------------------
10866-
10867-
.. automodule:: datadog_api_client.v2.model.incident_attachment_update_response
10868-
:members:
10869-
:show-inheritance:
10870-
10871-
datadog\_api\_client.v2.model.incident\_attachments\_postmortem\_attributes\_attachment\_object module
10872-
------------------------------------------------------------------------------------------------------
10873-
10874-
.. automodule:: datadog_api_client.v2.model.incident_attachments_postmortem_attributes_attachment_object
10875-
:members:
10876-
:show-inheritance:
10877-
10878-
datadog\_api\_client.v2.model.incident\_attachments\_response module
10879-
--------------------------------------------------------------------
10880-
10881-
.. automodule:: datadog_api_client.v2.model.incident_attachments_response
10882-
:members:
10883-
:show-inheritance:
10884-
10885-
datadog\_api\_client.v2.model.incident\_attachments\_response\_included\_item module
10886-
------------------------------------------------------------------------------------
10887-
10888-
.. automodule:: datadog_api_client.v2.model.incident_attachments_response_included_item
10889-
:members:
10890-
:show-inheritance:
10891-
1089210871
datadog\_api\_client.v2.model.incident\_create\_attributes module
1089310872
-----------------------------------------------------------------
1089410873

@@ -17441,6 +17420,34 @@ datadog\_api\_client.v2.model.partial\_application\_key\_response module
1744117420
:members:
1744217421
:show-inheritance:
1744317422

17423+
datadog\_api\_client.v2.model.patch\_attachment\_request module
17424+
---------------------------------------------------------------
17425+
17426+
.. automodule:: datadog_api_client.v2.model.patch_attachment_request
17427+
:members:
17428+
:show-inheritance:
17429+
17430+
datadog\_api\_client.v2.model.patch\_attachment\_request\_data module
17431+
---------------------------------------------------------------------
17432+
17433+
.. automodule:: datadog_api_client.v2.model.patch_attachment_request_data
17434+
:members:
17435+
:show-inheritance:
17436+
17437+
datadog\_api\_client.v2.model.patch\_attachment\_request\_data\_attributes module
17438+
---------------------------------------------------------------------------------
17439+
17440+
.. automodule:: datadog_api_client.v2.model.patch_attachment_request_data_attributes
17441+
:members:
17442+
:show-inheritance:
17443+
17444+
datadog\_api\_client.v2.model.patch\_attachment\_request\_data\_attributes\_attachment module
17445+
---------------------------------------------------------------------------------------------
17446+
17447+
.. automodule:: datadog_api_client.v2.model.patch_attachment_request_data_attributes_attachment
17448+
:members:
17449+
:show-inheritance:
17450+
1744417451
datadog\_api\_client.v2.model.patch\_incident\_notification\_template\_request module
1744517452
-------------------------------------------------------------------------------------
1744617453

@@ -25001,6 +25008,13 @@ datadog\_api\_client.v2.model.user module
2500125008
:members:
2500225009
:show-inheritance:
2500325010

25011+
datadog\_api\_client.v2.model.user140420082644000 module
25012+
--------------------------------------------------------
25013+
25014+
.. automodule:: datadog_api_client.v2.model.user140420082644000
25015+
:members:
25016+
:show-inheritance:
25017+
2500425018
datadog\_api\_client.v2.model.user\_attributes module
2500525019
-----------------------------------------------------
2500625020

@@ -25267,6 +25281,13 @@ datadog\_api\_client.v2.model.user\_teams\_response module
2526725281
:members:
2526825282
:show-inheritance:
2526925283

25284+
datadog\_api\_client.v2.model.user\_type module
25285+
-----------------------------------------------
25286+
25287+
.. automodule:: datadog_api_client.v2.model.user_type
25288+
:members:
25289+
:show-inheritance:
25290+
2527025291
datadog\_api\_client.v2.model.user\_update\_attributes module
2527125292
-------------------------------------------------------------
2527225293

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"""
2+
Create incident attachment returns "Created" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
from datadog_api_client.v2.model.attachment_data_attributes_attachment_type import (
8+
AttachmentDataAttributesAttachmentType,
9+
)
10+
from datadog_api_client.v2.model.create_attachment_request import CreateAttachmentRequest
11+
from datadog_api_client.v2.model.create_attachment_request_data import CreateAttachmentRequestData
12+
from datadog_api_client.v2.model.create_attachment_request_data_attributes import CreateAttachmentRequestDataAttributes
13+
from datadog_api_client.v2.model.create_attachment_request_data_attributes_attachment import (
14+
CreateAttachmentRequestDataAttributesAttachment,
15+
)
16+
from datadog_api_client.v2.model.incident_attachment_type import IncidentAttachmentType
17+
18+
body = CreateAttachmentRequest(
19+
data=CreateAttachmentRequestData(
20+
attributes=CreateAttachmentRequestDataAttributes(
21+
attachment=CreateAttachmentRequestDataAttributesAttachment(
22+
document_url="https://app.datadoghq.com/notebook/123/Postmortem-IR-123",
23+
title="Postmortem-IR-123",
24+
),
25+
attachment_type=AttachmentDataAttributesAttachmentType.POSTMORTEM,
26+
),
27+
id="00000000-0000-0000-0000-000000000000",
28+
type=IncidentAttachmentType.INCIDENT_ATTACHMENTS,
29+
),
30+
)
31+
32+
configuration = Configuration()
33+
configuration.unstable_operations["create_incident_attachment"] = True
34+
with ApiClient(configuration) as api_client:
35+
api_instance = IncidentsApi(api_client)
36+
response = api_instance.create_incident_attachment(incident_id="incident_id", body=body)
37+
38+
print(response)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Delete incident attachment returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["delete_incident_attachment"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = IncidentsApi(api_client)
12+
api_instance.delete_incident_attachment(
13+
incident_id="incident_id",
14+
attachment_id="00000000-0000-0000-0000-000000000002",
15+
)

examples/v2/incidents/ListIncidentAttachments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get a list of attachments returns "OK" response
2+
List incident attachments returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration

examples/v2/incidents/ListIncidentAttachments_2457735435.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)