tccli 3.0.1091.1__py2.py3-none-any.whl → 3.0.1092.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
  3. tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
  4. tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
  5. tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
  6. tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
  7. tccli/examples/es/v20180416/UpdateInstance.md +27 -27
  8. tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
  9. tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
  10. tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +18 -0
  11. tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
  12. tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
  13. tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
  14. tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
  15. tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
  16. tccli/examples/lke/v20231130/CreateApp.md +24 -0
  17. tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
  18. tccli/examples/lke/v20231130/CreateCorp.md +24 -0
  19. tccli/examples/lke/v20231130/CreateQA.md +24 -0
  20. tccli/examples/lke/v20231130/CreateQACate.md +26 -0
  21. tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
  22. tccli/examples/lke/v20231130/CreateRelease.md +21 -0
  23. tccli/examples/lke/v20231130/DeleteApp.md +21 -0
  24. tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
  25. tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
  26. tccli/examples/lke/v20231130/DeleteQA.md +21 -0
  27. tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
  28. tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
  29. tccli/examples/lke/v20231130/DescribeApp.md +29 -0
  30. tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
  31. tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
  32. tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
  33. tccli/examples/lke/v20231130/DescribeQA.md +42 -0
  34. tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
  35. tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
  36. tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
  37. tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
  38. tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
  39. tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
  40. tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
  41. tccli/examples/lke/v20231130/ExportQAList.md +21 -0
  42. tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
  43. tccli/examples/lke/v20231130/GenerateQA.md +21 -0
  44. tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
  45. tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
  46. tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
  47. tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
  48. tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
  49. tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
  50. tccli/examples/lke/v20231130/GetWsToken.md +44 -0
  51. tccli/examples/lke/v20231130/GroupQA.md +44 -0
  52. tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
  53. tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
  54. tccli/examples/lke/v20231130/ListApp.md +36 -0
  55. tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
  56. tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
  57. tccli/examples/lke/v20231130/ListDoc.md +52 -0
  58. tccli/examples/lke/v20231130/ListModel.md +31 -0
  59. tccli/examples/lke/v20231130/ListQA.md +66 -0
  60. tccli/examples/lke/v20231130/ListQACate.md +41 -0
  61. tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
  62. tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
  63. tccli/examples/lke/v20231130/ListRelease.md +36 -0
  64. tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
  65. tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
  66. tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
  67. tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
  68. tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
  69. tccli/examples/lke/v20231130/ModifyApp.md +25 -0
  70. tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
  71. tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
  72. tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
  73. tccli/examples/lke/v20231130/ModifyQA.md +24 -0
  74. tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
  75. tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
  76. tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
  77. tccli/examples/lke/v20231130/ParseDoc.md +25 -0
  78. tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
  79. tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
  80. tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
  81. tccli/examples/lke/v20231130/ResetSession.md +20 -0
  82. tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
  83. tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
  84. tccli/examples/lke/v20231130/RetryRelease.md +21 -0
  85. tccli/examples/lke/v20231130/SaveDoc.md +34 -0
  86. tccli/examples/lke/v20231130/StopDocParse.md +21 -0
  87. tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
  88. tccli/examples/lke/v20231130/VerifyQA.md +27 -0
  89. tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
  90. tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
  91. tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
  92. tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
  93. tccli/services/__init__.py +3 -0
  94. tccli/services/aiart/v20221229/api.json +6 -6
  95. tccli/services/antiddos/v20200309/api.json +10 -0
  96. tccli/services/cdb/cdb_client.py +106 -0
  97. tccli/services/cdb/v20170320/api.json +255 -0
  98. tccli/services/cdb/v20170320/examples.json +16 -0
  99. tccli/services/cdn/v20180606/api.json +4 -4
  100. tccli/services/ckafka/v20190819/api.json +29 -24
  101. tccli/services/domain/domain_client.py +114 -8
  102. tccli/services/domain/v20180808/api.json +174 -1
  103. tccli/services/domain/v20180808/examples.json +22 -0
  104. tccli/services/es/v20180416/api.json +12 -12
  105. tccli/services/es/v20180416/examples.json +21 -21
  106. tccli/services/ess/ess_client.py +149 -43
  107. tccli/services/ess/v20201111/api.json +214 -4
  108. tccli/services/ess/v20201111/examples.json +34 -0
  109. tccli/services/essbasic/v20210526/api.json +2 -2
  110. tccli/services/faceid/v20180301/api.json +10 -1
  111. tccli/services/hunyuan/v20230901/api.json +67 -21
  112. tccli/services/hunyuan/v20230901/examples.json +17 -5
  113. tccli/services/iai/v20180301/api.json +19 -19
  114. tccli/services/lke/__init__.py +4 -0
  115. tccli/services/lke/lke_client.py +4117 -0
  116. tccli/services/lke/v20231130/api.json +9010 -0
  117. tccli/services/lke/v20231130/examples.json +617 -0
  118. tccli/services/mna/v20210119/api.json +249 -29
  119. tccli/services/mna/v20210119/examples.json +7 -1
  120. tccli/services/monitor/v20180724/api.json +30 -10
  121. tccli/services/ocr/v20181119/api.json +5 -0
  122. tccli/services/ocr/v20181119/examples.json +1 -1
  123. tccli/services/redis/v20180412/api.json +1 -1
  124. tccli/services/scf/v20180416/api.json +18 -9
  125. tccli/services/sms/v20210111/api.json +1 -1
  126. tccli/services/sqlserver/sqlserver_client.py +110 -57
  127. tccli/services/sqlserver/v20180328/api.json +63 -0
  128. tccli/services/sqlserver/v20180328/examples.json +8 -0
  129. tccli/services/tione/v20211111/api.json +25 -1
  130. tccli/services/trtc/v20190722/api.json +46 -4
  131. tccli/services/wedata/v20210820/api.json +295 -1437
  132. tccli/services/wedata/v20210820/examples.json +0 -88
  133. tccli/services/wedata/wedata_client.py +33 -616
  134. {tccli-3.0.1091.1.dist-info → tccli-3.0.1092.1.dist-info}/METADATA +2 -2
  135. {tccli-3.0.1091.1.dist-info → tccli-3.0.1092.1.dist-info}/RECORD +138 -52
  136. {tccli-3.0.1091.1.dist-info → tccli-3.0.1092.1.dist-info}/WHEEL +0 -0
  137. {tccli-3.0.1091.1.dist-info → tccli-3.0.1092.1.dist-info}/entry_points.txt +0 -0
  138. {tccli-3.0.1091.1.dist-info → tccli-3.0.1092.1.dist-info}/license_files/LICENSE +0 -0
@@ -4644,7 +4644,7 @@
4644
4644
  {
4645
4645
  "disabled": false,
4646
4646
  "document": "实例Id",
4647
- "example": "",
4647
+ "example": "ckafka-12jncn1nc",
4648
4648
  "member": "string",
4649
4649
  "name": "InstanceId",
4650
4650
  "required": true,
@@ -4653,7 +4653,7 @@
4653
4653
  {
4654
4654
  "disabled": false,
4655
4655
  "document": "用户名称",
4656
- "example": "",
4656
+ "example": "name",
4657
4657
  "member": "string",
4658
4658
  "name": "Name",
4659
4659
  "required": true,
@@ -4662,7 +4662,7 @@
4662
4662
  {
4663
4663
  "disabled": false,
4664
4664
  "document": "用户密码",
4665
- "example": "",
4665
+ "example": "pass",
4666
4666
  "member": "string",
4667
4667
  "name": "Password",
4668
4668
  "required": true,
@@ -4677,9 +4677,10 @@
4677
4677
  {
4678
4678
  "disabled": false,
4679
4679
  "document": "返回的结果",
4680
- "example": "",
4680
+ "example": "",
4681
4681
  "member": "JgwOperateResponse",
4682
4682
  "name": "Result",
4683
+ "output_required": true,
4683
4684
  "type": "object",
4684
4685
  "value_allowed_null": false
4685
4686
  },
@@ -5896,7 +5897,7 @@
5896
5897
  {
5897
5898
  "disabled": false,
5898
5899
  "document": "实例Id",
5899
- "example": "",
5900
+ "example": "ckafka-ocng1iic",
5900
5901
  "member": "string",
5901
5902
  "name": "InstanceId",
5902
5903
  "required": true,
@@ -5905,7 +5906,7 @@
5905
5906
  {
5906
5907
  "disabled": false,
5907
5908
  "document": "用户名称",
5908
- "example": "",
5909
+ "example": "name",
5909
5910
  "member": "string",
5910
5911
  "name": "Name",
5911
5912
  "required": true,
@@ -5920,9 +5921,10 @@
5920
5921
  {
5921
5922
  "disabled": false,
5922
5923
  "document": "返回结果",
5923
- "example": "",
5924
+ "example": "",
5924
5925
  "member": "JgwOperateResponse",
5925
5926
  "name": "Result",
5927
+ "output_required": true,
5926
5928
  "type": "object",
5927
5929
  "value_allowed_null": false
5928
5930
  },
@@ -7524,7 +7526,7 @@
7524
7526
  {
7525
7527
  "disabled": false,
7526
7528
  "document": "(过滤条件)按照实例 ID 过滤",
7527
- "example": "",
7529
+ "example": "ckafka-1nnnc1c",
7528
7530
  "member": "string",
7529
7531
  "name": "InstanceId",
7530
7532
  "required": true,
@@ -7533,7 +7535,7 @@
7533
7535
  {
7534
7536
  "disabled": false,
7535
7537
  "document": "Kafka 消费分组",
7536
- "example": "",
7538
+ "example": "groupname",
7537
7539
  "member": "string",
7538
7540
  "name": "Group",
7539
7541
  "required": true,
@@ -7542,7 +7544,7 @@
7542
7544
  {
7543
7545
  "disabled": false,
7544
7546
  "document": "group 订阅的主题名称数组,如果没有该数组,则表示指定的 group 下所有 topic 信息",
7545
- "example": "",
7547
+ "example": "topicname",
7546
7548
  "member": "string",
7547
7549
  "name": "Topics",
7548
7550
  "required": false,
@@ -7551,7 +7553,7 @@
7551
7553
  {
7552
7554
  "disabled": false,
7553
7555
  "document": "模糊匹配 topicName",
7554
- "example": "",
7556
+ "example": "word",
7555
7557
  "member": "string",
7556
7558
  "name": "SearchWord",
7557
7559
  "required": false,
@@ -7560,7 +7562,7 @@
7560
7562
  {
7561
7563
  "disabled": false,
7562
7564
  "document": "本次查询的偏移位置,默认为0",
7563
- "example": "",
7565
+ "example": "0",
7564
7566
  "member": "int64",
7565
7567
  "name": "Offset",
7566
7568
  "required": false,
@@ -7569,7 +7571,7 @@
7569
7571
  {
7570
7572
  "disabled": false,
7571
7573
  "document": "本次返回结果的最大个数,默认为50,最大值为50",
7572
- "example": "",
7574
+ "example": "20",
7573
7575
  "member": "int64",
7574
7576
  "name": "Limit",
7575
7577
  "required": false,
@@ -7584,9 +7586,10 @@
7584
7586
  {
7585
7587
  "disabled": false,
7586
7588
  "document": "返回的结果对象",
7587
- "example": "",
7589
+ "example": "",
7588
7590
  "member": "GroupOffsetResponse",
7589
7591
  "name": "Result",
7592
+ "output_required": true,
7590
7593
  "type": "object",
7591
7594
  "value_allowed_null": false
7592
7595
  },
@@ -8545,7 +8548,7 @@
8545
8548
  {
8546
8549
  "disabled": false,
8547
8550
  "document": "实例Id",
8548
- "example": "",
8551
+ "example": "ckafka-123nnc1o",
8549
8552
  "member": "string",
8550
8553
  "name": "InstanceId",
8551
8554
  "required": true,
@@ -8554,7 +8557,7 @@
8554
8557
  {
8555
8558
  "disabled": false,
8556
8559
  "document": "按照名称过滤",
8557
- "example": "",
8560
+ "example": "word",
8558
8561
  "member": "string",
8559
8562
  "name": "SearchWord",
8560
8563
  "required": false,
@@ -8563,7 +8566,7 @@
8563
8566
  {
8564
8567
  "disabled": false,
8565
8568
  "document": "偏移",
8566
- "example": "",
8569
+ "example": "0",
8567
8570
  "member": "int64",
8568
8571
  "name": "Offset",
8569
8572
  "required": false,
@@ -8572,7 +8575,7 @@
8572
8575
  {
8573
8576
  "disabled": false,
8574
8577
  "document": "本次返回个数",
8575
- "example": "",
8578
+ "example": "20",
8576
8579
  "member": "int64",
8577
8580
  "name": "Limit",
8578
8581
  "required": false,
@@ -8587,9 +8590,10 @@
8587
8590
  {
8588
8591
  "disabled": false,
8589
8592
  "document": "返回结果列表",
8590
- "example": "",
8593
+ "example": "",
8591
8594
  "member": "UserResponse",
8592
8595
  "name": "Result",
8596
+ "output_required": true,
8593
8597
  "type": "object",
8594
8598
  "value_allowed_null": false
8595
8599
  },
@@ -13198,7 +13202,7 @@
13198
13202
  {
13199
13203
  "disabled": false,
13200
13204
  "document": "实例Id",
13201
- "example": "",
13205
+ "example": "ckafka-1incii1n",
13202
13206
  "member": "string",
13203
13207
  "name": "InstanceId",
13204
13208
  "required": true,
@@ -13207,7 +13211,7 @@
13207
13211
  {
13208
13212
  "disabled": false,
13209
13213
  "document": "用户名称",
13210
- "example": "",
13214
+ "example": "name",
13211
13215
  "member": "string",
13212
13216
  "name": "Name",
13213
13217
  "required": true,
@@ -13216,7 +13220,7 @@
13216
13220
  {
13217
13221
  "disabled": false,
13218
13222
  "document": "用户当前密码",
13219
- "example": "",
13223
+ "example": "old pass",
13220
13224
  "member": "string",
13221
13225
  "name": "Password",
13222
13226
  "required": true,
@@ -13225,7 +13229,7 @@
13225
13229
  {
13226
13230
  "disabled": false,
13227
13231
  "document": "用户新密码",
13228
- "example": "",
13232
+ "example": "new pass",
13229
13233
  "member": "string",
13230
13234
  "name": "PasswordNew",
13231
13235
  "required": true,
@@ -13240,9 +13244,10 @@
13240
13244
  {
13241
13245
  "disabled": false,
13242
13246
  "document": "返回结果",
13243
- "example": "",
13247
+ "example": "",
13244
13248
  "member": "JgwOperateResponse",
13245
13249
  "name": "Result",
13250
+ "output_required": true,
13246
13251
  "type": "object",
13247
13252
  "value_allowed_null": false
13248
13253
  },
@@ -69,7 +69,7 @@ def doSetDomainAutoRenew(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
- def doModifyCustomDnsHost(args, parsed_globals):
72
+ def doDescribeReservedBidInfo(args, parsed_globals):
73
73
  g_param = parse_global_arg(parsed_globals)
74
74
 
75
75
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -98,11 +98,11 @@ def doModifyCustomDnsHost(args, parsed_globals):
98
98
  client = mod.DomainClient(cred, g_param[OptionsDefine.Region], profile)
99
99
  client._sdkVersion += ("_CLI_" + __version__)
100
100
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
- model = models.ModifyCustomDnsHostRequest()
101
+ model = models.DescribeReservedBidInfoRequest()
102
102
  model.from_json_string(json.dumps(args))
103
103
  start_time = time.time()
104
104
  while True:
105
- rsp = client.ModifyCustomDnsHost(model)
105
+ rsp = client.DescribeReservedBidInfo(model)
106
106
  result = rsp.to_json_string()
107
107
  try:
108
108
  json_obj = json.loads(result)
@@ -225,6 +225,58 @@ def doTransferInDomainBatch(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doDeletePhoneEmail(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.DomainClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DeletePhoneEmailRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DeletePhoneEmail(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doDescribePreDomainList(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -277,6 +329,58 @@ def doDescribePreDomainList(args, parsed_globals):
277
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
330
 
279
331
 
332
+ def doBidPreDomains(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.DomainClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.BidPreDomainsRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.BidPreDomains(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
280
384
  def doDescribeCustomDnsHostSet(args, parsed_globals):
281
385
  g_param = parse_global_arg(parsed_globals)
282
386
 
@@ -1941,7 +2045,7 @@ def doDescribeDomainPriceList(args, parsed_globals):
1941
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
2046
 
1943
2047
 
1944
- def doDeletePhoneEmail(args, parsed_globals):
2048
+ def doModifyCustomDnsHost(args, parsed_globals):
1945
2049
  g_param = parse_global_arg(parsed_globals)
1946
2050
 
1947
2051
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1970,11 +2074,11 @@ def doDeletePhoneEmail(args, parsed_globals):
1970
2074
  client = mod.DomainClient(cred, g_param[OptionsDefine.Region], profile)
1971
2075
  client._sdkVersion += ("_CLI_" + __version__)
1972
2076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.DeletePhoneEmailRequest()
2077
+ model = models.ModifyCustomDnsHostRequest()
1974
2078
  model.from_json_string(json.dumps(args))
1975
2079
  start_time = time.time()
1976
2080
  while True:
1977
- rsp = client.DeletePhoneEmail(model)
2081
+ rsp = client.ModifyCustomDnsHost(model)
1978
2082
  result = rsp.to_json_string()
1979
2083
  try:
1980
2084
  json_obj = json.loads(result)
@@ -2005,10 +2109,12 @@ MODELS_MAP = {
2005
2109
 
2006
2110
  ACTION_MAP = {
2007
2111
  "SetDomainAutoRenew": doSetDomainAutoRenew,
2008
- "ModifyCustomDnsHost": doModifyCustomDnsHost,
2112
+ "DescribeReservedBidInfo": doDescribeReservedBidInfo,
2009
2113
  "CheckBatchStatus": doCheckBatchStatus,
2010
2114
  "TransferInDomainBatch": doTransferInDomainBatch,
2115
+ "DeletePhoneEmail": doDeletePhoneEmail,
2011
2116
  "DescribePreDomainList": doDescribePreDomainList,
2117
+ "BidPreDomains": doBidPreDomains,
2012
2118
  "DescribeCustomDnsHostSet": doDescribeCustomDnsHostSet,
2013
2119
  "DescribeDomainNameList": doDescribeDomainNameList,
2014
2120
  "ModifyIntlCustomDnsHost": doModifyIntlCustomDnsHost,
@@ -2041,7 +2147,7 @@ ACTION_MAP = {
2041
2147
  "DescribeDomainSimpleInfo": doDescribeDomainSimpleInfo,
2042
2148
  "SendPhoneEmailCode": doSendPhoneEmailCode,
2043
2149
  "DescribeDomainPriceList": doDescribeDomainPriceList,
2044
- "DeletePhoneEmail": doDeletePhoneEmail,
2150
+ "ModifyCustomDnsHost": doModifyCustomDnsHost,
2045
2151
 
2046
2152
  }
2047
2153
 
@@ -7,6 +7,13 @@
7
7
  "output": "BatchModifyDomainInfoResponse",
8
8
  "status": "online"
9
9
  },
10
+ "BidPreDomains": {
11
+ "document": "用户合作商预释放出价",
12
+ "input": "BidPreDomainsRequest",
13
+ "name": "合作商预释放域名出价",
14
+ "output": "BidPreDomainsResponse",
15
+ "status": "online"
16
+ },
10
17
  "CheckBatchStatus": {
11
18
  "document": "本接口 ( CheckBatchStatus ) 用于查询批量操作日志状态 。",
12
19
  "input": "CheckBatchStatusRequest",
@@ -147,6 +154,13 @@
147
154
  "output": "DescribePreDomainListResponse",
148
155
  "status": "online"
149
156
  },
157
+ "DescribeReservedBidInfo": {
158
+ "document": "接口用于获取合作商竞价过程中竞价详情数据",
159
+ "input": "DescribeReservedBidInfoRequest",
160
+ "name": "合作商查询竞价信息",
161
+ "output": "DescribeReservedBidInfoResponse",
162
+ "status": "online"
163
+ },
150
164
  "DescribeReservedPreDomainInfo": {
151
165
  "document": "合作商用于查询预约预释放状态信息内容",
152
166
  "input": "DescribeReservedPreDomainInfoRequest",
@@ -365,6 +379,42 @@
365
379
  ],
366
380
  "usage": "out"
367
381
  },
382
+ "BidPreDomainsRequest": {
383
+ "document": "BidPreDomains请求参数结构体",
384
+ "members": [
385
+ {
386
+ "disabled": false,
387
+ "document": "业务ID",
388
+ "example": "无",
389
+ "member": "string",
390
+ "name": "BusinessId",
391
+ "required": false,
392
+ "type": "string"
393
+ },
394
+ {
395
+ "disabled": false,
396
+ "document": "价格",
397
+ "example": "无",
398
+ "member": "int64",
399
+ "name": "Price",
400
+ "required": false,
401
+ "type": "int"
402
+ }
403
+ ],
404
+ "type": "object"
405
+ },
406
+ "BidPreDomainsResponse": {
407
+ "document": "BidPreDomains返回参数结构体",
408
+ "members": [
409
+ {
410
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
411
+ "member": "string",
412
+ "name": "RequestId",
413
+ "type": "string"
414
+ }
415
+ ],
416
+ "type": "object"
417
+ },
368
418
  "CertificateInfo": {
369
419
  "document": "认证资料信息",
370
420
  "members": [
@@ -1821,6 +1871,73 @@
1821
1871
  ],
1822
1872
  "type": "object"
1823
1873
  },
1874
+ "DescribeReservedBidInfoRequest": {
1875
+ "document": "DescribeReservedBidInfo请求参数结构体",
1876
+ "members": [
1877
+ {
1878
+ "disabled": false,
1879
+ "document": "业务ID",
1880
+ "example": "P0011708628496386771",
1881
+ "member": "string",
1882
+ "name": "BusinessId",
1883
+ "required": true,
1884
+ "type": "string"
1885
+ }
1886
+ ],
1887
+ "type": "object"
1888
+ },
1889
+ "DescribeReservedBidInfoResponse": {
1890
+ "document": "DescribeReservedBidInfo返回参数结构体",
1891
+ "members": [
1892
+ {
1893
+ "disabled": false,
1894
+ "document": "竞价领先价格",
1895
+ "example": "500",
1896
+ "member": "int64",
1897
+ "name": "UpPrice",
1898
+ "output_required": true,
1899
+ "type": "int",
1900
+ "value_allowed_null": false
1901
+ },
1902
+ {
1903
+ "disabled": false,
1904
+ "document": "请求用户当前价格",
1905
+ "example": "100",
1906
+ "member": "int64",
1907
+ "name": "Price",
1908
+ "output_required": true,
1909
+ "type": "int",
1910
+ "value_allowed_null": false
1911
+ },
1912
+ {
1913
+ "disabled": false,
1914
+ "document": "领先用户",
1915
+ "example": "无",
1916
+ "member": "string",
1917
+ "name": "UpUser",
1918
+ "output_required": true,
1919
+ "type": "string",
1920
+ "value_allowed_null": false
1921
+ },
1922
+ {
1923
+ "disabled": false,
1924
+ "document": "竞价详细数据\n注意:此字段可能返回 null,表示取不到有效值。",
1925
+ "example": "无",
1926
+ "member": "ReserveBidInfo",
1927
+ "name": "BidList",
1928
+ "output_required": false,
1929
+ "type": "list",
1930
+ "value_allowed_null": true
1931
+ },
1932
+ {
1933
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1934
+ "member": "string",
1935
+ "name": "RequestId",
1936
+ "type": "string"
1937
+ }
1938
+ ],
1939
+ "type": "object"
1940
+ },
1824
1941
  "DescribeReservedPreDomainInfoRequest": {
1825
1942
  "document": "DescribeReservedPreDomainInfo请求参数结构体",
1826
1943
  "members": [
@@ -1835,7 +1952,7 @@
1835
1952
  },
1836
1953
  {
1837
1954
  "disabled": false,
1838
- "document": "状态,用于筛选,可不填写(1. 预定成功 2. 预定失败(预定失败Reason字段将会被赋值)3. 域名交割中 4. 域名交割完成)",
1955
+ "document": "状态,用于筛选,可不填写(1. 成功 2. 失败(失败Reason字段将会被赋值)3. 域名交割中 4. 域名交割完成 5. 预约 6. 竞价)",
1839
1956
  "example": "无",
1840
1957
  "member": "int64",
1841
1958
  "name": "ReservedStatus",
@@ -3100,6 +3217,52 @@
3100
3217
  ],
3101
3218
  "type": "object"
3102
3219
  },
3220
+ "ReserveBidInfo": {
3221
+ "document": "合作商竞价详情",
3222
+ "members": [
3223
+ {
3224
+ "disabled": false,
3225
+ "document": "用户\n注意:此字段可能返回 null,表示取不到有效值。",
3226
+ "example": "无",
3227
+ "member": "string",
3228
+ "name": "User",
3229
+ "output_required": false,
3230
+ "type": "string",
3231
+ "value_allowed_null": true
3232
+ },
3233
+ {
3234
+ "disabled": false,
3235
+ "document": "出价\n注意:此字段可能返回 null,表示取不到有效值。",
3236
+ "example": "无",
3237
+ "member": "int64",
3238
+ "name": "Price",
3239
+ "output_required": false,
3240
+ "type": "int",
3241
+ "value_allowed_null": true
3242
+ },
3243
+ {
3244
+ "disabled": false,
3245
+ "document": "出价时间\n注意:此字段可能返回 null,表示取不到有效值。",
3246
+ "example": "无",
3247
+ "member": "string",
3248
+ "name": "BidTime",
3249
+ "output_required": false,
3250
+ "type": "string",
3251
+ "value_allowed_null": true
3252
+ },
3253
+ {
3254
+ "disabled": false,
3255
+ "document": "当前状态\n注意:此字段可能返回 null,表示取不到有效值。",
3256
+ "example": "无",
3257
+ "member": "string",
3258
+ "name": "BidStatus",
3259
+ "output_required": false,
3260
+ "type": "string",
3261
+ "value_allowed_null": true
3262
+ }
3263
+ ],
3264
+ "usage": "out"
3265
+ },
3103
3266
  "ReservedDomainInfo": {
3104
3267
  "document": "查询预释放预约列表域名详情",
3105
3268
  "members": [
@@ -3238,6 +3401,16 @@
3238
3401
  "output_required": false,
3239
3402
  "type": "string",
3240
3403
  "value_allowed_null": true
3404
+ },
3405
+ {
3406
+ "disabled": false,
3407
+ "document": "业务ID\n注意:此字段可能返回 null,表示取不到有效值。",
3408
+ "example": "R0011708628496445392",
3409
+ "member": "string",
3410
+ "name": "BusinessId",
3411
+ "output_required": false,
3412
+ "type": "string",
3413
+ "value_allowed_null": true
3241
3414
  }
3242
3415
  ],
3243
3416
  "usage": "out"
@@ -8,6 +8,14 @@
8
8
  "title": "批量域名信息修改"
9
9
  }
10
10
  ],
11
+ "BidPreDomains": [
12
+ {
13
+ "document": "成功示例",
14
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BidPreDomains\n<公共请求参数>\n\n{\n \"BusinessId\": \"P0011712825815133328\",\n \"Price\": 5000\n}",
15
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ec312415-2f61-4a18-987d-d69e55a2847c\"\n }\n}",
16
+ "title": "请求成功示例"
17
+ }
18
+ ],
11
19
  "CheckBatchStatus": [
12
20
  {
13
21
  "document": "",
@@ -168,12 +176,26 @@
168
176
  "title": "成功示例"
169
177
  }
170
178
  ],
179
+ "DescribeReservedBidInfo": [
180
+ {
181
+ "document": "成功示例",
182
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedBidInfo\n<公共请求参数>\n\n{\n \"BusinessId\": \"P0011712825815133328\"\n}",
183
+ "output": "{\n \"Response\": {\n \"BidList\": [\n {\n \"BidStatus\": \"up\",\n \"BidTime\": \"17:19:30\",\n \"Price\": 210,\n \"User\": \"roy***@tencent.com\"\n },\n {\n \"BidStatus\": \"down\",\n \"BidTime\": \"17:18:45\",\n \"Price\": 200,\n \"User\": \"155***@qq.com\"\n },\n {\n \"BidStatus\": \"down\",\n \"BidTime\": \"17:15:24\",\n \"Price\": 190,\n \"User\": \"roy***@tencent.com\"\n }\n ],\n \"Price\": 200,\n \"RequestId\": \"43271422-1fe8-4af5-99ff-afc140ea35b2\",\n \"UpPrice\": 210,\n \"UpUser\": \"roy***@tencent.com\"\n }\n}",
184
+ "title": "请求成功示例"
185
+ }
186
+ ],
171
187
  "DescribeReservedPreDomainInfo": [
172
188
  {
173
189
  "document": "",
174
190
  "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"abc\"\n ],\n \"ReservedStatus\": 0,\n \"ReservedTimeSort\": \"abc\",\n \"Limit\": 0,\n \"Offset\": 0\n}",
175
191
  "output": "{\n \"Response\": {\n \"ReservedPreDomainInfoList\": [\n {\n \"Domain\": \"abc\",\n \"ReservedStatus\": 0,\n \"FailReason\": \"abc\",\n \"ChangeOwnerTime\": \"abc\",\n \"RegTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ResourceId\": \"abc\"\n }\n ],\n \"Total\": 0,\n \"RequestId\": \"abc\"\n }\n}",
176
192
  "title": "成功示例"
193
+ },
194
+ {
195
+ "document": "请求成功获取参数示例",
196
+ "input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{}",
197
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a6bd9e77-517f-4fd8-9ee9-f7042b7ae847\",\n \"ReservedPreDomainInfoList\": [\n {\n \"BusinessId\": \"P0011712734968570466\",\n \"ChangeOwnerTime\": \"2024-03-15 08:40:34\",\n \"Domain\": \"fdasfasfdsaf.com\",\n \"ExpireTime\": \"2024-01-14 08:40:34\",\n \"FailReason\": \"\",\n \"RegTime\": \"2020-01-14 08:40:34\",\n \"ReservedStatus\": 6,\n \"ResourceId\": \"R0011712734968672830\"\n }\n ],\n \"Total\": 1\n }\n}",
198
+ "title": "请求成功示例"
177
199
  }
178
200
  ],
179
201
  "DescribeTemplate": [