tccli 3.0.1267.1__py2.py3-none-any.whl → 3.0.1269.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/services/__init__.py +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/antiddos/v20200309/api.json +194 -136
- tccli/services/antiddos/v20200309/examples.json +15 -15
- tccli/services/bi/v20220105/api.json +1 -1
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +27 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cdn/v20180606/api.json +3 -0
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/cloudaudit/v20190319/api.json +3 -3
- tccli/services/cloudaudit/v20190319/examples.json +1 -1
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +11 -185
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/lcic_client.py +61 -8
- tccli/services/lcic/v20220817/api.json +230 -177
- tccli/services/lcic/v20220817/examples.json +10 -2
- tccli/services/lighthouse/v20200324/api.json +80 -71
- tccli/services/live/v20180801/api.json +60 -4
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +287 -23
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +718 -35
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/rum/v20210622/api.json +1 -1
- tccli/services/smh/v20210712/api.json +50 -30
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/tdmq/v20200217/api.json +97 -0
- tccli/services/teo/v20220901/api.json +5 -5
- tccli/services/thpc/v20230321/api.json +19 -0
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trocket/v20230308/api.json +130 -11
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/vpc/v20170312/api.json +46 -39
- tccli/services/vpc/v20170312/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +240 -42
- tccli/services/wedata/v20210820/examples.json +17 -3
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +101 -95
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -3813,6 +3813,58 @@ def doDescribeRuleGroupTable(args, parsed_globals):
|
|
3813
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3814
|
|
3815
3815
|
|
3816
|
+
def doAddProjectUserRole(args, parsed_globals):
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
3818
|
+
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
+
cred = credential.CVMRoleCredential()
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3825
|
+
)
|
3826
|
+
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):
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
+
else:
|
3829
|
+
cred = credential.Credential(
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
+
)
|
3832
|
+
http_profile = HttpProfile(
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
+
reqMethod="POST",
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
+
)
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.AddProjectUserRoleRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.AddProjectUserRole(model)
|
3850
|
+
result = rsp.to_json_string()
|
3851
|
+
try:
|
3852
|
+
json_obj = json.loads(result)
|
3853
|
+
except TypeError as e:
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
+
break
|
3857
|
+
cur_time = time.time()
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
+
else:
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
+
|
3867
|
+
|
3816
3868
|
def doCreateIntegrationTask(args, parsed_globals):
|
3817
3869
|
g_param = parse_global_arg(parsed_globals)
|
3818
3870
|
|
@@ -12633,6 +12685,7 @@ ACTION_MAP = {
|
|
12633
12685
|
"DryRunDIOfflineTask": doDryRunDIOfflineTask,
|
12634
12686
|
"DescribeDimensionScore": doDescribeDimensionScore,
|
12635
12687
|
"DescribeRuleGroupTable": doDescribeRuleGroupTable,
|
12688
|
+
"AddProjectUserRole": doAddProjectUserRole,
|
12636
12689
|
"CreateIntegrationTask": doCreateIntegrationTask,
|
12637
12690
|
"KillOpsMakePlanInstances": doKillOpsMakePlanInstances,
|
12638
12691
|
"DescribeDataSourceList": doDescribeDataSourceList,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1269.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.1269
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|