tencentcloud-sdk-python-intl-en 3.0.1130__py2.py3-none-any.whl → 3.0.1132__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1130'
16
+ __version__ = '3.0.1132'
@@ -20,6 +20,24 @@ AUTHFAILURE = 'AuthFailure'
20
20
  # Operation failed.
21
21
  FAILEDOPERATION = 'FailedOperation'
22
22
 
23
+ # The account is a group account and cannot be bound as a sub-customer.
24
+ FAILEDOPERATION_BINDORGANIZATIONACCOUNT = 'FailedOperation.BindOrganizationAccount'
25
+
26
+ # The sub-customer balance is less than zero.
27
+ FAILEDOPERATION_CLIENTBALANCEISLESSOREQUALZERO = 'FailedOperation.ClientBalanceIsLessOrEqualZero'
28
+
29
+ # The sub-customer has purchased an sp package.
30
+ FAILEDOPERATION_CLIENTBUYSP = 'FailedOperation.ClientBuySP'
31
+
32
+ # The sub-customer has created a shared unit.
33
+ FAILEDOPERATION_CLIENTCREATESHAREUNIT = 'FailedOperation.ClientCreateShareUnit'
34
+
35
+ # The sub-customer has joined a shared unit.
36
+ FAILEDOPERATION_CLIENTJOINSHAREUNIT = 'FailedOperation.ClientJoinShareUnit'
37
+
38
+ # The user has not applied to become a sub-customer.
39
+ FAILEDOPERATION_CLIENTNOTAPPLY = 'FailedOperation.ClientNotApply'
40
+
23
41
  #
24
42
  FAILEDOPERATION_EXCEEDMAXBINDCOUNT = 'FailedOperation.ExceedMaxBindCount'
25
43
 
@@ -38,12 +56,18 @@ FAILEDOPERATION_SENDVERIFYCODELIMIT = 'FailedOperation.SendVerifyCodeLimit'
38
56
  # The interval for sending SMS verification codes should be greater than 60 seconds. Please try again later.
39
57
  FAILEDOPERATION_SENDVERIFYCODELIMIT60 = 'FailedOperation.SendVerifyCodeLimit60'
40
58
 
59
+ # Tencent cloud ka account cannot become a sub-customer.
60
+ FAILEDOPERATION_UINALREADYKA = 'FailedOperation.UinAlreadyKA'
61
+
41
62
  # Invalid UIN
42
63
  FAILEDOPERATION_UININVALID = 'FailedOperation.UinInvalid'
43
64
 
44
65
  # UIN is not a reseller.
45
66
  FAILEDOPERATION_UINNOTAGENT = 'FailedOperation.UinNotAgent'
46
67
 
68
+ # UIN is a non-reseller (master reseller, reseller, sub-reseller) account.
69
+ FAILEDOPERATION_UINNOTRESELLER = 'FailedOperation.UinNotReseller'
70
+
47
71
  # Incorrect verification code.
48
72
  FAILEDOPERATION_VERIFICATIONCODEILLEGAL = 'FailedOperation.VerificationCodeIllegal'
49
73
 
@@ -119,6 +143,12 @@ INVALIDPARAMETERVALUE_PASSWORDEMPTY = 'InvalidParameterValue.PasswordEmpty'
119
143
  # InvalidParameterValue.PhoneNumEmpty
120
144
  INVALIDPARAMETERVALUE_PHONENUMEMPTY = 'InvalidParameterValue.PhoneNumEmpty'
121
145
 
146
+ # The user has become a sub-customer of another reseller.
147
+ INVALIDPARAMETERVALUE_UINALREADYCLIENT = 'InvalidParameterValue.UinAlreadyClient'
148
+
149
+ # The user is a sub-account.
150
+ INVALIDPARAMETERVALUE_UINISSUBACCOUNT = 'InvalidParameterValue.UinIsSubAccount'
151
+
122
152
  # Invalid UinList. Array length value: 1-50.
123
153
  INVALIDPARAMETERVALUE_UINLIST = 'InvalidParameterValue.UinList'
124
154
 
@@ -76,6 +76,31 @@ class IntlpartnersmgtClient(AbstractClient):
76
76
  raise TencentCloudSDKException(type(e).__name__, str(e))
77
77
 
78
78
 
79
+ def ApproveClientApply(self, request):
80
+ """Description: This API is used by resellers to review applications to become sub-customers. Note: This API is used to apply for the allowlist. If needed, please contact your business representative.
81
+
82
+ Callable roles: Reseller, Distributer, Second-level reseller
83
+
84
+ :param request: Request instance for ApproveClientApply.
85
+ :type request: :class:`tencentcloud.intlpartnersmgt.v20220928.models.ApproveClientApplyRequest`
86
+ :rtype: :class:`tencentcloud.intlpartnersmgt.v20220928.models.ApproveClientApplyResponse`
87
+
88
+ """
89
+ try:
90
+ params = request._serialize()
91
+ headers = request.headers
92
+ body = self.call("ApproveClientApply", params, headers=headers)
93
+ response = json.loads(body)
94
+ model = models.ApproveClientApplyResponse()
95
+ model._deserialize(response["Response"])
96
+ return model
97
+ except Exception as e:
98
+ if isinstance(e, TencentCloudSDKException):
99
+ raise
100
+ else:
101
+ raise TencentCloudSDKException(type(e).__name__, str(e))
102
+
103
+
79
104
  def CreateAccount(self, request):
80
105
  """This API is used to create Tencent Cloud customer accounts for distributor/second-level resellers.After the account is created, it will be automatically bound to the partner account.Note:
81
106
  1. Create a Tencent Cloud account. The entered email address and mobile phone number need to be verified by the partner for validity.
@@ -616,6 +641,31 @@ class IntlpartnersmgtClient(AbstractClient):
616
641
  raise TencentCloudSDKException(type(e).__name__, str(e))
617
642
 
618
643
 
644
+ def QueryPendingClientsV2(self, request):
645
+ """Description: This API is used by resellers to query the list of sub-customers pending review. Note: This API is used to apply for the allowlist. If needed, please contact your business representative.
646
+
647
+ Callable roles: Reseller, Distributer, Second-level reseller
648
+
649
+ :param request: Request instance for QueryPendingClientsV2.
650
+ :type request: :class:`tencentcloud.intlpartnersmgt.v20220928.models.QueryPendingClientsV2Request`
651
+ :rtype: :class:`tencentcloud.intlpartnersmgt.v20220928.models.QueryPendingClientsV2Response`
652
+
653
+ """
654
+ try:
655
+ params = request._serialize()
656
+ headers = request.headers
657
+ body = self.call("QueryPendingClientsV2", params, headers=headers)
658
+ response = json.loads(body)
659
+ model = models.QueryPendingClientsV2Response()
660
+ model._deserialize(response["Response"])
661
+ return model
662
+ except Exception as e:
663
+ if isinstance(e, TencentCloudSDKException):
664
+ raise
665
+ else:
666
+ raise TencentCloudSDKException(type(e).__name__, str(e))
667
+
668
+
619
669
  def QueryPolicyProductListByCode(self, request):
620
670
  """This API is used to query the product list information within the specified policy range. To call this API, contact your account manager to add it to the allowlist.
621
671
 
@@ -342,6 +342,100 @@ class AllocateCustomerCreditResponse(AbstractModel):
342
342
  self._RequestId = params.get("RequestId")
343
343
 
344
344
 
345
+ class ApproveClientApplyRequest(AbstractModel):
346
+ """ApproveClientApply request structure.
347
+
348
+ """
349
+
350
+ def __init__(self):
351
+ r"""
352
+ :param _ClientUin: Sub-customer uin.
353
+ :type ClientUin: int
354
+ :param _ApproveType: Approval type. only supports pass and reject.
355
+ :type ApproveType: str
356
+ :param _RejectReason: Reason for rejection. required only when approvetype is reject.
357
+ :type RejectReason: str
358
+ """
359
+ self._ClientUin = None
360
+ self._ApproveType = None
361
+ self._RejectReason = None
362
+
363
+ @property
364
+ def ClientUin(self):
365
+ """Sub-customer uin.
366
+ :rtype: int
367
+ """
368
+ return self._ClientUin
369
+
370
+ @ClientUin.setter
371
+ def ClientUin(self, ClientUin):
372
+ self._ClientUin = ClientUin
373
+
374
+ @property
375
+ def ApproveType(self):
376
+ """Approval type. only supports pass and reject.
377
+ :rtype: str
378
+ """
379
+ return self._ApproveType
380
+
381
+ @ApproveType.setter
382
+ def ApproveType(self, ApproveType):
383
+ self._ApproveType = ApproveType
384
+
385
+ @property
386
+ def RejectReason(self):
387
+ """Reason for rejection. required only when approvetype is reject.
388
+ :rtype: str
389
+ """
390
+ return self._RejectReason
391
+
392
+ @RejectReason.setter
393
+ def RejectReason(self, RejectReason):
394
+ self._RejectReason = RejectReason
395
+
396
+
397
+ def _deserialize(self, params):
398
+ self._ClientUin = params.get("ClientUin")
399
+ self._ApproveType = params.get("ApproveType")
400
+ self._RejectReason = params.get("RejectReason")
401
+ memeber_set = set(params.keys())
402
+ for name, value in vars(self).items():
403
+ property_name = name[1:]
404
+ if property_name in memeber_set:
405
+ memeber_set.remove(property_name)
406
+ if len(memeber_set) > 0:
407
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
408
+
409
+
410
+
411
+ class ApproveClientApplyResponse(AbstractModel):
412
+ """ApproveClientApply response structure.
413
+
414
+ """
415
+
416
+ def __init__(self):
417
+ r"""
418
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
419
+ :type RequestId: str
420
+ """
421
+ self._RequestId = None
422
+
423
+ @property
424
+ def RequestId(self):
425
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
426
+ :rtype: str
427
+ """
428
+ return self._RequestId
429
+
430
+ @RequestId.setter
431
+ def RequestId(self, RequestId):
432
+ self._RequestId = RequestId
433
+
434
+
435
+ def _deserialize(self, params):
436
+ self._RequestId = params.get("RequestId")
437
+
438
+
345
439
  class BillDetailData(AbstractModel):
346
440
  """Customer bill details
347
441
 
@@ -5340,6 +5434,246 @@ class QueryPartnerCreditResponse(AbstractModel):
5340
5434
  self._RequestId = params.get("RequestId")
5341
5435
 
5342
5436
 
5437
+ class QueryPendingClientsV2Request(AbstractModel):
5438
+ """QueryPendingClientsV2 request structure.
5439
+
5440
+ """
5441
+
5442
+ def __init__(self):
5443
+ r"""
5444
+ :param _Page: Page number, starting from 1.
5445
+ :type Page: int
5446
+ :param _PageSize: Quantity. page size [1-100].
5447
+ :type PageSize: int
5448
+ """
5449
+ self._Page = None
5450
+ self._PageSize = None
5451
+
5452
+ @property
5453
+ def Page(self):
5454
+ """Page number, starting from 1.
5455
+ :rtype: int
5456
+ """
5457
+ return self._Page
5458
+
5459
+ @Page.setter
5460
+ def Page(self, Page):
5461
+ self._Page = Page
5462
+
5463
+ @property
5464
+ def PageSize(self):
5465
+ """Quantity. page size [1-100].
5466
+ :rtype: int
5467
+ """
5468
+ return self._PageSize
5469
+
5470
+ @PageSize.setter
5471
+ def PageSize(self, PageSize):
5472
+ self._PageSize = PageSize
5473
+
5474
+
5475
+ def _deserialize(self, params):
5476
+ self._Page = params.get("Page")
5477
+ self._PageSize = params.get("PageSize")
5478
+ memeber_set = set(params.keys())
5479
+ for name, value in vars(self).items():
5480
+ property_name = name[1:]
5481
+ if property_name in memeber_set:
5482
+ memeber_set.remove(property_name)
5483
+ if len(memeber_set) > 0:
5484
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5485
+
5486
+
5487
+
5488
+ class QueryPendingClientsV2Response(AbstractModel):
5489
+ """QueryPendingClientsV2 response structure.
5490
+
5491
+ """
5492
+
5493
+ def __init__(self):
5494
+ r"""
5495
+ :param _Data: Details of customers in application.
5496
+ :type Data: list of QueryPendingCustomersItem
5497
+ :param _Total: Total number of customers in application.
5498
+ :type Total: int
5499
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
5500
+ :type RequestId: str
5501
+ """
5502
+ self._Data = None
5503
+ self._Total = None
5504
+ self._RequestId = None
5505
+
5506
+ @property
5507
+ def Data(self):
5508
+ """Details of customers in application.
5509
+ :rtype: list of QueryPendingCustomersItem
5510
+ """
5511
+ return self._Data
5512
+
5513
+ @Data.setter
5514
+ def Data(self, Data):
5515
+ self._Data = Data
5516
+
5517
+ @property
5518
+ def Total(self):
5519
+ """Total number of customers in application.
5520
+ :rtype: int
5521
+ """
5522
+ return self._Total
5523
+
5524
+ @Total.setter
5525
+ def Total(self, Total):
5526
+ self._Total = Total
5527
+
5528
+ @property
5529
+ def RequestId(self):
5530
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
5531
+ :rtype: str
5532
+ """
5533
+ return self._RequestId
5534
+
5535
+ @RequestId.setter
5536
+ def RequestId(self, RequestId):
5537
+ self._RequestId = RequestId
5538
+
5539
+
5540
+ def _deserialize(self, params):
5541
+ if params.get("Data") is not None:
5542
+ self._Data = []
5543
+ for item in params.get("Data"):
5544
+ obj = QueryPendingCustomersItem()
5545
+ obj._deserialize(item)
5546
+ self._Data.append(obj)
5547
+ self._Total = params.get("Total")
5548
+ self._RequestId = params.get("RequestId")
5549
+
5550
+
5551
+ class QueryPendingCustomersItem(AbstractModel):
5552
+ """Pending review sub-customer
5553
+
5554
+ """
5555
+
5556
+ def __init__(self):
5557
+ r"""
5558
+ :param _ApplyTime: Application time.
5559
+ :type ApplyTime: str
5560
+ :param _ClientUin: Sub-Account uin.
5561
+ :type ClientUin: int
5562
+ :param _Email: Email.
5563
+ :type Email: str
5564
+ :param _Mobile: Mobile number.
5565
+ :type Mobile: str
5566
+ :param _Name: Name.
5567
+ :type Name: str
5568
+ :param _Status: Approval status.
5569
+ :type Status: str
5570
+ :param _Type: Sub-Customer type.
5571
+ :type Type: str
5572
+ """
5573
+ self._ApplyTime = None
5574
+ self._ClientUin = None
5575
+ self._Email = None
5576
+ self._Mobile = None
5577
+ self._Name = None
5578
+ self._Status = None
5579
+ self._Type = None
5580
+
5581
+ @property
5582
+ def ApplyTime(self):
5583
+ """Application time.
5584
+ :rtype: str
5585
+ """
5586
+ return self._ApplyTime
5587
+
5588
+ @ApplyTime.setter
5589
+ def ApplyTime(self, ApplyTime):
5590
+ self._ApplyTime = ApplyTime
5591
+
5592
+ @property
5593
+ def ClientUin(self):
5594
+ """Sub-Account uin.
5595
+ :rtype: int
5596
+ """
5597
+ return self._ClientUin
5598
+
5599
+ @ClientUin.setter
5600
+ def ClientUin(self, ClientUin):
5601
+ self._ClientUin = ClientUin
5602
+
5603
+ @property
5604
+ def Email(self):
5605
+ """Email.
5606
+ :rtype: str
5607
+ """
5608
+ return self._Email
5609
+
5610
+ @Email.setter
5611
+ def Email(self, Email):
5612
+ self._Email = Email
5613
+
5614
+ @property
5615
+ def Mobile(self):
5616
+ """Mobile number.
5617
+ :rtype: str
5618
+ """
5619
+ return self._Mobile
5620
+
5621
+ @Mobile.setter
5622
+ def Mobile(self, Mobile):
5623
+ self._Mobile = Mobile
5624
+
5625
+ @property
5626
+ def Name(self):
5627
+ """Name.
5628
+ :rtype: str
5629
+ """
5630
+ return self._Name
5631
+
5632
+ @Name.setter
5633
+ def Name(self, Name):
5634
+ self._Name = Name
5635
+
5636
+ @property
5637
+ def Status(self):
5638
+ """Approval status.
5639
+ :rtype: str
5640
+ """
5641
+ return self._Status
5642
+
5643
+ @Status.setter
5644
+ def Status(self, Status):
5645
+ self._Status = Status
5646
+
5647
+ @property
5648
+ def Type(self):
5649
+ """Sub-Customer type.
5650
+ :rtype: str
5651
+ """
5652
+ return self._Type
5653
+
5654
+ @Type.setter
5655
+ def Type(self, Type):
5656
+ self._Type = Type
5657
+
5658
+
5659
+ def _deserialize(self, params):
5660
+ self._ApplyTime = params.get("ApplyTime")
5661
+ self._ClientUin = params.get("ClientUin")
5662
+ self._Email = params.get("Email")
5663
+ self._Mobile = params.get("Mobile")
5664
+ self._Name = params.get("Name")
5665
+ self._Status = params.get("Status")
5666
+ self._Type = params.get("Type")
5667
+ memeber_set = set(params.keys())
5668
+ for name, value in vars(self).items():
5669
+ property_name = name[1:]
5670
+ if property_name in memeber_set:
5671
+ memeber_set.remove(property_name)
5672
+ if len(memeber_set) > 0:
5673
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5674
+
5675
+
5676
+
5343
5677
  class QueryPolicyProductListByCodeRequest(AbstractModel):
5344
5678
  """QueryPolicyProductListByCode request structure.
5345
5679
 
@@ -5810,7 +6144,7 @@ class QueryVoucherListByUinResponse(AbstractModel):
5810
6144
  r"""
5811
6145
  :param _Data: Customer voucher information
5812
6146
  :type Data: list of QueryVoucherListByUinItem
5813
- :param _RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6147
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
5814
6148
  :type RequestId: str
5815
6149
  """
5816
6150
  self._Data = None
@@ -5829,7 +6163,7 @@ class QueryVoucherListByUinResponse(AbstractModel):
5829
6163
 
5830
6164
  @property
5831
6165
  def RequestId(self):
5832
- """The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6166
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
5833
6167
  :rtype: str
5834
6168
  """
5835
6169
  return self._RequestId
File without changes
File without changes