-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathcase_update_status_attributes.py
More file actions
51 lines (40 loc) · 1.59 KB
/
case_update_status_attributes.py
File metadata and controls
51 lines (40 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
# 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.case_status import CaseStatus
class CaseUpdateStatusAttributes(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.case_status import CaseStatus
return {
"status": (CaseStatus,),
"status_name": (str,),
}
attribute_map = {
"status": "status",
"status_name": "status_name",
}
def __init__(
self_, status: Union[CaseStatus, UnsetType] = unset, status_name: Union[str, UnsetType] = unset, **kwargs
):
"""
Case update status attributes
:param status: Deprecated way of representing the case status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use ``status_name`` instead. **Deprecated**.
:type status: CaseStatus, optional
:param status_name: Status of the case. Must be one of the existing statuses for the case's type.
:type status_name: str, optional
"""
if status is not unset:
kwargs["status"] = status
if status_name is not unset:
kwargs["status_name"] = status_name
super().__init__(kwargs)