tccli 3.0.1103.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/aiart/v20221229/ImageToImage.md +1 -1
- tccli/examples/billing/v20180709/DescribeAllocationBillDetail.md +0 -4
- tccli/examples/csip/v20221121/DescribeDbAssets.md +7 -0
- tccli/examples/csip/v20221121/DescribeOrganizationUserInfo.md +12 -1
- tccli/examples/cwp/v20180228/DescribePublicProxyInstallCommand.md +4 -4
- tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +26 -0
- tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +22 -0
- tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +43 -0
- tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +22 -0
- tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +22 -0
- tccli/examples/dsgc/v20190723/DescribeDSPACOSDiscoveryTaskResult.md +21 -13
- tccli/examples/ess/v20201111/CreateUserVerifyUrl.md +29 -0
- tccli/examples/ess/v20201111/DescribeUserVerifyStatus.md +23 -0
- tccli/examples/hai/v20230812/DescribeInstances.md +3 -2
- tccli/examples/hunyuan/v20230901/QueryHunyuanImageJob.md +33 -0
- tccli/examples/hunyuan/v20230901/SubmitHunyuanImageJob.md +21 -0
- tccli/examples/live/v20180801/DescribeLivePadProcessorList.md +25 -0
- tccli/examples/live/v20180801/StopLivePadProcessor.md +23 -0
- tccli/examples/mrs/v20200910/DrugInstructionObject.md +98 -0
- tccli/examples/ssl/v20191205/DescribeDownloadCertificateUrl.md +23 -0
- tccli/examples/tke/v20220501/CreateNodePool.md +33 -0
- tccli/examples/tke/v20220501/DeleteNodePool.md +21 -0
- tccli/examples/tke/v20220501/DescribeNodePools.md +9 -3
- tccli/examples/tke/v20220501/ModifyNodePool.md +32 -0
- tccli/services/aiart/v20221229/api.json +3 -3
- tccli/services/aiart/v20221229/examples.json +1 -1
- tccli/services/antiddos/v20200309/api.json +2 -2
- tccli/services/apm/v20210622/api.json +1 -1
- tccli/services/asr/v20190614/api.json +5 -5
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/billing/v20180709/api.json +2 -2
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +17 -14
- tccli/services/clb/v20180317/api.json +10 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/csip/v20221121/api.json +80 -2
- tccli/services/csip/v20221121/examples.json +4 -4
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +17 -5
- tccli/services/cwp/v20180228/examples.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +269 -4
- tccli/services/cynosdb/v20190107/api.json +432 -0
- tccli/services/cynosdb/v20190107/examples.json +40 -0
- 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/ess/ess_client.py +110 -4
- tccli/services/ess/v20201111/api.json +185 -5
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/v20210526/api.json +5 -5
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/hai/v20230812/api.json +2 -2
- tccli/services/hai/v20230812/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +110 -4
- tccli/services/hunyuan/v20230901/api.json +188 -4
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +15 -5
- tccli/services/live/live_client.py +114 -8
- tccli/services/live/v20180801/api.json +124 -0
- tccli/services/live/v20180801/examples.json +16 -0
- tccli/services/lke/v20231130/api.json +108 -2
- tccli/services/mrs/v20200910/api.json +1 -1
- tccli/services/mrs/v20200910/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +80 -22
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/ssl/ssl_client.py +57 -4
- tccli/services/ssl/v20191205/api.json +63 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/ssm/v20190923/api.json +1 -1
- tccli/services/tbaas/v20180416/api.json +24 -24
- tccli/services/tdmq/v20200217/api.json +10 -10
- tccli/services/teo/v20220901/api.json +34 -0
- 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/tke/tke_client.py +171 -12
- tccli/services/tke/v20220501/api.json +1403 -86
- tccli/services/tke/v20220501/examples.json +25 -1
- tccli/services/tmt/v20180321/api.json +8 -8
- tccli/services/trtc/v20190722/api.json +14 -8
- tccli/services/tse/v20201207/api.json +37 -7
- tccli/services/vpc/v20170312/api.json +1 -0
- {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/RECORD +93 -78
- {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1103.1.dist-info → tccli-3.0.1105.1.dist-info}/license_files/LICENSE +0 -0
@@ -30203,7 +30203,7 @@
|
|
30203
30203
|
"members": [
|
30204
30204
|
{
|
30205
30205
|
"disabled": false,
|
30206
|
-
"document": "nginx主机
|
30206
|
+
"document": "nginx主机IP列表,逗号分隔",
|
30207
30207
|
"example": "112.16.84.1,112.16.84.12",
|
30208
30208
|
"member": "string",
|
30209
30209
|
"name": "Ip",
|
@@ -30222,7 +30222,7 @@
|
|
30222
30222
|
"example": "xx",
|
30223
30223
|
"member": "string",
|
30224
30224
|
"name": "NginxCommand",
|
30225
|
-
"
|
30225
|
+
"output_required": true,
|
30226
30226
|
"type": "string",
|
30227
30227
|
"value_allowed_null": false
|
30228
30228
|
},
|
@@ -30232,7 +30232,7 @@
|
|
30232
30232
|
"example": "xxx",
|
30233
30233
|
"member": "string",
|
30234
30234
|
"name": "KeepAliveCommand",
|
30235
|
-
"
|
30235
|
+
"output_required": true,
|
30236
30236
|
"type": "string",
|
30237
30237
|
"value_allowed_null": true
|
30238
30238
|
},
|
@@ -39090,7 +39090,7 @@
|
|
39090
39090
|
"members": [
|
39091
39091
|
{
|
39092
39092
|
"disabled": false,
|
39093
|
-
"document": "<li>PolicyId - int64 - 是否必填:否 - 策略Id</li>\n<li>RuleId - int64 - 是否必填:否 - 规则Id</li>\n<li>HostId - string - 是否必填:否 - 主机Id</li>\n<li>HostName - string - 是否必填:否 - 主机名</li>\n<li>HostIp - string - 是否必填:否 - 主机IP</li>\n<li>ItemId - String - 是否必填:否 - 检测项Id</li>\n<li>ItemName - String - 是否必填:否 - 项名称</li>\n<li>DetectStatus - int - 是否必填:否 - 检测状态[0:未通过|3:通过|5:检测中]</li>\n<li>Level - int - 是否必填:否 - 风险等级</li>\n<li>StartTime - string - 是否必填:否 -
|
39093
|
+
"document": "<li>PolicyId - int64 - 是否必填:否 - 策略Id</li>\n<li>RuleId - int64 - 是否必填:否 - 规则Id</li>\n<li>HostId - string - 是否必填:否 - 主机Id</li>\n<li>HostName - string - 是否必填:否 - 主机名</li>\n<li>HostIp - string - 是否必填:否 - 主机IP</li>\n<li>ItemId - String - 是否必填:否 - 检测项Id</li>\n<li>ItemName - String - 是否必填:否 - 项名称</li>\n<li>DetectStatus - int - 是否必填:否 - 检测状态[0:未通过|3:通过|5:检测中]</li>\n<li>Level - int - 是否必填:否 - 风险等级</li>\n<li>StartTime - string - 是否必填:否 - 开始时间</li>\n<li>EndTime - string - 是否必填:否 - 结束时间</li>",
|
39094
39094
|
"example": "无",
|
39095
39095
|
"member": "Filter",
|
39096
39096
|
"name": "Filters",
|
@@ -39487,7 +39487,7 @@
|
|
39487
39487
|
"members": [
|
39488
39488
|
{
|
39489
39489
|
"disabled": false,
|
39490
|
-
"document": "过滤条件。\n<li>RuleCategory- string- 规则类别 0=系统规则,1=用户规则</li>\n<li>Name- String -
|
39490
|
+
"document": "过滤条件。\n<li>RuleCategory- string- 规则类别 0=系统规则,1=用户规则</li>\n<li>Name- String - 规则名称</li>",
|
39491
39491
|
"example": "[]",
|
39492
39492
|
"member": "Filters",
|
39493
39493
|
"name": "Filters",
|
@@ -39506,6 +39506,7 @@
|
|
39506
39506
|
"example": "123456",
|
39507
39507
|
"member": "string",
|
39508
39508
|
"name": "TaskId",
|
39509
|
+
"output_required": true,
|
39509
39510
|
"type": "string",
|
39510
39511
|
"value_allowed_null": false
|
39511
39512
|
},
|
@@ -43147,6 +43148,17 @@
|
|
43147
43148
|
"required": false,
|
43148
43149
|
"type": "list",
|
43149
43150
|
"value_allowed_null": true
|
43151
|
+
},
|
43152
|
+
{
|
43153
|
+
"disabled": false,
|
43154
|
+
"document": "检测项所属分类\n注意:此字段可能返回 null,表示取不到有效值。",
|
43155
|
+
"example": "无",
|
43156
|
+
"member": "int64",
|
43157
|
+
"name": "CategoryId",
|
43158
|
+
"output_required": false,
|
43159
|
+
"required": false,
|
43160
|
+
"type": "int",
|
43161
|
+
"value_allowed_null": true
|
43150
43162
|
}
|
43151
43163
|
],
|
43152
43164
|
"usage": "both"
|
@@ -2143,8 +2143,8 @@
|
|
2143
2143
|
"DescribePublicProxyInstallCommand": [
|
2144
2144
|
{
|
2145
2145
|
"document": "",
|
2146
|
-
"input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePublicProxyInstallCommand\n<公共请求参数>\n\n{\n \"Ip\": \"
|
2147
|
-
"output": "{\n \"Response\": {\n \"KeepAliveCommand\": \"
|
2146
|
+
"input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePublicProxyInstallCommand\n<公共请求参数>\n\n{\n \"Ip\": \"0.0.0.0\"\n}",
|
2147
|
+
"output": "{\n \"Response\": {\n \"KeepAliveCommand\": \"abc\",\n \"NginxCommand\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
2148
2148
|
"title": "DescribePublicProxyInstallCommand"
|
2149
2149
|
}
|
2150
2150
|
],
|
@@ -1369,6 +1369,58 @@ def doExportInstanceSlowQueries(args, parsed_globals):
|
|
1369
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1370
|
|
1371
1371
|
|
1372
|
+
def doDeleteCLSDelivery(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.DeleteCLSDeliveryRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.DeleteCLSDelivery(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1372
1424
|
def doDescribeChangedParamsAfterUpgrade(args, parsed_globals):
|
1373
1425
|
g_param = parse_global_arg(parsed_globals)
|
1374
1426
|
|
@@ -4125,6 +4177,58 @@ def doModifyInstanceParam(args, parsed_globals):
|
|
4125
4177
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
4178
|
|
4127
4179
|
|
4180
|
+
def doDescribeInstanceCLSLogDelivery(args, parsed_globals):
|
4181
|
+
g_param = parse_global_arg(parsed_globals)
|
4182
|
+
|
4183
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4184
|
+
cred = credential.CVMRoleCredential()
|
4185
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4186
|
+
cred = credential.STSAssumeRoleCredential(
|
4187
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4188
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4189
|
+
)
|
4190
|
+
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):
|
4191
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4192
|
+
else:
|
4193
|
+
cred = credential.Credential(
|
4194
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4195
|
+
)
|
4196
|
+
http_profile = HttpProfile(
|
4197
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4198
|
+
reqMethod="POST",
|
4199
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4200
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4201
|
+
)
|
4202
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4203
|
+
if g_param[OptionsDefine.Language]:
|
4204
|
+
profile.language = g_param[OptionsDefine.Language]
|
4205
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4206
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
4207
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4208
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4209
|
+
model = models.DescribeInstanceCLSLogDeliveryRequest()
|
4210
|
+
model.from_json_string(json.dumps(args))
|
4211
|
+
start_time = time.time()
|
4212
|
+
while True:
|
4213
|
+
rsp = client.DescribeInstanceCLSLogDelivery(model)
|
4214
|
+
result = rsp.to_json_string()
|
4215
|
+
try:
|
4216
|
+
json_obj = json.loads(result)
|
4217
|
+
except TypeError as e:
|
4218
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4219
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4220
|
+
break
|
4221
|
+
cur_time = time.time()
|
4222
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4223
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4224
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4225
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4226
|
+
else:
|
4227
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4228
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4229
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
|
+
|
4231
|
+
|
4128
4232
|
def doBindClusterResourcePackages(args, parsed_globals):
|
4129
4233
|
g_param = parse_global_arg(parsed_globals)
|
4130
4234
|
|
@@ -4957,6 +5061,58 @@ def doInquirePriceRenew(args, parsed_globals):
|
|
4957
5061
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4958
5062
|
|
4959
5063
|
|
5064
|
+
def doStartCLSDelivery(args, parsed_globals):
|
5065
|
+
g_param = parse_global_arg(parsed_globals)
|
5066
|
+
|
5067
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5068
|
+
cred = credential.CVMRoleCredential()
|
5069
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5070
|
+
cred = credential.STSAssumeRoleCredential(
|
5071
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5072
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5073
|
+
)
|
5074
|
+
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):
|
5075
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5076
|
+
else:
|
5077
|
+
cred = credential.Credential(
|
5078
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5079
|
+
)
|
5080
|
+
http_profile = HttpProfile(
|
5081
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5082
|
+
reqMethod="POST",
|
5083
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5084
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5085
|
+
)
|
5086
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5087
|
+
if g_param[OptionsDefine.Language]:
|
5088
|
+
profile.language = g_param[OptionsDefine.Language]
|
5089
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5090
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
5091
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5092
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5093
|
+
model = models.StartCLSDeliveryRequest()
|
5094
|
+
model.from_json_string(json.dumps(args))
|
5095
|
+
start_time = time.time()
|
5096
|
+
while True:
|
5097
|
+
rsp = client.StartCLSDelivery(model)
|
5098
|
+
result = rsp.to_json_string()
|
5099
|
+
try:
|
5100
|
+
json_obj = json.loads(result)
|
5101
|
+
except TypeError as e:
|
5102
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5103
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5104
|
+
break
|
5105
|
+
cur_time = time.time()
|
5106
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5107
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5108
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5109
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5110
|
+
else:
|
5111
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5112
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5113
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
|
+
|
5115
|
+
|
4960
5116
|
def doReloadBalanceProxyNode(args, parsed_globals):
|
4961
5117
|
g_param = parse_global_arg(parsed_globals)
|
4962
5118
|
|
@@ -5113,6 +5269,58 @@ def doModifyAuditRuleTemplates(args, parsed_globals):
|
|
5113
5269
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
5270
|
|
5115
5271
|
|
5272
|
+
def doStopCLSDelivery(args, parsed_globals):
|
5273
|
+
g_param = parse_global_arg(parsed_globals)
|
5274
|
+
|
5275
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5276
|
+
cred = credential.CVMRoleCredential()
|
5277
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5278
|
+
cred = credential.STSAssumeRoleCredential(
|
5279
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5280
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5281
|
+
)
|
5282
|
+
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):
|
5283
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5284
|
+
else:
|
5285
|
+
cred = credential.Credential(
|
5286
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5287
|
+
)
|
5288
|
+
http_profile = HttpProfile(
|
5289
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5290
|
+
reqMethod="POST",
|
5291
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5292
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5293
|
+
)
|
5294
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5295
|
+
if g_param[OptionsDefine.Language]:
|
5296
|
+
profile.language = g_param[OptionsDefine.Language]
|
5297
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5298
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
5299
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5300
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5301
|
+
model = models.StopCLSDeliveryRequest()
|
5302
|
+
model.from_json_string(json.dumps(args))
|
5303
|
+
start_time = time.time()
|
5304
|
+
while True:
|
5305
|
+
rsp = client.StopCLSDelivery(model)
|
5306
|
+
result = rsp.to_json_string()
|
5307
|
+
try:
|
5308
|
+
json_obj = json.loads(result)
|
5309
|
+
except TypeError as e:
|
5310
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5311
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5312
|
+
break
|
5313
|
+
cur_time = time.time()
|
5314
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5315
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5316
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5317
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5318
|
+
else:
|
5319
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5320
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5321
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5322
|
+
|
5323
|
+
|
5116
5324
|
def doDescribeBackupList(args, parsed_globals):
|
5117
5325
|
g_param = parse_global_arg(parsed_globals)
|
5118
5326
|
|
@@ -5581,6 +5789,58 @@ def doDescribeInstances(args, parsed_globals):
|
|
5581
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5582
5790
|
|
5583
5791
|
|
5792
|
+
def doDescribeParamTemplateDetail(args, parsed_globals):
|
5793
|
+
g_param = parse_global_arg(parsed_globals)
|
5794
|
+
|
5795
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5796
|
+
cred = credential.CVMRoleCredential()
|
5797
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5798
|
+
cred = credential.STSAssumeRoleCredential(
|
5799
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5800
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5801
|
+
)
|
5802
|
+
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):
|
5803
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5804
|
+
else:
|
5805
|
+
cred = credential.Credential(
|
5806
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5807
|
+
)
|
5808
|
+
http_profile = HttpProfile(
|
5809
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5810
|
+
reqMethod="POST",
|
5811
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5812
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5813
|
+
)
|
5814
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5815
|
+
if g_param[OptionsDefine.Language]:
|
5816
|
+
profile.language = g_param[OptionsDefine.Language]
|
5817
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5818
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
5819
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5820
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5821
|
+
model = models.DescribeParamTemplateDetailRequest()
|
5822
|
+
model.from_json_string(json.dumps(args))
|
5823
|
+
start_time = time.time()
|
5824
|
+
while True:
|
5825
|
+
rsp = client.DescribeParamTemplateDetail(model)
|
5826
|
+
result = rsp.to_json_string()
|
5827
|
+
try:
|
5828
|
+
json_obj = json.loads(result)
|
5829
|
+
except TypeError as e:
|
5830
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5831
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5832
|
+
break
|
5833
|
+
cur_time = time.time()
|
5834
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5835
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5836
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5837
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5838
|
+
else:
|
5839
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5840
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5841
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5842
|
+
|
5843
|
+
|
5584
5844
|
def doUpgradeClusterVersion(args, parsed_globals):
|
5585
5845
|
g_param = parse_global_arg(parsed_globals)
|
5586
5846
|
|
@@ -6257,7 +6517,7 @@ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
|
|
6257
6517
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6258
6518
|
|
6259
6519
|
|
6260
|
-
def
|
6520
|
+
def doCreateCLSDelivery(args, parsed_globals):
|
6261
6521
|
g_param = parse_global_arg(parsed_globals)
|
6262
6522
|
|
6263
6523
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6286,11 +6546,11 @@ def doDescribeParamTemplateDetail(args, parsed_globals):
|
|
6286
6546
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6287
6547
|
client._sdkVersion += ("_CLI_" + __version__)
|
6288
6548
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6289
|
-
model = models.
|
6549
|
+
model = models.CreateCLSDeliveryRequest()
|
6290
6550
|
model.from_json_string(json.dumps(args))
|
6291
6551
|
start_time = time.time()
|
6292
6552
|
while True:
|
6293
|
-
rsp = client.
|
6553
|
+
rsp = client.CreateCLSDelivery(model)
|
6294
6554
|
result = rsp.to_json_string()
|
6295
6555
|
try:
|
6296
6556
|
json_obj = json.loads(result)
|
@@ -7126,6 +7386,7 @@ ACTION_MAP = {
|
|
7126
7386
|
"DescribeProxyNodes": doDescribeProxyNodes,
|
7127
7387
|
"DisassociateSecurityGroups": doDisassociateSecurityGroups,
|
7128
7388
|
"ExportInstanceSlowQueries": doExportInstanceSlowQueries,
|
7389
|
+
"DeleteCLSDelivery": doDeleteCLSDelivery,
|
7129
7390
|
"DescribeChangedParamsAfterUpgrade": doDescribeChangedParamsAfterUpgrade,
|
7130
7391
|
"DescribeAccountPrivileges": doDescribeAccountPrivileges,
|
7131
7392
|
"CloseClusterPasswordComplexity": doCloseClusterPasswordComplexity,
|
@@ -7179,6 +7440,7 @@ ACTION_MAP = {
|
|
7179
7440
|
"DescribeRollbackTimeRange": doDescribeRollbackTimeRange,
|
7180
7441
|
"DescribeFlow": doDescribeFlow,
|
7181
7442
|
"ModifyInstanceParam": doModifyInstanceParam,
|
7443
|
+
"DescribeInstanceCLSLogDelivery": doDescribeInstanceCLSLogDelivery,
|
7182
7444
|
"BindClusterResourcePackages": doBindClusterResourcePackages,
|
7183
7445
|
"DescribeAuditLogs": doDescribeAuditLogs,
|
7184
7446
|
"UnbindClusterResourcePackages": doUnbindClusterResourcePackages,
|
@@ -7195,9 +7457,11 @@ ACTION_MAP = {
|
|
7195
7457
|
"DescribeAccounts": doDescribeAccounts,
|
7196
7458
|
"SetRenewFlag": doSetRenewFlag,
|
7197
7459
|
"InquirePriceRenew": doInquirePriceRenew,
|
7460
|
+
"StartCLSDelivery": doStartCLSDelivery,
|
7198
7461
|
"ReloadBalanceProxyNode": doReloadBalanceProxyNode,
|
7199
7462
|
"OfflineCluster": doOfflineCluster,
|
7200
7463
|
"ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
|
7464
|
+
"StopCLSDelivery": doStopCLSDelivery,
|
7201
7465
|
"DescribeBackupList": doDescribeBackupList,
|
7202
7466
|
"ModifyAccountDescription": doModifyAccountDescription,
|
7203
7467
|
"CreateClusterDatabase": doCreateClusterDatabase,
|
@@ -7207,6 +7471,7 @@ ACTION_MAP = {
|
|
7207
7471
|
"DescribeResourcePackageDetail": doDescribeResourcePackageDetail,
|
7208
7472
|
"ModifyBackupConfig": doModifyBackupConfig,
|
7209
7473
|
"DescribeInstances": doDescribeInstances,
|
7474
|
+
"DescribeParamTemplateDetail": doDescribeParamTemplateDetail,
|
7210
7475
|
"UpgradeClusterVersion": doUpgradeClusterVersion,
|
7211
7476
|
"SearchClusterDatabases": doSearchClusterDatabases,
|
7212
7477
|
"DescribeClusterParams": doDescribeClusterParams,
|
@@ -7220,7 +7485,7 @@ ACTION_MAP = {
|
|
7220
7485
|
"DescribeBackupDownloadUrl": doDescribeBackupDownloadUrl,
|
7221
7486
|
"CreateProxy": doCreateProxy,
|
7222
7487
|
"ModifyDBInstanceSecurityGroups": doModifyDBInstanceSecurityGroups,
|
7223
|
-
"
|
7488
|
+
"CreateCLSDelivery": doCreateCLSDelivery,
|
7224
7489
|
"ModifyBinlogSaveDays": doModifyBinlogSaveDays,
|
7225
7490
|
"DescribeAccountAllGrantPrivileges": doDescribeAccountAllGrantPrivileges,
|
7226
7491
|
"OpenReadOnlyInstanceExclusiveAccess": doOpenReadOnlyInstanceExclusiveAccess,
|