byteplus-python-sdk-v2 3.0.54__py2.py3-none-any.whl → 3.0.55__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +33 -14
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +1 -0
- byteplussdkcloudmonitor/__init__.py +10 -0
- byteplussdkcloudmonitor/api/cloudmonitor_api.py +97 -0
- byteplussdkcloudmonitor/models/__init__.py +10 -0
- byteplussdkcloudmonitor/models/contact_send_result_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/data_for_list_alert_group_output.py +27 -1
- byteplussdkcloudmonitor/models/data_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/get_metric_data_request.py +27 -1
- byteplussdkcloudmonitor/models/list_alert_request.py +228 -0
- byteplussdkcloudmonitor/models/list_alert_response.py +227 -0
- byteplussdkcloudmonitor/models/metric_condition_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/metric_data_result_for_get_metric_data_output.py +29 -3
- byteplussdkcloudmonitor/models/send_alert_contact_for_list_alert_output.py +175 -0
- byteplussdkcloudmonitor/models/send_alert_notification_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/send_alert_ooss_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/send_alert_result_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/send_alert_webhook_for_list_alert_output.py +253 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkvs20260714/__init__.py +26 -0
- byteplussdkvs20260714/api/__init__.py +6 -0
- byteplussdkvs20260714/api/vs20260714_api.py +131 -0
- byteplussdkvs20260714/models/__init__.py +22 -0
- byteplussdkvs20260714/models/create_voice_task_request.py +387 -0
- byteplussdkvs20260714/models/create_voice_task_response.py +175 -0
- byteplussdkvs20260714/models/data_for_create_voice_task_output.py +123 -0
- byteplussdkvs20260714/models/number_info_list_for_create_voice_task_input.py +149 -0
- byteplussdkvs20260714/models/voice_content_for_create_voice_task_input.py +279 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cloudmonitor
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DataForListAlertOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'create_at': 'str',
|
|
37
|
+
'end_at': 'str',
|
|
38
|
+
'evaluation_count': 'int',
|
|
39
|
+
'evaluation_interval': 'int',
|
|
40
|
+
'id': 'str',
|
|
41
|
+
'level': 'str',
|
|
42
|
+
'metric_conditions': 'list[MetricConditionForListAlertOutput]',
|
|
43
|
+
'send_alert_result': 'SendAlertResultForListAlertOutput',
|
|
44
|
+
'type': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'create_at': 'CreateAt',
|
|
49
|
+
'end_at': 'EndAt',
|
|
50
|
+
'evaluation_count': 'EvaluationCount',
|
|
51
|
+
'evaluation_interval': 'EvaluationInterval',
|
|
52
|
+
'id': 'Id',
|
|
53
|
+
'level': 'Level',
|
|
54
|
+
'metric_conditions': 'MetricConditions',
|
|
55
|
+
'send_alert_result': 'SendAlertResult',
|
|
56
|
+
'type': 'Type'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, create_at=None, end_at=None, evaluation_count=None, evaluation_interval=None, id=None, level=None, metric_conditions=None, send_alert_result=None, type=None, _configuration=None): # noqa: E501
|
|
60
|
+
"""DataForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
if _configuration is None:
|
|
62
|
+
_configuration = Configuration()
|
|
63
|
+
self._configuration = _configuration
|
|
64
|
+
|
|
65
|
+
self._create_at = None
|
|
66
|
+
self._end_at = None
|
|
67
|
+
self._evaluation_count = None
|
|
68
|
+
self._evaluation_interval = None
|
|
69
|
+
self._id = None
|
|
70
|
+
self._level = None
|
|
71
|
+
self._metric_conditions = None
|
|
72
|
+
self._send_alert_result = None
|
|
73
|
+
self._type = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
if create_at is not None:
|
|
77
|
+
self.create_at = create_at
|
|
78
|
+
if end_at is not None:
|
|
79
|
+
self.end_at = end_at
|
|
80
|
+
if evaluation_count is not None:
|
|
81
|
+
self.evaluation_count = evaluation_count
|
|
82
|
+
if evaluation_interval is not None:
|
|
83
|
+
self.evaluation_interval = evaluation_interval
|
|
84
|
+
if id is not None:
|
|
85
|
+
self.id = id
|
|
86
|
+
if level is not None:
|
|
87
|
+
self.level = level
|
|
88
|
+
if metric_conditions is not None:
|
|
89
|
+
self.metric_conditions = metric_conditions
|
|
90
|
+
if send_alert_result is not None:
|
|
91
|
+
self.send_alert_result = send_alert_result
|
|
92
|
+
if type is not None:
|
|
93
|
+
self.type = type
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def create_at(self):
|
|
97
|
+
"""Gets the create_at of this DataForListAlertOutput. # noqa: E501
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:return: The create_at of this DataForListAlertOutput. # noqa: E501
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._create_at
|
|
104
|
+
|
|
105
|
+
@create_at.setter
|
|
106
|
+
def create_at(self, create_at):
|
|
107
|
+
"""Sets the create_at of this DataForListAlertOutput.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:param create_at: The create_at of this DataForListAlertOutput. # noqa: E501
|
|
111
|
+
:type: str
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._create_at = create_at
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def end_at(self):
|
|
118
|
+
"""Gets the end_at of this DataForListAlertOutput. # noqa: E501
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:return: The end_at of this DataForListAlertOutput. # noqa: E501
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._end_at
|
|
125
|
+
|
|
126
|
+
@end_at.setter
|
|
127
|
+
def end_at(self, end_at):
|
|
128
|
+
"""Sets the end_at of this DataForListAlertOutput.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param end_at: The end_at of this DataForListAlertOutput. # noqa: E501
|
|
132
|
+
:type: str
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
self._end_at = end_at
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def evaluation_count(self):
|
|
139
|
+
"""Gets the evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:return: The evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
143
|
+
:rtype: int
|
|
144
|
+
"""
|
|
145
|
+
return self._evaluation_count
|
|
146
|
+
|
|
147
|
+
@evaluation_count.setter
|
|
148
|
+
def evaluation_count(self, evaluation_count):
|
|
149
|
+
"""Sets the evaluation_count of this DataForListAlertOutput.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param evaluation_count: The evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
153
|
+
:type: int
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
self._evaluation_count = evaluation_count
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def evaluation_interval(self):
|
|
160
|
+
"""Gets the evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:return: The evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
164
|
+
:rtype: int
|
|
165
|
+
"""
|
|
166
|
+
return self._evaluation_interval
|
|
167
|
+
|
|
168
|
+
@evaluation_interval.setter
|
|
169
|
+
def evaluation_interval(self, evaluation_interval):
|
|
170
|
+
"""Sets the evaluation_interval of this DataForListAlertOutput.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:param evaluation_interval: The evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
174
|
+
:type: int
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
self._evaluation_interval = evaluation_interval
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def id(self):
|
|
181
|
+
"""Gets the id of this DataForListAlertOutput. # noqa: E501
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:return: The id of this DataForListAlertOutput. # noqa: E501
|
|
185
|
+
:rtype: str
|
|
186
|
+
"""
|
|
187
|
+
return self._id
|
|
188
|
+
|
|
189
|
+
@id.setter
|
|
190
|
+
def id(self, id):
|
|
191
|
+
"""Sets the id of this DataForListAlertOutput.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param id: The id of this DataForListAlertOutput. # noqa: E501
|
|
195
|
+
:type: str
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
self._id = id
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def level(self):
|
|
202
|
+
"""Gets the level of this DataForListAlertOutput. # noqa: E501
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:return: The level of this DataForListAlertOutput. # noqa: E501
|
|
206
|
+
:rtype: str
|
|
207
|
+
"""
|
|
208
|
+
return self._level
|
|
209
|
+
|
|
210
|
+
@level.setter
|
|
211
|
+
def level(self, level):
|
|
212
|
+
"""Sets the level of this DataForListAlertOutput.
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:param level: The level of this DataForListAlertOutput. # noqa: E501
|
|
216
|
+
:type: str
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
self._level = level
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def metric_conditions(self):
|
|
223
|
+
"""Gets the metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:return: The metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
227
|
+
:rtype: list[MetricConditionForListAlertOutput]
|
|
228
|
+
"""
|
|
229
|
+
return self._metric_conditions
|
|
230
|
+
|
|
231
|
+
@metric_conditions.setter
|
|
232
|
+
def metric_conditions(self, metric_conditions):
|
|
233
|
+
"""Sets the metric_conditions of this DataForListAlertOutput.
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
:param metric_conditions: The metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
237
|
+
:type: list[MetricConditionForListAlertOutput]
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
self._metric_conditions = metric_conditions
|
|
241
|
+
|
|
242
|
+
@property
|
|
243
|
+
def send_alert_result(self):
|
|
244
|
+
"""Gets the send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:return: The send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
248
|
+
:rtype: SendAlertResultForListAlertOutput
|
|
249
|
+
"""
|
|
250
|
+
return self._send_alert_result
|
|
251
|
+
|
|
252
|
+
@send_alert_result.setter
|
|
253
|
+
def send_alert_result(self, send_alert_result):
|
|
254
|
+
"""Sets the send_alert_result of this DataForListAlertOutput.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
:param send_alert_result: The send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
258
|
+
:type: SendAlertResultForListAlertOutput
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
self._send_alert_result = send_alert_result
|
|
262
|
+
|
|
263
|
+
@property
|
|
264
|
+
def type(self):
|
|
265
|
+
"""Gets the type of this DataForListAlertOutput. # noqa: E501
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:return: The type of this DataForListAlertOutput. # noqa: E501
|
|
269
|
+
:rtype: str
|
|
270
|
+
"""
|
|
271
|
+
return self._type
|
|
272
|
+
|
|
273
|
+
@type.setter
|
|
274
|
+
def type(self, type):
|
|
275
|
+
"""Sets the type of this DataForListAlertOutput.
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
:param type: The type of this DataForListAlertOutput. # noqa: E501
|
|
279
|
+
:type: str
|
|
280
|
+
"""
|
|
281
|
+
|
|
282
|
+
self._type = type
|
|
283
|
+
|
|
284
|
+
def to_dict(self):
|
|
285
|
+
"""Returns the model properties as a dict"""
|
|
286
|
+
result = {}
|
|
287
|
+
|
|
288
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
289
|
+
value = getattr(self, attr)
|
|
290
|
+
if isinstance(value, list):
|
|
291
|
+
result[attr] = list(map(
|
|
292
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
293
|
+
value
|
|
294
|
+
))
|
|
295
|
+
elif hasattr(value, "to_dict"):
|
|
296
|
+
result[attr] = value.to_dict()
|
|
297
|
+
elif isinstance(value, dict):
|
|
298
|
+
result[attr] = dict(map(
|
|
299
|
+
lambda item: (item[0], item[1].to_dict())
|
|
300
|
+
if hasattr(item[1], "to_dict") else item,
|
|
301
|
+
value.items()
|
|
302
|
+
))
|
|
303
|
+
else:
|
|
304
|
+
result[attr] = value
|
|
305
|
+
if issubclass(DataForListAlertOutput, dict):
|
|
306
|
+
for key, value in self.items():
|
|
307
|
+
result[key] = value
|
|
308
|
+
|
|
309
|
+
return result
|
|
310
|
+
|
|
311
|
+
def to_str(self):
|
|
312
|
+
"""Returns the string representation of the model"""
|
|
313
|
+
return pprint.pformat(self.to_dict())
|
|
314
|
+
|
|
315
|
+
def __repr__(self):
|
|
316
|
+
"""For `print` and `pprint`"""
|
|
317
|
+
return self.to_str()
|
|
318
|
+
|
|
319
|
+
def __eq__(self, other):
|
|
320
|
+
"""Returns true if both objects are equal"""
|
|
321
|
+
if not isinstance(other, DataForListAlertOutput):
|
|
322
|
+
return False
|
|
323
|
+
|
|
324
|
+
return self.to_dict() == other.to_dict()
|
|
325
|
+
|
|
326
|
+
def __ne__(self, other):
|
|
327
|
+
"""Returns true if both objects are not equal"""
|
|
328
|
+
if not isinstance(other, DataForListAlertOutput):
|
|
329
|
+
return True
|
|
330
|
+
|
|
331
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -40,6 +40,7 @@ class GetMetricDataRequest(object):
|
|
|
40
40
|
'namespace': 'str',
|
|
41
41
|
'period': 'str',
|
|
42
42
|
'start_time': 'int',
|
|
43
|
+
'statistics_methods': 'list[str]',
|
|
43
44
|
'sub_namespace': 'str'
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -51,10 +52,11 @@ class GetMetricDataRequest(object):
|
|
|
51
52
|
'namespace': 'Namespace',
|
|
52
53
|
'period': 'Period',
|
|
53
54
|
'start_time': 'StartTime',
|
|
55
|
+
'statistics_methods': 'StatisticsMethods',
|
|
54
56
|
'sub_namespace': 'SubNamespace'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, end_time=None, group_by=None, instances=None, metric_name=None, namespace=None, period=None, start_time=None, sub_namespace=None, _configuration=None): # noqa: E501
|
|
59
|
+
def __init__(self, end_time=None, group_by=None, instances=None, metric_name=None, namespace=None, period=None, start_time=None, statistics_methods=None, sub_namespace=None, _configuration=None): # noqa: E501
|
|
58
60
|
"""GetMetricDataRequest - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
if _configuration is None:
|
|
60
62
|
_configuration = Configuration()
|
|
@@ -67,6 +69,7 @@ class GetMetricDataRequest(object):
|
|
|
67
69
|
self._namespace = None
|
|
68
70
|
self._period = None
|
|
69
71
|
self._start_time = None
|
|
72
|
+
self._statistics_methods = None
|
|
70
73
|
self._sub_namespace = None
|
|
71
74
|
self.discriminator = None
|
|
72
75
|
|
|
@@ -82,6 +85,8 @@ class GetMetricDataRequest(object):
|
|
|
82
85
|
self.period = period
|
|
83
86
|
if start_time is not None:
|
|
84
87
|
self.start_time = start_time
|
|
88
|
+
if statistics_methods is not None:
|
|
89
|
+
self.statistics_methods = statistics_methods
|
|
85
90
|
self.sub_namespace = sub_namespace
|
|
86
91
|
|
|
87
92
|
@property
|
|
@@ -235,6 +240,27 @@ class GetMetricDataRequest(object):
|
|
|
235
240
|
|
|
236
241
|
self._start_time = start_time
|
|
237
242
|
|
|
243
|
+
@property
|
|
244
|
+
def statistics_methods(self):
|
|
245
|
+
"""Gets the statistics_methods of this GetMetricDataRequest. # noqa: E501
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
:return: The statistics_methods of this GetMetricDataRequest. # noqa: E501
|
|
249
|
+
:rtype: list[str]
|
|
250
|
+
"""
|
|
251
|
+
return self._statistics_methods
|
|
252
|
+
|
|
253
|
+
@statistics_methods.setter
|
|
254
|
+
def statistics_methods(self, statistics_methods):
|
|
255
|
+
"""Sets the statistics_methods of this GetMetricDataRequest.
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
:param statistics_methods: The statistics_methods of this GetMetricDataRequest. # noqa: E501
|
|
259
|
+
:type: list[str]
|
|
260
|
+
"""
|
|
261
|
+
|
|
262
|
+
self._statistics_methods = statistics_methods
|
|
263
|
+
|
|
238
264
|
@property
|
|
239
265
|
def sub_namespace(self):
|
|
240
266
|
"""Gets the sub_namespace of this GetMetricDataRequest. # noqa: E501
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cloudmonitor
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ListAlertRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'alert_group_id': 'str',
|
|
37
|
+
'end_time': 'int',
|
|
38
|
+
'page_number': 'int',
|
|
39
|
+
'page_size': 'int',
|
|
40
|
+
'start_time': 'int'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'alert_group_id': 'AlertGroupId',
|
|
45
|
+
'end_time': 'EndTime',
|
|
46
|
+
'page_number': 'PageNumber',
|
|
47
|
+
'page_size': 'PageSize',
|
|
48
|
+
'start_time': 'StartTime'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, alert_group_id=None, end_time=None, page_number=None, page_size=None, start_time=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""ListAlertRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._alert_group_id = None
|
|
58
|
+
self._end_time = None
|
|
59
|
+
self._page_number = None
|
|
60
|
+
self._page_size = None
|
|
61
|
+
self._start_time = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.alert_group_id = alert_group_id
|
|
65
|
+
if end_time is not None:
|
|
66
|
+
self.end_time = end_time
|
|
67
|
+
if page_number is not None:
|
|
68
|
+
self.page_number = page_number
|
|
69
|
+
if page_size is not None:
|
|
70
|
+
self.page_size = page_size
|
|
71
|
+
if start_time is not None:
|
|
72
|
+
self.start_time = start_time
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def alert_group_id(self):
|
|
76
|
+
"""Gets the alert_group_id of this ListAlertRequest. # noqa: E501
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
:return: The alert_group_id of this ListAlertRequest. # noqa: E501
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._alert_group_id
|
|
83
|
+
|
|
84
|
+
@alert_group_id.setter
|
|
85
|
+
def alert_group_id(self, alert_group_id):
|
|
86
|
+
"""Sets the alert_group_id of this ListAlertRequest.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:param alert_group_id: The alert_group_id of this ListAlertRequest. # noqa: E501
|
|
90
|
+
:type: str
|
|
91
|
+
"""
|
|
92
|
+
if self._configuration.client_side_validation and alert_group_id is None:
|
|
93
|
+
raise ValueError("Invalid value for `alert_group_id`, must not be `None`") # noqa: E501
|
|
94
|
+
|
|
95
|
+
self._alert_group_id = alert_group_id
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def end_time(self):
|
|
99
|
+
"""Gets the end_time of this ListAlertRequest. # noqa: E501
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
:return: The end_time of this ListAlertRequest. # noqa: E501
|
|
103
|
+
:rtype: int
|
|
104
|
+
"""
|
|
105
|
+
return self._end_time
|
|
106
|
+
|
|
107
|
+
@end_time.setter
|
|
108
|
+
def end_time(self, end_time):
|
|
109
|
+
"""Sets the end_time of this ListAlertRequest.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:param end_time: The end_time of this ListAlertRequest. # noqa: E501
|
|
113
|
+
:type: int
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
self._end_time = end_time
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def page_number(self):
|
|
120
|
+
"""Gets the page_number of this ListAlertRequest. # noqa: E501
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:return: The page_number of this ListAlertRequest. # noqa: E501
|
|
124
|
+
:rtype: int
|
|
125
|
+
"""
|
|
126
|
+
return self._page_number
|
|
127
|
+
|
|
128
|
+
@page_number.setter
|
|
129
|
+
def page_number(self, page_number):
|
|
130
|
+
"""Sets the page_number of this ListAlertRequest.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:param page_number: The page_number of this ListAlertRequest. # noqa: E501
|
|
134
|
+
:type: int
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._page_number = page_number
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def page_size(self):
|
|
141
|
+
"""Gets the page_size of this ListAlertRequest. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The page_size of this ListAlertRequest. # noqa: E501
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._page_size
|
|
148
|
+
|
|
149
|
+
@page_size.setter
|
|
150
|
+
def page_size(self, page_size):
|
|
151
|
+
"""Sets the page_size of this ListAlertRequest.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param page_size: The page_size of this ListAlertRequest. # noqa: E501
|
|
155
|
+
:type: int
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._page_size = page_size
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def start_time(self):
|
|
162
|
+
"""Gets the start_time of this ListAlertRequest. # noqa: E501
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:return: The start_time of this ListAlertRequest. # noqa: E501
|
|
166
|
+
:rtype: int
|
|
167
|
+
"""
|
|
168
|
+
return self._start_time
|
|
169
|
+
|
|
170
|
+
@start_time.setter
|
|
171
|
+
def start_time(self, start_time):
|
|
172
|
+
"""Sets the start_time of this ListAlertRequest.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:param start_time: The start_time of this ListAlertRequest. # noqa: E501
|
|
176
|
+
:type: int
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
self._start_time = start_time
|
|
180
|
+
|
|
181
|
+
def to_dict(self):
|
|
182
|
+
"""Returns the model properties as a dict"""
|
|
183
|
+
result = {}
|
|
184
|
+
|
|
185
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
186
|
+
value = getattr(self, attr)
|
|
187
|
+
if isinstance(value, list):
|
|
188
|
+
result[attr] = list(map(
|
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
190
|
+
value
|
|
191
|
+
))
|
|
192
|
+
elif hasattr(value, "to_dict"):
|
|
193
|
+
result[attr] = value.to_dict()
|
|
194
|
+
elif isinstance(value, dict):
|
|
195
|
+
result[attr] = dict(map(
|
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
|
198
|
+
value.items()
|
|
199
|
+
))
|
|
200
|
+
else:
|
|
201
|
+
result[attr] = value
|
|
202
|
+
if issubclass(ListAlertRequest, dict):
|
|
203
|
+
for key, value in self.items():
|
|
204
|
+
result[key] = value
|
|
205
|
+
|
|
206
|
+
return result
|
|
207
|
+
|
|
208
|
+
def to_str(self):
|
|
209
|
+
"""Returns the string representation of the model"""
|
|
210
|
+
return pprint.pformat(self.to_dict())
|
|
211
|
+
|
|
212
|
+
def __repr__(self):
|
|
213
|
+
"""For `print` and `pprint`"""
|
|
214
|
+
return self.to_str()
|
|
215
|
+
|
|
216
|
+
def __eq__(self, other):
|
|
217
|
+
"""Returns true if both objects are equal"""
|
|
218
|
+
if not isinstance(other, ListAlertRequest):
|
|
219
|
+
return False
|
|
220
|
+
|
|
221
|
+
return self.to_dict() == other.to_dict()
|
|
222
|
+
|
|
223
|
+
def __ne__(self, other):
|
|
224
|
+
"""Returns true if both objects are not equal"""
|
|
225
|
+
if not isinstance(other, ListAlertRequest):
|
|
226
|
+
return True
|
|
227
|
+
|
|
228
|
+
return self.to_dict() != other.to_dict()
|