tccli 3.0.1029.1__py2.py3-none-any.whl → 3.0.1030.1__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.
- tccli/__init__.py +1 -1
- tccli/examples/ccc/v20200210/CreateCarrierPrivilegeNumberApplicant.md +5 -1
- tccli/examples/ccc/v20200210/DescribeAutoCalloutTask.md +7 -4
- tccli/examples/ccc/v20200210/DescribeAutoCalloutTasks.md +3 -3
- tccli/examples/ccc/v20200210/DescribeCarrierPrivilegeNumberApplicants.md +4 -1
- tccli/examples/ccc/v20200210/DescribeChatMessages.md +27 -2
- tccli/examples/ccc/v20200210/DescribeExtensions.md +2 -2
- tccli/examples/ccc/v20200210/DescribePSTNActiveSessionList.md +2 -2
- tccli/examples/ccc/v20200210/DescribeProtectedTelCdr.md +2 -0
- tccli/examples/ccc/v20200210/DescribeSkillGroupInfoList.md +1 -0
- tccli/examples/ccc/v20200210/DescribeTelCdr.md +2 -0
- tccli/examples/cvm/v20170312/InquiryPriceTerminateInstances.md +2 -1
- tccli/examples/cvm/v20170312/ModifyInstanceDiskType.md +1 -1
- tccli/examples/trp/v20210515/DescribePlanQRCodeScanRecords.md +36 -0
- tccli/services/ams/v20201229/api.json +143 -2
- tccli/services/bi/v20220105/api.json +10 -0
- tccli/services/ccc/v20200210/api.json +88 -74
- tccli/services/ccc/v20200210/examples.json +11 -11
- tccli/services/cdb/v20170320/api.json +45 -24
- tccli/services/cdwdoris/v20211228/api.json +10 -0
- tccli/services/cvm/v20170312/api.json +23 -21
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/dnspod/v20210323/api.json +10 -0
- tccli/services/dts/v20211206/api.json +5 -1
- tccli/services/ess/v20201111/api.json +31 -31
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/faceid/v20180301/api.json +62 -0
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/redis/v20180412/api.json +27 -15
- tccli/services/tag/v20180813/api.json +14 -14
- tccli/services/trp/trp_client.py +69 -16
- tccli/services/trp/v20210515/api.json +207 -22
- tccli/services/trp/v20210515/examples.json +8 -0
- tccli/services/vm/v20210922/api.json +141 -0
- tccli/services/vpc/v20170312/api.json +8 -8
- {tccli-3.0.1029.1.dist-info → tccli-3.0.1030.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1029.1.dist-info → tccli-3.0.1030.1.dist-info}/RECORD +40 -39
- {tccli-3.0.1029.1.dist-info → tccli-3.0.1030.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1029.1.dist-info → tccli-3.0.1030.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1029.1.dist-info → tccli-3.0.1030.1.dist-info}/license_files/LICENSE +0 -0
@@ -1103,6 +1103,16 @@
|
|
1103
1103
|
"type": "list",
|
1104
1104
|
"value_allowed_null": false
|
1105
1105
|
},
|
1106
|
+
{
|
1107
|
+
"disabled": false,
|
1108
|
+
"document": "额外信息",
|
1109
|
+
"example": "无",
|
1110
|
+
"member": "ExtraInfo",
|
1111
|
+
"name": "ExtraInfo",
|
1112
|
+
"output_required": false,
|
1113
|
+
"type": "object",
|
1114
|
+
"value_allowed_null": false
|
1115
|
+
},
|
1106
1116
|
{
|
1107
1117
|
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
1108
1118
|
"member": "string",
|
@@ -2009,6 +2019,22 @@
|
|
2009
2019
|
],
|
2010
2020
|
"usage": "both"
|
2011
2021
|
},
|
2022
|
+
"ExtraInfo": {
|
2023
|
+
"document": "额外的详细信息",
|
2024
|
+
"members": [
|
2025
|
+
{
|
2026
|
+
"disabled": false,
|
2027
|
+
"document": "命中模板的详细信息,仅返回命中的相似度最高的模板信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
2028
|
+
"example": "无",
|
2029
|
+
"member": "RetrievalLivenessExtraInfo",
|
2030
|
+
"name": "RetrievalLivenessExtraInfo",
|
2031
|
+
"output_required": false,
|
2032
|
+
"type": "list",
|
2033
|
+
"value_allowed_null": true
|
2034
|
+
}
|
2035
|
+
],
|
2036
|
+
"usage": "out"
|
2037
|
+
},
|
2012
2038
|
"GetActionSequenceRequest": {
|
2013
2039
|
"document": "GetActionSequence请求参数结构体",
|
2014
2040
|
"members": [
|
@@ -4743,6 +4769,42 @@
|
|
4743
4769
|
],
|
4744
4770
|
"type": "object"
|
4745
4771
|
},
|
4772
|
+
"RetrievalLivenessExtraInfo": {
|
4773
|
+
"document": "模版检索详细信息",
|
4774
|
+
"members": [
|
4775
|
+
{
|
4776
|
+
"disabled": false,
|
4777
|
+
"document": "命中的模版类型,其中Common-公共库;Auto-自动聚类库;Owner-自建模版库\n注意:此字段可能返回 null,表示取不到有效值。",
|
4778
|
+
"example": "Common",
|
4779
|
+
"member": "string",
|
4780
|
+
"name": "HitGroup",
|
4781
|
+
"output_required": false,
|
4782
|
+
"type": "string",
|
4783
|
+
"value_allowed_null": true
|
4784
|
+
},
|
4785
|
+
{
|
4786
|
+
"disabled": false,
|
4787
|
+
"document": "命中的相似度\n注意:此字段可能返回 null,表示取不到有效值。",
|
4788
|
+
"example": "0.98",
|
4789
|
+
"member": "float",
|
4790
|
+
"name": "SimilarityScore",
|
4791
|
+
"output_required": false,
|
4792
|
+
"type": "float",
|
4793
|
+
"value_allowed_null": true
|
4794
|
+
},
|
4795
|
+
{
|
4796
|
+
"disabled": false,
|
4797
|
+
"document": "命中的模板id\n注意:此字段可能返回 null,表示取不到有效值。",
|
4798
|
+
"example": "45",
|
4799
|
+
"member": "string",
|
4800
|
+
"name": "HitTemplate",
|
4801
|
+
"output_required": false,
|
4802
|
+
"type": "string",
|
4803
|
+
"value_allowed_null": true
|
4804
|
+
}
|
4805
|
+
],
|
4806
|
+
"usage": "out"
|
4807
|
+
},
|
4746
4808
|
"RuleIdConfig": {
|
4747
4809
|
"document": "RuleId相关配置",
|
4748
4810
|
"members": [
|
@@ -4890,7 +4890,7 @@
|
|
4890
4890
|
},
|
4891
4891
|
{
|
4892
4892
|
"disabled": false,
|
4893
|
-
"document": "
|
4893
|
+
"document": "节点所属角色。\n- master:主节点。\n- slave:从节点。",
|
4894
4894
|
"example": "master",
|
4895
4895
|
"member": "string",
|
4896
4896
|
"name": "Role",
|
@@ -4909,6 +4909,7 @@
|
|
4909
4909
|
"example": "30",
|
4910
4910
|
"member": "int64",
|
4911
4911
|
"name": "TotalCount",
|
4912
|
+
"output_required": true,
|
4912
4913
|
"type": "int",
|
4913
4914
|
"value_allowed_null": false
|
4914
4915
|
},
|
@@ -4918,6 +4919,7 @@
|
|
4918
4919
|
"example": "无",
|
4919
4920
|
"member": "InstanceSlowlogDetail",
|
4920
4921
|
"name": "InstanceSlowlogDetail",
|
4922
|
+
"output_required": true,
|
4921
4923
|
"type": "list",
|
4922
4924
|
"value_allowed_null": false
|
4923
4925
|
},
|
@@ -8796,7 +8798,7 @@
|
|
8796
8798
|
"example": "无",
|
8797
8799
|
"member": "int64",
|
8798
8800
|
"name": "Type",
|
8799
|
-
"
|
8801
|
+
"output_required": true,
|
8800
8802
|
"type": "int",
|
8801
8803
|
"value_allowed_null": false
|
8802
8804
|
},
|
@@ -8806,7 +8808,7 @@
|
|
8806
8808
|
"example": "无",
|
8807
8809
|
"member": "string",
|
8808
8810
|
"name": "TypeName",
|
8809
|
-
"
|
8811
|
+
"output_required": true,
|
8810
8812
|
"type": "string",
|
8811
8813
|
"value_allowed_null": false
|
8812
8814
|
},
|
@@ -8816,7 +8818,7 @@
|
|
8816
8818
|
"example": "无",
|
8817
8819
|
"member": "int64",
|
8818
8820
|
"name": "MinBuyNum",
|
8819
|
-
"
|
8821
|
+
"output_required": true,
|
8820
8822
|
"type": "int",
|
8821
8823
|
"value_allowed_null": false
|
8822
8824
|
},
|
@@ -8826,7 +8828,7 @@
|
|
8826
8828
|
"example": "无",
|
8827
8829
|
"member": "int64",
|
8828
8830
|
"name": "MaxBuyNum",
|
8829
|
-
"
|
8831
|
+
"output_required": true,
|
8830
8832
|
"type": "int",
|
8831
8833
|
"value_allowed_null": false
|
8832
8834
|
},
|
@@ -8836,7 +8838,7 @@
|
|
8836
8838
|
"example": "无",
|
8837
8839
|
"member": "bool",
|
8838
8840
|
"name": "Saleout",
|
8839
|
-
"
|
8841
|
+
"output_required": true,
|
8840
8842
|
"type": "bool",
|
8841
8843
|
"value_allowed_null": false
|
8842
8844
|
},
|
@@ -8846,7 +8848,7 @@
|
|
8846
8848
|
"example": "无",
|
8847
8849
|
"member": "string",
|
8848
8850
|
"name": "Engine",
|
8849
|
-
"
|
8851
|
+
"output_required": true,
|
8850
8852
|
"type": "string",
|
8851
8853
|
"value_allowed_null": false
|
8852
8854
|
},
|
@@ -8856,7 +8858,7 @@
|
|
8856
8858
|
"example": "无",
|
8857
8859
|
"member": "string",
|
8858
8860
|
"name": "Version",
|
8859
|
-
"
|
8861
|
+
"output_required": true,
|
8860
8862
|
"type": "string",
|
8861
8863
|
"value_allowed_null": false
|
8862
8864
|
},
|
@@ -8866,7 +8868,7 @@
|
|
8866
8868
|
"example": "无",
|
8867
8869
|
"member": "string",
|
8868
8870
|
"name": "TotalSize",
|
8869
|
-
"
|
8871
|
+
"output_required": true,
|
8870
8872
|
"type": "list",
|
8871
8873
|
"value_allowed_null": false
|
8872
8874
|
},
|
@@ -8876,7 +8878,7 @@
|
|
8876
8878
|
"example": "无",
|
8877
8879
|
"member": "string",
|
8878
8880
|
"name": "ShardSize",
|
8879
|
-
"
|
8881
|
+
"output_required": true,
|
8880
8882
|
"type": "list",
|
8881
8883
|
"value_allowed_null": false
|
8882
8884
|
},
|
@@ -8886,7 +8888,7 @@
|
|
8886
8888
|
"example": "无",
|
8887
8889
|
"member": "string",
|
8888
8890
|
"name": "ReplicaNum",
|
8889
|
-
"
|
8891
|
+
"output_required": true,
|
8890
8892
|
"type": "list",
|
8891
8893
|
"value_allowed_null": false
|
8892
8894
|
},
|
@@ -8896,7 +8898,7 @@
|
|
8896
8898
|
"example": "无",
|
8897
8899
|
"member": "string",
|
8898
8900
|
"name": "ShardNum",
|
8899
|
-
"
|
8901
|
+
"output_required": true,
|
8900
8902
|
"type": "list",
|
8901
8903
|
"value_allowed_null": false
|
8902
8904
|
},
|
@@ -8906,19 +8908,29 @@
|
|
8906
8908
|
"example": "无",
|
8907
8909
|
"member": "string",
|
8908
8910
|
"name": "PayMode",
|
8909
|
-
"
|
8911
|
+
"output_required": true,
|
8910
8912
|
"type": "string",
|
8911
8913
|
"value_allowed_null": false
|
8912
8914
|
},
|
8913
8915
|
{
|
8914
8916
|
"disabled": false,
|
8915
|
-
"document": "
|
8917
|
+
"document": "该参数名因存在拼写不规范的问题,建议使用**EnableReplicaReadOnly**参数取代。其含义为是否支持副本只读。\n- true:支持副本只读。\n- false:不支持。",
|
8916
8918
|
"example": "无",
|
8917
8919
|
"member": "bool",
|
8918
8920
|
"name": "EnableRepicaReadOnly",
|
8919
|
-
"
|
8921
|
+
"output_required": true,
|
8920
8922
|
"type": "bool",
|
8921
8923
|
"value_allowed_null": false
|
8924
|
+
},
|
8925
|
+
{
|
8926
|
+
"disabled": false,
|
8927
|
+
"document": "是否支持副本只读。\n- true:支持副本只读。\n- false:不支持。\n注意:此字段可能返回 null,表示取不到有效值。",
|
8928
|
+
"example": "无",
|
8929
|
+
"member": "bool",
|
8930
|
+
"name": "EnableReplicaReadOnly",
|
8931
|
+
"output_required": false,
|
8932
|
+
"type": "bool",
|
8933
|
+
"value_allowed_null": true
|
8922
8934
|
}
|
8923
8935
|
],
|
8924
8936
|
"usage": "out"
|
@@ -465,7 +465,7 @@
|
|
465
465
|
{
|
466
466
|
"disabled": false,
|
467
467
|
"document": "标签键",
|
468
|
-
"example": "",
|
468
|
+
"example": "key",
|
469
469
|
"member": "string",
|
470
470
|
"name": "TagKey",
|
471
471
|
"required": true,
|
@@ -474,7 +474,7 @@
|
|
474
474
|
{
|
475
475
|
"disabled": false,
|
476
476
|
"document": "[ 资源六段式描述 ](https://cloud.tencent.com/document/product/598/10606)",
|
477
|
-
"example": "",
|
477
|
+
"example": "qcs::cvm:ap-beijing:uin/12345:instance/12345",
|
478
478
|
"member": "string",
|
479
479
|
"name": "Resource",
|
480
480
|
"required": true,
|
@@ -1891,7 +1891,7 @@
|
|
1891
1891
|
{
|
1892
1892
|
"disabled": false,
|
1893
1893
|
"document": "资源所属业务名称(资源六段式中的第三段)",
|
1894
|
-
"example": "",
|
1894
|
+
"example": "cvm",
|
1895
1895
|
"member": "string",
|
1896
1896
|
"name": "ServiceType",
|
1897
1897
|
"required": true,
|
@@ -1900,7 +1900,7 @@
|
|
1900
1900
|
{
|
1901
1901
|
"disabled": false,
|
1902
1902
|
"document": "资源ID数组,资源个数最多为50",
|
1903
|
-
"example": "",
|
1903
|
+
"example": "12345",
|
1904
1904
|
"member": "string",
|
1905
1905
|
"name": "ResourceIds",
|
1906
1906
|
"required": true,
|
@@ -1909,7 +1909,7 @@
|
|
1909
1909
|
{
|
1910
1910
|
"disabled": false,
|
1911
1911
|
"document": "需要解绑的标签键",
|
1912
|
-
"example": "",
|
1912
|
+
"example": "key",
|
1913
1913
|
"member": "string",
|
1914
1914
|
"name": "TagKey",
|
1915
1915
|
"required": true,
|
@@ -1918,7 +1918,7 @@
|
|
1918
1918
|
{
|
1919
1919
|
"disabled": false,
|
1920
1920
|
"document": "资源所在地域,不区分地域的资源不需要传入该字段,区分地域的资源必填",
|
1921
|
-
"example": "",
|
1921
|
+
"example": "ap-beijing",
|
1922
1922
|
"member": "string",
|
1923
1923
|
"name": "ResourceRegion",
|
1924
1924
|
"required": false,
|
@@ -1927,7 +1927,7 @@
|
|
1927
1927
|
{
|
1928
1928
|
"disabled": false,
|
1929
1929
|
"document": "资源前缀(资源六段式中最后一段\"/\"前面的部分),cos存储桶不需要传入该字段,其他云资源必填",
|
1930
|
-
"example": "",
|
1930
|
+
"example": "instance",
|
1931
1931
|
"member": "string",
|
1932
1932
|
"name": "ResourcePrefix",
|
1933
1933
|
"required": false,
|
@@ -2322,7 +2322,7 @@
|
|
2322
2322
|
{
|
2323
2323
|
"disabled": false,
|
2324
2324
|
"document": "资源所属业务名称(资源六段式中的第三段)",
|
2325
|
-
"example": "",
|
2325
|
+
"example": "cmv",
|
2326
2326
|
"member": "string",
|
2327
2327
|
"name": "ServiceType",
|
2328
2328
|
"required": true,
|
@@ -2331,7 +2331,7 @@
|
|
2331
2331
|
{
|
2332
2332
|
"disabled": false,
|
2333
2333
|
"document": "资源ID数组,资源个数最多为50",
|
2334
|
-
"example": "",
|
2334
|
+
"example": "12345",
|
2335
2335
|
"member": "string",
|
2336
2336
|
"name": "ResourceIds",
|
2337
2337
|
"required": true,
|
@@ -2340,7 +2340,7 @@
|
|
2340
2340
|
{
|
2341
2341
|
"disabled": false,
|
2342
2342
|
"document": "标签键",
|
2343
|
-
"example": "",
|
2343
|
+
"example": "key",
|
2344
2344
|
"member": "string",
|
2345
2345
|
"name": "TagKey",
|
2346
2346
|
"required": true,
|
@@ -2349,7 +2349,7 @@
|
|
2349
2349
|
{
|
2350
2350
|
"disabled": false,
|
2351
2351
|
"document": "标签值",
|
2352
|
-
"example": "",
|
2352
|
+
"example": "value",
|
2353
2353
|
"member": "string",
|
2354
2354
|
"name": "TagValue",
|
2355
2355
|
"required": true,
|
@@ -2358,7 +2358,7 @@
|
|
2358
2358
|
{
|
2359
2359
|
"disabled": false,
|
2360
2360
|
"document": "资源所在地域,不区分地域的资源不需要传入该字段,区分地域的资源必填",
|
2361
|
-
"example": "",
|
2361
|
+
"example": "ap-beijing",
|
2362
2362
|
"member": "string",
|
2363
2363
|
"name": "ResourceRegion",
|
2364
2364
|
"required": false,
|
@@ -2367,7 +2367,7 @@
|
|
2367
2367
|
{
|
2368
2368
|
"disabled": false,
|
2369
2369
|
"document": "资源前缀(资源六段式中最后一段\"/\"前面的部分),cos存储桶不需要传入该字段,其他云资源必填",
|
2370
|
-
"example": "",
|
2370
|
+
"example": "instance",
|
2371
2371
|
"member": "string",
|
2372
2372
|
"name": "ResourcePrefix",
|
2373
2373
|
"required": false,
|
@@ -2834,7 +2834,7 @@
|
|
2834
2834
|
"example": "无",
|
2835
2835
|
"member": "FailedResource",
|
2836
2836
|
"name": "FailedResources",
|
2837
|
-
"
|
2837
|
+
"output_required": true,
|
2838
2838
|
"type": "list",
|
2839
2839
|
"value_allowed_null": false
|
2840
2840
|
},
|
tccli/services/trp/trp_client.py
CHANGED
@@ -225,7 +225,7 @@ def doAuthorizedTransfer(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
-
def
|
228
|
+
def doDescribeCustomRuleById(args, parsed_globals):
|
229
229
|
g_param = parse_global_arg(parsed_globals)
|
230
230
|
|
231
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -254,11 +254,11 @@ def doModifyProduct(args, parsed_globals):
|
|
254
254
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
-
model = models.
|
257
|
+
model = models.DescribeCustomRuleByIdRequest()
|
258
258
|
model.from_json_string(json.dumps(args))
|
259
259
|
start_time = time.time()
|
260
260
|
while True:
|
261
|
-
rsp = client.
|
261
|
+
rsp = client.DescribeCustomRuleById(model)
|
262
262
|
result = rsp.to_json_string()
|
263
263
|
try:
|
264
264
|
json_obj = json.loads(result)
|
@@ -953,7 +953,7 @@ def doDescribeCodeBatches(args, parsed_globals):
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
954
|
|
955
955
|
|
956
|
-
def
|
956
|
+
def doModifyProduct(args, parsed_globals):
|
957
957
|
g_param = parse_global_arg(parsed_globals)
|
958
958
|
|
959
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -982,11 +982,11 @@ def doDescribeCustomRuleById(args, parsed_globals):
|
|
982
982
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
983
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
984
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
-
model = models.
|
985
|
+
model = models.ModifyProductRequest()
|
986
986
|
model.from_json_string(json.dumps(args))
|
987
987
|
start_time = time.time()
|
988
988
|
while True:
|
989
|
-
rsp = client.
|
989
|
+
rsp = client.ModifyProduct(model)
|
990
990
|
result = rsp.to_json_string()
|
991
991
|
try:
|
992
992
|
json_obj = json.loads(result)
|
@@ -1265,7 +1265,7 @@ def doDeleteProduct(args, parsed_globals):
|
|
1265
1265
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1266
|
|
1267
1267
|
|
1268
|
-
def
|
1268
|
+
def doCreateTraceChain(args, parsed_globals):
|
1269
1269
|
g_param = parse_global_arg(parsed_globals)
|
1270
1270
|
|
1271
1271
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1294,11 +1294,11 @@ def doCreateCodeBatch(args, parsed_globals):
|
|
1294
1294
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
1295
|
client._sdkVersion += ("_CLI_" + __version__)
|
1296
1296
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.
|
1297
|
+
model = models.CreateTraceChainRequest()
|
1298
1298
|
model.from_json_string(json.dumps(args))
|
1299
1299
|
start_time = time.time()
|
1300
1300
|
while True:
|
1301
|
-
rsp = client.
|
1301
|
+
rsp = client.CreateTraceChain(model)
|
1302
1302
|
result = rsp.to_json_string()
|
1303
1303
|
try:
|
1304
1304
|
json_obj = json.loads(result)
|
@@ -1889,7 +1889,7 @@ def doModifyMerchant(args, parsed_globals):
|
|
1889
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1890
|
|
1891
1891
|
|
1892
|
-
def
|
1892
|
+
def doDescribePlanQRCodeScanRecords(args, parsed_globals):
|
1893
1893
|
g_param = parse_global_arg(parsed_globals)
|
1894
1894
|
|
1895
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1918,11 @@ def doCreateTraceChain(args, parsed_globals):
|
|
1918
1918
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1921
|
+
model = models.DescribePlanQRCodeScanRecordsRequest()
|
1922
1922
|
model.from_json_string(json.dumps(args))
|
1923
1923
|
start_time = time.time()
|
1924
1924
|
while True:
|
1925
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribePlanQRCodeScanRecords(model)
|
1926
1926
|
result = rsp.to_json_string()
|
1927
1927
|
try:
|
1928
1928
|
json_obj = json.loads(result)
|
@@ -2565,6 +2565,58 @@ def doModifyCodeBatch(args, parsed_globals):
|
|
2565
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
2566
|
|
2567
2567
|
|
2568
|
+
def doCreateCodeBatch(args, parsed_globals):
|
2569
|
+
g_param = parse_global_arg(parsed_globals)
|
2570
|
+
|
2571
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2572
|
+
cred = credential.CVMRoleCredential()
|
2573
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2574
|
+
cred = credential.STSAssumeRoleCredential(
|
2575
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2576
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
2577
|
+
)
|
2578
|
+
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):
|
2579
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2580
|
+
else:
|
2581
|
+
cred = credential.Credential(
|
2582
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2583
|
+
)
|
2584
|
+
http_profile = HttpProfile(
|
2585
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2586
|
+
reqMethod="POST",
|
2587
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2588
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2589
|
+
)
|
2590
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2591
|
+
if g_param[OptionsDefine.Language]:
|
2592
|
+
profile.language = g_param[OptionsDefine.Language]
|
2593
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2594
|
+
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2596
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
+
model = models.CreateCodeBatchRequest()
|
2598
|
+
model.from_json_string(json.dumps(args))
|
2599
|
+
start_time = time.time()
|
2600
|
+
while True:
|
2601
|
+
rsp = client.CreateCodeBatch(model)
|
2602
|
+
result = rsp.to_json_string()
|
2603
|
+
try:
|
2604
|
+
json_obj = json.loads(result)
|
2605
|
+
except TypeError as e:
|
2606
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2607
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2608
|
+
break
|
2609
|
+
cur_time = time.time()
|
2610
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2611
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2612
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2613
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2614
|
+
else:
|
2615
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2616
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2617
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
|
+
|
2619
|
+
|
2568
2620
|
def doDescribeMerchants(args, parsed_globals):
|
2569
2621
|
g_param = parse_global_arg(parsed_globals)
|
2570
2622
|
|
@@ -2736,7 +2788,7 @@ ACTION_MAP = {
|
|
2736
2788
|
"DescribeCustomRules": doDescribeCustomRules,
|
2737
2789
|
"DescribeTraceCodes": doDescribeTraceCodes,
|
2738
2790
|
"AuthorizedTransfer": doAuthorizedTransfer,
|
2739
|
-
"
|
2791
|
+
"DescribeCustomRuleById": doDescribeCustomRuleById,
|
2740
2792
|
"CreateTraceCodesAsync": doCreateTraceCodesAsync,
|
2741
2793
|
"DescribeCodeBatchById": doDescribeCodeBatchById,
|
2742
2794
|
"ModifyTraceDataRanks": doModifyTraceDataRanks,
|
@@ -2750,13 +2802,13 @@ ACTION_MAP = {
|
|
2750
2802
|
"ModifyCustomRule": doModifyCustomRule,
|
2751
2803
|
"ModifyTraceData": doModifyTraceData,
|
2752
2804
|
"DescribeCodeBatches": doDescribeCodeBatches,
|
2753
|
-
"
|
2805
|
+
"ModifyProduct": doModifyProduct,
|
2754
2806
|
"ModifyCustomRuleStatus": doModifyCustomRuleStatus,
|
2755
2807
|
"DescribeProductById": doDescribeProductById,
|
2756
2808
|
"DescribeTmpToken": doDescribeTmpToken,
|
2757
2809
|
"DescribeAgentCorps": doDescribeAgentCorps,
|
2758
2810
|
"DeleteProduct": doDeleteProduct,
|
2759
|
-
"
|
2811
|
+
"CreateTraceChain": doCreateTraceChain,
|
2760
2812
|
"CreateCustomPack": doCreateCustomPack,
|
2761
2813
|
"DescribeTraceDataById": doDescribeTraceDataById,
|
2762
2814
|
"CreateCorporationOrder": doCreateCorporationOrder,
|
@@ -2768,7 +2820,7 @@ ACTION_MAP = {
|
|
2768
2820
|
"CreateMerchant": doCreateMerchant,
|
2769
2821
|
"DeleteCodeBatch": doDeleteCodeBatch,
|
2770
2822
|
"ModifyMerchant": doModifyMerchant,
|
2771
|
-
"
|
2823
|
+
"DescribePlanQRCodeScanRecords": doDescribePlanQRCodeScanRecords,
|
2772
2824
|
"EffectFeedback": doEffectFeedback,
|
2773
2825
|
"DescribeCodePackUrl": doDescribeCodePackUrl,
|
2774
2826
|
"CreateTraceCodes": doCreateTraceCodes,
|
@@ -2781,6 +2833,7 @@ ACTION_MAP = {
|
|
2781
2833
|
"DescribeCodePacks": doDescribeCodePacks,
|
2782
2834
|
"DescribeScanLogs": doDescribeScanLogs,
|
2783
2835
|
"ModifyCodeBatch": doModifyCodeBatch,
|
2836
|
+
"CreateCodeBatch": doCreateCodeBatch,
|
2784
2837
|
"DescribeMerchants": doDescribeMerchants,
|
2785
2838
|
"DescribeRawScanLogs": doDescribeRawScanLogs,
|
2786
2839
|
"DescribeJobFileUrl": doDescribeJobFileUrl,
|