tccli 3.0.1172.1__py2.py3-none-any.whl → 3.0.1173.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/dlc/v20210125/api.json +137 -19
- tccli/services/dlc/v20210125/examples.json +6 -6
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +138 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +11 -0
- tccli/services/goosefs/v20220519/api.json +56 -11
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iss/v20230517/api.json +58 -0
- tccli/services/iss/v20230517/examples.json +13 -7
- tccli/services/mna/mna_client.py +53 -0
- tccli/services/mna/v20210119/api.json +80 -0
- tccli/services/mna/v20210119/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/trtc/v20190722/api.json +22 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/RECORD +21 -21
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1173.1'
|
@@ -4865,6 +4865,7 @@
|
|
4865
4865
|
"example": "name1",
|
4866
4866
|
"member": "string",
|
4867
4867
|
"name": "Name",
|
4868
|
+
"output_required": true,
|
4868
4869
|
"required": false,
|
4869
4870
|
"type": "string",
|
4870
4871
|
"value_allowed_null": true
|
@@ -4875,6 +4876,7 @@
|
|
4875
4876
|
"example": "desc1",
|
4876
4877
|
"member": "string",
|
4877
4878
|
"name": "Description",
|
4879
|
+
"output_required": true,
|
4878
4880
|
"required": false,
|
4879
4881
|
"type": "string",
|
4880
4882
|
"value_allowed_null": true
|
@@ -4885,6 +4887,7 @@
|
|
4885
4887
|
"example": "EXTERNAL",
|
4886
4888
|
"member": "string",
|
4887
4889
|
"name": "Type",
|
4890
|
+
"output_required": true,
|
4888
4891
|
"required": false,
|
4889
4892
|
"type": "string",
|
4890
4893
|
"value_allowed_null": true
|
@@ -4895,6 +4898,7 @@
|
|
4895
4898
|
"example": "1",
|
4896
4899
|
"member": "int64",
|
4897
4900
|
"name": "Position",
|
4901
|
+
"output_required": true,
|
4898
4902
|
"required": false,
|
4899
4903
|
"type": "int",
|
4900
4904
|
"value_allowed_null": true
|
@@ -4905,6 +4909,7 @@
|
|
4905
4909
|
"example": "无",
|
4906
4910
|
"member": "KVPair",
|
4907
4911
|
"name": "Params",
|
4912
|
+
"output_required": true,
|
4908
4913
|
"required": false,
|
4909
4914
|
"type": "list",
|
4910
4915
|
"value_allowed_null": true
|
@@ -4915,6 +4920,7 @@
|
|
4915
4920
|
"example": "无",
|
4916
4921
|
"member": "KVPair",
|
4917
4922
|
"name": "BizParams",
|
4923
|
+
"output_required": true,
|
4918
4924
|
"required": false,
|
4919
4925
|
"type": "list",
|
4920
4926
|
"value_allowed_null": true
|
@@ -4925,6 +4931,7 @@
|
|
4925
4931
|
"example": "false",
|
4926
4932
|
"member": "bool",
|
4927
4933
|
"name": "IsPartition",
|
4934
|
+
"output_required": true,
|
4928
4935
|
"required": false,
|
4929
4936
|
"type": "bool",
|
4930
4937
|
"value_allowed_null": true
|
@@ -12682,6 +12689,46 @@
|
|
12682
12689
|
"output_required": true,
|
12683
12690
|
"type": "int",
|
12684
12691
|
"value_allowed_null": false
|
12692
|
+
},
|
12693
|
+
{
|
12694
|
+
"disabled": false,
|
12695
|
+
"document": "是否是用户默认桶,0:默认桶,1:非默认桶\n注意:此字段可能返回 null,表示取不到有效值。",
|
12696
|
+
"example": "0",
|
12697
|
+
"member": "int64",
|
12698
|
+
"name": "DefaultBucket",
|
12699
|
+
"output_required": false,
|
12700
|
+
"type": "int",
|
12701
|
+
"value_allowed_null": true
|
12702
|
+
},
|
12703
|
+
{
|
12704
|
+
"disabled": false,
|
12705
|
+
"document": "托管存储short name\n注意:此字段可能返回 null,表示取不到有效值。",
|
12706
|
+
"example": "DLC-Storage-123456",
|
12707
|
+
"member": "string",
|
12708
|
+
"name": "ShortName",
|
12709
|
+
"output_required": false,
|
12710
|
+
"type": "string",
|
12711
|
+
"value_allowed_null": true
|
12712
|
+
},
|
12713
|
+
{
|
12714
|
+
"disabled": false,
|
12715
|
+
"document": "桶描述信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
12716
|
+
"example": "test bucket",
|
12717
|
+
"member": "string",
|
12718
|
+
"name": "Description",
|
12719
|
+
"output_required": false,
|
12720
|
+
"type": "string",
|
12721
|
+
"value_allowed_null": true
|
12722
|
+
},
|
12723
|
+
{
|
12724
|
+
"disabled": false,
|
12725
|
+
"document": "托管桶状态,当前取值为:creating、bind、readOnly、isolate\n注意:此字段可能返回 null,表示取不到有效值。",
|
12726
|
+
"example": "creating",
|
12727
|
+
"member": "string",
|
12728
|
+
"name": "Status",
|
12729
|
+
"output_required": false,
|
12730
|
+
"type": "string",
|
12731
|
+
"value_allowed_null": true
|
12685
12732
|
}
|
12686
12733
|
],
|
12687
12734
|
"usage": "out"
|
@@ -15250,7 +15297,7 @@
|
|
15250
15297
|
{
|
15251
15298
|
"disabled": false,
|
15252
15299
|
"document": "状态\n注意:此字段可能返回 null,表示取不到有效值。",
|
15253
|
-
"example": "
|
15300
|
+
"example": "1",
|
15254
15301
|
"member": "int64",
|
15255
15302
|
"name": "Status",
|
15256
15303
|
"output_required": false,
|
@@ -15541,7 +15588,7 @@
|
|
15541
15588
|
{
|
15542
15589
|
"disabled": false,
|
15543
15590
|
"document": "过期时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
15544
|
-
"example": "
|
15591
|
+
"example": "100",
|
15545
15592
|
"member": "int64",
|
15546
15593
|
"name": "Expiration",
|
15547
15594
|
"output_required": false,
|
@@ -15552,13 +15599,35 @@
|
|
15552
15599
|
{
|
15553
15600
|
"disabled": false,
|
15554
15601
|
"document": "是否删表\n注意:此字段可能返回 null,表示取不到有效值。",
|
15555
|
-
"example": "
|
15602
|
+
"example": "true",
|
15556
15603
|
"member": "bool",
|
15557
15604
|
"name": "DropTable",
|
15558
15605
|
"output_required": false,
|
15559
15606
|
"required": false,
|
15560
15607
|
"type": "bool",
|
15561
15608
|
"value_allowed_null": true
|
15609
|
+
},
|
15610
|
+
{
|
15611
|
+
"disabled": false,
|
15612
|
+
"document": "过期字段\n注意:此字段可能返回 null,表示取不到有效值。",
|
15613
|
+
"example": "pt",
|
15614
|
+
"member": "string",
|
15615
|
+
"name": "ExpiredField",
|
15616
|
+
"output_required": false,
|
15617
|
+
"required": false,
|
15618
|
+
"type": "string",
|
15619
|
+
"value_allowed_null": true
|
15620
|
+
},
|
15621
|
+
{
|
15622
|
+
"disabled": false,
|
15623
|
+
"document": "过期字段格式\n注意:此字段可能返回 null,表示取不到有效值。",
|
15624
|
+
"example": "yyyy-MM-dd",
|
15625
|
+
"member": "string",
|
15626
|
+
"name": "ExpiredFieldFormat",
|
15627
|
+
"output_required": false,
|
15628
|
+
"required": false,
|
15629
|
+
"type": "string",
|
15630
|
+
"value_allowed_null": true
|
15562
15631
|
}
|
15563
15632
|
],
|
15564
15633
|
"usage": "both"
|
@@ -15569,7 +15638,7 @@
|
|
15569
15638
|
{
|
15570
15639
|
"disabled": false,
|
15571
15640
|
"document": "是否继承\n注意:此字段可能返回 null,表示取不到有效值。",
|
15572
|
-
"example": "
|
15641
|
+
"example": "true",
|
15573
15642
|
"member": "string",
|
15574
15643
|
"name": "Inherit",
|
15575
15644
|
"output_required": false,
|
@@ -15626,7 +15695,19 @@
|
|
15626
15695
|
},
|
15627
15696
|
"SmartOptimizerWrittenPolicy": {
|
15628
15697
|
"document": "SmartOptimizerWrittenPolicy",
|
15629
|
-
"members": [
|
15698
|
+
"members": [
|
15699
|
+
{
|
15700
|
+
"disabled": false,
|
15701
|
+
"document": "none/enable/disable/default\n注意:此字段可能返回 null,表示取不到有效值。",
|
15702
|
+
"example": "enable",
|
15703
|
+
"member": "string",
|
15704
|
+
"name": "WrittenEnable",
|
15705
|
+
"output_required": false,
|
15706
|
+
"required": false,
|
15707
|
+
"type": "string",
|
15708
|
+
"value_allowed_null": true
|
15709
|
+
}
|
15710
|
+
],
|
15630
15711
|
"usage": "both"
|
15631
15712
|
},
|
15632
15713
|
"SmartPolicy": {
|
@@ -16603,76 +16684,105 @@
|
|
16603
16684
|
"members": [
|
16604
16685
|
{
|
16605
16686
|
"disabled": false,
|
16606
|
-
"document": "
|
16687
|
+
"document": "字段名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
16607
16688
|
"example": "无",
|
16608
16689
|
"member": "string",
|
16609
16690
|
"name": "Name",
|
16691
|
+
"output_required": false,
|
16610
16692
|
"required": true,
|
16611
16693
|
"type": "string",
|
16612
|
-
"value_allowed_null":
|
16694
|
+
"value_allowed_null": true
|
16613
16695
|
},
|
16614
16696
|
{
|
16615
16697
|
"disabled": false,
|
16616
|
-
"document": "
|
16698
|
+
"document": "字段类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
16617
16699
|
"example": "无",
|
16618
16700
|
"member": "string",
|
16619
16701
|
"name": "Type",
|
16702
|
+
"output_required": false,
|
16620
16703
|
"required": true,
|
16621
16704
|
"type": "string",
|
16622
|
-
"value_allowed_null":
|
16705
|
+
"value_allowed_null": true
|
16623
16706
|
},
|
16624
16707
|
{
|
16625
16708
|
"disabled": false,
|
16626
|
-
"document": "
|
16709
|
+
"document": "字段描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
16627
16710
|
"example": "无",
|
16628
16711
|
"member": "string",
|
16629
16712
|
"name": "Comment",
|
16713
|
+
"output_required": false,
|
16630
16714
|
"required": false,
|
16631
16715
|
"type": "string",
|
16632
|
-
"value_allowed_null":
|
16716
|
+
"value_allowed_null": true
|
16633
16717
|
},
|
16634
16718
|
{
|
16635
16719
|
"disabled": false,
|
16636
|
-
"document": "
|
16720
|
+
"document": "字段默认值\n注意:此字段可能返回 null,表示取不到有效值。",
|
16637
16721
|
"example": "无",
|
16638
16722
|
"member": "string",
|
16639
16723
|
"name": "Default",
|
16724
|
+
"output_required": false,
|
16640
16725
|
"required": false,
|
16641
16726
|
"type": "string",
|
16642
|
-
"value_allowed_null":
|
16727
|
+
"value_allowed_null": true
|
16643
16728
|
},
|
16644
16729
|
{
|
16645
16730
|
"disabled": false,
|
16646
|
-
"document": "
|
16731
|
+
"document": "字段是否是非空\n注意:此字段可能返回 null,表示取不到有效值。",
|
16647
16732
|
"example": "无",
|
16648
16733
|
"member": "bool",
|
16649
16734
|
"name": "NotNull",
|
16735
|
+
"output_required": false,
|
16650
16736
|
"required": false,
|
16651
16737
|
"type": "bool",
|
16652
|
-
"value_allowed_null":
|
16738
|
+
"value_allowed_null": true
|
16653
16739
|
},
|
16654
16740
|
{
|
16655
16741
|
"disabled": false,
|
16656
|
-
"document": "表示整个 numeric 的长度,取值1-38",
|
16742
|
+
"document": "表示整个 numeric 的长度,取值1-38\n注意:此字段可能返回 null,表示取不到有效值。",
|
16657
16743
|
"example": "无",
|
16658
16744
|
"member": "int64",
|
16659
16745
|
"name": "Precision",
|
16746
|
+
"output_required": false,
|
16660
16747
|
"required": false,
|
16661
16748
|
"type": "int",
|
16662
16749
|
"value_allowed_null": true
|
16663
16750
|
},
|
16664
16751
|
{
|
16665
16752
|
"disabled": false,
|
16666
|
-
"document": "表示小数部分的长度\nScale小于Precision",
|
16753
|
+
"document": "表示小数部分的长度\nScale小于Precision\n注意:此字段可能返回 null,表示取不到有效值。",
|
16667
16754
|
"example": "无",
|
16668
16755
|
"member": "int64",
|
16669
16756
|
"name": "Scale",
|
16757
|
+
"output_required": false,
|
16670
16758
|
"required": false,
|
16671
16759
|
"type": "int",
|
16672
16760
|
"value_allowed_null": true
|
16761
|
+
},
|
16762
|
+
{
|
16763
|
+
"disabled": false,
|
16764
|
+
"document": "字段位置,小的在前\n注意:此字段可能返回 null,表示取不到有效值。",
|
16765
|
+
"example": "1",
|
16766
|
+
"member": "int64",
|
16767
|
+
"name": "Position",
|
16768
|
+
"output_required": false,
|
16769
|
+
"required": false,
|
16770
|
+
"type": "int",
|
16771
|
+
"value_allowed_null": true
|
16772
|
+
},
|
16773
|
+
{
|
16774
|
+
"disabled": false,
|
16775
|
+
"document": "是否为分区字段\n注意:此字段可能返回 null,表示取不到有效值。",
|
16776
|
+
"example": "false",
|
16777
|
+
"member": "bool",
|
16778
|
+
"name": "IsPartition",
|
16779
|
+
"output_required": false,
|
16780
|
+
"required": false,
|
16781
|
+
"type": "bool",
|
16782
|
+
"value_allowed_null": true
|
16673
16783
|
}
|
16674
16784
|
],
|
16675
|
-
"usage": "
|
16785
|
+
"usage": "both"
|
16676
16786
|
},
|
16677
16787
|
"TPartition": {
|
16678
16788
|
"document": "表分区字段信息",
|
@@ -16683,6 +16793,7 @@
|
|
16683
16793
|
"example": "无",
|
16684
16794
|
"member": "string",
|
16685
16795
|
"name": "Name",
|
16796
|
+
"output_required": false,
|
16686
16797
|
"required": true,
|
16687
16798
|
"type": "string",
|
16688
16799
|
"value_allowed_null": false
|
@@ -16693,6 +16804,7 @@
|
|
16693
16804
|
"example": "无",
|
16694
16805
|
"member": "string",
|
16695
16806
|
"name": "Type",
|
16807
|
+
"output_required": false,
|
16696
16808
|
"required": false,
|
16697
16809
|
"type": "string",
|
16698
16810
|
"value_allowed_null": false
|
@@ -16703,6 +16815,7 @@
|
|
16703
16815
|
"example": "无",
|
16704
16816
|
"member": "string",
|
16705
16817
|
"name": "Comment",
|
16818
|
+
"output_required": false,
|
16706
16819
|
"required": false,
|
16707
16820
|
"type": "string",
|
16708
16821
|
"value_allowed_null": false
|
@@ -16713,6 +16826,7 @@
|
|
16713
16826
|
"example": "无",
|
16714
16827
|
"member": "string",
|
16715
16828
|
"name": "PartitionType",
|
16829
|
+
"output_required": false,
|
16716
16830
|
"required": false,
|
16717
16831
|
"type": "string",
|
16718
16832
|
"value_allowed_null": false
|
@@ -16723,6 +16837,7 @@
|
|
16723
16837
|
"example": "无",
|
16724
16838
|
"member": "string",
|
16725
16839
|
"name": "PartitionFormat",
|
16840
|
+
"output_required": false,
|
16726
16841
|
"required": false,
|
16727
16842
|
"type": "string",
|
16728
16843
|
"value_allowed_null": false
|
@@ -16733,6 +16848,7 @@
|
|
16733
16848
|
"example": "无",
|
16734
16849
|
"member": "int64",
|
16735
16850
|
"name": "PartitionDot",
|
16851
|
+
"output_required": false,
|
16736
16852
|
"required": false,
|
16737
16853
|
"type": "int",
|
16738
16854
|
"value_allowed_null": false
|
@@ -16743,6 +16859,7 @@
|
|
16743
16859
|
"example": "无",
|
16744
16860
|
"member": "string",
|
16745
16861
|
"name": "Transform",
|
16862
|
+
"output_required": false,
|
16746
16863
|
"required": false,
|
16747
16864
|
"type": "string",
|
16748
16865
|
"value_allowed_null": false
|
@@ -16753,12 +16870,13 @@
|
|
16753
16870
|
"example": "无",
|
16754
16871
|
"member": "string",
|
16755
16872
|
"name": "TransformArgs",
|
16873
|
+
"output_required": false,
|
16756
16874
|
"required": false,
|
16757
16875
|
"type": "list",
|
16758
16876
|
"value_allowed_null": false
|
16759
16877
|
}
|
16760
16878
|
],
|
16761
|
-
"usage": "
|
16879
|
+
"usage": "both"
|
16762
16880
|
},
|
16763
16881
|
"TableBaseInfo": {
|
16764
16882
|
"document": "数据表配置信息",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"AssignMangedTableProperties": [
|
52
52
|
{
|
53
53
|
"document": "示例一",
|
54
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssignMangedTableProperties\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Default\": \"abc\",\n \"NotNull\": true,\n \"Precision\": 0,\n \"Scale\": 0\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"PartitionType\": \"abc\",\n \"PartitionFormat\": \"abc\",\n \"PartitionDot\": 0,\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ]\n }\n ],\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UpsertKeys\": [\n \"abc\"\n ]\n}",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssignMangedTableProperties\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Default\": \"abc\",\n \"NotNull\": true,\n \"Precision\": 0,\n \"Scale\": 0\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"PartitionType\": \"abc\",\n \"PartitionFormat\": \"abc\",\n \"PartitionDot\": 0,\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ]\n }\n ],\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UpsertKeys\": [\n \"abc\"\n ]\n}",
|
55
55
|
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
56
56
|
"title": "示例一"
|
57
57
|
}
|
@@ -698,7 +698,7 @@
|
|
698
698
|
{
|
699
699
|
"document": "查询表信息",
|
700
700
|
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTable\n<公共请求参数>\n\n{\n \"DatabaseName\": \"testdb\",\n \"TableName\": \"table1\"\n}",
|
701
|
-
"output": "{\n \"Response\": {\n \"Table\": {\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ],\n \"CreateTime\": 0\n }\n ],\n \"Location\": \"abc\",\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ModifiedTime\": \"abc\",\n \"CreateTime\": \"abc\",\n \"InputFormat\": \"abc\",\n \"StorageSize\": 0,\n \"RecordCount\": 0,\n \"MapMaterializedViewName\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
701
|
+
"output": "{\n \"Response\": {\n \"Table\": {\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ],\n \"CreateTime\": 0\n }\n ],\n \"Location\": \"abc\",\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ModifiedTime\": \"abc\",\n \"CreateTime\": \"abc\",\n \"InputFormat\": \"abc\",\n \"StorageSize\": 0,\n \"RecordCount\": 0,\n \"MapMaterializedViewName\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
702
702
|
"title": "查询表信息"
|
703
703
|
}
|
704
704
|
],
|
@@ -706,7 +706,7 @@
|
|
706
706
|
{
|
707
707
|
"document": "查询数据表列表。",
|
708
708
|
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTables\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 0,\n \"DatabaseName\": \"testdb\",\n \"DatasourceConnectionName\": \"DataLakeCatalog\"\n}",
|
709
|
-
"output": "{\n \"Response\": {\n \"TableList\": [\n {\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ],\n \"CreateTime\": 0\n }\n ],\n \"Location\": \"abc\",\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ModifiedTime\": \"abc\",\n \"CreateTime\": \"abc\",\n \"InputFormat\": \"abc\",\n \"StorageSize\": 0,\n \"RecordCount\": 0,\n \"MapMaterializedViewName\": \"abc\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
709
|
+
"output": "{\n \"Response\": {\n \"TableList\": [\n {\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ],\n \"CreateTime\": 0\n }\n ],\n \"Location\": \"abc\",\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ModifiedTime\": \"abc\",\n \"CreateTime\": \"abc\",\n \"InputFormat\": \"abc\",\n \"StorageSize\": 0,\n \"RecordCount\": 0,\n \"MapMaterializedViewName\": \"abc\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
710
710
|
"title": "示例1"
|
711
711
|
}
|
712
712
|
],
|
@@ -887,7 +887,7 @@
|
|
887
887
|
"GenerateCreateMangedTableSql": [
|
888
888
|
{
|
889
889
|
"document": "创建托管存储内表",
|
890
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateCreateMangedTableSql\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Default\": \"abc\",\n \"NotNull\": true,\n \"Precision\": 0,\n \"Scale\": 0\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"PartitionType\": \"abc\",\n \"PartitionFormat\": \"abc\",\n \"PartitionDot\": 0,\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ]\n }\n ],\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UpsertKeys\": [\n \"abc\"\n ]\n}",
|
890
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateCreateMangedTableSql\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Default\": \"abc\",\n \"NotNull\": true,\n \"Precision\": 0,\n \"Scale\": 0\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"PartitionType\": \"abc\",\n \"PartitionFormat\": \"abc\",\n \"PartitionDot\": 0,\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ]\n }\n ],\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UpsertKeys\": [\n \"abc\"\n ]\n}",
|
891
891
|
"output": "{\n \"Response\": {\n \"Execution\": {\n \"SQL\": \"<create sql>\"\n },\n \"RequestId\": \"RequestId\"\n }\n}",
|
892
892
|
"title": "创建托管存储内表"
|
893
893
|
}
|
@@ -895,8 +895,8 @@
|
|
895
895
|
"GetOptimizerPolicy": [
|
896
896
|
{
|
897
897
|
"document": "",
|
898
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetOptimizerPolicy\n<公共请求参数>\n\n{\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n}",
|
899
|
-
"output": "{\n \"Response\": {\n \"SmartOptimizerPolicy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {},\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
898
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetOptimizerPolicy\n<公共请求参数>\n\n{\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n}",
|
899
|
+
"output": "{\n \"Response\": {\n \"SmartOptimizerPolicy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
900
900
|
"title": "test"
|
901
901
|
}
|
902
902
|
],
|
tccli/services/ess/ess_client.py
CHANGED
@@ -2825,6 +2825,58 @@ def doCreateFlowBlockchainEvidenceUrl(args, parsed_globals):
|
|
2825
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2826
|
|
2827
2827
|
|
2828
|
+
def doCreateBatchOrganizationRegistrationTasks(args, parsed_globals):
|
2829
|
+
g_param = parse_global_arg(parsed_globals)
|
2830
|
+
|
2831
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2832
|
+
cred = credential.CVMRoleCredential()
|
2833
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2834
|
+
cred = credential.STSAssumeRoleCredential(
|
2835
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2836
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2837
|
+
)
|
2838
|
+
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):
|
2839
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2840
|
+
else:
|
2841
|
+
cred = credential.Credential(
|
2842
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2843
|
+
)
|
2844
|
+
http_profile = HttpProfile(
|
2845
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2846
|
+
reqMethod="POST",
|
2847
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2848
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2849
|
+
)
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2851
|
+
if g_param[OptionsDefine.Language]:
|
2852
|
+
profile.language = g_param[OptionsDefine.Language]
|
2853
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2854
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2856
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
+
model = models.CreateBatchOrganizationRegistrationTasksRequest()
|
2858
|
+
model.from_json_string(json.dumps(args))
|
2859
|
+
start_time = time.time()
|
2860
|
+
while True:
|
2861
|
+
rsp = client.CreateBatchOrganizationRegistrationTasks(model)
|
2862
|
+
result = rsp.to_json_string()
|
2863
|
+
try:
|
2864
|
+
json_obj = json.loads(result)
|
2865
|
+
except TypeError as e:
|
2866
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2867
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2868
|
+
break
|
2869
|
+
cur_time = time.time()
|
2870
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2871
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2872
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2873
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2874
|
+
else:
|
2875
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2876
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2877
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
|
+
|
2879
|
+
|
2828
2880
|
def doDescribeUserVerifyStatus(args, parsed_globals):
|
2829
2881
|
g_param = parse_global_arg(parsed_globals)
|
2830
2882
|
|
@@ -2929,7 +2981,7 @@ def doModifyIntegrationRole(args, parsed_globals):
|
|
2929
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2982
|
|
2931
2983
|
|
2932
|
-
def
|
2984
|
+
def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
|
2933
2985
|
g_param = parse_global_arg(parsed_globals)
|
2934
2986
|
|
2935
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +3010,11 @@ def doCreateBatchOrganizationRegistrationTasks(args, parsed_globals):
|
|
2958
3010
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
3013
|
+
model = models.CreateBatchOrganizationAuthorizationUrlRequest()
|
2962
3014
|
model.from_json_string(json.dumps(args))
|
2963
3015
|
start_time = time.time()
|
2964
3016
|
while True:
|
2965
|
-
rsp = client.
|
3017
|
+
rsp = client.CreateBatchOrganizationAuthorizationUrl(model)
|
2966
3018
|
result = rsp.to_json_string()
|
2967
3019
|
try:
|
2968
3020
|
json_obj = json.loads(result)
|
@@ -4710,9 +4762,10 @@ ACTION_MAP = {
|
|
4710
4762
|
"CreateIntegrationRole": doCreateIntegrationRole,
|
4711
4763
|
"ModifyExtendedService": doModifyExtendedService,
|
4712
4764
|
"CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
|
4765
|
+
"CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
|
4713
4766
|
"DescribeUserVerifyStatus": doDescribeUserVerifyStatus,
|
4714
4767
|
"ModifyIntegrationRole": doModifyIntegrationRole,
|
4715
|
-
"
|
4768
|
+
"CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
|
4716
4769
|
"CreateEmployeeQualificationSealQrCode": doCreateEmployeeQualificationSealQrCode,
|
4717
4770
|
"CreateExtendedServiceAuthInfos": doCreateExtendedServiceAuthInfos,
|
4718
4771
|
"CreateOrganizationInfoChangeUrl": doCreateOrganizationInfoChangeUrl,
|