Skip to content

Commit 5b83a2e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 89ecaf8 of spec repo
1 parent 391c1d3 commit 5b83a2e

29 files changed

+1849
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 425 additions & 0 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29628,6 +29628,104 @@ datadog\_api\_client.v2.model.workflow\_data\_update\_attributes module
2962829628
:members:
2962929629
:show-inheritance:
2963029630

29631+
datadog\_api\_client.v2.model.workflow\_favorite\_request module
29632+
----------------------------------------------------------------
29633+
29634+
.. automodule:: datadog_api_client.v2.model.workflow_favorite_request
29635+
:members:
29636+
:show-inheritance:
29637+
29638+
datadog\_api\_client.v2.model.workflow\_favorite\_request\_attributes module
29639+
----------------------------------------------------------------------------
29640+
29641+
.. automodule:: datadog_api_client.v2.model.workflow_favorite_request_attributes
29642+
:members:
29643+
:show-inheritance:
29644+
29645+
datadog\_api\_client.v2.model.workflow\_favorite\_request\_data module
29646+
----------------------------------------------------------------------
29647+
29648+
.. automodule:: datadog_api_client.v2.model.workflow_favorite_request_data
29649+
:members:
29650+
:show-inheritance:
29651+
29652+
datadog\_api\_client.v2.model.workflow\_favorite\_request\_type module
29653+
----------------------------------------------------------------------
29654+
29655+
.. automodule:: datadog_api_client.v2.model.workflow_favorite_request_type
29656+
:members:
29657+
:show-inheritance:
29658+
29659+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_config module
29660+
--------------------------------------------------------------------------
29661+
29662+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_config
29663+
:members:
29664+
:show-inheritance:
29665+
29666+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_connection module
29667+
------------------------------------------------------------------------------
29668+
29669+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_connection
29670+
:members:
29671+
:show-inheritance:
29672+
29673+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_request module
29674+
---------------------------------------------------------------------------
29675+
29676+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_request
29677+
:members:
29678+
:show-inheritance:
29679+
29680+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_request\_attributes module
29681+
---------------------------------------------------------------------------------------
29682+
29683+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_request_attributes
29684+
:members:
29685+
:show-inheritance:
29686+
29687+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_request\_data module
29688+
---------------------------------------------------------------------------------
29689+
29690+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_request_data
29691+
:members:
29692+
:show-inheritance:
29693+
29694+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_request\_type module
29695+
---------------------------------------------------------------------------------
29696+
29697+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_request_type
29698+
:members:
29699+
:show-inheritance:
29700+
29701+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_response module
29702+
----------------------------------------------------------------------------
29703+
29704+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_response
29705+
:members:
29706+
:show-inheritance:
29707+
29708+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_response\_attributes module
29709+
----------------------------------------------------------------------------------------
29710+
29711+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_response_attributes
29712+
:members:
29713+
:show-inheritance:
29714+
29715+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_response\_data module
29716+
----------------------------------------------------------------------------------
29717+
29718+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_response_data
29719+
:members:
29720+
:show-inheritance:
29721+
29722+
datadog\_api\_client.v2.model.workflow\_headless\_execution\_response\_type module
29723+
----------------------------------------------------------------------------------
29724+
29725+
.. automodule:: datadog_api_client.v2.model.workflow_headless_execution_response_type
29726+
:members:
29727+
:show-inheritance:
29728+
2963129729
datadog\_api\_client.v2.model.workflow\_instance\_create\_meta module
2963229730
---------------------------------------------------------------------
2963329731

@@ -29712,6 +29810,41 @@ datadog\_api\_client.v2.model.workflow\_user\_relationship\_type module
2971229810
:members:
2971329811
:show-inheritance:
2971429812

29813+
datadog\_api\_client.v2.model.workflow\_webhook\_execution\_response module
29814+
---------------------------------------------------------------------------
29815+
29816+
.. automodule:: datadog_api_client.v2.model.workflow_webhook_execution_response
29817+
:members:
29818+
:show-inheritance:
29819+
29820+
datadog\_api\_client.v2.model.workflow\_webhook\_execution\_response\_attributes module
29821+
---------------------------------------------------------------------------------------
29822+
29823+
.. automodule:: datadog_api_client.v2.model.workflow_webhook_execution_response_attributes
29824+
:members:
29825+
:show-inheritance:
29826+
29827+
datadog\_api\_client.v2.model.workflow\_webhook\_execution\_response\_data module
29828+
---------------------------------------------------------------------------------
29829+
29830+
.. automodule:: datadog_api_client.v2.model.workflow_webhook_execution_response_data
29831+
:members:
29832+
:show-inheritance:
29833+
29834+
datadog\_api\_client.v2.model.workflow\_webhook\_execution\_response\_type module
29835+
---------------------------------------------------------------------------------
29836+
29837+
.. automodule:: datadog_api_client.v2.model.workflow_webhook_execution_response_type
29838+
:members:
29839+
:show-inheritance:
29840+
29841+
datadog\_api\_client.v2.model.workflow\_webhook\_payload module
29842+
---------------------------------------------------------------
29843+
29844+
.. automodule:: datadog_api_client.v2.model.workflow_webhook_payload
29845+
:members:
29846+
:show-inheritance:
29847+
2971529848
datadog\_api\_client.v2.model.worklflow\_cancel\_instance\_response module
2971629849
--------------------------------------------------------------------------
2971729850

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""
2+
Execute a workflow from a template returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.workflow_automation_api import WorkflowAutomationApi
7+
from datadog_api_client.v2.model.workflow_headless_execution_config import WorkflowHeadlessExecutionConfig
8+
from datadog_api_client.v2.model.workflow_headless_execution_connection import WorkflowHeadlessExecutionConnection
9+
from datadog_api_client.v2.model.workflow_headless_execution_request import WorkflowHeadlessExecutionRequest
10+
from datadog_api_client.v2.model.workflow_headless_execution_request_attributes import (
11+
WorkflowHeadlessExecutionRequestAttributes,
12+
)
13+
from datadog_api_client.v2.model.workflow_headless_execution_request_data import WorkflowHeadlessExecutionRequestData
14+
from datadog_api_client.v2.model.workflow_headless_execution_request_type import WorkflowHeadlessExecutionRequestType
15+
from uuid import UUID
16+
17+
body = WorkflowHeadlessExecutionRequest(
18+
data=WorkflowHeadlessExecutionRequestData(
19+
attributes=WorkflowHeadlessExecutionRequestAttributes(
20+
config=WorkflowHeadlessExecutionConfig(
21+
connections=[
22+
WorkflowHeadlessExecutionConnection(
23+
connection_id=UUID("11111111-1111-1111-1111-111111111111"),
24+
label="INTEGRATION_DATADOG",
25+
),
26+
],
27+
inputs=dict(),
28+
),
29+
template_id="template-789",
30+
),
31+
id="1234",
32+
type=WorkflowHeadlessExecutionRequestType.WORKFLOW_HEADLESS_EXECUTION_REQUEST,
33+
),
34+
)
35+
36+
configuration = Configuration()
37+
configuration.unstable_operations["execute_workflow_from_template"] = True
38+
with ApiClient(configuration) as api_client:
39+
api_instance = WorkflowAutomationApi(api_client)
40+
response = api_instance.execute_workflow_from_template(parent_id="parent_id", body=body)
41+
42+
print(response)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"""
2+
Execute a workflow from a webhook returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.workflow_automation_api import WorkflowAutomationApi
7+
from datadog_api_client.v2.model.workflow_webhook_payload import WorkflowWebhookPayload
8+
from uuid import UUID
9+
10+
body = WorkflowWebhookPayload([("foo", "bar")])
11+
12+
configuration = Configuration()
13+
configuration.unstable_operations["execute_workflow_from_webhook"] = True
14+
with ApiClient(configuration) as api_client:
15+
api_instance = WorkflowAutomationApi(api_client)
16+
response = api_instance.execute_workflow_from_webhook(
17+
workflow_id="workflow_id",
18+
org_id=UUID("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
19+
x_hub_signature_256="sha256=abcdef123456...",
20+
user_agent="GitHub-Hookshot/abc123",
21+
body=body,
22+
)
23+
24+
print(response)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
Update workflow favorite status returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.workflow_automation_api import WorkflowAutomationApi
7+
from datadog_api_client.v2.model.workflow_favorite_request import WorkflowFavoriteRequest
8+
from datadog_api_client.v2.model.workflow_favorite_request_attributes import WorkflowFavoriteRequestAttributes
9+
from datadog_api_client.v2.model.workflow_favorite_request_data import WorkflowFavoriteRequestData
10+
from datadog_api_client.v2.model.workflow_favorite_request_type import WorkflowFavoriteRequestType
11+
12+
body = WorkflowFavoriteRequest(
13+
data=WorkflowFavoriteRequestData(
14+
attributes=WorkflowFavoriteRequestAttributes(
15+
favorite=True,
16+
),
17+
type=WorkflowFavoriteRequestType.WORKFLOW_FAVORITE_REQUEST,
18+
),
19+
)
20+
21+
configuration = Configuration()
22+
configuration.unstable_operations["update_workflow_favorite"] = True
23+
with ApiClient(configuration) as api_client:
24+
api_instance = WorkflowAutomationApi(api_client)
25+
api_instance.update_workflow_favorite(workflow_id="workflow_id", body=body)

src/datadog_api_client/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ def __init__(
442442
"v2.update_incident_team": False,
443443
"v2.search_flaky_tests": False,
444444
"v2.update_flaky_tests": False,
445+
"v2.execute_workflow_from_template": False,
446+
"v2.execute_workflow_from_webhook": False,
447+
"v2.update_workflow_favorite": False,
445448
}
446449
)
447450

0 commit comments

Comments
 (0)