Skip to content

Commit 5fa2af4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f75c352 of spec repo
1 parent b0dfc8c commit 5fa2af4

10 files changed

Lines changed: 162 additions & 21 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67945,8 +67945,11 @@ components:
6794567945
description: "Trigger a workflow when an incident is declared."
6794667946
properties:
6794767947
incidentType:
67948-
description: "The type of incident that triggers the workflow."
67948+
deprecated: true
67949+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
6794967950
type: string
67951+
incidentTypes:
67952+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
6795067953
tagCondition:
6795167954
$ref: "#/components/schemas/IncidentCondition"
6795267955
type: object
@@ -68645,8 +68648,11 @@ components:
6864568648
executionLimit:
6864668649
$ref: "#/components/schemas/ExecutionLimit"
6864768650
incidentType:
68648-
description: "The type of incident that triggers the workflow."
68651+
deprecated: true
68652+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
6864968653
type: string
68654+
incidentTypes:
68655+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
6865068656
tagCondition:
6865168657
$ref: "#/components/schemas/IncidentCondition"
6865268658
type: object
@@ -68964,8 +68970,11 @@ components:
6896468970
executionLimit:
6896568971
$ref: "#/components/schemas/ExecutionLimit"
6896668972
incidentType:
68967-
description: "The type of incident that triggers the workflow."
68973+
deprecated: true
68974+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
6896868975
type: string
68976+
incidentTypes:
68977+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
6896968978
tagCondition:
6897068979
$ref: "#/components/schemas/IncidentCondition"
6897168980
type: object
@@ -70206,8 +70215,11 @@ components:
7020670215
executionLimit:
7020770216
$ref: "#/components/schemas/ExecutionLimit"
7020870217
incidentType:
70209-
description: "The type of incident that triggers the workflow."
70218+
deprecated: true
70219+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
7021070220
type: string
70221+
incidentTypes:
70222+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
7021170223
tagCondition:
7021270224
$ref: "#/components/schemas/IncidentCondition"
7021370225
type: object
@@ -70257,8 +70269,11 @@ components:
7025770269
executionLimit:
7025870270
$ref: "#/components/schemas/ExecutionLimit"
7025970271
incidentType:
70260-
description: "The type of incident that triggers the workflow."
70272+
deprecated: true
70273+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
7026170274
type: string
70275+
incidentTypes:
70276+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
7026270277
tagCondition:
7026370278
$ref: "#/components/schemas/IncidentCondition"
7026470279
type: object
@@ -71242,8 +71257,11 @@ components:
7124271257
executionLimit:
7124371258
$ref: "#/components/schemas/ExecutionLimit"
7124471259
incidentType:
71245-
description: "The type of incident that triggers the workflow."
71260+
deprecated: true
71261+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
7124671262
type: string
71263+
incidentTypes:
71264+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
7124771265
serialExecution:
7124871266
$ref: "#/components/schemas/SerialExecution"
7124971267
tagCondition:
@@ -71263,8 +71281,11 @@ components:
7126371281
description: "Trigger a workflow on a schedule for an incident."
7126471282
properties:
7126571283
incidentType:
71266-
description: "The type of incident that triggers the workflow."
71284+
deprecated: true
71285+
description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow."
7126771286
type: string
71287+
incidentTypes:
71288+
$ref: "#/components/schemas/IncidentTriggerIncidentTypes"
7126871289
rrule:
7126971290
description: "The recurrence rule for the schedule, expressed as an iCalendar `RRULE` string."
7127071291
example: "DTSTART:20241220T151700Z\nRRULE:FREQ=MONTHLY"
@@ -72023,6 +72044,21 @@ components:
7202372044
description: "Version of the incident manual trigger."
7202472045
type: string
7202572046
type: object
72047+
IncidentTriggerIncidentType:
72048+
description: "An incident type that triggers the workflow."
72049+
properties:
72050+
id:
72051+
description: "The ID of the incident type."
72052+
example: ""
72053+
type: string
72054+
required:
72055+
- id
72056+
type: object
72057+
IncidentTriggerIncidentTypes:
72058+
description: "The types of incident that trigger the workflow."
72059+
items:
72060+
$ref: "#/components/schemas/IncidentTriggerIncidentType"
72061+
type: array
7202672062
IncidentTriggerWrapper:
7202772063
description: "Schema for an incident-based trigger."
7202872064
properties:

‎src/datadog_api_client/v2/model/incident_created_trigger.py‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -14,41 +14,51 @@
1414

1515

1616
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
1718
from datadog_api_client.v2.model.incident_condition import IncidentCondition
1819

1920

2021
class IncidentCreatedTrigger(ModelNormal):
2122
@cached_property
2223
def openapi_types(_):
24+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
2325
from datadog_api_client.v2.model.incident_condition import IncidentCondition
2426

2527
return {
2628
"incident_type": (str,),
29+
"incident_types": ([IncidentTriggerIncidentType],),
2730
"tag_condition": (IncidentCondition,),
2831
}
2932

3033
attribute_map = {
3134
"incident_type": "incidentType",
35+
"incident_types": "incidentTypes",
3236
"tag_condition": "tagCondition",
3337
}
3438

3539
def __init__(
3640
self_,
3741
incident_type: Union[str, UnsetType] = unset,
42+
incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset,
3843
tag_condition: Union[IncidentCondition, UnsetType] = unset,
3944
**kwargs,
4045
):
4146
"""
4247
Trigger a workflow when an incident is declared.
4348
44-
:param incident_type: The type of incident that triggers the workflow.
49+
:param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**.
4550
:type incident_type: str, optional
4651
52+
:param incident_types: The types of incident that trigger the workflow.
53+
:type incident_types: [IncidentTriggerIncidentType], optional
54+
4755
:param tag_condition: Conditions that determine which incidents trigger the workflow.
4856
:type tag_condition: IncidentCondition, optional
4957
"""
5058
if incident_type is not unset:
5159
kwargs["incident_type"] = incident_type
60+
if incident_types is not unset:
61+
kwargs["incident_types"] = incident_types
5262
if tag_condition is not unset:
5363
kwargs["tag_condition"] = tag_condition
5464
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/incident_impact_created_trigger.py‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -15,31 +15,36 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
18+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
1819
from datadog_api_client.v2.model.incident_condition import IncidentCondition
1920

2021

2122
class IncidentImpactCreatedTrigger(ModelNormal):
2223
@cached_property
2324
def openapi_types(_):
2425
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
26+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
2527
from datadog_api_client.v2.model.incident_condition import IncidentCondition
2628

2729
return {
2830
"execution_limit": (ExecutionLimit,),
2931
"incident_type": (str,),
32+
"incident_types": ([IncidentTriggerIncidentType],),
3033
"tag_condition": (IncidentCondition,),
3134
}
3235

3336
attribute_map = {
3437
"execution_limit": "executionLimit",
3538
"incident_type": "incidentType",
39+
"incident_types": "incidentTypes",
3640
"tag_condition": "tagCondition",
3741
}
3842

3943
def __init__(
4044
self_,
4145
execution_limit: Union[ExecutionLimit, UnsetType] = unset,
4246
incident_type: Union[str, UnsetType] = unset,
47+
incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset,
4348
tag_condition: Union[IncidentCondition, UnsetType] = unset,
4449
**kwargs,
4550
):
@@ -49,16 +54,21 @@ def __init__(
4954
:param execution_limit: The maximum number of times to execute a workflow for an incident.
5055
:type execution_limit: ExecutionLimit, optional
5156
52-
:param incident_type: The type of incident that triggers the workflow.
57+
:param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**.
5358
:type incident_type: str, optional
5459
60+
:param incident_types: The types of incident that trigger the workflow.
61+
:type incident_types: [IncidentTriggerIncidentType], optional
62+
5563
:param tag_condition: Conditions that determine which incidents trigger the workflow.
5664
:type tag_condition: IncidentCondition, optional
5765
"""
5866
if execution_limit is not unset:
5967
kwargs["execution_limit"] = execution_limit
6068
if incident_type is not unset:
6169
kwargs["incident_type"] = incident_type
70+
if incident_types is not unset:
71+
kwargs["incident_types"] = incident_types
6272
if tag_condition is not unset:
6373
kwargs["tag_condition"] = tag_condition
6474
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/incident_impact_updated_trigger.py‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -15,31 +15,36 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
18+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
1819
from datadog_api_client.v2.model.incident_condition import IncidentCondition
1920

2021

2122
class IncidentImpactUpdatedTrigger(ModelNormal):
2223
@cached_property
2324
def openapi_types(_):
2425
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
26+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
2527
from datadog_api_client.v2.model.incident_condition import IncidentCondition
2628

2729
return {
2830
"execution_limit": (ExecutionLimit,),
2931
"incident_type": (str,),
32+
"incident_types": ([IncidentTriggerIncidentType],),
3033
"tag_condition": (IncidentCondition,),
3134
}
3235

3336
attribute_map = {
3437
"execution_limit": "executionLimit",
3538
"incident_type": "incidentType",
39+
"incident_types": "incidentTypes",
3640
"tag_condition": "tagCondition",
3741
}
3842

3943
def __init__(
4044
self_,
4145
execution_limit: Union[ExecutionLimit, UnsetType] = unset,
4246
incident_type: Union[str, UnsetType] = unset,
47+
incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset,
4348
tag_condition: Union[IncidentCondition, UnsetType] = unset,
4449
**kwargs,
4550
):
@@ -49,16 +54,21 @@ def __init__(
4954
:param execution_limit: The maximum number of times to execute a workflow for an incident.
5055
:type execution_limit: ExecutionLimit, optional
5156
52-
:param incident_type: The type of incident that triggers the workflow.
57+
:param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**.
5358
:type incident_type: str, optional
5459
60+
:param incident_types: The types of incident that trigger the workflow.
61+
:type incident_types: [IncidentTriggerIncidentType], optional
62+
5563
:param tag_condition: Conditions that determine which incidents trigger the workflow.
5664
:type tag_condition: IncidentCondition, optional
5765
"""
5866
if execution_limit is not unset:
5967
kwargs["execution_limit"] = execution_limit
6068
if incident_type is not unset:
6169
kwargs["incident_type"] = incident_type
70+
if incident_types is not unset:
71+
kwargs["incident_types"] = incident_types
6272
if tag_condition is not unset:
6373
kwargs["tag_condition"] = tag_condition
6474
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/incident_postmortem_updated_trigger.py‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -15,31 +15,36 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
18+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
1819
from datadog_api_client.v2.model.incident_condition import IncidentCondition
1920

2021

2122
class IncidentPostmortemUpdatedTrigger(ModelNormal):
2223
@cached_property
2324
def openapi_types(_):
2425
from datadog_api_client.v2.model.execution_limit import ExecutionLimit
26+
from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType
2527
from datadog_api_client.v2.model.incident_condition import IncidentCondition
2628

2729
return {
2830
"execution_limit": (ExecutionLimit,),
2931
"incident_type": (str,),
32+
"incident_types": ([IncidentTriggerIncidentType],),
3033
"tag_condition": (IncidentCondition,),
3134
}
3235

3336
attribute_map = {
3437
"execution_limit": "executionLimit",
3538
"incident_type": "incidentType",
39+
"incident_types": "incidentTypes",
3640
"tag_condition": "tagCondition",
3741
}
3842

3943
def __init__(
4044
self_,
4145
execution_limit: Union[ExecutionLimit, UnsetType] = unset,
4246
incident_type: Union[str, UnsetType] = unset,
47+
incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset,
4348
tag_condition: Union[IncidentCondition, UnsetType] = unset,
4449
**kwargs,
4550
):
@@ -49,16 +54,21 @@ def __init__(
4954
:param execution_limit: The maximum number of times to execute a workflow for an incident.
5055
:type execution_limit: ExecutionLimit, optional
5156
52-
:param incident_type: The type of incident that triggers the workflow.
57+
:param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**.
5358
:type incident_type: str, optional
5459
60+
:param incident_types: The types of incident that trigger the workflow.
61+
:type incident_types: [IncidentTriggerIncidentType], optional
62+
5563
:param tag_condition: Conditions that determine which incidents trigger the workflow.
5664
:type tag_condition: IncidentCondition, optional
5765
"""
5866
if execution_limit is not unset:
5967
kwargs["execution_limit"] = execution_limit
6068
if incident_type is not unset:
6169
kwargs["incident_type"] = incident_type
70+
if incident_types is not unset:
71+
kwargs["incident_types"] = incident_types
6272
if tag_condition is not unset:
6373
kwargs["tag_condition"] = tag_condition
6474
super().__init__(kwargs)

0 commit comments

Comments
 (0)