Skip to content

Commit 9bae603

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1839aa08 of spec repo
1 parent 88ef6b0 commit 9bae603

8 files changed

+165
-5
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.6",
7-
"regenerated": "2024-10-04 10:38:26.322460",
8-
"spec_repo_commit": "7a63d530"
7+
"regenerated": "2024-10-04 15:09:26.491087",
8+
"spec_repo_commit": "1839aa08"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-04 10:38:26.335792",
13-
"spec_repo_commit": "7a63d530"
12+
"regenerated": "2024-10-04 15:09:26.505625",
13+
"spec_repo_commit": "1839aa08"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10640,6 +10640,7 @@ components:
1064010640
oneOf:
1064110641
- $ref: '#/components/schemas/SlackIntegrationMetadata'
1064210642
- $ref: '#/components/schemas/JiraIntegrationMetadata'
10643+
- $ref: '#/components/schemas/MSTeamsIntegrationMetadata'
1064310644
IncidentIntegrationMetadataPatchData:
1064410645
description: Incident integration metadata data for a patch request.
1064510646
properties:
@@ -13634,6 +13635,43 @@ components:
1363413635
from the other indexes
1363513636
type: string
1363613637
type: object
13638+
MSTeamsIntegrationMetadata:
13639+
description: Incident integration metadata for the Microsoft Teams integration.
13640+
properties:
13641+
teams:
13642+
description: Array of Microsoft Teams in this integration metadata.
13643+
example: []
13644+
items:
13645+
$ref: '#/components/schemas/MSTeamsIntegrationMetadataTeamsItem'
13646+
type: array
13647+
required:
13648+
- teams
13649+
type: object
13650+
MSTeamsIntegrationMetadataTeamsItem:
13651+
description: Item in the Microsoft Teams integration metadata teams array.
13652+
properties:
13653+
ms_channel_id:
13654+
description: Microsoft Teams channel ID.
13655+
example: 19:[email protected]
13656+
type: string
13657+
ms_channel_name:
13658+
description: Microsoft Teams channel name.
13659+
example: incident-0001-example
13660+
type: string
13661+
ms_tenant_id:
13662+
description: Microsoft Teams tenant ID.
13663+
example: 00000000-abcd-0005-0000-000000000000
13664+
type: string
13665+
redirect_url:
13666+
description: URL redirecting to the Microsoft Teams channel.
13667+
example: https://example.atlassian.net/browse/PROJ-123
13668+
type: string
13669+
required:
13670+
- ms_tenant_id
13671+
- ms_channel_id
13672+
- ms_channel_name
13673+
- redirect_url
13674+
type: object
1363713675
Metric:
1363813676
description: Object for a single metric tag configuration.
1363913677
example:

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6675,6 +6675,20 @@ datadog\_api\_client.v2.model.monthly\_cost\_attribution\_response module
66756675
:members:
66766676
:show-inheritance:
66776677

6678+
datadog\_api\_client.v2.model.ms\_teams\_integration\_metadata module
6679+
---------------------------------------------------------------------
6680+
6681+
.. automodule:: datadog_api_client.v2.model.ms_teams_integration_metadata
6682+
:members:
6683+
:show-inheritance:
6684+
6685+
datadog\_api\_client.v2.model.ms\_teams\_integration\_metadata\_teams\_item module
6686+
----------------------------------------------------------------------------------
6687+
6688+
.. automodule:: datadog_api_client.v2.model.ms_teams_integration_metadata_teams_item
6689+
:members:
6690+
:show-inheritance:
6691+
66786692
datadog\_api\_client.v2.model.nullable\_relationship\_to\_user module
66796693
---------------------------------------------------------------------
66806694

src/datadog_api_client/v2/model/incident_integration_metadata_attributes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v2.model.incident_integration_metadata_metadata import IncidentIntegrationMetadataMetadata
1919
from datadog_api_client.v2.model.slack_integration_metadata import SlackIntegrationMetadata
2020
from datadog_api_client.v2.model.jira_integration_metadata import JiraIntegrationMetadata
21+
from datadog_api_client.v2.model.ms_teams_integration_metadata import MSTeamsIntegrationMetadata
2122

2223

2324
class IncidentIntegrationMetadataAttributes(ModelNormal):
@@ -61,7 +62,12 @@ def openapi_types(_):
6162
def __init__(
6263
self_,
6364
integration_type: int,
64-
metadata: Union[IncidentIntegrationMetadataMetadata, SlackIntegrationMetadata, JiraIntegrationMetadata],
65+
metadata: Union[
66+
IncidentIntegrationMetadataMetadata,
67+
SlackIntegrationMetadata,
68+
JiraIntegrationMetadata,
69+
MSTeamsIntegrationMetadata,
70+
],
6571
created: Union[datetime, UnsetType] = unset,
6672
incident_id: Union[str, UnsetType] = unset,
6773
modified: Union[datetime, UnsetType] = unset,

src/datadog_api_client/v2/model/incident_integration_metadata_metadata.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def __init__(self, **kwargs):
2020
2121
:param issues: Array of Jira issues in this integration metadata.
2222
:type issues: [JiraIntegrationMetadataIssuesItem]
23+
24+
:param teams: Array of Microsoft Teams in this integration metadata.
25+
:type teams: [MSTeamsIntegrationMetadataTeamsItem]
2326
"""
2427
super().__init__(kwargs)
2528

@@ -34,10 +37,12 @@ def _composed_schemas(_):
3437
# loading
3538
from datadog_api_client.v2.model.slack_integration_metadata import SlackIntegrationMetadata
3639
from datadog_api_client.v2.model.jira_integration_metadata import JiraIntegrationMetadata
40+
from datadog_api_client.v2.model.ms_teams_integration_metadata import MSTeamsIntegrationMetadata
3741

3842
return {
3943
"oneOf": [
4044
SlackIntegrationMetadata,
4145
JiraIntegrationMetadata,
46+
MSTeamsIntegrationMetadata,
4247
],
4348
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 List, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.ms_teams_integration_metadata_teams_item import MSTeamsIntegrationMetadataTeamsItem
16+
17+
18+
class MSTeamsIntegrationMetadata(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.ms_teams_integration_metadata_teams_item import (
22+
MSTeamsIntegrationMetadataTeamsItem,
23+
)
24+
25+
return {
26+
"teams": ([MSTeamsIntegrationMetadataTeamsItem],),
27+
}
28+
29+
attribute_map = {
30+
"teams": "teams",
31+
}
32+
33+
def __init__(self_, teams: List[MSTeamsIntegrationMetadataTeamsItem], **kwargs):
34+
"""
35+
Incident integration metadata for the Microsoft Teams integration.
36+
37+
:param teams: Array of Microsoft Teams in this integration metadata.
38+
:type teams: [MSTeamsIntegrationMetadataTeamsItem]
39+
"""
40+
super().__init__(kwargs)
41+
42+
self_.teams = teams
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
ModelNormal,
9+
cached_property,
10+
)
11+
12+
13+
class MSTeamsIntegrationMetadataTeamsItem(ModelNormal):
14+
@cached_property
15+
def openapi_types(_):
16+
return {
17+
"ms_channel_id": (str,),
18+
"ms_channel_name": (str,),
19+
"ms_tenant_id": (str,),
20+
"redirect_url": (str,),
21+
}
22+
23+
attribute_map = {
24+
"ms_channel_id": "ms_channel_id",
25+
"ms_channel_name": "ms_channel_name",
26+
"ms_tenant_id": "ms_tenant_id",
27+
"redirect_url": "redirect_url",
28+
}
29+
30+
def __init__(self_, ms_channel_id: str, ms_channel_name: str, ms_tenant_id: str, redirect_url: str, **kwargs):
31+
"""
32+
Item in the Microsoft Teams integration metadata teams array.
33+
34+
:param ms_channel_id: Microsoft Teams channel ID.
35+
:type ms_channel_id: str
36+
37+
:param ms_channel_name: Microsoft Teams channel name.
38+
:type ms_channel_name: str
39+
40+
:param ms_tenant_id: Microsoft Teams tenant ID.
41+
:type ms_tenant_id: str
42+
43+
:param redirect_url: URL redirecting to the Microsoft Teams channel.
44+
:type redirect_url: str
45+
"""
46+
super().__init__(kwargs)
47+
48+
self_.ms_channel_id = ms_channel_id
49+
self_.ms_channel_name = ms_channel_name
50+
self_.ms_tenant_id = ms_tenant_id
51+
self_.redirect_url = redirect_url

src/datadog_api_client/v2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@
990990
from datadog_api_client.v2.model.logs_sort_order import LogsSortOrder
991991
from datadog_api_client.v2.model.logs_storage_tier import LogsStorageTier
992992
from datadog_api_client.v2.model.logs_warning import LogsWarning
993+
from datadog_api_client.v2.model.ms_teams_integration_metadata import MSTeamsIntegrationMetadata
994+
from datadog_api_client.v2.model.ms_teams_integration_metadata_teams_item import MSTeamsIntegrationMetadataTeamsItem
993995
from datadog_api_client.v2.model.metric import Metric
994996
from datadog_api_client.v2.model.metric_active_configuration_type import MetricActiveConfigurationType
995997
from datadog_api_client.v2.model.metric_all_tags import MetricAllTags
@@ -2831,6 +2833,8 @@
28312833
"LogsSortOrder",
28322834
"LogsStorageTier",
28332835
"LogsWarning",
2836+
"MSTeamsIntegrationMetadata",
2837+
"MSTeamsIntegrationMetadataTeamsItem",
28342838
"Metric",
28352839
"MetricActiveConfigurationType",
28362840
"MetricAllTags",

0 commit comments

Comments
 (0)