alibabacloud-agency20221216 1.7.0__tar.gz → 1.8.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_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/ChangeLog.md +7 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/PKG-INFO +1 -1
- alibabacloud_agency20221216-1.8.0/alibabacloud_agency20221216/__init__.py +1 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216/client.py +220 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216/models.py +423 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216.egg-info/PKG-INFO +1 -1
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/setup.py +1 -1
- alibabacloud_agency20221216-1.7.0/alibabacloud_agency20221216/__init__.py +0 -1
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/LICENSE +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/MANIFEST.in +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/README-CN.md +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/README.md +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216.egg-info/SOURCES.txt +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216.egg-info/dependency_links.txt +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216.egg-info/requires.txt +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/alibabacloud_agency20221216.egg-info/top_level.txt +0 -0
- {alibabacloud_agency20221216-1.7.0 → alibabacloud_agency20221216-1.8.0}/setup.cfg +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
2025-11-05 Version: 1.7.0
|
|
2
|
+
- Support API ExportReversedDeductionHistory.
|
|
3
|
+
- Support API GetCommissionableProducts.
|
|
4
|
+
- Support API ListExportTasks.
|
|
5
|
+
- Support API QueryReversedDeductionHistory.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
2025-02-20 Version: 1.6.1
|
|
2
9
|
- Update API IssueCouponForCustomer: add param IsUseBenefit.
|
|
3
10
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.8.0'
|
|
@@ -2447,6 +2447,222 @@ class Client(OpenApiClient):
|
|
|
2447
2447
|
runtime = util_models.RuntimeOptions()
|
|
2448
2448
|
return await self.get_monthly_bill_with_options_async(request, runtime)
|
|
2449
2449
|
|
|
2450
|
+
def get_purchase_control_record_with_options(
|
|
2451
|
+
self,
|
|
2452
|
+
request: agency_20221216_models.GetPurchaseControlRecordRequest,
|
|
2453
|
+
runtime: util_models.RuntimeOptions,
|
|
2454
|
+
) -> agency_20221216_models.GetPurchaseControlRecordResponse:
|
|
2455
|
+
"""
|
|
2456
|
+
@summary 下单控制记录查询
|
|
2457
|
+
|
|
2458
|
+
@param request: GetPurchaseControlRecordRequest
|
|
2459
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2460
|
+
@return: GetPurchaseControlRecordResponse
|
|
2461
|
+
"""
|
|
2462
|
+
UtilClient.validate_model(request)
|
|
2463
|
+
query = {}
|
|
2464
|
+
if not UtilClient.is_unset(request.customer_uid):
|
|
2465
|
+
query['CustomerUID'] = request.customer_uid
|
|
2466
|
+
if not UtilClient.is_unset(request.operation_time):
|
|
2467
|
+
query['OperationTime'] = request.operation_time
|
|
2468
|
+
if not UtilClient.is_unset(request.page_no):
|
|
2469
|
+
query['PageNo'] = request.page_no
|
|
2470
|
+
if not UtilClient.is_unset(request.page_size):
|
|
2471
|
+
query['PageSize'] = request.page_size
|
|
2472
|
+
req = open_api_models.OpenApiRequest(
|
|
2473
|
+
query=OpenApiUtilClient.query(query)
|
|
2474
|
+
)
|
|
2475
|
+
params = open_api_models.Params(
|
|
2476
|
+
action='GetPurchaseControlRecord',
|
|
2477
|
+
version='2022-12-16',
|
|
2478
|
+
protocol='HTTPS',
|
|
2479
|
+
pathname='/',
|
|
2480
|
+
method='POST',
|
|
2481
|
+
auth_type='AK',
|
|
2482
|
+
style='RPC',
|
|
2483
|
+
req_body_type='formData',
|
|
2484
|
+
body_type='json'
|
|
2485
|
+
)
|
|
2486
|
+
return TeaCore.from_map(
|
|
2487
|
+
agency_20221216_models.GetPurchaseControlRecordResponse(),
|
|
2488
|
+
self.call_api(params, req, runtime)
|
|
2489
|
+
)
|
|
2490
|
+
|
|
2491
|
+
async def get_purchase_control_record_with_options_async(
|
|
2492
|
+
self,
|
|
2493
|
+
request: agency_20221216_models.GetPurchaseControlRecordRequest,
|
|
2494
|
+
runtime: util_models.RuntimeOptions,
|
|
2495
|
+
) -> agency_20221216_models.GetPurchaseControlRecordResponse:
|
|
2496
|
+
"""
|
|
2497
|
+
@summary 下单控制记录查询
|
|
2498
|
+
|
|
2499
|
+
@param request: GetPurchaseControlRecordRequest
|
|
2500
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2501
|
+
@return: GetPurchaseControlRecordResponse
|
|
2502
|
+
"""
|
|
2503
|
+
UtilClient.validate_model(request)
|
|
2504
|
+
query = {}
|
|
2505
|
+
if not UtilClient.is_unset(request.customer_uid):
|
|
2506
|
+
query['CustomerUID'] = request.customer_uid
|
|
2507
|
+
if not UtilClient.is_unset(request.operation_time):
|
|
2508
|
+
query['OperationTime'] = request.operation_time
|
|
2509
|
+
if not UtilClient.is_unset(request.page_no):
|
|
2510
|
+
query['PageNo'] = request.page_no
|
|
2511
|
+
if not UtilClient.is_unset(request.page_size):
|
|
2512
|
+
query['PageSize'] = request.page_size
|
|
2513
|
+
req = open_api_models.OpenApiRequest(
|
|
2514
|
+
query=OpenApiUtilClient.query(query)
|
|
2515
|
+
)
|
|
2516
|
+
params = open_api_models.Params(
|
|
2517
|
+
action='GetPurchaseControlRecord',
|
|
2518
|
+
version='2022-12-16',
|
|
2519
|
+
protocol='HTTPS',
|
|
2520
|
+
pathname='/',
|
|
2521
|
+
method='POST',
|
|
2522
|
+
auth_type='AK',
|
|
2523
|
+
style='RPC',
|
|
2524
|
+
req_body_type='formData',
|
|
2525
|
+
body_type='json'
|
|
2526
|
+
)
|
|
2527
|
+
return TeaCore.from_map(
|
|
2528
|
+
agency_20221216_models.GetPurchaseControlRecordResponse(),
|
|
2529
|
+
await self.call_api_async(params, req, runtime)
|
|
2530
|
+
)
|
|
2531
|
+
|
|
2532
|
+
def get_purchase_control_record(
|
|
2533
|
+
self,
|
|
2534
|
+
request: agency_20221216_models.GetPurchaseControlRecordRequest,
|
|
2535
|
+
) -> agency_20221216_models.GetPurchaseControlRecordResponse:
|
|
2536
|
+
"""
|
|
2537
|
+
@summary 下单控制记录查询
|
|
2538
|
+
|
|
2539
|
+
@param request: GetPurchaseControlRecordRequest
|
|
2540
|
+
@return: GetPurchaseControlRecordResponse
|
|
2541
|
+
"""
|
|
2542
|
+
runtime = util_models.RuntimeOptions()
|
|
2543
|
+
return self.get_purchase_control_record_with_options(request, runtime)
|
|
2544
|
+
|
|
2545
|
+
async def get_purchase_control_record_async(
|
|
2546
|
+
self,
|
|
2547
|
+
request: agency_20221216_models.GetPurchaseControlRecordRequest,
|
|
2548
|
+
) -> agency_20221216_models.GetPurchaseControlRecordResponse:
|
|
2549
|
+
"""
|
|
2550
|
+
@summary 下单控制记录查询
|
|
2551
|
+
|
|
2552
|
+
@param request: GetPurchaseControlRecordRequest
|
|
2553
|
+
@return: GetPurchaseControlRecordResponse
|
|
2554
|
+
"""
|
|
2555
|
+
runtime = util_models.RuntimeOptions()
|
|
2556
|
+
return await self.get_purchase_control_record_with_options_async(request, runtime)
|
|
2557
|
+
|
|
2558
|
+
def get_shutdown_policy_record_with_options(
|
|
2559
|
+
self,
|
|
2560
|
+
request: agency_20221216_models.GetShutdownPolicyRecordRequest,
|
|
2561
|
+
runtime: util_models.RuntimeOptions,
|
|
2562
|
+
) -> agency_20221216_models.GetShutdownPolicyRecordResponse:
|
|
2563
|
+
"""
|
|
2564
|
+
@summary 查询延停策略修改记录
|
|
2565
|
+
|
|
2566
|
+
@param request: GetShutdownPolicyRecordRequest
|
|
2567
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2568
|
+
@return: GetShutdownPolicyRecordResponse
|
|
2569
|
+
"""
|
|
2570
|
+
UtilClient.validate_model(request)
|
|
2571
|
+
query = {}
|
|
2572
|
+
if not UtilClient.is_unset(request.customer_uid):
|
|
2573
|
+
query['CustomerUID'] = request.customer_uid
|
|
2574
|
+
if not UtilClient.is_unset(request.operation_time):
|
|
2575
|
+
query['OperationTime'] = request.operation_time
|
|
2576
|
+
if not UtilClient.is_unset(request.page_no):
|
|
2577
|
+
query['PageNo'] = request.page_no
|
|
2578
|
+
if not UtilClient.is_unset(request.page_size):
|
|
2579
|
+
query['PageSize'] = request.page_size
|
|
2580
|
+
req = open_api_models.OpenApiRequest(
|
|
2581
|
+
query=OpenApiUtilClient.query(query)
|
|
2582
|
+
)
|
|
2583
|
+
params = open_api_models.Params(
|
|
2584
|
+
action='GetShutdownPolicyRecord',
|
|
2585
|
+
version='2022-12-16',
|
|
2586
|
+
protocol='HTTPS',
|
|
2587
|
+
pathname='/',
|
|
2588
|
+
method='POST',
|
|
2589
|
+
auth_type='AK',
|
|
2590
|
+
style='RPC',
|
|
2591
|
+
req_body_type='formData',
|
|
2592
|
+
body_type='json'
|
|
2593
|
+
)
|
|
2594
|
+
return TeaCore.from_map(
|
|
2595
|
+
agency_20221216_models.GetShutdownPolicyRecordResponse(),
|
|
2596
|
+
self.call_api(params, req, runtime)
|
|
2597
|
+
)
|
|
2598
|
+
|
|
2599
|
+
async def get_shutdown_policy_record_with_options_async(
|
|
2600
|
+
self,
|
|
2601
|
+
request: agency_20221216_models.GetShutdownPolicyRecordRequest,
|
|
2602
|
+
runtime: util_models.RuntimeOptions,
|
|
2603
|
+
) -> agency_20221216_models.GetShutdownPolicyRecordResponse:
|
|
2604
|
+
"""
|
|
2605
|
+
@summary 查询延停策略修改记录
|
|
2606
|
+
|
|
2607
|
+
@param request: GetShutdownPolicyRecordRequest
|
|
2608
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2609
|
+
@return: GetShutdownPolicyRecordResponse
|
|
2610
|
+
"""
|
|
2611
|
+
UtilClient.validate_model(request)
|
|
2612
|
+
query = {}
|
|
2613
|
+
if not UtilClient.is_unset(request.customer_uid):
|
|
2614
|
+
query['CustomerUID'] = request.customer_uid
|
|
2615
|
+
if not UtilClient.is_unset(request.operation_time):
|
|
2616
|
+
query['OperationTime'] = request.operation_time
|
|
2617
|
+
if not UtilClient.is_unset(request.page_no):
|
|
2618
|
+
query['PageNo'] = request.page_no
|
|
2619
|
+
if not UtilClient.is_unset(request.page_size):
|
|
2620
|
+
query['PageSize'] = request.page_size
|
|
2621
|
+
req = open_api_models.OpenApiRequest(
|
|
2622
|
+
query=OpenApiUtilClient.query(query)
|
|
2623
|
+
)
|
|
2624
|
+
params = open_api_models.Params(
|
|
2625
|
+
action='GetShutdownPolicyRecord',
|
|
2626
|
+
version='2022-12-16',
|
|
2627
|
+
protocol='HTTPS',
|
|
2628
|
+
pathname='/',
|
|
2629
|
+
method='POST',
|
|
2630
|
+
auth_type='AK',
|
|
2631
|
+
style='RPC',
|
|
2632
|
+
req_body_type='formData',
|
|
2633
|
+
body_type='json'
|
|
2634
|
+
)
|
|
2635
|
+
return TeaCore.from_map(
|
|
2636
|
+
agency_20221216_models.GetShutdownPolicyRecordResponse(),
|
|
2637
|
+
await self.call_api_async(params, req, runtime)
|
|
2638
|
+
)
|
|
2639
|
+
|
|
2640
|
+
def get_shutdown_policy_record(
|
|
2641
|
+
self,
|
|
2642
|
+
request: agency_20221216_models.GetShutdownPolicyRecordRequest,
|
|
2643
|
+
) -> agency_20221216_models.GetShutdownPolicyRecordResponse:
|
|
2644
|
+
"""
|
|
2645
|
+
@summary 查询延停策略修改记录
|
|
2646
|
+
|
|
2647
|
+
@param request: GetShutdownPolicyRecordRequest
|
|
2648
|
+
@return: GetShutdownPolicyRecordResponse
|
|
2649
|
+
"""
|
|
2650
|
+
runtime = util_models.RuntimeOptions()
|
|
2651
|
+
return self.get_shutdown_policy_record_with_options(request, runtime)
|
|
2652
|
+
|
|
2653
|
+
async def get_shutdown_policy_record_async(
|
|
2654
|
+
self,
|
|
2655
|
+
request: agency_20221216_models.GetShutdownPolicyRecordRequest,
|
|
2656
|
+
) -> agency_20221216_models.GetShutdownPolicyRecordResponse:
|
|
2657
|
+
"""
|
|
2658
|
+
@summary 查询延停策略修改记录
|
|
2659
|
+
|
|
2660
|
+
@param request: GetShutdownPolicyRecordRequest
|
|
2661
|
+
@return: GetShutdownPolicyRecordResponse
|
|
2662
|
+
"""
|
|
2663
|
+
runtime = util_models.RuntimeOptions()
|
|
2664
|
+
return await self.get_shutdown_policy_record_with_options_async(request, runtime)
|
|
2665
|
+
|
|
2450
2666
|
def get_unassociated_customer_with_options(
|
|
2451
2667
|
self,
|
|
2452
2668
|
request: agency_20221216_models.GetUnassociatedCustomerRequest,
|
|
@@ -2963,6 +3179,8 @@ class Client(OpenApiClient):
|
|
|
2963
3179
|
"""
|
|
2964
3180
|
UtilClient.validate_model(request)
|
|
2965
3181
|
query = {}
|
|
3182
|
+
if not UtilClient.is_unset(request.id):
|
|
3183
|
+
query['Id'] = request.id
|
|
2966
3184
|
if not UtilClient.is_unset(request.language):
|
|
2967
3185
|
query['Language'] = request.language
|
|
2968
3186
|
if not UtilClient.is_unset(request.page_no):
|
|
@@ -3004,6 +3222,8 @@ class Client(OpenApiClient):
|
|
|
3004
3222
|
"""
|
|
3005
3223
|
UtilClient.validate_model(request)
|
|
3006
3224
|
query = {}
|
|
3225
|
+
if not UtilClient.is_unset(request.id):
|
|
3226
|
+
query['Id'] = request.id
|
|
3007
3227
|
if not UtilClient.is_unset(request.language):
|
|
3008
3228
|
query['Language'] = request.language
|
|
3009
3229
|
if not UtilClient.is_unset(request.page_no):
|
|
@@ -4810,6 +4810,423 @@ class GetMonthlyBillResponse(TeaModel):
|
|
|
4810
4810
|
return self
|
|
4811
4811
|
|
|
4812
4812
|
|
|
4813
|
+
class GetPurchaseControlRecordRequest(TeaModel):
|
|
4814
|
+
def __init__(
|
|
4815
|
+
self,
|
|
4816
|
+
customer_uid: int = None,
|
|
4817
|
+
operation_time: str = None,
|
|
4818
|
+
page_no: int = None,
|
|
4819
|
+
page_size: int = None,
|
|
4820
|
+
):
|
|
4821
|
+
# This parameter is required.
|
|
4822
|
+
self.customer_uid = customer_uid
|
|
4823
|
+
self.operation_time = operation_time
|
|
4824
|
+
# This parameter is required.
|
|
4825
|
+
self.page_no = page_no
|
|
4826
|
+
# This parameter is required.
|
|
4827
|
+
self.page_size = page_size
|
|
4828
|
+
|
|
4829
|
+
def validate(self):
|
|
4830
|
+
pass
|
|
4831
|
+
|
|
4832
|
+
def to_map(self):
|
|
4833
|
+
_map = super().to_map()
|
|
4834
|
+
if _map is not None:
|
|
4835
|
+
return _map
|
|
4836
|
+
|
|
4837
|
+
result = dict()
|
|
4838
|
+
if self.customer_uid is not None:
|
|
4839
|
+
result['CustomerUID'] = self.customer_uid
|
|
4840
|
+
if self.operation_time is not None:
|
|
4841
|
+
result['OperationTime'] = self.operation_time
|
|
4842
|
+
if self.page_no is not None:
|
|
4843
|
+
result['PageNo'] = self.page_no
|
|
4844
|
+
if self.page_size is not None:
|
|
4845
|
+
result['PageSize'] = self.page_size
|
|
4846
|
+
return result
|
|
4847
|
+
|
|
4848
|
+
def from_map(self, m: dict = None):
|
|
4849
|
+
m = m or dict()
|
|
4850
|
+
if m.get('CustomerUID') is not None:
|
|
4851
|
+
self.customer_uid = m.get('CustomerUID')
|
|
4852
|
+
if m.get('OperationTime') is not None:
|
|
4853
|
+
self.operation_time = m.get('OperationTime')
|
|
4854
|
+
if m.get('PageNo') is not None:
|
|
4855
|
+
self.page_no = m.get('PageNo')
|
|
4856
|
+
if m.get('PageSize') is not None:
|
|
4857
|
+
self.page_size = m.get('PageSize')
|
|
4858
|
+
return self
|
|
4859
|
+
|
|
4860
|
+
|
|
4861
|
+
class GetPurchaseControlRecordResponseBodyData(TeaModel):
|
|
4862
|
+
def __init__(
|
|
4863
|
+
self,
|
|
4864
|
+
changed_type: str = None,
|
|
4865
|
+
operation_path: str = None,
|
|
4866
|
+
operation_time: str = None,
|
|
4867
|
+
operator: str = None,
|
|
4868
|
+
):
|
|
4869
|
+
self.changed_type = changed_type
|
|
4870
|
+
self.operation_path = operation_path
|
|
4871
|
+
self.operation_time = operation_time
|
|
4872
|
+
self.operator = operator
|
|
4873
|
+
|
|
4874
|
+
def validate(self):
|
|
4875
|
+
pass
|
|
4876
|
+
|
|
4877
|
+
def to_map(self):
|
|
4878
|
+
_map = super().to_map()
|
|
4879
|
+
if _map is not None:
|
|
4880
|
+
return _map
|
|
4881
|
+
|
|
4882
|
+
result = dict()
|
|
4883
|
+
if self.changed_type is not None:
|
|
4884
|
+
result['ChangedType'] = self.changed_type
|
|
4885
|
+
if self.operation_path is not None:
|
|
4886
|
+
result['OperationPath'] = self.operation_path
|
|
4887
|
+
if self.operation_time is not None:
|
|
4888
|
+
result['OperationTime'] = self.operation_time
|
|
4889
|
+
if self.operator is not None:
|
|
4890
|
+
result['Operator'] = self.operator
|
|
4891
|
+
return result
|
|
4892
|
+
|
|
4893
|
+
def from_map(self, m: dict = None):
|
|
4894
|
+
m = m or dict()
|
|
4895
|
+
if m.get('ChangedType') is not None:
|
|
4896
|
+
self.changed_type = m.get('ChangedType')
|
|
4897
|
+
if m.get('OperationPath') is not None:
|
|
4898
|
+
self.operation_path = m.get('OperationPath')
|
|
4899
|
+
if m.get('OperationTime') is not None:
|
|
4900
|
+
self.operation_time = m.get('OperationTime')
|
|
4901
|
+
if m.get('Operator') is not None:
|
|
4902
|
+
self.operator = m.get('Operator')
|
|
4903
|
+
return self
|
|
4904
|
+
|
|
4905
|
+
|
|
4906
|
+
class GetPurchaseControlRecordResponseBody(TeaModel):
|
|
4907
|
+
def __init__(
|
|
4908
|
+
self,
|
|
4909
|
+
code: str = None,
|
|
4910
|
+
data: List[GetPurchaseControlRecordResponseBodyData] = None,
|
|
4911
|
+
page_no: int = None,
|
|
4912
|
+
page_size: int = None,
|
|
4913
|
+
request_id: str = None,
|
|
4914
|
+
success: bool = None,
|
|
4915
|
+
total: int = None,
|
|
4916
|
+
):
|
|
4917
|
+
self.code = code
|
|
4918
|
+
self.data = data
|
|
4919
|
+
self.page_no = page_no
|
|
4920
|
+
self.page_size = page_size
|
|
4921
|
+
# RequestId
|
|
4922
|
+
self.request_id = request_id
|
|
4923
|
+
self.success = success
|
|
4924
|
+
self.total = total
|
|
4925
|
+
|
|
4926
|
+
def validate(self):
|
|
4927
|
+
if self.data:
|
|
4928
|
+
for k in self.data:
|
|
4929
|
+
if k:
|
|
4930
|
+
k.validate()
|
|
4931
|
+
|
|
4932
|
+
def to_map(self):
|
|
4933
|
+
_map = super().to_map()
|
|
4934
|
+
if _map is not None:
|
|
4935
|
+
return _map
|
|
4936
|
+
|
|
4937
|
+
result = dict()
|
|
4938
|
+
if self.code is not None:
|
|
4939
|
+
result['Code'] = self.code
|
|
4940
|
+
result['Data'] = []
|
|
4941
|
+
if self.data is not None:
|
|
4942
|
+
for k in self.data:
|
|
4943
|
+
result['Data'].append(k.to_map() if k else None)
|
|
4944
|
+
if self.page_no is not None:
|
|
4945
|
+
result['PageNo'] = self.page_no
|
|
4946
|
+
if self.page_size is not None:
|
|
4947
|
+
result['PageSize'] = self.page_size
|
|
4948
|
+
if self.request_id is not None:
|
|
4949
|
+
result['RequestId'] = self.request_id
|
|
4950
|
+
if self.success is not None:
|
|
4951
|
+
result['Success'] = self.success
|
|
4952
|
+
if self.total is not None:
|
|
4953
|
+
result['Total'] = self.total
|
|
4954
|
+
return result
|
|
4955
|
+
|
|
4956
|
+
def from_map(self, m: dict = None):
|
|
4957
|
+
m = m or dict()
|
|
4958
|
+
if m.get('Code') is not None:
|
|
4959
|
+
self.code = m.get('Code')
|
|
4960
|
+
self.data = []
|
|
4961
|
+
if m.get('Data') is not None:
|
|
4962
|
+
for k in m.get('Data'):
|
|
4963
|
+
temp_model = GetPurchaseControlRecordResponseBodyData()
|
|
4964
|
+
self.data.append(temp_model.from_map(k))
|
|
4965
|
+
if m.get('PageNo') is not None:
|
|
4966
|
+
self.page_no = m.get('PageNo')
|
|
4967
|
+
if m.get('PageSize') is not None:
|
|
4968
|
+
self.page_size = m.get('PageSize')
|
|
4969
|
+
if m.get('RequestId') is not None:
|
|
4970
|
+
self.request_id = m.get('RequestId')
|
|
4971
|
+
if m.get('Success') is not None:
|
|
4972
|
+
self.success = m.get('Success')
|
|
4973
|
+
if m.get('Total') is not None:
|
|
4974
|
+
self.total = m.get('Total')
|
|
4975
|
+
return self
|
|
4976
|
+
|
|
4977
|
+
|
|
4978
|
+
class GetPurchaseControlRecordResponse(TeaModel):
|
|
4979
|
+
def __init__(
|
|
4980
|
+
self,
|
|
4981
|
+
headers: Dict[str, str] = None,
|
|
4982
|
+
status_code: int = None,
|
|
4983
|
+
body: GetPurchaseControlRecordResponseBody = None,
|
|
4984
|
+
):
|
|
4985
|
+
self.headers = headers
|
|
4986
|
+
self.status_code = status_code
|
|
4987
|
+
self.body = body
|
|
4988
|
+
|
|
4989
|
+
def validate(self):
|
|
4990
|
+
if self.body:
|
|
4991
|
+
self.body.validate()
|
|
4992
|
+
|
|
4993
|
+
def to_map(self):
|
|
4994
|
+
_map = super().to_map()
|
|
4995
|
+
if _map is not None:
|
|
4996
|
+
return _map
|
|
4997
|
+
|
|
4998
|
+
result = dict()
|
|
4999
|
+
if self.headers is not None:
|
|
5000
|
+
result['headers'] = self.headers
|
|
5001
|
+
if self.status_code is not None:
|
|
5002
|
+
result['statusCode'] = self.status_code
|
|
5003
|
+
if self.body is not None:
|
|
5004
|
+
result['body'] = self.body.to_map()
|
|
5005
|
+
return result
|
|
5006
|
+
|
|
5007
|
+
def from_map(self, m: dict = None):
|
|
5008
|
+
m = m or dict()
|
|
5009
|
+
if m.get('headers') is not None:
|
|
5010
|
+
self.headers = m.get('headers')
|
|
5011
|
+
if m.get('statusCode') is not None:
|
|
5012
|
+
self.status_code = m.get('statusCode')
|
|
5013
|
+
if m.get('body') is not None:
|
|
5014
|
+
temp_model = GetPurchaseControlRecordResponseBody()
|
|
5015
|
+
self.body = temp_model.from_map(m['body'])
|
|
5016
|
+
return self
|
|
5017
|
+
|
|
5018
|
+
|
|
5019
|
+
class GetShutdownPolicyRecordRequest(TeaModel):
|
|
5020
|
+
def __init__(
|
|
5021
|
+
self,
|
|
5022
|
+
customer_uid: int = None,
|
|
5023
|
+
operation_time: str = None,
|
|
5024
|
+
page_no: int = None,
|
|
5025
|
+
page_size: int = None,
|
|
5026
|
+
):
|
|
5027
|
+
# This parameter is required.
|
|
5028
|
+
self.customer_uid = customer_uid
|
|
5029
|
+
self.operation_time = operation_time
|
|
5030
|
+
# This parameter is required.
|
|
5031
|
+
self.page_no = page_no
|
|
5032
|
+
# This parameter is required.
|
|
5033
|
+
self.page_size = page_size
|
|
5034
|
+
|
|
5035
|
+
def validate(self):
|
|
5036
|
+
pass
|
|
5037
|
+
|
|
5038
|
+
def to_map(self):
|
|
5039
|
+
_map = super().to_map()
|
|
5040
|
+
if _map is not None:
|
|
5041
|
+
return _map
|
|
5042
|
+
|
|
5043
|
+
result = dict()
|
|
5044
|
+
if self.customer_uid is not None:
|
|
5045
|
+
result['CustomerUID'] = self.customer_uid
|
|
5046
|
+
if self.operation_time is not None:
|
|
5047
|
+
result['OperationTime'] = self.operation_time
|
|
5048
|
+
if self.page_no is not None:
|
|
5049
|
+
result['PageNo'] = self.page_no
|
|
5050
|
+
if self.page_size is not None:
|
|
5051
|
+
result['PageSize'] = self.page_size
|
|
5052
|
+
return result
|
|
5053
|
+
|
|
5054
|
+
def from_map(self, m: dict = None):
|
|
5055
|
+
m = m or dict()
|
|
5056
|
+
if m.get('CustomerUID') is not None:
|
|
5057
|
+
self.customer_uid = m.get('CustomerUID')
|
|
5058
|
+
if m.get('OperationTime') is not None:
|
|
5059
|
+
self.operation_time = m.get('OperationTime')
|
|
5060
|
+
if m.get('PageNo') is not None:
|
|
5061
|
+
self.page_no = m.get('PageNo')
|
|
5062
|
+
if m.get('PageSize') is not None:
|
|
5063
|
+
self.page_size = m.get('PageSize')
|
|
5064
|
+
return self
|
|
5065
|
+
|
|
5066
|
+
|
|
5067
|
+
class GetShutdownPolicyRecordResponseBodyData(TeaModel):
|
|
5068
|
+
def __init__(
|
|
5069
|
+
self,
|
|
5070
|
+
current_policy: str = None,
|
|
5071
|
+
operation_path: str = None,
|
|
5072
|
+
operation_time: str = None,
|
|
5073
|
+
operator: str = None,
|
|
5074
|
+
previous_policy: str = None,
|
|
5075
|
+
):
|
|
5076
|
+
self.current_policy = current_policy
|
|
5077
|
+
self.operation_path = operation_path
|
|
5078
|
+
self.operation_time = operation_time
|
|
5079
|
+
self.operator = operator
|
|
5080
|
+
self.previous_policy = previous_policy
|
|
5081
|
+
|
|
5082
|
+
def validate(self):
|
|
5083
|
+
pass
|
|
5084
|
+
|
|
5085
|
+
def to_map(self):
|
|
5086
|
+
_map = super().to_map()
|
|
5087
|
+
if _map is not None:
|
|
5088
|
+
return _map
|
|
5089
|
+
|
|
5090
|
+
result = dict()
|
|
5091
|
+
if self.current_policy is not None:
|
|
5092
|
+
result['CurrentPolicy'] = self.current_policy
|
|
5093
|
+
if self.operation_path is not None:
|
|
5094
|
+
result['OperationPath'] = self.operation_path
|
|
5095
|
+
if self.operation_time is not None:
|
|
5096
|
+
result['OperationTime'] = self.operation_time
|
|
5097
|
+
if self.operator is not None:
|
|
5098
|
+
result['Operator'] = self.operator
|
|
5099
|
+
if self.previous_policy is not None:
|
|
5100
|
+
result['PreviousPolicy'] = self.previous_policy
|
|
5101
|
+
return result
|
|
5102
|
+
|
|
5103
|
+
def from_map(self, m: dict = None):
|
|
5104
|
+
m = m or dict()
|
|
5105
|
+
if m.get('CurrentPolicy') is not None:
|
|
5106
|
+
self.current_policy = m.get('CurrentPolicy')
|
|
5107
|
+
if m.get('OperationPath') is not None:
|
|
5108
|
+
self.operation_path = m.get('OperationPath')
|
|
5109
|
+
if m.get('OperationTime') is not None:
|
|
5110
|
+
self.operation_time = m.get('OperationTime')
|
|
5111
|
+
if m.get('Operator') is not None:
|
|
5112
|
+
self.operator = m.get('Operator')
|
|
5113
|
+
if m.get('PreviousPolicy') is not None:
|
|
5114
|
+
self.previous_policy = m.get('PreviousPolicy')
|
|
5115
|
+
return self
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
class GetShutdownPolicyRecordResponseBody(TeaModel):
|
|
5119
|
+
def __init__(
|
|
5120
|
+
self,
|
|
5121
|
+
code: str = None,
|
|
5122
|
+
data: List[GetShutdownPolicyRecordResponseBodyData] = None,
|
|
5123
|
+
page_no: int = None,
|
|
5124
|
+
page_size: int = None,
|
|
5125
|
+
request_id: str = None,
|
|
5126
|
+
success: bool = None,
|
|
5127
|
+
total: int = None,
|
|
5128
|
+
):
|
|
5129
|
+
self.code = code
|
|
5130
|
+
self.data = data
|
|
5131
|
+
self.page_no = page_no
|
|
5132
|
+
self.page_size = page_size
|
|
5133
|
+
self.request_id = request_id
|
|
5134
|
+
self.success = success
|
|
5135
|
+
self.total = total
|
|
5136
|
+
|
|
5137
|
+
def validate(self):
|
|
5138
|
+
if self.data:
|
|
5139
|
+
for k in self.data:
|
|
5140
|
+
if k:
|
|
5141
|
+
k.validate()
|
|
5142
|
+
|
|
5143
|
+
def to_map(self):
|
|
5144
|
+
_map = super().to_map()
|
|
5145
|
+
if _map is not None:
|
|
5146
|
+
return _map
|
|
5147
|
+
|
|
5148
|
+
result = dict()
|
|
5149
|
+
if self.code is not None:
|
|
5150
|
+
result['Code'] = self.code
|
|
5151
|
+
result['Data'] = []
|
|
5152
|
+
if self.data is not None:
|
|
5153
|
+
for k in self.data:
|
|
5154
|
+
result['Data'].append(k.to_map() if k else None)
|
|
5155
|
+
if self.page_no is not None:
|
|
5156
|
+
result['PageNo'] = self.page_no
|
|
5157
|
+
if self.page_size is not None:
|
|
5158
|
+
result['PageSize'] = self.page_size
|
|
5159
|
+
if self.request_id is not None:
|
|
5160
|
+
result['RequestId'] = self.request_id
|
|
5161
|
+
if self.success is not None:
|
|
5162
|
+
result['Success'] = self.success
|
|
5163
|
+
if self.total is not None:
|
|
5164
|
+
result['Total'] = self.total
|
|
5165
|
+
return result
|
|
5166
|
+
|
|
5167
|
+
def from_map(self, m: dict = None):
|
|
5168
|
+
m = m or dict()
|
|
5169
|
+
if m.get('Code') is not None:
|
|
5170
|
+
self.code = m.get('Code')
|
|
5171
|
+
self.data = []
|
|
5172
|
+
if m.get('Data') is not None:
|
|
5173
|
+
for k in m.get('Data'):
|
|
5174
|
+
temp_model = GetShutdownPolicyRecordResponseBodyData()
|
|
5175
|
+
self.data.append(temp_model.from_map(k))
|
|
5176
|
+
if m.get('PageNo') is not None:
|
|
5177
|
+
self.page_no = m.get('PageNo')
|
|
5178
|
+
if m.get('PageSize') is not None:
|
|
5179
|
+
self.page_size = m.get('PageSize')
|
|
5180
|
+
if m.get('RequestId') is not None:
|
|
5181
|
+
self.request_id = m.get('RequestId')
|
|
5182
|
+
if m.get('Success') is not None:
|
|
5183
|
+
self.success = m.get('Success')
|
|
5184
|
+
if m.get('Total') is not None:
|
|
5185
|
+
self.total = m.get('Total')
|
|
5186
|
+
return self
|
|
5187
|
+
|
|
5188
|
+
|
|
5189
|
+
class GetShutdownPolicyRecordResponse(TeaModel):
|
|
5190
|
+
def __init__(
|
|
5191
|
+
self,
|
|
5192
|
+
headers: Dict[str, str] = None,
|
|
5193
|
+
status_code: int = None,
|
|
5194
|
+
body: GetShutdownPolicyRecordResponseBody = None,
|
|
5195
|
+
):
|
|
5196
|
+
self.headers = headers
|
|
5197
|
+
self.status_code = status_code
|
|
5198
|
+
self.body = body
|
|
5199
|
+
|
|
5200
|
+
def validate(self):
|
|
5201
|
+
if self.body:
|
|
5202
|
+
self.body.validate()
|
|
5203
|
+
|
|
5204
|
+
def to_map(self):
|
|
5205
|
+
_map = super().to_map()
|
|
5206
|
+
if _map is not None:
|
|
5207
|
+
return _map
|
|
5208
|
+
|
|
5209
|
+
result = dict()
|
|
5210
|
+
if self.headers is not None:
|
|
5211
|
+
result['headers'] = self.headers
|
|
5212
|
+
if self.status_code is not None:
|
|
5213
|
+
result['statusCode'] = self.status_code
|
|
5214
|
+
if self.body is not None:
|
|
5215
|
+
result['body'] = self.body.to_map()
|
|
5216
|
+
return result
|
|
5217
|
+
|
|
5218
|
+
def from_map(self, m: dict = None):
|
|
5219
|
+
m = m or dict()
|
|
5220
|
+
if m.get('headers') is not None:
|
|
5221
|
+
self.headers = m.get('headers')
|
|
5222
|
+
if m.get('statusCode') is not None:
|
|
5223
|
+
self.status_code = m.get('statusCode')
|
|
5224
|
+
if m.get('body') is not None:
|
|
5225
|
+
temp_model = GetShutdownPolicyRecordResponseBody()
|
|
5226
|
+
self.body = temp_model.from_map(m['body'])
|
|
5227
|
+
return self
|
|
5228
|
+
|
|
5229
|
+
|
|
4813
5230
|
class GetUnassociatedCustomerRequest(TeaModel):
|
|
4814
5231
|
def __init__(
|
|
4815
5232
|
self,
|
|
@@ -6030,11 +6447,13 @@ class ListCouponUsageResponse(TeaModel):
|
|
|
6030
6447
|
class ListExportTasksRequest(TeaModel):
|
|
6031
6448
|
def __init__(
|
|
6032
6449
|
self,
|
|
6450
|
+
id: int = None,
|
|
6033
6451
|
language: str = None,
|
|
6034
6452
|
page_no: int = None,
|
|
6035
6453
|
page_size: int = None,
|
|
6036
6454
|
scene_code: str = None,
|
|
6037
6455
|
):
|
|
6456
|
+
self.id = id
|
|
6038
6457
|
self.language = language
|
|
6039
6458
|
# This parameter is required.
|
|
6040
6459
|
self.page_no = page_no
|
|
@@ -6052,6 +6471,8 @@ class ListExportTasksRequest(TeaModel):
|
|
|
6052
6471
|
return _map
|
|
6053
6472
|
|
|
6054
6473
|
result = dict()
|
|
6474
|
+
if self.id is not None:
|
|
6475
|
+
result['Id'] = self.id
|
|
6055
6476
|
if self.language is not None:
|
|
6056
6477
|
result['Language'] = self.language
|
|
6057
6478
|
if self.page_no is not None:
|
|
@@ -6064,6 +6485,8 @@ class ListExportTasksRequest(TeaModel):
|
|
|
6064
6485
|
|
|
6065
6486
|
def from_map(self, m: dict = None):
|
|
6066
6487
|
m = m or dict()
|
|
6488
|
+
if m.get('Id') is not None:
|
|
6489
|
+
self.id = m.get('Id')
|
|
6067
6490
|
if m.get('Language') is not None:
|
|
6068
6491
|
self.language = m.get('Language')
|
|
6069
6492
|
if m.get('PageNo') is not None:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.7.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
|
|
File without changes
|