byteplus-python-sdk-v2 3.0.53__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.
Files changed (63) hide show
  1. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +63 -33
  3. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +2 -0
  4. byteplussdkclawsentry/__init__.py +24 -0
  5. byteplussdkclawsentry/api/__init__.py +6 -0
  6. byteplussdkclawsentry/api/clawsentry_api.py +131 -0
  7. byteplussdkclawsentry/models/__init__.py +20 -0
  8. byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
  9. byteplussdkclawsentry/models/create_claw_request.py +251 -0
  10. byteplussdkclawsentry/models/create_claw_response.py +279 -0
  11. byteplussdkcloudmonitor/__init__.py +10 -0
  12. byteplussdkcloudmonitor/api/cloudmonitor_api.py +97 -0
  13. byteplussdkcloudmonitor/models/__init__.py +10 -0
  14. byteplussdkcloudmonitor/models/contact_send_result_for_list_alert_output.py +227 -0
  15. byteplussdkcloudmonitor/models/data_for_list_alert_group_output.py +27 -1
  16. byteplussdkcloudmonitor/models/data_for_list_alert_output.py +331 -0
  17. byteplussdkcloudmonitor/models/get_metric_data_request.py +27 -1
  18. byteplussdkcloudmonitor/models/list_alert_request.py +228 -0
  19. byteplussdkcloudmonitor/models/list_alert_response.py +227 -0
  20. byteplussdkcloudmonitor/models/metric_condition_for_list_alert_output.py +201 -0
  21. byteplussdkcloudmonitor/models/metric_data_result_for_get_metric_data_output.py +29 -3
  22. byteplussdkcloudmonitor/models/send_alert_contact_for_list_alert_output.py +175 -0
  23. byteplussdkcloudmonitor/models/send_alert_notification_for_list_alert_output.py +331 -0
  24. byteplussdkcloudmonitor/models/send_alert_ooss_for_list_alert_output.py +227 -0
  25. byteplussdkcloudmonitor/models/send_alert_result_for_list_alert_output.py +201 -0
  26. byteplussdkcloudmonitor/models/send_alert_webhook_for_list_alert_output.py +253 -0
  27. byteplussdkcore/api_client.py +1 -1
  28. byteplussdkcore/configuration.py +1 -1
  29. byteplussdkcore/endpoint/providers/default_provider.py +7 -0
  30. byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
  31. byteplussdkcpaas/__init__.py +4 -0
  32. byteplussdkcpaas/models/__init__.py +4 -0
  33. byteplussdkcpaas/models/create_template_v2_request.py +27 -1
  34. byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
  35. byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
  36. byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
  37. byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
  38. byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
  39. byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
  40. byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
  41. byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
  42. byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
  43. byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
  44. byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
  45. byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
  46. byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
  47. byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
  48. byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
  49. byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
  50. byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
  51. byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -1
  52. byteplussdkvs20260714/__init__.py +26 -0
  53. byteplussdkvs20260714/api/__init__.py +6 -0
  54. byteplussdkvs20260714/api/vs20260714_api.py +131 -0
  55. byteplussdkvs20260714/models/__init__.py +22 -0
  56. byteplussdkvs20260714/models/create_voice_task_request.py +387 -0
  57. byteplussdkvs20260714/models/create_voice_task_response.py +175 -0
  58. byteplussdkvs20260714/models/data_for_create_voice_task_output.py +123 -0
  59. byteplussdkvs20260714/models/number_info_list_for_create_voice_task_input.py +149 -0
  60. byteplussdkvs20260714/models/voice_content_for_create_voice_task_input.py +279 -0
  61. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
  62. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
  63. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
@@ -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()
@@ -0,0 +1,227 @@
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 ListAlertResponse(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
+ 'data': 'list[DataForListAlertOutput]',
38
+ 'page_number': 'int',
39
+ 'page_size': 'int',
40
+ 'total_count': 'int'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'alert_group_id': 'AlertGroupId',
45
+ 'data': 'Data',
46
+ 'page_number': 'PageNumber',
47
+ 'page_size': 'PageSize',
48
+ 'total_count': 'TotalCount'
49
+ }
50
+
51
+ def __init__(self, alert_group_id=None, data=None, page_number=None, page_size=None, total_count=None, _configuration=None): # noqa: E501
52
+ """ListAlertResponse - 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._data = None
59
+ self._page_number = None
60
+ self._page_size = None
61
+ self._total_count = None
62
+ self.discriminator = None
63
+
64
+ if alert_group_id is not None:
65
+ self.alert_group_id = alert_group_id
66
+ if data is not None:
67
+ self.data = data
68
+ if page_number is not None:
69
+ self.page_number = page_number
70
+ if page_size is not None:
71
+ self.page_size = page_size
72
+ if total_count is not None:
73
+ self.total_count = total_count
74
+
75
+ @property
76
+ def alert_group_id(self):
77
+ """Gets the alert_group_id of this ListAlertResponse. # noqa: E501
78
+
79
+
80
+ :return: The alert_group_id of this ListAlertResponse. # noqa: E501
81
+ :rtype: str
82
+ """
83
+ return self._alert_group_id
84
+
85
+ @alert_group_id.setter
86
+ def alert_group_id(self, alert_group_id):
87
+ """Sets the alert_group_id of this ListAlertResponse.
88
+
89
+
90
+ :param alert_group_id: The alert_group_id of this ListAlertResponse. # noqa: E501
91
+ :type: str
92
+ """
93
+
94
+ self._alert_group_id = alert_group_id
95
+
96
+ @property
97
+ def data(self):
98
+ """Gets the data of this ListAlertResponse. # noqa: E501
99
+
100
+
101
+ :return: The data of this ListAlertResponse. # noqa: E501
102
+ :rtype: list[DataForListAlertOutput]
103
+ """
104
+ return self._data
105
+
106
+ @data.setter
107
+ def data(self, data):
108
+ """Sets the data of this ListAlertResponse.
109
+
110
+
111
+ :param data: The data of this ListAlertResponse. # noqa: E501
112
+ :type: list[DataForListAlertOutput]
113
+ """
114
+
115
+ self._data = data
116
+
117
+ @property
118
+ def page_number(self):
119
+ """Gets the page_number of this ListAlertResponse. # noqa: E501
120
+
121
+
122
+ :return: The page_number of this ListAlertResponse. # noqa: E501
123
+ :rtype: int
124
+ """
125
+ return self._page_number
126
+
127
+ @page_number.setter
128
+ def page_number(self, page_number):
129
+ """Sets the page_number of this ListAlertResponse.
130
+
131
+
132
+ :param page_number: The page_number of this ListAlertResponse. # noqa: E501
133
+ :type: int
134
+ """
135
+
136
+ self._page_number = page_number
137
+
138
+ @property
139
+ def page_size(self):
140
+ """Gets the page_size of this ListAlertResponse. # noqa: E501
141
+
142
+
143
+ :return: The page_size of this ListAlertResponse. # noqa: E501
144
+ :rtype: int
145
+ """
146
+ return self._page_size
147
+
148
+ @page_size.setter
149
+ def page_size(self, page_size):
150
+ """Sets the page_size of this ListAlertResponse.
151
+
152
+
153
+ :param page_size: The page_size of this ListAlertResponse. # noqa: E501
154
+ :type: int
155
+ """
156
+
157
+ self._page_size = page_size
158
+
159
+ @property
160
+ def total_count(self):
161
+ """Gets the total_count of this ListAlertResponse. # noqa: E501
162
+
163
+
164
+ :return: The total_count of this ListAlertResponse. # noqa: E501
165
+ :rtype: int
166
+ """
167
+ return self._total_count
168
+
169
+ @total_count.setter
170
+ def total_count(self, total_count):
171
+ """Sets the total_count of this ListAlertResponse.
172
+
173
+
174
+ :param total_count: The total_count of this ListAlertResponse. # noqa: E501
175
+ :type: int
176
+ """
177
+
178
+ self._total_count = total_count
179
+
180
+ def to_dict(self):
181
+ """Returns the model properties as a dict"""
182
+ result = {}
183
+
184
+ for attr, _ in six.iteritems(self.swagger_types):
185
+ value = getattr(self, attr)
186
+ if isinstance(value, list):
187
+ result[attr] = list(map(
188
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189
+ value
190
+ ))
191
+ elif hasattr(value, "to_dict"):
192
+ result[attr] = value.to_dict()
193
+ elif isinstance(value, dict):
194
+ result[attr] = dict(map(
195
+ lambda item: (item[0], item[1].to_dict())
196
+ if hasattr(item[1], "to_dict") else item,
197
+ value.items()
198
+ ))
199
+ else:
200
+ result[attr] = value
201
+ if issubclass(ListAlertResponse, dict):
202
+ for key, value in self.items():
203
+ result[key] = value
204
+
205
+ return result
206
+
207
+ def to_str(self):
208
+ """Returns the string representation of the model"""
209
+ return pprint.pformat(self.to_dict())
210
+
211
+ def __repr__(self):
212
+ """For `print` and `pprint`"""
213
+ return self.to_str()
214
+
215
+ def __eq__(self, other):
216
+ """Returns true if both objects are equal"""
217
+ if not isinstance(other, ListAlertResponse):
218
+ return False
219
+
220
+ return self.to_dict() == other.to_dict()
221
+
222
+ def __ne__(self, other):
223
+ """Returns true if both objects are not equal"""
224
+ if not isinstance(other, ListAlertResponse):
225
+ return True
226
+
227
+ return self.to_dict() != other.to_dict()