alibabacloud-cams20200606 2.0.0__tar.gz → 2.1.0__tar.gz
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.
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/ChangeLog.md +10 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/PKG-INFO +1 -1
- alibabacloud_cams20200606-2.1.0/alibabacloud_cams20200606/__init__.py +1 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606/client.py +136 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606/models.py +219 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606.egg-info/PKG-INFO +1 -1
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606.egg-info/requires.txt +1 -1
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/setup.py +2 -2
- alibabacloud_cams20200606-2.0.0/alibabacloud_cams20200606/__init__.py +0 -1
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/LICENSE +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/MANIFEST.in +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/README-CN.md +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/README.md +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606.egg-info/SOURCES.txt +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606.egg-info/dependency_links.txt +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/alibabacloud_cams20200606.egg-info/top_level.txt +0 -0
- {alibabacloud_cams20200606-2.0.0 → alibabacloud_cams20200606-2.1.0}/setup.cfg +0 -0
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
2025-04-21 Version: 2.0.0
|
|
2
|
+
- Update API ListChatappTemplate: add request parameters Category.
|
|
3
|
+
- Update API ListChatappTemplate: add request parameters OwnerId.
|
|
4
|
+
- Update API ListChatappTemplate: add request parameters ResourceOwnerAccount.
|
|
5
|
+
- Update API ListChatappTemplate: add request parameters ResourceOwnerId.
|
|
6
|
+
- Update API ListChatappTemplate: add response parameters Body.Success.
|
|
7
|
+
- Update API SendChatappMassMessage: update request parameters SenderList.$.FlowAction.FlowActionData' type has changed.
|
|
8
|
+
- Update API SendChatappMessage: update request parameters FlowAction.FlowActionData' type has changed.
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
2025-04-07 Version: 1.6.1
|
|
2
12
|
- Update API ChatappSyncPhoneNumber: add response parameters Body.PhoneNumbers.$.IsOfficial.
|
|
3
13
|
- Update API QueryChatappPhoneNumbers: add request parameters OwnerId.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.1.0'
|
|
@@ -1506,6 +1506,8 @@ class Client(OpenApiClient):
|
|
|
1506
1506
|
body['AllowCategoryChange'] = request.allow_category_change
|
|
1507
1507
|
if not UtilClient.is_unset(request.category):
|
|
1508
1508
|
body['Category'] = request.category
|
|
1509
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
1510
|
+
body['CategoryChangePaused'] = request.category_change_paused
|
|
1509
1511
|
if not UtilClient.is_unset(request.components_shrink):
|
|
1510
1512
|
body['Components'] = request.components_shrink
|
|
1511
1513
|
if not UtilClient.is_unset(request.cust_space_id):
|
|
@@ -1572,6 +1574,8 @@ class Client(OpenApiClient):
|
|
|
1572
1574
|
body['AllowCategoryChange'] = request.allow_category_change
|
|
1573
1575
|
if not UtilClient.is_unset(request.category):
|
|
1574
1576
|
body['Category'] = request.category
|
|
1577
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
1578
|
+
body['CategoryChangePaused'] = request.category_change_paused
|
|
1575
1579
|
if not UtilClient.is_unset(request.components_shrink):
|
|
1576
1580
|
body['Components'] = request.components_shrink
|
|
1577
1581
|
if not UtilClient.is_unset(request.cust_space_id):
|
|
@@ -5221,6 +5225,8 @@ class Client(OpenApiClient):
|
|
|
5221
5225
|
body = {}
|
|
5222
5226
|
if not UtilClient.is_unset(request.category):
|
|
5223
5227
|
body['Category'] = request.category
|
|
5228
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
5229
|
+
body['CategoryChangePaused'] = request.category_change_paused
|
|
5224
5230
|
if not UtilClient.is_unset(request.components_shrink):
|
|
5225
5231
|
body['Components'] = request.components_shrink
|
|
5226
5232
|
if not UtilClient.is_unset(request.cust_space_id):
|
|
@@ -5284,6 +5290,8 @@ class Client(OpenApiClient):
|
|
|
5284
5290
|
body = {}
|
|
5285
5291
|
if not UtilClient.is_unset(request.category):
|
|
5286
5292
|
body['Category'] = request.category
|
|
5293
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
5294
|
+
body['CategoryChangePaused'] = request.category_change_paused
|
|
5287
5295
|
if not UtilClient.is_unset(request.components_shrink):
|
|
5288
5296
|
body['Components'] = request.components_shrink
|
|
5289
5297
|
if not UtilClient.is_unset(request.cust_space_id):
|
|
@@ -5353,6 +5361,134 @@ class Client(OpenApiClient):
|
|
|
5353
5361
|
runtime = util_models.RuntimeOptions()
|
|
5354
5362
|
return await self.modify_chatapp_template_with_options_async(request, runtime)
|
|
5355
5363
|
|
|
5364
|
+
def modify_chatapp_template_properties_with_options(
|
|
5365
|
+
self,
|
|
5366
|
+
request: cams_20200606_models.ModifyChatappTemplatePropertiesRequest,
|
|
5367
|
+
runtime: util_models.RuntimeOptions,
|
|
5368
|
+
) -> cams_20200606_models.ModifyChatappTemplatePropertiesResponse:
|
|
5369
|
+
"""
|
|
5370
|
+
@summary 修改模板上的一些属性
|
|
5371
|
+
|
|
5372
|
+
@param request: ModifyChatappTemplatePropertiesRequest
|
|
5373
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5374
|
+
@return: ModifyChatappTemplatePropertiesResponse
|
|
5375
|
+
"""
|
|
5376
|
+
UtilClient.validate_model(request)
|
|
5377
|
+
query = {}
|
|
5378
|
+
if not UtilClient.is_unset(request.allow_send):
|
|
5379
|
+
query['AllowSend'] = request.allow_send
|
|
5380
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
5381
|
+
query['CategoryChangePaused'] = request.category_change_paused
|
|
5382
|
+
if not UtilClient.is_unset(request.cust_space_id):
|
|
5383
|
+
query['CustSpaceId'] = request.cust_space_id
|
|
5384
|
+
if not UtilClient.is_unset(request.language):
|
|
5385
|
+
query['Language'] = request.language
|
|
5386
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
5387
|
+
query['OwnerId'] = request.owner_id
|
|
5388
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
5389
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
5390
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
5391
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
5392
|
+
if not UtilClient.is_unset(request.template_code):
|
|
5393
|
+
query['TemplateCode'] = request.template_code
|
|
5394
|
+
if not UtilClient.is_unset(request.template_type):
|
|
5395
|
+
query['TemplateType'] = request.template_type
|
|
5396
|
+
req = open_api_models.OpenApiRequest(
|
|
5397
|
+
query=OpenApiUtilClient.query(query)
|
|
5398
|
+
)
|
|
5399
|
+
params = open_api_models.Params(
|
|
5400
|
+
action='ModifyChatappTemplateProperties',
|
|
5401
|
+
version='2020-06-06',
|
|
5402
|
+
protocol='HTTPS',
|
|
5403
|
+
pathname='/',
|
|
5404
|
+
method='POST',
|
|
5405
|
+
auth_type='AK',
|
|
5406
|
+
style='RPC',
|
|
5407
|
+
req_body_type='formData',
|
|
5408
|
+
body_type='json'
|
|
5409
|
+
)
|
|
5410
|
+
return TeaCore.from_map(
|
|
5411
|
+
cams_20200606_models.ModifyChatappTemplatePropertiesResponse(),
|
|
5412
|
+
self.call_api(params, req, runtime)
|
|
5413
|
+
)
|
|
5414
|
+
|
|
5415
|
+
async def modify_chatapp_template_properties_with_options_async(
|
|
5416
|
+
self,
|
|
5417
|
+
request: cams_20200606_models.ModifyChatappTemplatePropertiesRequest,
|
|
5418
|
+
runtime: util_models.RuntimeOptions,
|
|
5419
|
+
) -> cams_20200606_models.ModifyChatappTemplatePropertiesResponse:
|
|
5420
|
+
"""
|
|
5421
|
+
@summary 修改模板上的一些属性
|
|
5422
|
+
|
|
5423
|
+
@param request: ModifyChatappTemplatePropertiesRequest
|
|
5424
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
5425
|
+
@return: ModifyChatappTemplatePropertiesResponse
|
|
5426
|
+
"""
|
|
5427
|
+
UtilClient.validate_model(request)
|
|
5428
|
+
query = {}
|
|
5429
|
+
if not UtilClient.is_unset(request.allow_send):
|
|
5430
|
+
query['AllowSend'] = request.allow_send
|
|
5431
|
+
if not UtilClient.is_unset(request.category_change_paused):
|
|
5432
|
+
query['CategoryChangePaused'] = request.category_change_paused
|
|
5433
|
+
if not UtilClient.is_unset(request.cust_space_id):
|
|
5434
|
+
query['CustSpaceId'] = request.cust_space_id
|
|
5435
|
+
if not UtilClient.is_unset(request.language):
|
|
5436
|
+
query['Language'] = request.language
|
|
5437
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
5438
|
+
query['OwnerId'] = request.owner_id
|
|
5439
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
5440
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
5441
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
5442
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
5443
|
+
if not UtilClient.is_unset(request.template_code):
|
|
5444
|
+
query['TemplateCode'] = request.template_code
|
|
5445
|
+
if not UtilClient.is_unset(request.template_type):
|
|
5446
|
+
query['TemplateType'] = request.template_type
|
|
5447
|
+
req = open_api_models.OpenApiRequest(
|
|
5448
|
+
query=OpenApiUtilClient.query(query)
|
|
5449
|
+
)
|
|
5450
|
+
params = open_api_models.Params(
|
|
5451
|
+
action='ModifyChatappTemplateProperties',
|
|
5452
|
+
version='2020-06-06',
|
|
5453
|
+
protocol='HTTPS',
|
|
5454
|
+
pathname='/',
|
|
5455
|
+
method='POST',
|
|
5456
|
+
auth_type='AK',
|
|
5457
|
+
style='RPC',
|
|
5458
|
+
req_body_type='formData',
|
|
5459
|
+
body_type='json'
|
|
5460
|
+
)
|
|
5461
|
+
return TeaCore.from_map(
|
|
5462
|
+
cams_20200606_models.ModifyChatappTemplatePropertiesResponse(),
|
|
5463
|
+
await self.call_api_async(params, req, runtime)
|
|
5464
|
+
)
|
|
5465
|
+
|
|
5466
|
+
def modify_chatapp_template_properties(
|
|
5467
|
+
self,
|
|
5468
|
+
request: cams_20200606_models.ModifyChatappTemplatePropertiesRequest,
|
|
5469
|
+
) -> cams_20200606_models.ModifyChatappTemplatePropertiesResponse:
|
|
5470
|
+
"""
|
|
5471
|
+
@summary 修改模板上的一些属性
|
|
5472
|
+
|
|
5473
|
+
@param request: ModifyChatappTemplatePropertiesRequest
|
|
5474
|
+
@return: ModifyChatappTemplatePropertiesResponse
|
|
5475
|
+
"""
|
|
5476
|
+
runtime = util_models.RuntimeOptions()
|
|
5477
|
+
return self.modify_chatapp_template_properties_with_options(request, runtime)
|
|
5478
|
+
|
|
5479
|
+
async def modify_chatapp_template_properties_async(
|
|
5480
|
+
self,
|
|
5481
|
+
request: cams_20200606_models.ModifyChatappTemplatePropertiesRequest,
|
|
5482
|
+
) -> cams_20200606_models.ModifyChatappTemplatePropertiesResponse:
|
|
5483
|
+
"""
|
|
5484
|
+
@summary 修改模板上的一些属性
|
|
5485
|
+
|
|
5486
|
+
@param request: ModifyChatappTemplatePropertiesRequest
|
|
5487
|
+
@return: ModifyChatappTemplatePropertiesResponse
|
|
5488
|
+
"""
|
|
5489
|
+
runtime = util_models.RuntimeOptions()
|
|
5490
|
+
return await self.modify_chatapp_template_properties_with_options_async(request, runtime)
|
|
5491
|
+
|
|
5356
5492
|
def modify_flow_with_options(
|
|
5357
5493
|
self,
|
|
5358
5494
|
tmp_req: cams_20200606_models.ModifyFlowRequest,
|
|
@@ -3422,6 +3422,7 @@ class CreateChatappTemplateRequest(TeaModel):
|
|
|
3422
3422
|
self,
|
|
3423
3423
|
allow_category_change: bool = None,
|
|
3424
3424
|
category: str = None,
|
|
3425
|
+
category_change_paused: bool = None,
|
|
3425
3426
|
components: List[CreateChatappTemplateRequestComponents] = None,
|
|
3426
3427
|
cust_space_id: str = None,
|
|
3427
3428
|
cust_waba_id: str = None,
|
|
@@ -3454,6 +3455,7 @@ class CreateChatappTemplateRequest(TeaModel):
|
|
|
3454
3455
|
#
|
|
3455
3456
|
# This parameter is required.
|
|
3456
3457
|
self.category = category
|
|
3458
|
+
self.category_change_paused = category_change_paused
|
|
3457
3459
|
# The components of the message template.
|
|
3458
3460
|
#
|
|
3459
3461
|
# > If Category is set to AUTHENTICATION, the Type sub-parameter of the Components parameter cannot be set to HEADER. If the Type sub-parameter is set to BODY or FOOTER, the Text sub-parameter of the Components parameter must be empty.
|
|
@@ -3507,6 +3509,8 @@ class CreateChatappTemplateRequest(TeaModel):
|
|
|
3507
3509
|
result['AllowCategoryChange'] = self.allow_category_change
|
|
3508
3510
|
if self.category is not None:
|
|
3509
3511
|
result['Category'] = self.category
|
|
3512
|
+
if self.category_change_paused is not None:
|
|
3513
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
3510
3514
|
result['Components'] = []
|
|
3511
3515
|
if self.components is not None:
|
|
3512
3516
|
for k in self.components:
|
|
@@ -3535,6 +3539,8 @@ class CreateChatappTemplateRequest(TeaModel):
|
|
|
3535
3539
|
self.allow_category_change = m.get('AllowCategoryChange')
|
|
3536
3540
|
if m.get('Category') is not None:
|
|
3537
3541
|
self.category = m.get('Category')
|
|
3542
|
+
if m.get('CategoryChangePaused') is not None:
|
|
3543
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
3538
3544
|
self.components = []
|
|
3539
3545
|
if m.get('Components') is not None:
|
|
3540
3546
|
for k in m.get('Components'):
|
|
@@ -3564,6 +3570,7 @@ class CreateChatappTemplateShrinkRequest(TeaModel):
|
|
|
3564
3570
|
self,
|
|
3565
3571
|
allow_category_change: bool = None,
|
|
3566
3572
|
category: str = None,
|
|
3573
|
+
category_change_paused: bool = None,
|
|
3567
3574
|
components_shrink: str = None,
|
|
3568
3575
|
cust_space_id: str = None,
|
|
3569
3576
|
cust_waba_id: str = None,
|
|
@@ -3596,6 +3603,7 @@ class CreateChatappTemplateShrinkRequest(TeaModel):
|
|
|
3596
3603
|
#
|
|
3597
3604
|
# This parameter is required.
|
|
3598
3605
|
self.category = category
|
|
3606
|
+
self.category_change_paused = category_change_paused
|
|
3599
3607
|
# The components of the message template.
|
|
3600
3608
|
#
|
|
3601
3609
|
# > If Category is set to AUTHENTICATION, the Type sub-parameter of the Components parameter cannot be set to HEADER. If the Type sub-parameter is set to BODY or FOOTER, the Text sub-parameter of the Components parameter must be empty.
|
|
@@ -3646,6 +3654,8 @@ class CreateChatappTemplateShrinkRequest(TeaModel):
|
|
|
3646
3654
|
result['AllowCategoryChange'] = self.allow_category_change
|
|
3647
3655
|
if self.category is not None:
|
|
3648
3656
|
result['Category'] = self.category
|
|
3657
|
+
if self.category_change_paused is not None:
|
|
3658
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
3649
3659
|
if self.components_shrink is not None:
|
|
3650
3660
|
result['Components'] = self.components_shrink
|
|
3651
3661
|
if self.cust_space_id is not None:
|
|
@@ -3672,6 +3682,8 @@ class CreateChatappTemplateShrinkRequest(TeaModel):
|
|
|
3672
3682
|
self.allow_category_change = m.get('AllowCategoryChange')
|
|
3673
3683
|
if m.get('Category') is not None:
|
|
3674
3684
|
self.category = m.get('Category')
|
|
3685
|
+
if m.get('CategoryChangePaused') is not None:
|
|
3686
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
3675
3687
|
if m.get('Components') is not None:
|
|
3676
3688
|
self.components_shrink = m.get('Components')
|
|
3677
3689
|
if m.get('CustSpaceId') is not None:
|
|
@@ -5877,8 +5889,10 @@ class GetChatappTemplateDetailResponseBodyDataComponents(TeaModel):
|
|
|
5877
5889
|
class GetChatappTemplateDetailResponseBodyData(TeaModel):
|
|
5878
5890
|
def __init__(
|
|
5879
5891
|
self,
|
|
5892
|
+
allow_send: bool = None,
|
|
5880
5893
|
audit_status: str = None,
|
|
5881
5894
|
category: str = None,
|
|
5895
|
+
category_change_paused: bool = None,
|
|
5882
5896
|
components: List[GetChatappTemplateDetailResponseBodyDataComponents] = None,
|
|
5883
5897
|
example: Dict[str, str] = None,
|
|
5884
5898
|
language: str = None,
|
|
@@ -5889,6 +5903,7 @@ class GetChatappTemplateDetailResponseBodyData(TeaModel):
|
|
|
5889
5903
|
template_code: str = None,
|
|
5890
5904
|
template_type: str = None,
|
|
5891
5905
|
):
|
|
5906
|
+
self.allow_send = allow_send
|
|
5892
5907
|
# The review status of the message template. Valid values:
|
|
5893
5908
|
#
|
|
5894
5909
|
# * **pass**: The message template is approved.
|
|
@@ -5916,6 +5931,7 @@ class GetChatappTemplateDetailResponseBodyData(TeaModel):
|
|
|
5916
5931
|
#
|
|
5917
5932
|
# > If Category is set to text_video_button, users cannot open a web page by clicking the button. Users can open only the video in the message. In this case, you do not need to specify the Url parameter for the URL button in the template.
|
|
5918
5933
|
self.category = category
|
|
5934
|
+
self.category_change_paused = category_change_paused
|
|
5919
5935
|
# The components of the message template.
|
|
5920
5936
|
self.components = components
|
|
5921
5937
|
# The examples of variables.
|
|
@@ -5951,10 +5967,14 @@ class GetChatappTemplateDetailResponseBodyData(TeaModel):
|
|
|
5951
5967
|
return _map
|
|
5952
5968
|
|
|
5953
5969
|
result = dict()
|
|
5970
|
+
if self.allow_send is not None:
|
|
5971
|
+
result['AllowSend'] = self.allow_send
|
|
5954
5972
|
if self.audit_status is not None:
|
|
5955
5973
|
result['AuditStatus'] = self.audit_status
|
|
5956
5974
|
if self.category is not None:
|
|
5957
5975
|
result['Category'] = self.category
|
|
5976
|
+
if self.category_change_paused is not None:
|
|
5977
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
5958
5978
|
result['Components'] = []
|
|
5959
5979
|
if self.components is not None:
|
|
5960
5980
|
for k in self.components:
|
|
@@ -5979,10 +5999,14 @@ class GetChatappTemplateDetailResponseBodyData(TeaModel):
|
|
|
5979
5999
|
|
|
5980
6000
|
def from_map(self, m: dict = None):
|
|
5981
6001
|
m = m or dict()
|
|
6002
|
+
if m.get('AllowSend') is not None:
|
|
6003
|
+
self.allow_send = m.get('AllowSend')
|
|
5982
6004
|
if m.get('AuditStatus') is not None:
|
|
5983
6005
|
self.audit_status = m.get('AuditStatus')
|
|
5984
6006
|
if m.get('Category') is not None:
|
|
5985
6007
|
self.category = m.get('Category')
|
|
6008
|
+
if m.get('CategoryChangePaused') is not None:
|
|
6009
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
5986
6010
|
self.components = []
|
|
5987
6011
|
if m.get('Components') is not None:
|
|
5988
6012
|
for k in m.get('Components'):
|
|
@@ -11524,6 +11548,7 @@ class ModifyChatappTemplateRequest(TeaModel):
|
|
|
11524
11548
|
def __init__(
|
|
11525
11549
|
self,
|
|
11526
11550
|
category: str = None,
|
|
11551
|
+
category_change_paused: bool = None,
|
|
11527
11552
|
components: List[ModifyChatappTemplateRequestComponents] = None,
|
|
11528
11553
|
cust_space_id: str = None,
|
|
11529
11554
|
cust_waba_id: str = None,
|
|
@@ -11549,6 +11574,7 @@ class ModifyChatappTemplateRequest(TeaModel):
|
|
|
11549
11574
|
#
|
|
11550
11575
|
# > This parameter applies only to Viber message templates.
|
|
11551
11576
|
self.category = category
|
|
11577
|
+
self.category_change_paused = category_change_paused
|
|
11552
11578
|
# The components of the message template.
|
|
11553
11579
|
#
|
|
11554
11580
|
# > If Category is set to AUTHENTICATION, the Type sub-parameter of the Components parameter cannot be set to HEADER. If the Type sub-parameter is set to BODY or FOOTER, you do not need to set the Text sub-parameter of the Components parameter because the value is automatically generated.
|
|
@@ -11598,6 +11624,8 @@ class ModifyChatappTemplateRequest(TeaModel):
|
|
|
11598
11624
|
result = dict()
|
|
11599
11625
|
if self.category is not None:
|
|
11600
11626
|
result['Category'] = self.category
|
|
11627
|
+
if self.category_change_paused is not None:
|
|
11628
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
11601
11629
|
result['Components'] = []
|
|
11602
11630
|
if self.components is not None:
|
|
11603
11631
|
for k in self.components:
|
|
@@ -11626,6 +11654,8 @@ class ModifyChatappTemplateRequest(TeaModel):
|
|
|
11626
11654
|
m = m or dict()
|
|
11627
11655
|
if m.get('Category') is not None:
|
|
11628
11656
|
self.category = m.get('Category')
|
|
11657
|
+
if m.get('CategoryChangePaused') is not None:
|
|
11658
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
11629
11659
|
self.components = []
|
|
11630
11660
|
if m.get('Components') is not None:
|
|
11631
11661
|
for k in m.get('Components'):
|
|
@@ -11656,6 +11686,7 @@ class ModifyChatappTemplateShrinkRequest(TeaModel):
|
|
|
11656
11686
|
def __init__(
|
|
11657
11687
|
self,
|
|
11658
11688
|
category: str = None,
|
|
11689
|
+
category_change_paused: bool = None,
|
|
11659
11690
|
components_shrink: str = None,
|
|
11660
11691
|
cust_space_id: str = None,
|
|
11661
11692
|
cust_waba_id: str = None,
|
|
@@ -11681,6 +11712,7 @@ class ModifyChatappTemplateShrinkRequest(TeaModel):
|
|
|
11681
11712
|
#
|
|
11682
11713
|
# > This parameter applies only to Viber message templates.
|
|
11683
11714
|
self.category = category
|
|
11715
|
+
self.category_change_paused = category_change_paused
|
|
11684
11716
|
# The components of the message template.
|
|
11685
11717
|
#
|
|
11686
11718
|
# > If Category is set to AUTHENTICATION, the Type sub-parameter of the Components parameter cannot be set to HEADER. If the Type sub-parameter is set to BODY or FOOTER, you do not need to set the Text sub-parameter of the Components parameter because the value is automatically generated.
|
|
@@ -11727,6 +11759,8 @@ class ModifyChatappTemplateShrinkRequest(TeaModel):
|
|
|
11727
11759
|
result = dict()
|
|
11728
11760
|
if self.category is not None:
|
|
11729
11761
|
result['Category'] = self.category
|
|
11762
|
+
if self.category_change_paused is not None:
|
|
11763
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
11730
11764
|
if self.components_shrink is not None:
|
|
11731
11765
|
result['Components'] = self.components_shrink
|
|
11732
11766
|
if self.cust_space_id is not None:
|
|
@@ -11753,6 +11787,8 @@ class ModifyChatappTemplateShrinkRequest(TeaModel):
|
|
|
11753
11787
|
m = m or dict()
|
|
11754
11788
|
if m.get('Category') is not None:
|
|
11755
11789
|
self.category = m.get('Category')
|
|
11790
|
+
if m.get('CategoryChangePaused') is not None:
|
|
11791
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
11756
11792
|
if m.get('Components') is not None:
|
|
11757
11793
|
self.components_shrink = m.get('Components')
|
|
11758
11794
|
if m.get('CustSpaceId') is not None:
|
|
@@ -11913,6 +11949,183 @@ class ModifyChatappTemplateResponse(TeaModel):
|
|
|
11913
11949
|
return self
|
|
11914
11950
|
|
|
11915
11951
|
|
|
11952
|
+
class ModifyChatappTemplatePropertiesRequest(TeaModel):
|
|
11953
|
+
def __init__(
|
|
11954
|
+
self,
|
|
11955
|
+
allow_send: bool = None,
|
|
11956
|
+
category_change_paused: bool = None,
|
|
11957
|
+
cust_space_id: str = None,
|
|
11958
|
+
language: str = None,
|
|
11959
|
+
owner_id: int = None,
|
|
11960
|
+
resource_owner_account: str = None,
|
|
11961
|
+
resource_owner_id: int = None,
|
|
11962
|
+
template_code: str = None,
|
|
11963
|
+
template_type: str = None,
|
|
11964
|
+
):
|
|
11965
|
+
self.allow_send = allow_send
|
|
11966
|
+
self.category_change_paused = category_change_paused
|
|
11967
|
+
# This parameter is required.
|
|
11968
|
+
self.cust_space_id = cust_space_id
|
|
11969
|
+
# This parameter is required.
|
|
11970
|
+
self.language = language
|
|
11971
|
+
self.owner_id = owner_id
|
|
11972
|
+
self.resource_owner_account = resource_owner_account
|
|
11973
|
+
self.resource_owner_id = resource_owner_id
|
|
11974
|
+
# This parameter is required.
|
|
11975
|
+
self.template_code = template_code
|
|
11976
|
+
# This parameter is required.
|
|
11977
|
+
self.template_type = template_type
|
|
11978
|
+
|
|
11979
|
+
def validate(self):
|
|
11980
|
+
pass
|
|
11981
|
+
|
|
11982
|
+
def to_map(self):
|
|
11983
|
+
_map = super().to_map()
|
|
11984
|
+
if _map is not None:
|
|
11985
|
+
return _map
|
|
11986
|
+
|
|
11987
|
+
result = dict()
|
|
11988
|
+
if self.allow_send is not None:
|
|
11989
|
+
result['AllowSend'] = self.allow_send
|
|
11990
|
+
if self.category_change_paused is not None:
|
|
11991
|
+
result['CategoryChangePaused'] = self.category_change_paused
|
|
11992
|
+
if self.cust_space_id is not None:
|
|
11993
|
+
result['CustSpaceId'] = self.cust_space_id
|
|
11994
|
+
if self.language is not None:
|
|
11995
|
+
result['Language'] = self.language
|
|
11996
|
+
if self.owner_id is not None:
|
|
11997
|
+
result['OwnerId'] = self.owner_id
|
|
11998
|
+
if self.resource_owner_account is not None:
|
|
11999
|
+
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
12000
|
+
if self.resource_owner_id is not None:
|
|
12001
|
+
result['ResourceOwnerId'] = self.resource_owner_id
|
|
12002
|
+
if self.template_code is not None:
|
|
12003
|
+
result['TemplateCode'] = self.template_code
|
|
12004
|
+
if self.template_type is not None:
|
|
12005
|
+
result['TemplateType'] = self.template_type
|
|
12006
|
+
return result
|
|
12007
|
+
|
|
12008
|
+
def from_map(self, m: dict = None):
|
|
12009
|
+
m = m or dict()
|
|
12010
|
+
if m.get('AllowSend') is not None:
|
|
12011
|
+
self.allow_send = m.get('AllowSend')
|
|
12012
|
+
if m.get('CategoryChangePaused') is not None:
|
|
12013
|
+
self.category_change_paused = m.get('CategoryChangePaused')
|
|
12014
|
+
if m.get('CustSpaceId') is not None:
|
|
12015
|
+
self.cust_space_id = m.get('CustSpaceId')
|
|
12016
|
+
if m.get('Language') is not None:
|
|
12017
|
+
self.language = m.get('Language')
|
|
12018
|
+
if m.get('OwnerId') is not None:
|
|
12019
|
+
self.owner_id = m.get('OwnerId')
|
|
12020
|
+
if m.get('ResourceOwnerAccount') is not None:
|
|
12021
|
+
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
12022
|
+
if m.get('ResourceOwnerId') is not None:
|
|
12023
|
+
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
12024
|
+
if m.get('TemplateCode') is not None:
|
|
12025
|
+
self.template_code = m.get('TemplateCode')
|
|
12026
|
+
if m.get('TemplateType') is not None:
|
|
12027
|
+
self.template_type = m.get('TemplateType')
|
|
12028
|
+
return self
|
|
12029
|
+
|
|
12030
|
+
|
|
12031
|
+
class ModifyChatappTemplatePropertiesResponseBody(TeaModel):
|
|
12032
|
+
def __init__(
|
|
12033
|
+
self,
|
|
12034
|
+
access_denied_detail: str = None,
|
|
12035
|
+
code: str = None,
|
|
12036
|
+
message: str = None,
|
|
12037
|
+
model: Dict[str, Any] = None,
|
|
12038
|
+
request_id: str = None,
|
|
12039
|
+
success: bool = None,
|
|
12040
|
+
):
|
|
12041
|
+
self.access_denied_detail = access_denied_detail
|
|
12042
|
+
self.code = code
|
|
12043
|
+
self.message = message
|
|
12044
|
+
self.model = model
|
|
12045
|
+
self.request_id = request_id
|
|
12046
|
+
self.success = success
|
|
12047
|
+
|
|
12048
|
+
def validate(self):
|
|
12049
|
+
pass
|
|
12050
|
+
|
|
12051
|
+
def to_map(self):
|
|
12052
|
+
_map = super().to_map()
|
|
12053
|
+
if _map is not None:
|
|
12054
|
+
return _map
|
|
12055
|
+
|
|
12056
|
+
result = dict()
|
|
12057
|
+
if self.access_denied_detail is not None:
|
|
12058
|
+
result['AccessDeniedDetail'] = self.access_denied_detail
|
|
12059
|
+
if self.code is not None:
|
|
12060
|
+
result['Code'] = self.code
|
|
12061
|
+
if self.message is not None:
|
|
12062
|
+
result['Message'] = self.message
|
|
12063
|
+
if self.model is not None:
|
|
12064
|
+
result['Model'] = self.model
|
|
12065
|
+
if self.request_id is not None:
|
|
12066
|
+
result['RequestId'] = self.request_id
|
|
12067
|
+
if self.success is not None:
|
|
12068
|
+
result['Success'] = self.success
|
|
12069
|
+
return result
|
|
12070
|
+
|
|
12071
|
+
def from_map(self, m: dict = None):
|
|
12072
|
+
m = m or dict()
|
|
12073
|
+
if m.get('AccessDeniedDetail') is not None:
|
|
12074
|
+
self.access_denied_detail = m.get('AccessDeniedDetail')
|
|
12075
|
+
if m.get('Code') is not None:
|
|
12076
|
+
self.code = m.get('Code')
|
|
12077
|
+
if m.get('Message') is not None:
|
|
12078
|
+
self.message = m.get('Message')
|
|
12079
|
+
if m.get('Model') is not None:
|
|
12080
|
+
self.model = m.get('Model')
|
|
12081
|
+
if m.get('RequestId') is not None:
|
|
12082
|
+
self.request_id = m.get('RequestId')
|
|
12083
|
+
if m.get('Success') is not None:
|
|
12084
|
+
self.success = m.get('Success')
|
|
12085
|
+
return self
|
|
12086
|
+
|
|
12087
|
+
|
|
12088
|
+
class ModifyChatappTemplatePropertiesResponse(TeaModel):
|
|
12089
|
+
def __init__(
|
|
12090
|
+
self,
|
|
12091
|
+
headers: Dict[str, str] = None,
|
|
12092
|
+
status_code: int = None,
|
|
12093
|
+
body: ModifyChatappTemplatePropertiesResponseBody = None,
|
|
12094
|
+
):
|
|
12095
|
+
self.headers = headers
|
|
12096
|
+
self.status_code = status_code
|
|
12097
|
+
self.body = body
|
|
12098
|
+
|
|
12099
|
+
def validate(self):
|
|
12100
|
+
if self.body:
|
|
12101
|
+
self.body.validate()
|
|
12102
|
+
|
|
12103
|
+
def to_map(self):
|
|
12104
|
+
_map = super().to_map()
|
|
12105
|
+
if _map is not None:
|
|
12106
|
+
return _map
|
|
12107
|
+
|
|
12108
|
+
result = dict()
|
|
12109
|
+
if self.headers is not None:
|
|
12110
|
+
result['headers'] = self.headers
|
|
12111
|
+
if self.status_code is not None:
|
|
12112
|
+
result['statusCode'] = self.status_code
|
|
12113
|
+
if self.body is not None:
|
|
12114
|
+
result['body'] = self.body.to_map()
|
|
12115
|
+
return result
|
|
12116
|
+
|
|
12117
|
+
def from_map(self, m: dict = None):
|
|
12118
|
+
m = m or dict()
|
|
12119
|
+
if m.get('headers') is not None:
|
|
12120
|
+
self.headers = m.get('headers')
|
|
12121
|
+
if m.get('statusCode') is not None:
|
|
12122
|
+
self.status_code = m.get('statusCode')
|
|
12123
|
+
if m.get('body') is not None:
|
|
12124
|
+
temp_model = ModifyChatappTemplatePropertiesResponseBody()
|
|
12125
|
+
self.body = temp_model.from_map(m['body'])
|
|
12126
|
+
return self
|
|
12127
|
+
|
|
12128
|
+
|
|
11916
12129
|
class ModifyFlowRequest(TeaModel):
|
|
11917
12130
|
def __init__(
|
|
11918
12131
|
self,
|
|
@@ -12651,6 +12864,7 @@ class QueryChatappBindWabaResponseBodyData(TeaModel):
|
|
|
12651
12864
|
business_name: str = None,
|
|
12652
12865
|
currency: str = None,
|
|
12653
12866
|
id: str = None,
|
|
12867
|
+
marketing_message_lite_status: str = None,
|
|
12654
12868
|
message_template_namespace: str = None,
|
|
12655
12869
|
name: str = None,
|
|
12656
12870
|
primary_business_location: str = None,
|
|
@@ -12677,6 +12891,7 @@ class QueryChatappBindWabaResponseBodyData(TeaModel):
|
|
|
12677
12891
|
self.currency = currency
|
|
12678
12892
|
# The ID of the WhatsApp Business account.
|
|
12679
12893
|
self.id = id
|
|
12894
|
+
self.marketing_message_lite_status = marketing_message_lite_status
|
|
12680
12895
|
# The namespace of the message template.
|
|
12681
12896
|
self.message_template_namespace = message_template_namespace
|
|
12682
12897
|
# The name of the WhatsApp Business account.
|
|
@@ -12705,6 +12920,8 @@ class QueryChatappBindWabaResponseBodyData(TeaModel):
|
|
|
12705
12920
|
result['Currency'] = self.currency
|
|
12706
12921
|
if self.id is not None:
|
|
12707
12922
|
result['Id'] = self.id
|
|
12923
|
+
if self.marketing_message_lite_status is not None:
|
|
12924
|
+
result['MarketingMessageLiteStatus'] = self.marketing_message_lite_status
|
|
12708
12925
|
if self.message_template_namespace is not None:
|
|
12709
12926
|
result['MessageTemplateNamespace'] = self.message_template_namespace
|
|
12710
12927
|
if self.name is not None:
|
|
@@ -12727,6 +12944,8 @@ class QueryChatappBindWabaResponseBodyData(TeaModel):
|
|
|
12727
12944
|
self.currency = m.get('Currency')
|
|
12728
12945
|
if m.get('Id') is not None:
|
|
12729
12946
|
self.id = m.get('Id')
|
|
12947
|
+
if m.get('MarketingMessageLiteStatus') is not None:
|
|
12948
|
+
self.marketing_message_lite_status = m.get('MarketingMessageLiteStatus')
|
|
12730
12949
|
if m.get('MessageTemplateNamespace') is not None:
|
|
12731
12950
|
self.message_template_namespace = m.get('MessageTemplateNamespace')
|
|
12732
12951
|
if m.get('Name') is not None:
|
|
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|
|
24
24
|
"""
|
|
25
25
|
setup module for alibabacloud_cams20200606.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 11/06/2025
|
|
28
28
|
|
|
29
29
|
@author: Alibaba Cloud SDK
|
|
30
30
|
"""
|
|
@@ -38,7 +38,7 @@ URL = "https://github.com/aliyun/alibabacloud-python-sdk"
|
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
40
|
"alibabacloud_tea_util>=0.3.13, <1.0.0",
|
|
41
|
-
"alibabacloud_tea_openapi>=0.3.
|
|
41
|
+
"alibabacloud_tea_openapi>=0.3.15, <1.0.0",
|
|
42
42
|
"alibabacloud_openapi_util>=0.2.2, <1.0.0",
|
|
43
43
|
"alibabacloud_endpoint_util>=0.0.3, <1.0.0"
|
|
44
44
|
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.0.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|