|
3 | 3 | # Copyright 2019-Present Datadog, Inc. |
4 | 4 | from __future__ import annotations |
5 | 5 |
|
6 | | -from typing import List, Union, TYPE_CHECKING |
| 6 | +from typing import List, TYPE_CHECKING |
7 | 7 |
|
8 | 8 | from datadog_api_client.model_utils import ( |
9 | 9 | ModelNormal, |
10 | 10 | cached_property, |
11 | 11 | datetime, |
12 | | - unset, |
13 | | - UnsetType, |
14 | 12 | ) |
15 | 13 |
|
16 | 14 |
|
@@ -49,50 +47,45 @@ def openapi_types(_): |
49 | 47 |
|
50 | 48 | def __init__( |
51 | 49 | self_, |
| 50 | + completed_date: datetime, |
| 51 | + completed_description: str, |
52 | 52 | components_affected: List[CreateMaintenanceRequestDataAttributesComponentsAffectedItems], |
| 53 | + in_progress_description: str, |
| 54 | + scheduled_description: str, |
| 55 | + start_date: datetime, |
53 | 56 | title: str, |
54 | | - completed_date: Union[datetime, UnsetType] = unset, |
55 | | - completed_description: Union[str, UnsetType] = unset, |
56 | | - in_progress_description: Union[str, UnsetType] = unset, |
57 | | - scheduled_description: Union[str, UnsetType] = unset, |
58 | | - start_date: Union[datetime, UnsetType] = unset, |
59 | 57 | **kwargs, |
60 | 58 | ): |
61 | 59 | """ |
62 | 60 | The supported attributes for creating a maintenance. |
63 | 61 |
|
64 | 62 | :param completed_date: Timestamp of when the maintenance was completed. |
65 | | - :type completed_date: datetime, optional |
| 63 | + :type completed_date: datetime |
66 | 64 |
|
67 | 65 | :param completed_description: The description shown when the maintenance is completed. |
68 | | - :type completed_description: str, optional |
| 66 | + :type completed_description: str |
69 | 67 |
|
70 | 68 | :param components_affected: The components affected by the maintenance. |
71 | 69 | :type components_affected: [CreateMaintenanceRequestDataAttributesComponentsAffectedItems] |
72 | 70 |
|
73 | 71 | :param in_progress_description: The description shown while the maintenance is in progress. |
74 | | - :type in_progress_description: str, optional |
| 72 | + :type in_progress_description: str |
75 | 73 |
|
76 | 74 | :param scheduled_description: The description shown when the maintenance is scheduled. |
77 | | - :type scheduled_description: str, optional |
| 75 | + :type scheduled_description: str |
78 | 76 |
|
79 | 77 | :param start_date: Timestamp of when the maintenance is scheduled to start. |
80 | | - :type start_date: datetime, optional |
| 78 | + :type start_date: datetime |
81 | 79 |
|
82 | 80 | :param title: The title of the maintenance. |
83 | 81 | :type title: str |
84 | 82 | """ |
85 | | - if completed_date is not unset: |
86 | | - kwargs["completed_date"] = completed_date |
87 | | - if completed_description is not unset: |
88 | | - kwargs["completed_description"] = completed_description |
89 | | - if in_progress_description is not unset: |
90 | | - kwargs["in_progress_description"] = in_progress_description |
91 | | - if scheduled_description is not unset: |
92 | | - kwargs["scheduled_description"] = scheduled_description |
93 | | - if start_date is not unset: |
94 | | - kwargs["start_date"] = start_date |
95 | 83 | super().__init__(kwargs) |
96 | 84 |
|
| 85 | + self_.completed_date = completed_date |
| 86 | + self_.completed_description = completed_description |
97 | 87 | self_.components_affected = components_affected |
| 88 | + self_.in_progress_description = in_progress_description |
| 89 | + self_.scheduled_description = scheduled_description |
| 90 | + self_.start_date = start_date |
98 | 91 | self_.title = title |
0 commit comments