Skip to content

Commit a80f807

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 57d26221 of spec repo
1 parent fd07359 commit a80f807

12 files changed

+297
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-04-04 17:50:52.788705",
8-
"spec_repo_commit": "9a7b22d0"
7+
"regenerated": "2023-04-04 18:43:31.133728",
8+
"spec_repo_commit": "57d26221"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-04-04 17:50:52.800936",
13-
"spec_repo_commit": "9a7b22d0"
12+
"regenerated": "2023-04-04 18:43:31.145815",
13+
"spec_repo_commit": "57d26221"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12425,6 +12425,7 @@ components:
1242512425
oneOf:
1242612426
- $ref: '#/components/schemas/ServiceDefinitionV2Email'
1242712427
- $ref: '#/components/schemas/ServiceDefinitionV2Slack'
12428+
- $ref: '#/components/schemas/ServiceDefinitionV2MSTeams'
1242812429
ServiceDefinitionV2Doc:
1242912430
description: Service documents.
1243012431
properties:
@@ -12511,6 +12512,7 @@ components:
1251112512
oneOf:
1251212513
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1Email'
1251312514
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1Slack'
12515+
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1MSTeams'
1251412516
ServiceDefinitionV2Dot1Email:
1251512517
description: Service owner's email.
1251612518
properties:
@@ -12583,6 +12585,31 @@ components:
1258312585
- RUNBOOK
1258412586
- DASHBOARD
1258512587
- OTHER
12588+
ServiceDefinitionV2Dot1MSTeams:
12589+
description: Service owner's Microsoft Teams.
12590+
properties:
12591+
contact:
12592+
description: Contact value.
12593+
example: https://teams.microsoft.com/myteam
12594+
type: string
12595+
name:
12596+
description: Contact Microsoft Teams.
12597+
example: My team channel
12598+
type: string
12599+
type:
12600+
$ref: '#/components/schemas/ServiceDefinitionV2Dot1MSTeamsType'
12601+
required:
12602+
- type
12603+
- contact
12604+
type: object
12605+
ServiceDefinitionV2Dot1MSTeamsType:
12606+
description: Contact type.
12607+
enum:
12608+
- microsoft-teams
12609+
example: microsoft-teams
12610+
type: string
12611+
x-enum-varnames:
12612+
- MICROSOFT_TEAMS
1258612613
ServiceDefinitionV2Dot1Opsgenie:
1258712614
description: Opsgenie integration for the service.
1258812615
properties:
@@ -12723,6 +12750,31 @@ components:
1272312750
- ONCALL
1272412751
- CODE
1272512752
- LINK
12753+
ServiceDefinitionV2MSTeams:
12754+
description: Service owner's Microsoft Teams.
12755+
properties:
12756+
contact:
12757+
description: Contact value.
12758+
example: https://teams.microsoft.com/myteam
12759+
type: string
12760+
name:
12761+
description: Contact Microsoft Teams.
12762+
example: My team channel
12763+
type: string
12764+
type:
12765+
$ref: '#/components/schemas/ServiceDefinitionV2MSTeamsType'
12766+
required:
12767+
- type
12768+
- contact
12769+
type: object
12770+
ServiceDefinitionV2MSTeamsType:
12771+
description: Contact type.
12772+
enum:
12773+
- microsoft-teams
12774+
example: microsoft-teams
12775+
type: string
12776+
x-enum-varnames:
12777+
- MICROSOFT_TEAMS
1272612778
ServiceDefinitionV2Opsgenie:
1272712779
description: Opsgenie integration for the service.
1272812780
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5783,6 +5783,20 @@ service\_definition\_v2\_dot1\_link\_type
57835783
:members:
57845784
:show-inheritance:
57855785

5786+
service\_definition\_v2\_dot1\_ms\_teams
5787+
----------------------------------------
5788+
5789+
.. automodule:: datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams
5790+
:members:
5791+
:show-inheritance:
5792+
5793+
service\_definition\_v2\_dot1\_ms\_teams\_type
5794+
----------------------------------------------
5795+
5796+
.. automodule:: datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams_type
5797+
:members:
5798+
:show-inheritance:
5799+
57865800
service\_definition\_v2\_dot1\_opsgenie
57875801
---------------------------------------
57885802

@@ -5853,6 +5867,20 @@ service\_definition\_v2\_link\_type
58535867
:members:
58545868
:show-inheritance:
58555869

5870+
service\_definition\_v2\_ms\_teams
5871+
----------------------------------
5872+
5873+
.. automodule:: datadog_api_client.v2.model.service_definition_v2_ms_teams
5874+
:members:
5875+
:show-inheritance:
5876+
5877+
service\_definition\_v2\_ms\_teams\_type
5878+
----------------------------------------
5879+
5880+
.. automodule:: datadog_api_client.v2.model.service_definition_v2_ms_teams_type
5881+
:members:
5882+
:show-inheritance:
5883+
58565884
service\_definition\_v2\_opsgenie
58575885
---------------------------------
58585886

src/datadog_api_client/v2/model/service_definition_v2.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from datadog_api_client.v2.model.service_definition_v2_version import ServiceDefinitionV2Version
2626
from datadog_api_client.v2.model.service_definition_v2_email import ServiceDefinitionV2Email
2727
from datadog_api_client.v2.model.service_definition_v2_slack import ServiceDefinitionV2Slack
28+
from datadog_api_client.v2.model.service_definition_v2_ms_teams import ServiceDefinitionV2MSTeams
2829

2930

3031
class ServiceDefinitionV2(ModelNormal):
@@ -84,7 +85,15 @@ def __init__(
8485
dd_service: str,
8586
schema_version: ServiceDefinitionV2Version,
8687
contacts: Union[
87-
List[Union[ServiceDefinitionV2Contact, ServiceDefinitionV2Email, ServiceDefinitionV2Slack]], UnsetType
88+
List[
89+
Union[
90+
ServiceDefinitionV2Contact,
91+
ServiceDefinitionV2Email,
92+
ServiceDefinitionV2Slack,
93+
ServiceDefinitionV2MSTeams,
94+
]
95+
],
96+
UnsetType,
8897
] = unset,
8998
dd_team: Union[str, UnsetType] = unset,
9099
docs: Union[List[ServiceDefinitionV2Doc], UnsetType] = unset,

src/datadog_api_client/v2/model/service_definition_v2_contact.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ def _composed_schemas(_):
3737
# loading
3838
from datadog_api_client.v2.model.service_definition_v2_email import ServiceDefinitionV2Email
3939
from datadog_api_client.v2.model.service_definition_v2_slack import ServiceDefinitionV2Slack
40+
from datadog_api_client.v2.model.service_definition_v2_ms_teams import ServiceDefinitionV2MSTeams
4041

4142
return {
4243
"oneOf": [
4344
ServiceDefinitionV2Email,
4445
ServiceDefinitionV2Slack,
46+
ServiceDefinitionV2MSTeams,
4547
],
4648
}

src/datadog_api_client/v2/model/service_definition_v2_dot1.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from datadog_api_client.v2.model.service_definition_v2_dot1_version import ServiceDefinitionV2Dot1Version
2424
from datadog_api_client.v2.model.service_definition_v2_dot1_email import ServiceDefinitionV2Dot1Email
2525
from datadog_api_client.v2.model.service_definition_v2_dot1_slack import ServiceDefinitionV2Dot1Slack
26+
from datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams import ServiceDefinitionV2Dot1MSTeams
2627

2728

2829
class ServiceDefinitionV2Dot1(ModelNormal):
@@ -85,7 +86,14 @@ def __init__(
8586
schema_version: ServiceDefinitionV2Dot1Version,
8687
application: Union[str, UnsetType] = unset,
8788
contacts: Union[
88-
List[Union[ServiceDefinitionV2Dot1Contact, ServiceDefinitionV2Dot1Email, ServiceDefinitionV2Dot1Slack]],
89+
List[
90+
Union[
91+
ServiceDefinitionV2Dot1Contact,
92+
ServiceDefinitionV2Dot1Email,
93+
ServiceDefinitionV2Dot1Slack,
94+
ServiceDefinitionV2Dot1MSTeams,
95+
]
96+
],
8997
UnsetType,
9098
] = unset,
9199
description: Union[str, UnsetType] = unset,

src/datadog_api_client/v2/model/service_definition_v2_dot1_contact.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ def _composed_schemas(_):
3737
# loading
3838
from datadog_api_client.v2.model.service_definition_v2_dot1_email import ServiceDefinitionV2Dot1Email
3939
from datadog_api_client.v2.model.service_definition_v2_dot1_slack import ServiceDefinitionV2Dot1Slack
40+
from datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams import ServiceDefinitionV2Dot1MSTeams
4041

4142
return {
4243
"oneOf": [
4344
ServiceDefinitionV2Dot1Email,
4445
ServiceDefinitionV2Dot1Slack,
46+
ServiceDefinitionV2Dot1MSTeams,
4547
],
4648
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams_type import ServiceDefinitionV2Dot1MSTeamsType
18+
19+
20+
class ServiceDefinitionV2Dot1MSTeams(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.service_definition_v2_dot1_ms_teams_type import (
24+
ServiceDefinitionV2Dot1MSTeamsType,
25+
)
26+
27+
return {
28+
"contact": (str,),
29+
"name": (str,),
30+
"type": (ServiceDefinitionV2Dot1MSTeamsType,),
31+
}
32+
33+
attribute_map = {
34+
"contact": "contact",
35+
"name": "name",
36+
"type": "type",
37+
}
38+
39+
def __init__(
40+
self_, contact: str, type: ServiceDefinitionV2Dot1MSTeamsType, name: Union[str, UnsetType] = unset, **kwargs
41+
):
42+
"""
43+
Service owner's Microsoft Teams.
44+
45+
:param contact: Contact value.
46+
:type contact: str
47+
48+
:param name: Contact Microsoft Teams.
49+
:type name: str, optional
50+
51+
:param type: Contact type.
52+
:type type: ServiceDefinitionV2Dot1MSTeamsType
53+
"""
54+
if name is not unset:
55+
kwargs["name"] = name
56+
super().__init__(kwargs)
57+
58+
self_.contact = contact
59+
self_.type = type
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class ServiceDefinitionV2Dot1MSTeamsType(ModelSimple):
16+
"""
17+
Contact type.
18+
19+
:param value: If omitted defaults to "microsoft-teams". Must be one of ["microsoft-teams"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"microsoft-teams",
25+
}
26+
MICROSOFT_TEAMS: ClassVar["ServiceDefinitionV2Dot1MSTeamsType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
ServiceDefinitionV2Dot1MSTeamsType.MICROSOFT_TEAMS = ServiceDefinitionV2Dot1MSTeamsType("microsoft-teams")
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.service_definition_v2_ms_teams_type import ServiceDefinitionV2MSTeamsType
18+
19+
20+
class ServiceDefinitionV2MSTeams(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.service_definition_v2_ms_teams_type import ServiceDefinitionV2MSTeamsType
24+
25+
return {
26+
"contact": (str,),
27+
"name": (str,),
28+
"type": (ServiceDefinitionV2MSTeamsType,),
29+
}
30+
31+
attribute_map = {
32+
"contact": "contact",
33+
"name": "name",
34+
"type": "type",
35+
}
36+
37+
def __init__(
38+
self_, contact: str, type: ServiceDefinitionV2MSTeamsType, name: Union[str, UnsetType] = unset, **kwargs
39+
):
40+
"""
41+
Service owner's Microsoft Teams.
42+
43+
:param contact: Contact value.
44+
:type contact: str
45+
46+
:param name: Contact Microsoft Teams.
47+
:type name: str, optional
48+
49+
:param type: Contact type.
50+
:type type: ServiceDefinitionV2MSTeamsType
51+
"""
52+
if name is not unset:
53+
kwargs["name"] = name
54+
super().__init__(kwargs)
55+
56+
self_.contact = contact
57+
self_.type = type

0 commit comments

Comments
 (0)