-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathshift_data_relationships.py
More file actions
42 lines (32 loc) · 1.26 KB
/
shift_data_relationships.py
File metadata and controls
42 lines (32 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)
if TYPE_CHECKING:
from datadog_api_client.v2.model.shift_data_relationships_user import ShiftDataRelationshipsUser
class ShiftDataRelationships(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.shift_data_relationships_user import ShiftDataRelationshipsUser
return {
"user": (ShiftDataRelationshipsUser,),
}
attribute_map = {
"user": "user",
}
def __init__(self_, user: Union[ShiftDataRelationshipsUser, UnsetType] = unset, **kwargs):
"""
Relationships for an on-call shift.
:param user: Defines the relationship between a shift and the user who is working that shift.
:type user: ShiftDataRelationshipsUser, optional
"""
if user is not unset:
kwargs["user"] = user
super().__init__(kwargs)