tccli 3.0.1104.1__py2.py3-none-any.whl → 3.0.1105.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/examples/billing/v20180709/DescribeAllocationBillDetail.md +0 -4
- tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +9 -1
- tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +5 -1
- tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +27 -2
- tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +5 -1
- tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +5 -1
- tccli/examples/dsgc/v20190723/DescribeDSPACOSDiscoveryTaskResult.md +21 -13
- tccli/services/antiddos/v20200309/api.json +2 -2
- tccli/services/asr/v20190614/api.json +5 -5
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +15 -12
- tccli/services/clb/v20180317/api.json +9 -0
- tccli/services/cynosdb/v20190107/api.json +306 -5
- tccli/services/cynosdb/v20190107/examples.json +10 -10
- tccli/services/dsgc/v20190723/api.json +348 -333
- tccli/services/dsgc/v20190723/examples.json +2 -2
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/emr/v20190103/api.json +30 -0
- tccli/services/es/v20180416/api.json +10 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/ocr/v20181119/api.json +80 -22
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tbaas/v20180416/api.json +24 -24
- tccli/services/tione/tione_client.py +0 -53
- tccli/services/tione/v20191022/api.json +0 -52
- tccli/services/tione/v20191022/examples.json +0 -8
- tccli/services/tione/v20211111/api.json +28 -0
- tccli/services/tmt/v20180321/api.json +8 -8
- tccli/services/trtc/v20190722/api.json +9 -0
- tccli/services/tse/v20201207/api.json +37 -7
- {tccli-3.0.1104.1.dist-info → tccli-3.0.1105.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1104.1.dist-info → tccli-3.0.1105.1.dist-info}/RECORD +39 -39
- {tccli-3.0.1104.1.dist-info → tccli-3.0.1105.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1104.1.dist-info → tccli-3.0.1105.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1104.1.dist-info → tccli-3.0.1105.1.dist-info}/license_files/LICENSE +0 -0
@@ -4595,58 +4595,6 @@ def doCreateNotebookImage(args, parsed_globals):
|
|
4595
4595
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4596
4596
|
|
4597
4597
|
|
4598
|
-
def doUpdateNotebookLifecycleScript(args, parsed_globals):
|
4599
|
-
g_param = parse_global_arg(parsed_globals)
|
4600
|
-
|
4601
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4602
|
-
cred = credential.CVMRoleCredential()
|
4603
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4604
|
-
cred = credential.STSAssumeRoleCredential(
|
4605
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4606
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4607
|
-
)
|
4608
|
-
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):
|
4609
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4610
|
-
else:
|
4611
|
-
cred = credential.Credential(
|
4612
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4613
|
-
)
|
4614
|
-
http_profile = HttpProfile(
|
4615
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4616
|
-
reqMethod="POST",
|
4617
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4618
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4619
|
-
)
|
4620
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4621
|
-
if g_param[OptionsDefine.Language]:
|
4622
|
-
profile.language = g_param[OptionsDefine.Language]
|
4623
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4624
|
-
client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
|
4625
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4626
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4627
|
-
model = models.UpdateNotebookLifecycleScriptRequest()
|
4628
|
-
model.from_json_string(json.dumps(args))
|
4629
|
-
start_time = time.time()
|
4630
|
-
while True:
|
4631
|
-
rsp = client.UpdateNotebookLifecycleScript(model)
|
4632
|
-
result = rsp.to_json_string()
|
4633
|
-
try:
|
4634
|
-
json_obj = json.loads(result)
|
4635
|
-
except TypeError as e:
|
4636
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4637
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4638
|
-
break
|
4639
|
-
cur_time = time.time()
|
4640
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4641
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4642
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4643
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4644
|
-
else:
|
4645
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4646
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4647
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4648
|
-
|
4649
|
-
|
4650
4598
|
def doDescribeTrainingJob(args, parsed_globals):
|
4651
4599
|
g_param = parse_global_arg(parsed_globals)
|
4652
4600
|
|
@@ -5268,7 +5216,6 @@ ACTION_MAP = {
|
|
5268
5216
|
"DescribeModelAccEngineVersions": doDescribeModelAccEngineVersions,
|
5269
5217
|
"DescribeNotebookLifecycleScript": doDescribeNotebookLifecycleScript,
|
5270
5218
|
"CreateNotebookImage": doCreateNotebookImage,
|
5271
|
-
"UpdateNotebookLifecycleScript": doUpdateNotebookLifecycleScript,
|
5272
5219
|
"DescribeTrainingJob": doDescribeTrainingJob,
|
5273
5220
|
"DeleteModelService": doDeleteModelService,
|
5274
5221
|
"DescribeDatasetDetailStructured": doDescribeDatasetDetailStructured,
|
@@ -153,13 +153,6 @@
|
|
153
153
|
"name": "更新Notebook实例",
|
154
154
|
"output": "UpdateNotebookInstanceResponse",
|
155
155
|
"status": "online"
|
156
|
-
},
|
157
|
-
"UpdateNotebookLifecycleScript": {
|
158
|
-
"document": "更新notebook生命周期脚本",
|
159
|
-
"input": "UpdateNotebookLifecycleScriptRequest",
|
160
|
-
"name": "更新notebook生命周期脚本",
|
161
|
-
"output": "UpdateNotebookLifecycleScriptResponse",
|
162
|
-
"status": "online"
|
163
156
|
}
|
164
157
|
},
|
165
158
|
"metadata": {
|
@@ -2762,51 +2755,6 @@
|
|
2762
2755
|
],
|
2763
2756
|
"type": "object"
|
2764
2757
|
},
|
2765
|
-
"UpdateNotebookLifecycleScriptRequest": {
|
2766
|
-
"document": "UpdateNotebookLifecycleScript请求参数结构体",
|
2767
|
-
"members": [
|
2768
|
-
{
|
2769
|
-
"disabled": false,
|
2770
|
-
"document": "notebook生命周期脚本名称",
|
2771
|
-
"example": "",
|
2772
|
-
"member": "string",
|
2773
|
-
"name": "NotebookLifecycleScriptsName",
|
2774
|
-
"required": true,
|
2775
|
-
"type": "string"
|
2776
|
-
},
|
2777
|
-
{
|
2778
|
-
"disabled": false,
|
2779
|
-
"document": "创建脚本,base64编码\nbase64后的脚本长度不能超过16384个字符",
|
2780
|
-
"example": "",
|
2781
|
-
"member": "string",
|
2782
|
-
"name": "CreateScript",
|
2783
|
-
"required": false,
|
2784
|
-
"type": "string"
|
2785
|
-
},
|
2786
|
-
{
|
2787
|
-
"disabled": false,
|
2788
|
-
"document": "启动脚本,base64编码\nbase64后的脚本长度不能超过16384个字符",
|
2789
|
-
"example": "",
|
2790
|
-
"member": "string",
|
2791
|
-
"name": "StartScript",
|
2792
|
-
"required": false,
|
2793
|
-
"type": "string"
|
2794
|
-
}
|
2795
|
-
],
|
2796
|
-
"type": "object"
|
2797
|
-
},
|
2798
|
-
"UpdateNotebookLifecycleScriptResponse": {
|
2799
|
-
"document": "UpdateNotebookLifecycleScript返回参数结构体",
|
2800
|
-
"members": [
|
2801
|
-
{
|
2802
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2803
|
-
"member": "string",
|
2804
|
-
"name": "RequestId",
|
2805
|
-
"type": "string"
|
2806
|
-
}
|
2807
|
-
],
|
2808
|
-
"type": "object"
|
2809
|
-
},
|
2810
2758
|
"VpcConfig": {
|
2811
2759
|
"document": "VPC配置",
|
2812
2760
|
"members": [
|
@@ -181,14 +181,6 @@
|
|
181
181
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac85a52-fb9d-4b28-b0fa-1017b9ada1ac\"\n }\n}",
|
182
182
|
"title": "更新Notebook实例"
|
183
183
|
}
|
184
|
-
],
|
185
|
-
"UpdateNotebookLifecycleScript": [
|
186
|
-
{
|
187
|
-
"document": "",
|
188
|
-
"input": "https://tione.tencentcloudapi.com/?Action=UpdateNotebookLifecycleScripts\r\n&NotebookLifecycleScriptsName=abc\r\n&CreateScript=YWJj&StartScript=YWJj\r\n&<公共请求参数>",
|
189
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"15833967702530096378\"\n }\n}",
|
190
|
-
"title": "更新notebook生命周期脚本"
|
191
|
-
}
|
192
184
|
]
|
193
185
|
},
|
194
186
|
"version": "1.0"
|
@@ -1360,6 +1360,23 @@
|
|
1360
1360
|
],
|
1361
1361
|
"usage": "out"
|
1362
1362
|
},
|
1363
|
+
"CBSConfig": {
|
1364
|
+
"document": "CBS存储配置",
|
1365
|
+
"members": [
|
1366
|
+
{
|
1367
|
+
"disabled": false,
|
1368
|
+
"document": "存储大小\n注意:此字段可能返回 null,表示取不到有效值。",
|
1369
|
+
"example": "50",
|
1370
|
+
"member": "int64",
|
1371
|
+
"name": "VolumeSizeInGB",
|
1372
|
+
"output_required": false,
|
1373
|
+
"required": true,
|
1374
|
+
"type": "int",
|
1375
|
+
"value_allowed_null": true
|
1376
|
+
}
|
1377
|
+
],
|
1378
|
+
"usage": "both"
|
1379
|
+
},
|
1363
1380
|
"CFSConfig": {
|
1364
1381
|
"document": "CFS存储的配置",
|
1365
1382
|
"members": [
|
@@ -3670,6 +3687,17 @@
|
|
3670
3687
|
"required": false,
|
3671
3688
|
"type": "object",
|
3672
3689
|
"value_allowed_null": true
|
3690
|
+
},
|
3691
|
+
{
|
3692
|
+
"disabled": false,
|
3693
|
+
"document": "CBS配置信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
3694
|
+
"example": "无",
|
3695
|
+
"member": "CBSConfig",
|
3696
|
+
"name": "CBSSource",
|
3697
|
+
"output_required": true,
|
3698
|
+
"required": false,
|
3699
|
+
"type": "object",
|
3700
|
+
"value_allowed_null": true
|
3673
3701
|
}
|
3674
3702
|
],
|
3675
3703
|
"usage": "both"
|
@@ -166,7 +166,7 @@
|
|
166
166
|
"example": "\"12132323\"",
|
167
167
|
"member": "string",
|
168
168
|
"name": "TaskId",
|
169
|
-
"
|
169
|
+
"output_required": true,
|
170
170
|
"type": "string",
|
171
171
|
"value_allowed_null": false
|
172
172
|
},
|
@@ -176,27 +176,27 @@
|
|
176
176
|
"example": "Success",
|
177
177
|
"member": "string",
|
178
178
|
"name": "Status",
|
179
|
-
"
|
179
|
+
"output_required": true,
|
180
180
|
"type": "string",
|
181
181
|
"value_allowed_null": false
|
182
182
|
},
|
183
183
|
{
|
184
184
|
"disabled": false,
|
185
185
|
"document": "文件数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
186
|
-
"example": "
|
186
|
+
"example": "eGNmYXNkZmFzZmFzZGZhc2RmCg==",
|
187
187
|
"member": "string",
|
188
188
|
"name": "FileData",
|
189
|
-
"
|
189
|
+
"output_required": true,
|
190
190
|
"type": "string",
|
191
191
|
"value_allowed_null": true
|
192
192
|
},
|
193
193
|
{
|
194
194
|
"disabled": false,
|
195
195
|
"document": "错误提示\n注意:此字段可能返回 null,表示取不到有效值。",
|
196
|
-
"example": "
|
196
|
+
"example": "error: 404 - Not Found",
|
197
197
|
"member": "string",
|
198
198
|
"name": "Message",
|
199
|
-
"
|
199
|
+
"output_required": true,
|
200
200
|
"type": "string",
|
201
201
|
"value_allowed_null": true
|
202
202
|
},
|
@@ -206,7 +206,7 @@
|
|
206
206
|
"example": "100",
|
207
207
|
"member": "int64",
|
208
208
|
"name": "Progress",
|
209
|
-
"
|
209
|
+
"output_required": true,
|
210
210
|
"type": "int",
|
211
211
|
"value_allowed_null": true
|
212
212
|
}
|
@@ -819,7 +819,7 @@
|
|
819
819
|
{
|
820
820
|
"disabled": false,
|
821
821
|
"document": "用来标记不希望被翻译的文本内容,如句子中的特殊符号、人名、地名等;每次请求只支持配置一个不被翻译的单词;仅支持配置人名、地名等名词,不要配置动词或短语,否则会影响翻译结果。",
|
822
|
-
"example": "
|
822
|
+
"example": "John",
|
823
823
|
"member": "string",
|
824
824
|
"name": "UntranslatedText",
|
825
825
|
"required": false,
|
@@ -3842,6 +3842,15 @@
|
|
3842
3842
|
"name": "ZOrder",
|
3843
3843
|
"required": false,
|
3844
3844
|
"type": "int"
|
3845
|
+
},
|
3846
|
+
{
|
3847
|
+
"disabled": false,
|
3848
|
+
"document": "水印字体,不填默认为Tencent。支持设置以下值: Tencent (默认) SourceHanSans",
|
3849
|
+
"example": "Tencent",
|
3850
|
+
"member": "string",
|
3851
|
+
"name": "Font",
|
3852
|
+
"required": false,
|
3853
|
+
"type": "string"
|
3845
3854
|
}
|
3846
3855
|
],
|
3847
3856
|
"usage": "in"
|
@@ -1734,7 +1734,7 @@
|
|
1734
1734
|
"example": "kong-0",
|
1735
1735
|
"member": "string",
|
1736
1736
|
"name": "NodeId",
|
1737
|
-
"
|
1737
|
+
"output_required": true,
|
1738
1738
|
"type": "string",
|
1739
1739
|
"value_allowed_null": false
|
1740
1740
|
},
|
@@ -1744,7 +1744,7 @@
|
|
1744
1744
|
"example": "无",
|
1745
1745
|
"member": "string",
|
1746
1746
|
"name": "NodeIp",
|
1747
|
-
"
|
1747
|
+
"output_required": true,
|
1748
1748
|
"type": "string",
|
1749
1749
|
"value_allowed_null": false
|
1750
1750
|
},
|
@@ -1754,7 +1754,7 @@
|
|
1754
1754
|
"example": "无",
|
1755
1755
|
"member": "string",
|
1756
1756
|
"name": "ZoneId",
|
1757
|
-
"
|
1757
|
+
"output_required": true,
|
1758
1758
|
"type": "string",
|
1759
1759
|
"value_allowed_null": true
|
1760
1760
|
},
|
@@ -1764,7 +1764,7 @@
|
|
1764
1764
|
"example": "无",
|
1765
1765
|
"member": "string",
|
1766
1766
|
"name": "Zone",
|
1767
|
-
"
|
1767
|
+
"output_required": true,
|
1768
1768
|
"type": "string",
|
1769
1769
|
"value_allowed_null": true
|
1770
1770
|
},
|
@@ -1774,7 +1774,7 @@
|
|
1774
1774
|
"example": "无",
|
1775
1775
|
"member": "string",
|
1776
1776
|
"name": "GroupId",
|
1777
|
-
"
|
1777
|
+
"output_required": true,
|
1778
1778
|
"type": "string",
|
1779
1779
|
"value_allowed_null": true
|
1780
1780
|
},
|
@@ -1784,7 +1784,7 @@
|
|
1784
1784
|
"example": "无",
|
1785
1785
|
"member": "string",
|
1786
1786
|
"name": "GroupName",
|
1787
|
-
"
|
1787
|
+
"output_required": true,
|
1788
1788
|
"type": "string",
|
1789
1789
|
"value_allowed_null": true
|
1790
1790
|
},
|
@@ -1794,9 +1794,29 @@
|
|
1794
1794
|
"example": "无",
|
1795
1795
|
"member": "string",
|
1796
1796
|
"name": "Status",
|
1797
|
-
"
|
1797
|
+
"output_required": true,
|
1798
1798
|
"type": "string",
|
1799
1799
|
"value_allowed_null": true
|
1800
|
+
},
|
1801
|
+
{
|
1802
|
+
"disabled": false,
|
1803
|
+
"document": "节点权重\n注意:此字段可能返回 null,表示取不到有效值。",
|
1804
|
+
"example": "无",
|
1805
|
+
"member": "int64",
|
1806
|
+
"name": "Weight",
|
1807
|
+
"output_required": false,
|
1808
|
+
"type": "int",
|
1809
|
+
"value_allowed_null": true
|
1810
|
+
},
|
1811
|
+
{
|
1812
|
+
"disabled": false,
|
1813
|
+
"document": "是否默认权重\n注意:此字段可能返回 null,表示取不到有效值。",
|
1814
|
+
"example": "无",
|
1815
|
+
"member": "bool",
|
1816
|
+
"name": "IsDefaultWeight",
|
1817
|
+
"output_required": false,
|
1818
|
+
"type": "bool",
|
1819
|
+
"value_allowed_null": true
|
1800
1820
|
}
|
1801
1821
|
],
|
1802
1822
|
"usage": "out"
|
@@ -14189,6 +14209,16 @@
|
|
14189
14209
|
"output_required": true,
|
14190
14210
|
"type": "string",
|
14191
14211
|
"value_allowed_null": true
|
14212
|
+
},
|
14213
|
+
{
|
14214
|
+
"disabled": false,
|
14215
|
+
"document": "分组默认权重\n注意:此字段可能返回 null,表示取不到有效值。",
|
14216
|
+
"example": "10",
|
14217
|
+
"member": "int64",
|
14218
|
+
"name": "DefaultWeight",
|
14219
|
+
"output_required": false,
|
14220
|
+
"type": "int",
|
14221
|
+
"value_allowed_null": true
|
14192
14222
|
}
|
14193
14223
|
],
|
14194
14224
|
"usage": "out"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1105.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1105
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|