-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathpatch_component_request_data.py
More file actions
59 lines (45 loc) · 1.84 KB
/
patch_component_request_data.py
File metadata and controls
59 lines (45 loc) · 1.84 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
52
53
54
55
56
57
58
59
# 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 TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
UUID,
)
if TYPE_CHECKING:
from datadog_api_client.v2.model.patch_component_request_data_attributes import PatchComponentRequestDataAttributes
from datadog_api_client.v2.model.status_pages_component_group_type import StatusPagesComponentGroupType
class PatchComponentRequestData(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.patch_component_request_data_attributes import (
PatchComponentRequestDataAttributes,
)
from datadog_api_client.v2.model.status_pages_component_group_type import StatusPagesComponentGroupType
return {
"attributes": (PatchComponentRequestDataAttributes,),
"id": (UUID,),
"type": (StatusPagesComponentGroupType,),
}
attribute_map = {
"attributes": "attributes",
"id": "id",
"type": "type",
}
def __init__(
self_, attributes: PatchComponentRequestDataAttributes, id: UUID, type: StatusPagesComponentGroupType, **kwargs
):
"""
:param attributes: The supported attributes for updating a component.
:type attributes: PatchComponentRequestDataAttributes
:param id: The ID of the component.
:type id: UUID
:param type: Components resource type.
:type type: StatusPagesComponentGroupType
"""
super().__init__(kwargs)
self_.attributes = attributes
self_.id = id
self_.type = type