byteplus-python-sdk-v2 3.0.45__py2.py3-none-any.whl → 3.0.46__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 (70) hide show
  1. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/RECORD +70 -19
  3. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/top_level.txt +1 -0
  4. byteplussdkbilling/models/list_for_list_amortized_cost_bill_daily_output.py +27 -1
  5. byteplussdkbilling/models/list_for_list_amortized_cost_bill_detail_output.py +53 -1
  6. byteplussdkbilling/models/list_for_list_amortized_cost_bill_monthly_output.py +53 -1
  7. byteplussdkbilling/models/list_for_list_bill_detail_output.py +79 -1
  8. byteplussdkbilling/models/list_for_list_coupons_output.py +29 -3
  9. byteplussdkbilling/models/list_for_list_split_bill_detail_output.py +79 -1
  10. byteplussdkcore/api_client.py +1 -1
  11. byteplussdkcore/configuration.py +1 -1
  12. byteplussdkcore/endpoint/providers/default_provider.py +7 -0
  13. byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
  14. byteplussdkcpaas/__init__.py +56 -0
  15. byteplussdkcpaas/api/__init__.py +6 -0
  16. byteplussdkcpaas/api/cpaas_api.py +519 -0
  17. byteplussdkcpaas/models/__init__.py +52 -0
  18. byteplussdkcpaas/models/action_for_create_template_v2_input.py +201 -0
  19. byteplussdkcpaas/models/action_for_get_template_v2_output.py +201 -0
  20. byteplussdkcpaas/models/create_template_v2_request.py +306 -0
  21. byteplussdkcpaas/models/create_template_v2_response.py +175 -0
  22. byteplussdkcpaas/models/data_for_create_template_v2_output.py +149 -0
  23. byteplussdkcpaas/models/data_for_get_template_v2_output.py +253 -0
  24. byteplussdkcpaas/models/data_for_list_template_v2_output.py +305 -0
  25. byteplussdkcpaas/models/data_for_send_batch_message_output.py +123 -0
  26. byteplussdkcpaas/models/data_for_send_message_output.py +123 -0
  27. byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +305 -0
  28. byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +305 -0
  29. byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +227 -0
  30. byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +227 -0
  31. byteplussdkcpaas/models/get_template_v2_request.py +150 -0
  32. byteplussdkcpaas/models/get_template_v2_response.py +201 -0
  33. byteplussdkcpaas/models/list_template_v2_request.py +255 -0
  34. byteplussdkcpaas/models/list_template_v2_response.py +201 -0
  35. byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +175 -0
  36. byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +175 -0
  37. byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +149 -0
  38. byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +149 -0
  39. byteplussdkcpaas/models/page_link_list_for_create_template_v2_input.py +227 -0
  40. byteplussdkcpaas/models/page_link_list_for_get_template_v2_output.py +227 -0
  41. byteplussdkcpaas/models/priority_for_send_batch_message_input.py +279 -0
  42. byteplussdkcpaas/models/priority_for_send_message_input.py +279 -0
  43. byteplussdkcpaas/models/receiver_for_send_batch_message_input.py +149 -0
  44. byteplussdkcpaas/models/send_batch_message_request.py +281 -0
  45. byteplussdkcpaas/models/send_batch_message_response.py +175 -0
  46. byteplussdkcpaas/models/send_message_request.py +281 -0
  47. byteplussdkcpaas/models/send_message_response.py +175 -0
  48. byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +305 -0
  49. byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +305 -0
  50. byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +175 -0
  51. byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +227 -0
  52. byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +227 -0
  53. byteplussdkrdsmssql/__init__.py +12 -0
  54. byteplussdkrdsmssql/api/rds_mssql_api.py +485 -0
  55. byteplussdkrdsmssql/models/__init__.py +12 -0
  56. byteplussdkrdsmssql/models/db_status_for_describe_db_instance_tde_output.py +149 -0
  57. byteplussdkrdsmssql/models/db_status_for_modify_db_instance_tde_input.py +149 -0
  58. byteplussdkrdsmssql/models/describe_db_instance_ssl_request.py +124 -0
  59. byteplussdkrdsmssql/models/describe_db_instance_ssl_response.py +331 -0
  60. byteplussdkrdsmssql/models/describe_db_instance_tde_request.py +124 -0
  61. byteplussdkrdsmssql/models/describe_db_instance_tde_response.py +201 -0
  62. byteplussdkrdsmssql/models/download_ssl_certificate_request.py +124 -0
  63. byteplussdkrdsmssql/models/download_ssl_certificate_response.py +123 -0
  64. byteplussdkrdsmssql/models/modify_db_instance_ssl_request.py +229 -0
  65. byteplussdkrdsmssql/models/modify_db_instance_ssl_response.py +95 -0
  66. byteplussdkrdsmssql/models/modify_db_instance_tde_request.py +296 -0
  67. byteplussdkrdsmssql/models/modify_db_instance_tde_response.py +95 -0
  68. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/WHEEL +0 -0
  69. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/licenses/LICENSE.txt +0 -0
  70. {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/licenses/NOTICE.md +0 -0
@@ -0,0 +1,519 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cpaas
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
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ import byteplussdkcore
22
+
23
+
24
+ class CPAASApi(object):
25
+ """NOTE: This class is auto generated by the swagger code generator program.
26
+
27
+ Do not edit the class manually.
28
+ Ref: https://github.com/swagger-api/swagger-codegen
29
+ """
30
+
31
+ def __init__(self, api_client=None):
32
+ if api_client is None:
33
+ api_client = byteplussdkcore.ApiClient()
34
+ self.api_client = api_client
35
+
36
+ def create_template_v2(self, body, **kwargs): # noqa: E501
37
+ """create_template_v2 # noqa: E501
38
+
39
+ This method makes a synchronous HTTP request by default. To make an
40
+ asynchronous HTTP request, please pass async_req=True
41
+ >>> thread = api.create_template_v2(body, async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param CreateTemplateV2Request body: (required)
46
+ :return: CreateTemplateV2Response
47
+ If the method is called asynchronously,
48
+ returns the request thread.
49
+ """
50
+ kwargs['_return_http_data_only'] = True
51
+ if kwargs.get('async_req'):
52
+ return self.create_template_v2_with_http_info(body, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.create_template_v2_with_http_info(body, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def create_template_v2_with_http_info(self, body, **kwargs): # noqa: E501
58
+ """create_template_v2 # noqa: E501
59
+
60
+ This method makes a synchronous HTTP request by default. To make an
61
+ asynchronous HTTP request, please pass async_req=True
62
+ >>> thread = api.create_template_v2_with_http_info(body, async_req=True)
63
+ >>> result = thread.get()
64
+
65
+ :param async_req bool
66
+ :param CreateTemplateV2Request body: (required)
67
+ :return: CreateTemplateV2Response
68
+ If the method is called asynchronously,
69
+ returns the request thread.
70
+ """
71
+
72
+ all_params = ['body'] # noqa: E501
73
+ all_params.append('async_req')
74
+ all_params.append('_return_http_data_only')
75
+ all_params.append('_preload_content')
76
+ all_params.append('_request_timeout')
77
+
78
+ params = locals()
79
+ for key, val in six.iteritems(params['kwargs']):
80
+ if key not in all_params:
81
+ raise TypeError(
82
+ "Got an unexpected keyword argument '%s'"
83
+ " to method create_template_v2" % key
84
+ )
85
+ params[key] = val
86
+ del params['kwargs']
87
+ # verify the required parameter 'body' is set
88
+ if self.api_client.client_side_validation and ('body' not in params or
89
+ params['body'] is None): # noqa: E501
90
+ raise ValueError("Missing the required parameter `body` when calling `create_template_v2`") # noqa: E501
91
+
92
+ collection_formats = {}
93
+
94
+ path_params = {}
95
+
96
+ query_params = []
97
+
98
+ header_params = {}
99
+
100
+ form_params = []
101
+ local_var_files = {}
102
+
103
+ body_params = None
104
+ if 'body' in params:
105
+ body_params = params['body']
106
+ # HTTP header `Accept`
107
+ header_params['Accept'] = self.api_client.select_header_accept(
108
+ ['application/json']) # noqa: E501
109
+
110
+ # HTTP header `Content-Type`
111
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112
+ ['application/json']) # noqa: E501
113
+
114
+ # Authentication setting
115
+ auth_settings = ['byteplusSign'] # noqa: E501
116
+
117
+ return self.api_client.call_api(
118
+ '/CreateTemplateV2/2026-04-30/cpaas/post/application_json/', 'POST',
119
+ path_params,
120
+ query_params,
121
+ header_params,
122
+ body=body_params,
123
+ post_params=form_params,
124
+ files=local_var_files,
125
+ response_type='CreateTemplateV2Response', # noqa: E501
126
+ auth_settings=auth_settings,
127
+ async_req=params.get('async_req'),
128
+ _return_http_data_only=params.get('_return_http_data_only'),
129
+ _preload_content=params.get('_preload_content', True),
130
+ _request_timeout=params.get('_request_timeout'),
131
+ collection_formats=collection_formats)
132
+
133
+ def get_template_v2(self, body, **kwargs): # noqa: E501
134
+ """get_template_v2 # noqa: E501
135
+
136
+ This method makes a synchronous HTTP request by default. To make an
137
+ asynchronous HTTP request, please pass async_req=True
138
+ >>> thread = api.get_template_v2(body, async_req=True)
139
+ >>> result = thread.get()
140
+
141
+ :param async_req bool
142
+ :param GetTemplateV2Request body: (required)
143
+ :return: GetTemplateV2Response
144
+ If the method is called asynchronously,
145
+ returns the request thread.
146
+ """
147
+ kwargs['_return_http_data_only'] = True
148
+ if kwargs.get('async_req'):
149
+ return self.get_template_v2_with_http_info(body, **kwargs) # noqa: E501
150
+ else:
151
+ (data) = self.get_template_v2_with_http_info(body, **kwargs) # noqa: E501
152
+ return data
153
+
154
+ def get_template_v2_with_http_info(self, body, **kwargs): # noqa: E501
155
+ """get_template_v2 # noqa: E501
156
+
157
+ This method makes a synchronous HTTP request by default. To make an
158
+ asynchronous HTTP request, please pass async_req=True
159
+ >>> thread = api.get_template_v2_with_http_info(body, async_req=True)
160
+ >>> result = thread.get()
161
+
162
+ :param async_req bool
163
+ :param GetTemplateV2Request body: (required)
164
+ :return: GetTemplateV2Response
165
+ If the method is called asynchronously,
166
+ returns the request thread.
167
+ """
168
+
169
+ all_params = ['body'] # noqa: E501
170
+ all_params.append('async_req')
171
+ all_params.append('_return_http_data_only')
172
+ all_params.append('_preload_content')
173
+ all_params.append('_request_timeout')
174
+
175
+ params = locals()
176
+ for key, val in six.iteritems(params['kwargs']):
177
+ if key not in all_params:
178
+ raise TypeError(
179
+ "Got an unexpected keyword argument '%s'"
180
+ " to method get_template_v2" % key
181
+ )
182
+ params[key] = val
183
+ del params['kwargs']
184
+ # verify the required parameter 'body' is set
185
+ if self.api_client.client_side_validation and ('body' not in params or
186
+ params['body'] is None): # noqa: E501
187
+ raise ValueError("Missing the required parameter `body` when calling `get_template_v2`") # noqa: E501
188
+
189
+ collection_formats = {}
190
+
191
+ path_params = {}
192
+
193
+ query_params = []
194
+
195
+ header_params = {}
196
+
197
+ form_params = []
198
+ local_var_files = {}
199
+
200
+ body_params = None
201
+ if 'body' in params:
202
+ body_params = params['body']
203
+ # HTTP header `Accept`
204
+ header_params['Accept'] = self.api_client.select_header_accept(
205
+ ['application/json']) # noqa: E501
206
+
207
+ # HTTP header `Content-Type`
208
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
209
+ ['application/x-www-form-urlencoded']) # noqa: E501
210
+
211
+ # Authentication setting
212
+ auth_settings = ['byteplusSign'] # noqa: E501
213
+
214
+ return self.api_client.call_api(
215
+ '/GetTemplateV2/2026-04-30/cpaas/post/application_x-www-form-urlencoded/', 'POST',
216
+ path_params,
217
+ query_params,
218
+ header_params,
219
+ body=body_params,
220
+ post_params=form_params,
221
+ files=local_var_files,
222
+ response_type='GetTemplateV2Response', # noqa: E501
223
+ auth_settings=auth_settings,
224
+ async_req=params.get('async_req'),
225
+ _return_http_data_only=params.get('_return_http_data_only'),
226
+ _preload_content=params.get('_preload_content', True),
227
+ _request_timeout=params.get('_request_timeout'),
228
+ collection_formats=collection_formats)
229
+
230
+ def list_template_v2(self, body, **kwargs): # noqa: E501
231
+ """list_template_v2 # noqa: E501
232
+
233
+ This method makes a synchronous HTTP request by default. To make an
234
+ asynchronous HTTP request, please pass async_req=True
235
+ >>> thread = api.list_template_v2(body, async_req=True)
236
+ >>> result = thread.get()
237
+
238
+ :param async_req bool
239
+ :param ListTemplateV2Request body: (required)
240
+ :return: ListTemplateV2Response
241
+ If the method is called asynchronously,
242
+ returns the request thread.
243
+ """
244
+ kwargs['_return_http_data_only'] = True
245
+ if kwargs.get('async_req'):
246
+ return self.list_template_v2_with_http_info(body, **kwargs) # noqa: E501
247
+ else:
248
+ (data) = self.list_template_v2_with_http_info(body, **kwargs) # noqa: E501
249
+ return data
250
+
251
+ def list_template_v2_with_http_info(self, body, **kwargs): # noqa: E501
252
+ """list_template_v2 # noqa: E501
253
+
254
+ This method makes a synchronous HTTP request by default. To make an
255
+ asynchronous HTTP request, please pass async_req=True
256
+ >>> thread = api.list_template_v2_with_http_info(body, async_req=True)
257
+ >>> result = thread.get()
258
+
259
+ :param async_req bool
260
+ :param ListTemplateV2Request body: (required)
261
+ :return: ListTemplateV2Response
262
+ If the method is called asynchronously,
263
+ returns the request thread.
264
+ """
265
+
266
+ all_params = ['body'] # noqa: E501
267
+ all_params.append('async_req')
268
+ all_params.append('_return_http_data_only')
269
+ all_params.append('_preload_content')
270
+ all_params.append('_request_timeout')
271
+
272
+ params = locals()
273
+ for key, val in six.iteritems(params['kwargs']):
274
+ if key not in all_params:
275
+ raise TypeError(
276
+ "Got an unexpected keyword argument '%s'"
277
+ " to method list_template_v2" % key
278
+ )
279
+ params[key] = val
280
+ del params['kwargs']
281
+ # verify the required parameter 'body' is set
282
+ if self.api_client.client_side_validation and ('body' not in params or
283
+ params['body'] is None): # noqa: E501
284
+ raise ValueError("Missing the required parameter `body` when calling `list_template_v2`") # noqa: E501
285
+
286
+ collection_formats = {}
287
+
288
+ path_params = {}
289
+
290
+ query_params = []
291
+
292
+ header_params = {}
293
+
294
+ form_params = []
295
+ local_var_files = {}
296
+
297
+ body_params = None
298
+ if 'body' in params:
299
+ body_params = params['body']
300
+ # HTTP header `Accept`
301
+ header_params['Accept'] = self.api_client.select_header_accept(
302
+ ['application/json']) # noqa: E501
303
+
304
+ # HTTP header `Content-Type`
305
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
306
+ ['application/json']) # noqa: E501
307
+
308
+ # Authentication setting
309
+ auth_settings = ['byteplusSign'] # noqa: E501
310
+
311
+ return self.api_client.call_api(
312
+ '/ListTemplateV2/2026-04-30/cpaas/post/application_json/', 'POST',
313
+ path_params,
314
+ query_params,
315
+ header_params,
316
+ body=body_params,
317
+ post_params=form_params,
318
+ files=local_var_files,
319
+ response_type='ListTemplateV2Response', # noqa: E501
320
+ auth_settings=auth_settings,
321
+ async_req=params.get('async_req'),
322
+ _return_http_data_only=params.get('_return_http_data_only'),
323
+ _preload_content=params.get('_preload_content', True),
324
+ _request_timeout=params.get('_request_timeout'),
325
+ collection_formats=collection_formats)
326
+
327
+ def send_batch_message(self, body, **kwargs): # noqa: E501
328
+ """send_batch_message # noqa: E501
329
+
330
+ This method makes a synchronous HTTP request by default. To make an
331
+ asynchronous HTTP request, please pass async_req=True
332
+ >>> thread = api.send_batch_message(body, async_req=True)
333
+ >>> result = thread.get()
334
+
335
+ :param async_req bool
336
+ :param SendBatchMessageRequest body: (required)
337
+ :return: SendBatchMessageResponse
338
+ If the method is called asynchronously,
339
+ returns the request thread.
340
+ """
341
+ kwargs['_return_http_data_only'] = True
342
+ if kwargs.get('async_req'):
343
+ return self.send_batch_message_with_http_info(body, **kwargs) # noqa: E501
344
+ else:
345
+ (data) = self.send_batch_message_with_http_info(body, **kwargs) # noqa: E501
346
+ return data
347
+
348
+ def send_batch_message_with_http_info(self, body, **kwargs): # noqa: E501
349
+ """send_batch_message # noqa: E501
350
+
351
+ This method makes a synchronous HTTP request by default. To make an
352
+ asynchronous HTTP request, please pass async_req=True
353
+ >>> thread = api.send_batch_message_with_http_info(body, async_req=True)
354
+ >>> result = thread.get()
355
+
356
+ :param async_req bool
357
+ :param SendBatchMessageRequest body: (required)
358
+ :return: SendBatchMessageResponse
359
+ If the method is called asynchronously,
360
+ returns the request thread.
361
+ """
362
+
363
+ all_params = ['body'] # noqa: E501
364
+ all_params.append('async_req')
365
+ all_params.append('_return_http_data_only')
366
+ all_params.append('_preload_content')
367
+ all_params.append('_request_timeout')
368
+
369
+ params = locals()
370
+ for key, val in six.iteritems(params['kwargs']):
371
+ if key not in all_params:
372
+ raise TypeError(
373
+ "Got an unexpected keyword argument '%s'"
374
+ " to method send_batch_message" % key
375
+ )
376
+ params[key] = val
377
+ del params['kwargs']
378
+ # verify the required parameter 'body' is set
379
+ if self.api_client.client_side_validation and ('body' not in params or
380
+ params['body'] is None): # noqa: E501
381
+ raise ValueError("Missing the required parameter `body` when calling `send_batch_message`") # noqa: E501
382
+
383
+ collection_formats = {}
384
+
385
+ path_params = {}
386
+
387
+ query_params = []
388
+
389
+ header_params = {}
390
+
391
+ form_params = []
392
+ local_var_files = {}
393
+
394
+ body_params = None
395
+ if 'body' in params:
396
+ body_params = params['body']
397
+ # HTTP header `Accept`
398
+ header_params['Accept'] = self.api_client.select_header_accept(
399
+ ['application/json']) # noqa: E501
400
+
401
+ # HTTP header `Content-Type`
402
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
403
+ ['application/json']) # noqa: E501
404
+
405
+ # Authentication setting
406
+ auth_settings = ['byteplusSign'] # noqa: E501
407
+
408
+ return self.api_client.call_api(
409
+ '/SendBatchMessage/2026-04-30/cpaas/post/application_json/', 'POST',
410
+ path_params,
411
+ query_params,
412
+ header_params,
413
+ body=body_params,
414
+ post_params=form_params,
415
+ files=local_var_files,
416
+ response_type='SendBatchMessageResponse', # noqa: E501
417
+ auth_settings=auth_settings,
418
+ async_req=params.get('async_req'),
419
+ _return_http_data_only=params.get('_return_http_data_only'),
420
+ _preload_content=params.get('_preload_content', True),
421
+ _request_timeout=params.get('_request_timeout'),
422
+ collection_formats=collection_formats)
423
+
424
+ def send_message(self, body, **kwargs): # noqa: E501
425
+ """send_message # noqa: E501
426
+
427
+ This method makes a synchronous HTTP request by default. To make an
428
+ asynchronous HTTP request, please pass async_req=True
429
+ >>> thread = api.send_message(body, async_req=True)
430
+ >>> result = thread.get()
431
+
432
+ :param async_req bool
433
+ :param SendMessageRequest body: (required)
434
+ :return: SendMessageResponse
435
+ If the method is called asynchronously,
436
+ returns the request thread.
437
+ """
438
+ kwargs['_return_http_data_only'] = True
439
+ if kwargs.get('async_req'):
440
+ return self.send_message_with_http_info(body, **kwargs) # noqa: E501
441
+ else:
442
+ (data) = self.send_message_with_http_info(body, **kwargs) # noqa: E501
443
+ return data
444
+
445
+ def send_message_with_http_info(self, body, **kwargs): # noqa: E501
446
+ """send_message # noqa: E501
447
+
448
+ This method makes a synchronous HTTP request by default. To make an
449
+ asynchronous HTTP request, please pass async_req=True
450
+ >>> thread = api.send_message_with_http_info(body, async_req=True)
451
+ >>> result = thread.get()
452
+
453
+ :param async_req bool
454
+ :param SendMessageRequest body: (required)
455
+ :return: SendMessageResponse
456
+ If the method is called asynchronously,
457
+ returns the request thread.
458
+ """
459
+
460
+ all_params = ['body'] # noqa: E501
461
+ all_params.append('async_req')
462
+ all_params.append('_return_http_data_only')
463
+ all_params.append('_preload_content')
464
+ all_params.append('_request_timeout')
465
+
466
+ params = locals()
467
+ for key, val in six.iteritems(params['kwargs']):
468
+ if key not in all_params:
469
+ raise TypeError(
470
+ "Got an unexpected keyword argument '%s'"
471
+ " to method send_message" % key
472
+ )
473
+ params[key] = val
474
+ del params['kwargs']
475
+ # verify the required parameter 'body' is set
476
+ if self.api_client.client_side_validation and ('body' not in params or
477
+ params['body'] is None): # noqa: E501
478
+ raise ValueError("Missing the required parameter `body` when calling `send_message`") # noqa: E501
479
+
480
+ collection_formats = {}
481
+
482
+ path_params = {}
483
+
484
+ query_params = []
485
+
486
+ header_params = {}
487
+
488
+ form_params = []
489
+ local_var_files = {}
490
+
491
+ body_params = None
492
+ if 'body' in params:
493
+ body_params = params['body']
494
+ # HTTP header `Accept`
495
+ header_params['Accept'] = self.api_client.select_header_accept(
496
+ ['application/json']) # noqa: E501
497
+
498
+ # HTTP header `Content-Type`
499
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
500
+ ['application/json']) # noqa: E501
501
+
502
+ # Authentication setting
503
+ auth_settings = ['byteplusSign'] # noqa: E501
504
+
505
+ return self.api_client.call_api(
506
+ '/SendMessage/2026-04-30/cpaas/post/application_json/', 'POST',
507
+ path_params,
508
+ query_params,
509
+ header_params,
510
+ body=body_params,
511
+ post_params=form_params,
512
+ files=local_var_files,
513
+ response_type='SendMessageResponse', # noqa: E501
514
+ auth_settings=auth_settings,
515
+ async_req=params.get('async_req'),
516
+ _return_http_data_only=params.get('_return_http_data_only'),
517
+ _preload_content=params.get('_preload_content', True),
518
+ _request_timeout=params.get('_request_timeout'),
519
+ collection_formats=collection_formats)
@@ -0,0 +1,52 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ cpaas
6
+
7
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8
+
9
+ OpenAPI spec version: common-version
10
+
11
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
+ """
13
+
14
+
15
+ from __future__ import absolute_import
16
+
17
+ # import models into model package
18
+ from byteplussdkcpaas.models.action_for_create_template_v2_input import ActionForCreateTemplateV2Input
19
+ from byteplussdkcpaas.models.action_for_get_template_v2_output import ActionForGetTemplateV2Output
20
+ from byteplussdkcpaas.models.create_template_v2_request import CreateTemplateV2Request
21
+ from byteplussdkcpaas.models.create_template_v2_response import CreateTemplateV2Response
22
+ from byteplussdkcpaas.models.data_for_create_template_v2_output import DataForCreateTemplateV2Output
23
+ from byteplussdkcpaas.models.data_for_get_template_v2_output import DataForGetTemplateV2Output
24
+ from byteplussdkcpaas.models.data_for_list_template_v2_output import DataForListTemplateV2Output
25
+ from byteplussdkcpaas.models.data_for_send_batch_message_output import DataForSendBatchMessageOutput
26
+ from byteplussdkcpaas.models.data_for_send_message_output import DataForSendMessageOutput
27
+ from byteplussdkcpaas.models.element_style_for_create_template_v2_input import ElementStyleForCreateTemplateV2Input
28
+ from byteplussdkcpaas.models.element_style_for_get_template_v2_output import ElementStyleForGetTemplateV2Output
29
+ from byteplussdkcpaas.models.extend_attrs_for_create_template_v2_input import ExtendAttrsForCreateTemplateV2Input
30
+ from byteplussdkcpaas.models.extend_attrs_for_get_template_v2_output import ExtendAttrsForGetTemplateV2Output
31
+ from byteplussdkcpaas.models.get_template_v2_request import GetTemplateV2Request
32
+ from byteplussdkcpaas.models.get_template_v2_response import GetTemplateV2Response
33
+ from byteplussdkcpaas.models.list_template_v2_request import ListTemplateV2Request
34
+ from byteplussdkcpaas.models.list_template_v2_response import ListTemplateV2Response
35
+ from byteplussdkcpaas.models.page_dto_list_for_create_template_v2_input import PageDTOListForCreateTemplateV2Input
36
+ from byteplussdkcpaas.models.page_dto_list_for_get_template_v2_output import PageDTOListForGetTemplateV2Output
37
+ from byteplussdkcpaas.models.page_element_dto_list_for_create_template_v2_input import PageElementDTOListForCreateTemplateV2Input
38
+ from byteplussdkcpaas.models.page_element_dto_list_for_get_template_v2_output import PageElementDTOListForGetTemplateV2Output
39
+ from byteplussdkcpaas.models.page_link_list_for_create_template_v2_input import PageLinkListForCreateTemplateV2Input
40
+ from byteplussdkcpaas.models.page_link_list_for_get_template_v2_output import PageLinkListForGetTemplateV2Output
41
+ from byteplussdkcpaas.models.priority_for_send_batch_message_input import PriorityForSendBatchMessageInput
42
+ from byteplussdkcpaas.models.priority_for_send_message_input import PriorityForSendMessageInput
43
+ from byteplussdkcpaas.models.receiver_for_send_batch_message_input import ReceiverForSendBatchMessageInput
44
+ from byteplussdkcpaas.models.send_batch_message_request import SendBatchMessageRequest
45
+ from byteplussdkcpaas.models.send_batch_message_response import SendBatchMessageResponse
46
+ from byteplussdkcpaas.models.send_message_request import SendMessageRequest
47
+ from byteplussdkcpaas.models.send_message_response import SendMessageResponse
48
+ from byteplussdkcpaas.models.template_list_for_create_template_v2_input import TemplateListForCreateTemplateV2Input
49
+ from byteplussdkcpaas.models.template_list_for_get_template_v2_output import TemplateListForGetTemplateV2Output
50
+ from byteplussdkcpaas.models.template_status_for_list_template_v2_output import TemplateStatusForListTemplateV2Output
51
+ from byteplussdkcpaas.models.variables_dto_list_for_create_template_v2_input import VariablesDTOListForCreateTemplateV2Input
52
+ from byteplussdkcpaas.models.variables_dto_list_for_get_template_v2_output import VariablesDTOListForGetTemplateV2Output