tccli 3.0.845.1__py2.py3-none-any.whl → 3.0.847.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/billing/v20180709/api.json +18 -62
- tccli/services/billing/v20180709/examples.json +8 -8
- tccli/services/cat/v20180409/api.json +0 -28
- tccli/services/cat/v20180409/examples.json +7 -7
- tccli/services/ccc/v20200210/api.json +16 -7
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +71 -50
- tccli/services/cdb/v20170320/examples.json +4 -4
- tccli/services/cdn/v20180606/api.json +1 -11
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +8 -5
- tccli/services/ckafka/v20190819/examples.json +3 -3
- tccli/services/cls/v20201016/api.json +44 -33
- tccli/services/cls/v20201016/examples.json +3 -3
- tccli/services/cvm/v20170312/api.json +2 -4
- tccli/services/dbbrain/v20210527/api.json +36 -30
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +812 -157
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/dlc/v20210125/api.json +9 -0
- tccli/services/emr/v20190103/api.json +9 -29
- tccli/services/ess/ess_client.py +273 -8
- tccli/services/ess/v20201111/api.json +639 -89
- tccli/services/ess/v20201111/examples.json +58 -6
- tccli/services/essbasic/essbasic_client.py +159 -0
- tccli/services/essbasic/v20210526/api.json +287 -3
- tccli/services/essbasic/v20210526/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +25 -33
- tccli/services/iotexplorer/v20190423/examples.json +9 -9
- tccli/services/mariadb/mariadb_client.py +53 -0
- tccli/services/mariadb/v20170312/api.json +520 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +10 -11
- tccli/services/monitor/v20180724/examples.json +5 -5
- tccli/services/mps/v20190612/api.json +2 -7
- tccli/services/ocr/v20181119/api.json +73 -89
- tccli/services/ocr/v20181119/examples.json +23 -23
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +214 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +40 -7
- tccli/services/tcss/v20201101/examples.json +3 -3
- tccli/services/tdid/v20210519/api.json +68 -68
- tccli/services/tiw/tiw_client.py +1403 -78
- tccli/services/tiw/v20190919/api.json +2439 -461
- tccli/services/tiw/v20190919/examples.json +200 -0
- tccli/services/trtc/v20190722/api.json +41 -29
- tccli/services/trtc/v20190722/examples.json +10 -10
- tccli/services/vpc/v20170312/api.json +15 -27
- tccli/services/vpc/v20170312/examples.json +6 -6
- tccli/services/waf/v20180125/api.json +50 -6
- tccli/services/waf/v20180125/examples.json +2 -2
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/METADATA +2 -2
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/RECORD +59 -59
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/top_level.txt +0 -0
@@ -149,8 +149,8 @@
|
|
149
149
|
"CreateStudioProduct": [
|
150
150
|
{
|
151
151
|
"document": "",
|
152
|
-
"input": "
|
153
|
-
"output": "{\n \"Response\": {\n \"Product\": {\n \"DevStatus\": \"xx\",\n \"EncryptionType\": \"xx\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"xx\",\n \"Region\": \"xx\",\n \"ModuleId\": 0,\n \"EnableProductScript\": \"xx\",\n \"UpdateTime\": 1,\n \"ProductName\": \"xx\",\n \"CreateUserId\": 0,\n \"ProductDesc\": \"xx\",\n \"NetType\": \"xx\",\n \"ProductType\": 0,\n \"CreatorNickName\": \"xx\",\n \"CreateTime\": 1,\n \"CategoryId\": 10,\n \"ProductId\": \"xx\"\n },\n \"RequestId\": \"xx\"\n }\n}",
|
152
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStudioProduct\n<公共请求参数>\n\n{\n \"EncryptionType\": \"1\",\n \"DataProtocol\": \"1\",\n \"ProjectId\": \"prj-zunfat46\",\n \"ProductName\": \"name\",\n \"ProductDesc\": \"desc\",\n \"NetType\": \"wifi\",\n \"ProductType\": \"0\",\n \"CategoryId\": \"10\"\n}",
|
153
|
+
"output": "{\n \"Response\": {\n \"Product\": {\n \"DevStatus\": \"xx\",\n \"EncryptionType\": \"xx\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"xx\",\n \"Region\": \"xx\",\n \"ModuleId\": 0,\n \"EnableProductScript\": \"xx\",\n \"UpdateTime\": 1,\n \"ProductName\": \"xx\",\n \"CreateUserId\": 0,\n \"ProductDesc\": \"xx\",\n \"NetType\": \"xx\",\n \"ProductType\": 0,\n \"CreatorNickName\": \"xx\",\n \"CreateTime\": 1,\n \"BindStrategy\": 0,\n \"CategoryId\": 10,\n \"ProductId\": \"xx\"\n },\n \"RequestId\": \"xx\"\n }\n}",
|
154
154
|
"title": "新建产品"
|
155
155
|
}
|
156
156
|
],
|
@@ -414,7 +414,7 @@
|
|
414
414
|
{
|
415
415
|
"document": "获取产品详情",
|
416
416
|
"input": "https://iotexplorer.tencentcloudapi.com/?Action=DescribeStudioProduct\n&ProductId=M5AWDSEUYO\n&<公共请求参数>",
|
417
|
-
"output": "{\n \"Response\": {\n \"Product\": {\n \"ProductId\": \"M5AWDSEUYO\",\n \"ProductName\": \"testtproduct\",\n \"CategoryId\": 3,\n \"ProductType\": 0,\n \"EncryptionType\": \"2\",\n \"NetType\": \"else\",\n \"DataProtocol\": 1,\n \"ProductDesc\": \"desc\",\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"EnableProductScript\": \"
|
417
|
+
"output": "{\n \"Response\": {\n \"Product\": {\n \"ProductId\": \"M5AWDSEUYO\",\n \"ProductName\": \"testtproduct\",\n \"CategoryId\": 3,\n \"ProductType\": 0,\n \"EncryptionType\": \"2\",\n \"NetType\": \"else\",\n \"DataProtocol\": 1,\n \"ProductDesc\": \"desc\",\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"EnableProductScript\": \"true\",\n \"CreateTime\": 1560341975,\n \"UpdateTime\": 1560341975,\n \"Region\": \"gz\",\n \"ModuleId\": 0,\n \"CreateUserId\": 1,\n \"BindStrategy\": 0,\n \"CreatorNickName\": \"test\"\n },\n \"RequestId\": \"1c469fbf-d80c-4299-9b54-31340898b839\"\n }\n}",
|
418
418
|
"title": "获取产品详情"
|
419
419
|
}
|
420
420
|
],
|
@@ -547,8 +547,8 @@
|
|
547
547
|
"GetStudioProductList": [
|
548
548
|
{
|
549
549
|
"document": "获取产品列表",
|
550
|
-
"input": "
|
551
|
-
"output": "{\n \"Response\": {\n \"Products\": [\n {\n \"ProductId\": \"4GDIU5HTEN\",\n \"ProductName\": \"testproduct\",\n \"CategoryId\": 3,\n \"ProductType\": 0,\n \"EncryptionType\": \"2\",\n \"NetType\": \"else\",\n \"DataProtocol\": 1,\n \"ProductDesc\": \"desc\",\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"CreateTime\": 1560341825,\n \"UpdateTime\": 1560341825,\n \"Region\": \"gz\",\n \"ModuleId\": 0,\n \"EnableProductScript\": \"e\",\n \"CreateUserId\": 100034,\n \"CreatorNickName\": \"-\"\n }\n ],\n \"RequestId\": \"55e612b3-ed75-44fe-b141-1c1a35d9a0da\",\n \"Total\": 2\n }\n}",
|
550
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetStudioProductList\n<公共请求参数>\n\n{\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"Limit\": \"0\",\n \"Offset\": \"0\"\n}",
|
551
|
+
"output": "{\n \"Response\": {\n \"Products\": [\n {\n \"ProductId\": \"4GDIU5HTEN\",\n \"ProductName\": \"testproduct\",\n \"CategoryId\": 3,\n \"ProductType\": 0,\n \"EncryptionType\": \"2\",\n \"NetType\": \"else\",\n \"DataProtocol\": 1,\n \"ProductDesc\": \"desc\",\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"CreateTime\": 1560341825,\n \"UpdateTime\": 1560341825,\n \"Region\": \"gz\",\n \"ModuleId\": 0,\n \"EnableProductScript\": \"e\",\n \"BindStrategy\": 0,\n \"CreateUserId\": 100034,\n \"CreatorNickName\": \"-\"\n }\n ],\n \"RequestId\": \"55e612b3-ed75-44fe-b141-1c1a35d9a0da\",\n \"Total\": 2\n }\n}",
|
552
552
|
"title": "获取产品列表"
|
553
553
|
}
|
554
554
|
],
|
@@ -651,8 +651,8 @@
|
|
651
651
|
"ModifyStudioProduct": [
|
652
652
|
{
|
653
653
|
"document": "修改产品名称和描述等信息",
|
654
|
-
"input": "
|
655
|
-
"output": "{\n \"Response\": {\n \"Product\": {\n \"DevStatus\": \"
|
654
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyStudioProduct\n<公共请求参数>\n\n{\n \"BindStrategy\": \"1\",\n \"ModuleId\": \"0\",\n \"ProductName\": \"testProduct\",\n \"ProductDesc\": \"Pdesc\",\n \"ProductId\": \"4GDIU5HTEN\"\n}",
|
655
|
+
"output": "{\n \"Response\": {\n \"Product\": {\n \"DevStatus\": \"dev\",\n \"EncryptionType\": \"2\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"prj-zunfat46\",\n \"Region\": \"gz\",\n \"ModuleId\": 0,\n \"EnableProductScript\": \"true\",\n \"UpdateTime\": 1,\n \"ProductName\": \"testProduct\",\n \"CreateUserId\": 0,\n \"ProductDesc\": \"test\",\n \"NetType\": \"else\",\n \"ProductType\": 0,\n \"CreatorNickName\": \"test\",\n \"CreateTime\": 1,\n \"CategoryId\": 3,\n \"BindStrategy\": 0,\n \"ProductId\": \"4GDIU5HTEN\"\n },\n \"RequestId\": \"1c469fbf-d80c-4299-9b54-31340898b839\"\n }\n}",
|
656
656
|
"title": "修改产品"
|
657
657
|
}
|
658
658
|
],
|
@@ -721,8 +721,8 @@
|
|
721
721
|
"SearchStudioProduct": [
|
722
722
|
{
|
723
723
|
"document": "搜索产品",
|
724
|
-
"input": "
|
725
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"dev\",\n \"EncryptionType\": \"2\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"prj-zunfat46\",\n \"Region\": \"gz\",\n \"EnableProductScript\": \"\",\n \"UpdateTime\": 1560341975,\n \"ProductName\": \"testtproduct\",\n \"ProductDesc\": \"desc\",\n \"NetType\": \"else\",\n \"ProductType\": 0,\n \"ModuleId\": 0,\n \"CreateTime\": 1560341975,\n \"CategoryId\": 3,\n \"CreateUserId\": 0,\n \"CreatorNickName\": \"xx\",\n \"ProductId\": \"BJQM4UXMKN\"\n }\n ],\n \"RequestId\": \"0935a11f-a172-4bd8-8bae-f143444aaff3\"\n }\n}",
|
724
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SearchStudioProduct\n<公共请求参数>\n\n{\n \"ProjectId\": \"prj-zunfat46\",\n \"DevStatus\": \"dev\",\n \"Offset\": \"0\",\n \"Limit\": \"0\",\n \"ProductName\": \"testtproduct\"\n}",
|
725
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"dev\",\n \"EncryptionType\": \"2\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"prj-zunfat46\",\n \"Region\": \"gz\",\n \"EnableProductScript\": \"\",\n \"UpdateTime\": 1560341975,\n \"ProductName\": \"testtproduct\",\n \"ProductDesc\": \"desc\",\n \"NetType\": \"else\",\n \"ProductType\": 0,\n \"ModuleId\": 0,\n \"CreateTime\": 1560341975,\n \"BindStrategy\": 0,\n \"CategoryId\": 3,\n \"CreateUserId\": 0,\n \"CreatorNickName\": \"xx\",\n \"ProductId\": \"BJQM4UXMKN\"\n }\n ],\n \"RequestId\": \"0935a11f-a172-4bd8-8bae-f143444aaff3\"\n }\n}",
|
726
726
|
"title": "搜索产品"
|
727
727
|
}
|
728
728
|
],
|
@@ -3449,6 +3449,58 @@ def doUpgradeDBInstance(args, parsed_globals):
|
|
3449
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
3450
|
|
3451
3451
|
|
3452
|
+
def doDescribeDBInstanceDetail(args, parsed_globals):
|
3453
|
+
g_param = parse_global_arg(parsed_globals)
|
3454
|
+
|
3455
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3456
|
+
cred = credential.CVMRoleCredential()
|
3457
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3458
|
+
cred = credential.STSAssumeRoleCredential(
|
3459
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3460
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
3461
|
+
)
|
3462
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3463
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3464
|
+
else:
|
3465
|
+
cred = credential.Credential(
|
3466
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3467
|
+
)
|
3468
|
+
http_profile = HttpProfile(
|
3469
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3470
|
+
reqMethod="POST",
|
3471
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3472
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3473
|
+
)
|
3474
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3475
|
+
if g_param[OptionsDefine.Language]:
|
3476
|
+
profile.language = g_param[OptionsDefine.Language]
|
3477
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3478
|
+
client = mod.MariadbClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3480
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
+
model = models.DescribeDBInstanceDetailRequest()
|
3482
|
+
model.from_json_string(json.dumps(args))
|
3483
|
+
start_time = time.time()
|
3484
|
+
while True:
|
3485
|
+
rsp = client.DescribeDBInstanceDetail(model)
|
3486
|
+
result = rsp.to_json_string()
|
3487
|
+
try:
|
3488
|
+
json_obj = json.loads(result)
|
3489
|
+
except TypeError as e:
|
3490
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3491
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3492
|
+
break
|
3493
|
+
cur_time = time.time()
|
3494
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3495
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3496
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3497
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3498
|
+
else:
|
3499
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3500
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3501
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
|
+
|
3503
|
+
|
3452
3504
|
def doDescribeLogFileRetentionPeriod(args, parsed_globals):
|
3453
3505
|
g_param = parse_global_arg(parsed_globals)
|
3454
3506
|
|
@@ -3682,6 +3734,7 @@ ACTION_MAP = {
|
|
3682
3734
|
"TerminateDedicatedDBInstance": doTerminateDedicatedDBInstance,
|
3683
3735
|
"CloneAccount": doCloneAccount,
|
3684
3736
|
"UpgradeDBInstance": doUpgradeDBInstance,
|
3737
|
+
"DescribeDBInstanceDetail": doDescribeDBInstanceDetail,
|
3685
3738
|
"DescribeLogFileRetentionPeriod": doDescribeLogFileRetentionPeriod,
|
3686
3739
|
"AssociateSecurityGroups": doAssociateSecurityGroups,
|
3687
3740
|
"DescribeDBEncryptAttributes": doDescribeDBEncryptAttributes,
|