tccli 3.0.1288.1__py2.py3-none-any.whl → 3.0.1290.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/plugins/sso/__init__.py +11 -1
- tccli/plugins/sso/login.py +3 -3
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bi/v20220105/api.json +43 -0
- tccli/services/billing/v20180709/api.json +326 -266
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +64 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/cdwpg/v20201230/api.json +5 -5
- tccli/services/cdwpg/v20201230/examples.json +6 -6
- tccli/services/cdz/v20221123/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +197 -197
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +21 -16
- tccli/services/cls/v20201016/api.json +230 -198
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/cwp/v20180228/api.json +39 -9
- tccli/services/cynosdb/v20190107/api.json +2 -2
- tccli/services/dbbrain/dbbrain_client.py +383 -12
- tccli/services/dbbrain/v20191016/api.json +24 -21
- tccli/services/dbbrain/v20210527/api.json +851 -68
- tccli/services/dbbrain/v20210527/examples.json +56 -0
- tccli/services/domain/v20180808/api.json +11 -11
- tccli/services/dts/v20180330/api.json +34 -34
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +225 -223
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +30 -3
- tccli/services/essbasic/v20210526/api.json +29 -2
- tccli/services/fmu/v20191213/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +2 -2
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +66 -66
- tccli/services/iotcloud/v20210408/examples.json +13 -13
- tccli/services/iotexplorer/iotexplorer_client.py +159 -0
- tccli/services/iotexplorer/v20190423/api.json +561 -0
- tccli/services/iotexplorer/v20190423/examples.json +24 -0
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20211125/api.json +105 -0
- tccli/services/iotvideo/v20211125/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +53 -53
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/v20231130/api.json +12 -2
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/lowcode/v20210108/api.json +2 -2
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +144 -0
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/mps/mps_client.py +501 -24
- tccli/services/mps/v20190612/api.json +2118 -247
- tccli/services/mps/v20190612/examples.json +72 -0
- tccli/services/mqtt/v20240516/api.json +4 -4
- tccli/services/mqtt/v20240516/examples.json +5 -11
- tccli/services/organization/v20210331/api.json +113 -113
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +34 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/svp/v20240125/api.json +1 -1
- tccli/services/tcb/tcb_client.py +53 -0
- tccli/services/tcb/v20180608/api.json +224 -157
- tccli/services/tcb/v20180608/examples.json +8 -0
- tccli/services/tcbr/v20220217/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +379 -285
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +541 -5
- tccli/services/teo/v20220901/examples.json +21 -3
- tccli/services/tione/v20211111/api.json +64 -6
- tccli/services/vdb/v20230616/api.json +31 -2
- tccli/services/vdb/v20230616/examples.json +8 -2
- tccli/services/vrs/v20200824/api.json +14 -2
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +102 -0
- tccli/services/weilingwith/v20230427/api.json +997 -997
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +81 -81
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
@@ -4801,6 +4801,58 @@ def doDescribeInstances(args, parsed_globals):
|
|
4801
4801
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
4802
|
|
4803
4803
|
|
4804
|
+
def doRemoveReplicationGroup(args, parsed_globals):
|
4805
|
+
g_param = parse_global_arg(parsed_globals)
|
4806
|
+
|
4807
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4808
|
+
cred = credential.CVMRoleCredential()
|
4809
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4810
|
+
cred = credential.STSAssumeRoleCredential(
|
4811
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4812
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4813
|
+
)
|
4814
|
+
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):
|
4815
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4816
|
+
else:
|
4817
|
+
cred = credential.Credential(
|
4818
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4819
|
+
)
|
4820
|
+
http_profile = HttpProfile(
|
4821
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4822
|
+
reqMethod="POST",
|
4823
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4824
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4825
|
+
)
|
4826
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4827
|
+
if g_param[OptionsDefine.Language]:
|
4828
|
+
profile.language = g_param[OptionsDefine.Language]
|
4829
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4830
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
4831
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4832
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4833
|
+
model = models.RemoveReplicationGroupRequest()
|
4834
|
+
model.from_json_string(json.dumps(args))
|
4835
|
+
start_time = time.time()
|
4836
|
+
while True:
|
4837
|
+
rsp = client.RemoveReplicationGroup(model)
|
4838
|
+
result = rsp.to_json_string()
|
4839
|
+
try:
|
4840
|
+
json_obj = json.loads(result)
|
4841
|
+
except TypeError as e:
|
4842
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4843
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4844
|
+
break
|
4845
|
+
cur_time = time.time()
|
4846
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4847
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4848
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4849
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4850
|
+
else:
|
4851
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4852
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4853
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4854
|
+
|
4855
|
+
|
4804
4856
|
def doOpenSSL(args, parsed_globals):
|
4805
4857
|
g_param = parse_global_arg(parsed_globals)
|
4806
4858
|
|
@@ -5788,6 +5840,7 @@ ACTION_MAP = {
|
|
5788
5840
|
"DescribeInstanceShards": doDescribeInstanceShards,
|
5789
5841
|
"RestoreInstance": doRestoreInstance,
|
5790
5842
|
"DescribeInstances": doDescribeInstances,
|
5843
|
+
"RemoveReplicationGroup": doRemoveReplicationGroup,
|
5791
5844
|
"OpenSSL": doOpenSSL,
|
5792
5845
|
"DescribeAutoBackupConfig": doDescribeAutoBackupConfig,
|
5793
5846
|
"DescribeBandwidthRange": doDescribeBandwidthRange,
|
@@ -672,6 +672,13 @@
|
|
672
672
|
"output": "ReleaseWanAddressResponse",
|
673
673
|
"status": "online"
|
674
674
|
},
|
675
|
+
"RemoveReplicationGroup": {
|
676
|
+
"document": "删除复制组",
|
677
|
+
"input": "RemoveReplicationGroupRequest",
|
678
|
+
"name": "删除复制组",
|
679
|
+
"output": "RemoveReplicationGroupResponse",
|
680
|
+
"status": "online"
|
681
|
+
},
|
675
682
|
"RemoveReplicationInstance": {
|
676
683
|
"document": "本接口(RemoveReplicationInstance)用于移除复制组中的实例。",
|
677
684
|
"input": "RemoveReplicationInstanceRequest",
|
@@ -11160,6 +11167,33 @@
|
|
11160
11167
|
],
|
11161
11168
|
"type": "object"
|
11162
11169
|
},
|
11170
|
+
"RemoveReplicationGroupRequest": {
|
11171
|
+
"document": "RemoveReplicationGroup请求参数结构体",
|
11172
|
+
"members": [
|
11173
|
+
{
|
11174
|
+
"disabled": false,
|
11175
|
+
"document": "复制组ID",
|
11176
|
+
"example": "crs-rpl-xxx",
|
11177
|
+
"member": "string",
|
11178
|
+
"name": "GroupId",
|
11179
|
+
"required": true,
|
11180
|
+
"type": "string"
|
11181
|
+
}
|
11182
|
+
],
|
11183
|
+
"type": "object"
|
11184
|
+
},
|
11185
|
+
"RemoveReplicationGroupResponse": {
|
11186
|
+
"document": "RemoveReplicationGroup返回参数结构体",
|
11187
|
+
"members": [
|
11188
|
+
{
|
11189
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11190
|
+
"member": "string",
|
11191
|
+
"name": "RequestId",
|
11192
|
+
"type": "string"
|
11193
|
+
}
|
11194
|
+
],
|
11195
|
+
"type": "object"
|
11196
|
+
},
|
11163
11197
|
"RemoveReplicationInstanceRequest": {
|
11164
11198
|
"document": "RemoveReplicationInstance请求参数结构体",
|
11165
11199
|
"members": [
|
@@ -774,6 +774,14 @@
|
|
774
774
|
"title": "关闭外网实例"
|
775
775
|
}
|
776
776
|
],
|
777
|
+
"RemoveReplicationGroup": [
|
778
|
+
{
|
779
|
+
"document": "当复制组内没有实例时,删除复制组",
|
780
|
+
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveReplicationGroup\n<公共请求参数>\n\n{\n \"GroupId\": \"crs-rpl-oxsincthdd\"\n}",
|
781
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
782
|
+
"title": "删除复制组"
|
783
|
+
}
|
784
|
+
],
|
777
785
|
"RemoveReplicationInstance": [
|
778
786
|
{
|
779
787
|
"document": "移除复制组的实例,数据同步类型为强同步。",
|
tccli/services/tcb/tcb_client.py
CHANGED
@@ -1317,6 +1317,58 @@ def doCreateStaticStore(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doEditAuthConfig(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.TcbClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.EditAuthConfigRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.EditAuthConfig(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doDescribeSpecialCostItems(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -4681,6 +4733,7 @@ ACTION_MAP = {
|
|
4681
4733
|
"DescribeStandaloneGatewayPackage": doDescribeStandaloneGatewayPackage,
|
4682
4734
|
"BindEnvGateway": doBindEnvGateway,
|
4683
4735
|
"CreateStaticStore": doCreateStaticStore,
|
4736
|
+
"EditAuthConfig": doEditAuthConfig,
|
4684
4737
|
"DescribeSpecialCostItems": doDescribeSpecialCostItems,
|
4685
4738
|
"DeleteGatewayVersion": doDeleteGatewayVersion,
|
4686
4739
|
"ModifyClsTopic": doModifyClsTopic,
|