tccli 3.0.1203.1__py2.py3-none-any.whl → 3.0.1205.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/apm/v20210622/api.json +17 -17
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +12 -0
- tccli/services/cvm/v20170312/api.json +13 -1
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +108 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +239 -1
- tccli/services/ess/v20201111/examples.json +58 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +74 -0
- tccli/services/essbasic/v20210526/examples.json +14 -0
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/mariadb/mariadb_client.py +57 -4
- tccli/services/mariadb/v20170312/api.json +64 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +17 -7
- tccli/services/scf/v20180416/examples.json +3 -3
- tccli/services/sqlserver/v20180328/api.json +1 -1
- tccli/services/tcss/v20201101/api.json +9 -0
- tccli/services/vclm/v20240523/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +7 -5
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +336 -13
- tccli/services/waf/v20180125/examples.json +1 -1
- {tccli-3.0.1203.1.dist-info → tccli-3.0.1205.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1203.1.dist-info → tccli-3.0.1205.1.dist-info}/RECORD +33 -33
- {tccli-3.0.1203.1.dist-info → tccli-3.0.1205.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1203.1.dist-info → tccli-3.0.1205.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1203.1.dist-info → tccli-3.0.1205.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1205.1'
|
@@ -217,8 +217,8 @@
|
|
217
217
|
"members": [
|
218
218
|
{
|
219
219
|
"disabled": false,
|
220
|
-
"document": "
|
221
|
-
"example": "
|
220
|
+
"document": "业务系统ID\t",
|
221
|
+
"example": "apm-059oXBfTL",
|
222
222
|
"member": "string",
|
223
223
|
"name": "InstanceKey",
|
224
224
|
"output_required": true,
|
@@ -228,7 +228,7 @@
|
|
228
228
|
},
|
229
229
|
{
|
230
230
|
"disabled": false,
|
231
|
-
"document": "
|
231
|
+
"document": "应用名\t",
|
232
232
|
"example": "java-order-service\t",
|
233
233
|
"member": "string",
|
234
234
|
"name": "ServiceName",
|
@@ -250,7 +250,7 @@
|
|
250
250
|
},
|
251
251
|
{
|
252
252
|
"disabled": false,
|
253
|
-
"document": "
|
253
|
+
"document": "错误类型过滤",
|
254
254
|
"example": "io.grpc.StatusRuntimeException,java.sql.(.*?)\t",
|
255
255
|
"member": "string",
|
256
256
|
"name": "ExceptionFilter",
|
@@ -261,7 +261,7 @@
|
|
261
261
|
},
|
262
262
|
{
|
263
263
|
"disabled": false,
|
264
|
-
"document": "
|
264
|
+
"document": "HTTP状态码过滤",
|
265
265
|
"example": "400,500\t",
|
266
266
|
"member": "string",
|
267
267
|
"name": "ErrorCodeFilter",
|
@@ -272,7 +272,7 @@
|
|
272
272
|
},
|
273
273
|
{
|
274
274
|
"disabled": false,
|
275
|
-
"document": "
|
275
|
+
"document": "应用诊断开关(已废弃)\n注意:此字段可能返回 null,表示取不到有效值。",
|
276
276
|
"example": "true",
|
277
277
|
"member": "bool",
|
278
278
|
"name": "EventEnable",
|
@@ -338,7 +338,7 @@
|
|
338
338
|
},
|
339
339
|
{
|
340
340
|
"disabled": false,
|
341
|
-
"document": "
|
341
|
+
"document": "日志源\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
342
342
|
"example": "CLS",
|
343
343
|
"member": "string",
|
344
344
|
"name": "LogSource",
|
@@ -349,7 +349,7 @@
|
|
349
349
|
},
|
350
350
|
{
|
351
351
|
"disabled": false,
|
352
|
-
"document": "
|
352
|
+
"document": "日志集 ",
|
353
353
|
"example": "postgres",
|
354
354
|
"member": "string",
|
355
355
|
"name": "LogSet",
|
@@ -360,7 +360,7 @@
|
|
360
360
|
},
|
361
361
|
{
|
362
362
|
"disabled": false,
|
363
|
-
"document": "日志主题
|
363
|
+
"document": "日志主题",
|
364
364
|
"example": "032f3078-10b6-46a0-978f-1696e8e79696",
|
365
365
|
"member": "string",
|
366
366
|
"name": "LogTopicID",
|
@@ -371,7 +371,7 @@
|
|
371
371
|
},
|
372
372
|
{
|
373
373
|
"disabled": false,
|
374
|
-
"document": "
|
374
|
+
"document": "方法栈快照开关 true 开启 false 关闭",
|
375
375
|
"example": "false",
|
376
376
|
"member": "bool",
|
377
377
|
"name": "SnapshotEnable",
|
@@ -382,7 +382,7 @@
|
|
382
382
|
},
|
383
383
|
{
|
384
384
|
"disabled": false,
|
385
|
-
"document": "
|
385
|
+
"document": "慢调用监听触发阈值",
|
386
386
|
"example": "2000",
|
387
387
|
"member": "int64",
|
388
388
|
"name": "SnapshotTimeout",
|
@@ -393,7 +393,7 @@
|
|
393
393
|
},
|
394
394
|
{
|
395
395
|
"disabled": false,
|
396
|
-
"document": "
|
396
|
+
"document": "探针总开关",
|
397
397
|
"example": "true",
|
398
398
|
"member": "bool",
|
399
399
|
"name": "AgentEnable",
|
@@ -404,7 +404,7 @@
|
|
404
404
|
},
|
405
405
|
{
|
406
406
|
"disabled": false,
|
407
|
-
"document": "
|
407
|
+
"document": "组件列表开关(已废弃)\n注意:此字段可能返回 null,表示取不到有效值。",
|
408
408
|
"example": "[{\"Name\":\"dubbo\",\"Enable\":true},{\"Name\":\"googlehttpclient\",\"Enable\":true},{\"Name\":\"grpc\",\"Enable\":true},{\"Name\":\"httpclient3\",\"Enable\":true},{\"Name\":\"httpclient4\",\"Enable\":true},{\"Name\":\"hystrix\",\"Enable\":true},{\"Name\":\"lettuce\",\"Enable\":true},{\"Name\":\"mongodb\",\"Enable\":true},{\"Name\":\"mybatis\",\"Enable\":true},{\"Name\":\"mysql\",\"Enable\":true},{\"Name\":\"okhttp\",\"Enable\":true},{\"Name\":\"redis\",\"Enable\":true},{\"Name\":\"rxjava\",\"Enable\":true},{\"Name\":\"spring-webmvc\",\"Enable\":true},{\"Name\":\"tomcat\",\"Enable\":true}]",
|
409
409
|
"member": "Instrument",
|
410
410
|
"name": "InstrumentList",
|
@@ -415,7 +415,7 @@
|
|
415
415
|
},
|
416
416
|
{
|
417
417
|
"disabled": false,
|
418
|
-
"document": "
|
418
|
+
"document": "链路压缩开关(已废弃)",
|
419
419
|
"example": "true",
|
420
420
|
"member": "bool",
|
421
421
|
"name": "TraceSquash",
|
@@ -2057,7 +2057,7 @@
|
|
2057
2057
|
"members": [
|
2058
2058
|
{
|
2059
2059
|
"disabled": false,
|
2060
|
-
"document": "
|
2060
|
+
"document": "业务系统Id",
|
2061
2061
|
"example": "apm-059oXBfTL",
|
2062
2062
|
"member": "string",
|
2063
2063
|
"name": "InstanceId",
|
@@ -2066,7 +2066,7 @@
|
|
2066
2066
|
},
|
2067
2067
|
{
|
2068
2068
|
"disabled": false,
|
2069
|
-
"document": "需要修改的字段key value
|
2069
|
+
"document": "需要修改的字段key value分别指定字段名、字段值\n[具体字段请见](https://cloud.tencent.com/document/product/248/111241)",
|
2070
2070
|
"example": "\"Tags\":[{\"Key\":\"UrlConvergence\",\"Value\":\"RPCServer/market.MarketServiceleetcode9(.*?)\"},{\"Key\":\"UrlConvergenceThreshold\",\"Value\":\"600\"},{\"Key\":\"UrlConvergenceSwitch\",\"Value\":\"1\"},{\"Key\":\"AgentEnable\",\"Value\":\"true\"}]\t",
|
2071
2071
|
"member": "ApmTag",
|
2072
2072
|
"name": "Tags",
|
@@ -2075,7 +2075,7 @@
|
|
2075
2075
|
},
|
2076
2076
|
{
|
2077
2077
|
"disabled": false,
|
2078
|
-
"document": "
|
2078
|
+
"document": "需要修改配置的应用列表名称\t",
|
2079
2079
|
"example": "\"ServiceNames\":[\"stock-service\",\"profile-service28\",\"profile-service08\"],\t",
|
2080
2080
|
"member": "string",
|
2081
2081
|
"name": "ServiceNames",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"DescribeGeneralApmApplicationConfig": [
|
28
28
|
{
|
29
|
-
"document": "
|
29
|
+
"document": "查询指定业务系统下应用的配置信息",
|
30
30
|
"input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralApmApplicationConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"apm-6xYKFXYxo\",\n \"ServiceName\": \"java-order-service\"\n}",
|
31
31
|
"output": "{\n \"Response\": {\n \"ApmApplicationConfigView\": {\n \"InstanceKey\": \"apm-059oXBfTL\",\n \"ServiceName\": \"profile-service\",\n \"OperationNameFilter\": \"\",\n \"ExceptionFilter\": \"\",\n \"ErrorCodeFilter\": \"\",\n \"EventEnable\": false,\n \"UrlConvergenceSwitch\": 1,\n \"UrlConvergenceThreshold\": 500,\n \"UrlConvergence\": \"RPCServer/market.MarketService2/(.*?)\",\n \"UrlExclude\": \"\",\n \"IsRelatedLog\": 0,\n \"LogSource\": \"CLS\",\n \"LogSet\": \"\",\n \"LogTopicID\": \"\",\n \"SnapshotEnable\": true,\n \"SnapshotTimeout\": 2000,\n \"AgentEnable\": true,\n \"InstrumentList\": [\n {\n \"Name\": \"dubbo\",\n \"Enable\": true\n },\n {\n \"Name\": \"googlehttpclient\",\n \"Enable\": true\n },\n {\n \"Name\": \"grpc\",\n \"Enable\": true\n },\n {\n \"Name\": \"httpclient3\",\n \"Enable\": true\n },\n {\n \"Name\": \"httpclient4\",\n \"Enable\": true\n },\n {\n \"Name\": \"hystrix\",\n \"Enable\": true\n },\n {\n \"Name\": \"lettuce\",\n \"Enable\": true\n },\n {\n \"Name\": \"mongodb\",\n \"Enable\": true\n },\n {\n \"Name\": \"mybatis\",\n \"Enable\": true\n },\n {\n \"Name\": \"mysql\",\n \"Enable\": true\n },\n {\n \"Name\": \"okhttp\",\n \"Enable\": true\n },\n {\n \"Name\": \"redis\",\n \"Enable\": true\n },\n {\n \"Name\": \"rxjava\",\n \"Enable\": true\n },\n {\n \"Name\": \"spring-webmvc\",\n \"Enable\": true\n },\n {\n \"Name\": \"tomcat\",\n \"Enable\": true\n }\n ],\n \"TraceSquash\": true\n },\n \"RequestId\": \"test-test-test0980990\"\n }\n}",
|
32
32
|
"title": "查询应用配置信息"
|
@@ -7560,6 +7560,7 @@
|
|
7560
7560
|
"example": "10",
|
7561
7561
|
"member": "int64",
|
7562
7562
|
"name": "Interval",
|
7563
|
+
"output_required": true,
|
7563
7564
|
"type": "int",
|
7564
7565
|
"value_allowed_null": false
|
7565
7566
|
},
|
@@ -7569,6 +7570,7 @@
|
|
7569
7570
|
"example": "12",
|
7570
7571
|
"member": "int64",
|
7571
7572
|
"name": "TotalCount",
|
7573
|
+
"output_required": true,
|
7572
7574
|
"type": "int",
|
7573
7575
|
"value_allowed_null": false
|
7574
7576
|
},
|
@@ -7578,6 +7580,7 @@
|
|
7578
7580
|
"example": "无",
|
7579
7581
|
"member": "HistogramInfo",
|
7580
7582
|
"name": "HistogramInfos",
|
7583
|
+
"output_required": true,
|
7581
7584
|
"type": "list",
|
7582
7585
|
"value_allowed_null": false
|
7583
7586
|
},
|
@@ -8081,6 +8084,15 @@
|
|
8081
8084
|
"name": "Limit",
|
8082
8085
|
"required": false,
|
8083
8086
|
"type": "int"
|
8087
|
+
},
|
8088
|
+
{
|
8089
|
+
"disabled": false,
|
8090
|
+
"document": "控制Filters相关字段是否为精确匹配。 0: 默认值,shipperName模糊匹配 1: shipperName 精确匹配",
|
8091
|
+
"example": "无",
|
8092
|
+
"member": "uint64",
|
8093
|
+
"name": "PreciseSearch",
|
8094
|
+
"required": false,
|
8095
|
+
"type": "int"
|
8084
8096
|
}
|
8085
8097
|
],
|
8086
8098
|
"type": "object"
|
@@ -393,7 +393,7 @@
|
|
393
393
|
"status": "online"
|
394
394
|
},
|
395
395
|
"ImportImage": {
|
396
|
-
"document": "本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持
|
396
|
+
"document": "本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持RAW、VHD、QCOW2、VMDK镜像格式。",
|
397
397
|
"input": "ImportImageRequest",
|
398
398
|
"name": "外部镜像导入",
|
399
399
|
"output": "ImportImageResponse",
|
@@ -4506,6 +4506,7 @@
|
|
4506
4506
|
"example": "2",
|
4507
4507
|
"member": "int64",
|
4508
4508
|
"name": "TotalCount",
|
4509
|
+
"output_required": true,
|
4509
4510
|
"type": "int",
|
4510
4511
|
"value_allowed_null": false
|
4511
4512
|
},
|
@@ -4515,6 +4516,7 @@
|
|
4515
4516
|
"example": "NA",
|
4516
4517
|
"member": "RepairTaskInfo",
|
4517
4518
|
"name": "RepairTaskInfoSet",
|
4519
|
+
"output_required": true,
|
4518
4520
|
"type": "list",
|
4519
4521
|
"value_allowed_null": true
|
4520
4522
|
},
|
@@ -5859,6 +5861,15 @@
|
|
5859
5861
|
"name": "BootMode",
|
5860
5862
|
"required": false,
|
5861
5863
|
"type": "string"
|
5864
|
+
},
|
5865
|
+
{
|
5866
|
+
"disabled": false,
|
5867
|
+
"document": " 镜像族",
|
5868
|
+
"example": "business-daily-update",
|
5869
|
+
"member": "string",
|
5870
|
+
"name": "ImageFamily",
|
5871
|
+
"required": false,
|
5872
|
+
"type": "string"
|
5862
5873
|
}
|
5863
5874
|
],
|
5864
5875
|
"type": "object"
|
@@ -9958,6 +9969,7 @@
|
|
9958
9969
|
"example": "rep-xxxxxxxx",
|
9959
9970
|
"member": "string",
|
9960
9971
|
"name": "TaskId",
|
9972
|
+
"output_required": true,
|
9961
9973
|
"type": "string",
|
9962
9974
|
"value_allowed_null": false
|
9963
9975
|
},
|
@@ -901,6 +901,58 @@ def doExportResourcePackageDeductDetails(args, parsed_globals):
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
902
|
|
903
903
|
|
904
|
+
def doInquirePriceModify(args, parsed_globals):
|
905
|
+
g_param = parse_global_arg(parsed_globals)
|
906
|
+
|
907
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
908
|
+
cred = credential.CVMRoleCredential()
|
909
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
|
+
cred = credential.STSAssumeRoleCredential(
|
911
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
|
+
)
|
914
|
+
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):
|
915
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
916
|
+
else:
|
917
|
+
cred = credential.Credential(
|
918
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
919
|
+
)
|
920
|
+
http_profile = HttpProfile(
|
921
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
922
|
+
reqMethod="POST",
|
923
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
924
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
925
|
+
)
|
926
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
927
|
+
if g_param[OptionsDefine.Language]:
|
928
|
+
profile.language = g_param[OptionsDefine.Language]
|
929
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
930
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
+
model = models.InquirePriceModifyRequest()
|
934
|
+
model.from_json_string(json.dumps(args))
|
935
|
+
start_time = time.time()
|
936
|
+
while True:
|
937
|
+
rsp = client.InquirePriceModify(model)
|
938
|
+
result = rsp.to_json_string()
|
939
|
+
try:
|
940
|
+
json_obj = json.loads(result)
|
941
|
+
except TypeError as e:
|
942
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
943
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
944
|
+
break
|
945
|
+
cur_time = time.time()
|
946
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
947
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
948
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
949
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
950
|
+
else:
|
951
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
952
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
953
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
|
+
|
955
|
+
|
904
956
|
def doDescribeClusterDetail(args, parsed_globals):
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
906
958
|
|
@@ -7741,6 +7793,7 @@ ACTION_MAP = {
|
|
7741
7793
|
"RenewClusters": doRenewClusters,
|
7742
7794
|
"CloseProxy": doCloseProxy,
|
7743
7795
|
"ExportResourcePackageDeductDetails": doExportResourcePackageDeductDetails,
|
7796
|
+
"InquirePriceModify": doInquirePriceModify,
|
7744
7797
|
"DescribeClusterDetail": doDescribeClusterDetail,
|
7745
7798
|
"DescribeTasks": doDescribeTasks,
|
7746
7799
|
"DescribeBackupConfig": doDescribeBackupConfig,
|
@@ -595,6 +595,13 @@
|
|
595
595
|
"output": "InquirePriceCreateResponse",
|
596
596
|
"status": "online"
|
597
597
|
},
|
598
|
+
"InquirePriceModify": {
|
599
|
+
"document": "变配预付费集群询价",
|
600
|
+
"input": "InquirePriceModifyRequest",
|
601
|
+
"name": "变配预付费集群询价",
|
602
|
+
"output": "InquirePriceModifyResponse",
|
603
|
+
"status": "online"
|
604
|
+
},
|
598
605
|
"InquirePriceRenew": {
|
599
606
|
"document": "查询续费集群价格",
|
600
607
|
"input": "InquirePriceRenewRequest",
|
@@ -12483,6 +12490,107 @@
|
|
12483
12490
|
],
|
12484
12491
|
"type": "object"
|
12485
12492
|
},
|
12493
|
+
"InquirePriceModifyRequest": {
|
12494
|
+
"document": "InquirePriceModify请求参数结构体",
|
12495
|
+
"members": [
|
12496
|
+
{
|
12497
|
+
"disabled": false,
|
12498
|
+
"document": "集群ID",
|
12499
|
+
"example": "无",
|
12500
|
+
"member": "string",
|
12501
|
+
"name": "ClusterId",
|
12502
|
+
"required": true,
|
12503
|
+
"type": "string"
|
12504
|
+
},
|
12505
|
+
{
|
12506
|
+
"disabled": false,
|
12507
|
+
"document": "CPU核数",
|
12508
|
+
"example": "1",
|
12509
|
+
"member": "int64",
|
12510
|
+
"name": "Cpu",
|
12511
|
+
"required": false,
|
12512
|
+
"type": "int"
|
12513
|
+
},
|
12514
|
+
{
|
12515
|
+
"disabled": false,
|
12516
|
+
"document": "内存大小",
|
12517
|
+
"example": "1",
|
12518
|
+
"member": "int64",
|
12519
|
+
"name": "Memory",
|
12520
|
+
"required": false,
|
12521
|
+
"type": "int"
|
12522
|
+
},
|
12523
|
+
{
|
12524
|
+
"disabled": false,
|
12525
|
+
"document": "存储大小,存储资源变配:ClusterId,StorageLimit",
|
12526
|
+
"example": "10",
|
12527
|
+
"member": "int64",
|
12528
|
+
"name": "StorageLimit",
|
12529
|
+
"required": false,
|
12530
|
+
"type": "int"
|
12531
|
+
},
|
12532
|
+
{
|
12533
|
+
"disabled": false,
|
12534
|
+
"document": "实例ID,计算资源变配必传: ClusterId,InstanceId,Cpu,Memory ",
|
12535
|
+
"example": "无",
|
12536
|
+
"member": "string",
|
12537
|
+
"name": "InstanceId",
|
12538
|
+
"required": false,
|
12539
|
+
"type": "string"
|
12540
|
+
},
|
12541
|
+
{
|
12542
|
+
"disabled": false,
|
12543
|
+
"document": "实例设备类型",
|
12544
|
+
"example": "无",
|
12545
|
+
"member": "string",
|
12546
|
+
"name": "DeviceType",
|
12547
|
+
"required": false,
|
12548
|
+
"type": "string"
|
12549
|
+
},
|
12550
|
+
{
|
12551
|
+
"disabled": false,
|
12552
|
+
"document": "serverless实例ccu大小",
|
12553
|
+
"example": "无",
|
12554
|
+
"member": "float",
|
12555
|
+
"name": "Ccu",
|
12556
|
+
"required": false,
|
12557
|
+
"type": "float"
|
12558
|
+
}
|
12559
|
+
],
|
12560
|
+
"type": "object"
|
12561
|
+
},
|
12562
|
+
"InquirePriceModifyResponse": {
|
12563
|
+
"document": "InquirePriceModify返回参数结构体",
|
12564
|
+
"members": [
|
12565
|
+
{
|
12566
|
+
"disabled": false,
|
12567
|
+
"document": "实例价格\n注意:此字段可能返回 null,表示取不到有效值。",
|
12568
|
+
"example": "无",
|
12569
|
+
"member": "TradePrice",
|
12570
|
+
"name": "InstancePrice",
|
12571
|
+
"output_required": true,
|
12572
|
+
"type": "object",
|
12573
|
+
"value_allowed_null": true
|
12574
|
+
},
|
12575
|
+
{
|
12576
|
+
"disabled": false,
|
12577
|
+
"document": "存储价格\n注意:此字段可能返回 null,表示取不到有效值。",
|
12578
|
+
"example": "无",
|
12579
|
+
"member": "TradePrice",
|
12580
|
+
"name": "StoragePrice",
|
12581
|
+
"output_required": true,
|
12582
|
+
"type": "object",
|
12583
|
+
"value_allowed_null": true
|
12584
|
+
},
|
12585
|
+
{
|
12586
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
12587
|
+
"member": "string",
|
12588
|
+
"name": "RequestId",
|
12589
|
+
"type": "string"
|
12590
|
+
}
|
12591
|
+
],
|
12592
|
+
"type": "object"
|
12593
|
+
},
|
12486
12594
|
"InquirePriceRenewRequest": {
|
12487
12595
|
"document": "InquirePriceRenew请求参数结构体",
|
12488
12596
|
"members": [
|
@@ -704,6 +704,14 @@
|
|
704
704
|
"title": "新购集群询价"
|
705
705
|
}
|
706
706
|
],
|
707
|
+
"InquirePriceModify": [
|
708
|
+
{
|
709
|
+
"document": "使用该接口进行变配预付费资源询价,后付费资源变配询价需直接使用InquirePriceCreate接口",
|
710
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquirePriceModify\n<公共请求参数>\n\n{\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0,\n \"ClusterId\": \"abc\",\n \"InstanceId\": \"abc\"\n}",
|
711
|
+
"output": "{\n \"Response\": {\n \"InstancePrice\": {\n \"TotalPrice\": 0,\n \"Discount\": 0,\n \"TotalPriceDiscount\": 0,\n \"UnitPrice\": 0,\n \"UnitPriceDiscount\": 0,\n \"ChargeUnit\": \"abc\"\n },\n \"StoragePrice\": {\n \"TotalPrice\": 0,\n \"Discount\": 0,\n \"TotalPriceDiscount\": 0,\n \"UnitPrice\": 0,\n \"UnitPriceDiscount\": 0,\n \"ChargeUnit\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
712
|
+
"title": "变配预付费资源询价"
|
713
|
+
}
|
714
|
+
],
|
707
715
|
"InquirePriceRenew": [
|
708
716
|
{
|
709
717
|
"document": "",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -3553,6 +3553,58 @@ def doCreateWebThemeConfig(args, parsed_globals):
|
|
3553
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3554
|
|
3555
3555
|
|
3556
|
+
def doCreateDynamicFlowApprover(args, parsed_globals):
|
3557
|
+
g_param = parse_global_arg(parsed_globals)
|
3558
|
+
|
3559
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3560
|
+
cred = credential.CVMRoleCredential()
|
3561
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3562
|
+
cred = credential.STSAssumeRoleCredential(
|
3563
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3564
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3565
|
+
)
|
3566
|
+
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):
|
3567
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3568
|
+
else:
|
3569
|
+
cred = credential.Credential(
|
3570
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3571
|
+
)
|
3572
|
+
http_profile = HttpProfile(
|
3573
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3574
|
+
reqMethod="POST",
|
3575
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3576
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3577
|
+
)
|
3578
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3579
|
+
if g_param[OptionsDefine.Language]:
|
3580
|
+
profile.language = g_param[OptionsDefine.Language]
|
3581
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3582
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3584
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
+
model = models.CreateDynamicFlowApproverRequest()
|
3586
|
+
model.from_json_string(json.dumps(args))
|
3587
|
+
start_time = time.time()
|
3588
|
+
while True:
|
3589
|
+
rsp = client.CreateDynamicFlowApprover(model)
|
3590
|
+
result = rsp.to_json_string()
|
3591
|
+
try:
|
3592
|
+
json_obj = json.loads(result)
|
3593
|
+
except TypeError as e:
|
3594
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3595
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3596
|
+
break
|
3597
|
+
cur_time = time.time()
|
3598
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3599
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3600
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3601
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3602
|
+
else:
|
3603
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3604
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3605
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
|
+
|
3607
|
+
|
3556
3608
|
def doCreateIntegrationEmployees(args, parsed_globals):
|
3557
3609
|
g_param = parse_global_arg(parsed_globals)
|
3558
3610
|
|
@@ -4437,6 +4489,58 @@ def doDescribeBillUsage(args, parsed_globals):
|
|
4437
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4438
4490
|
|
4439
4491
|
|
4492
|
+
def doArchiveDynamicFlow(args, parsed_globals):
|
4493
|
+
g_param = parse_global_arg(parsed_globals)
|
4494
|
+
|
4495
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4496
|
+
cred = credential.CVMRoleCredential()
|
4497
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4498
|
+
cred = credential.STSAssumeRoleCredential(
|
4499
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4500
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4501
|
+
)
|
4502
|
+
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):
|
4503
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4504
|
+
else:
|
4505
|
+
cred = credential.Credential(
|
4506
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4507
|
+
)
|
4508
|
+
http_profile = HttpProfile(
|
4509
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4510
|
+
reqMethod="POST",
|
4511
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4512
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4513
|
+
)
|
4514
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4515
|
+
if g_param[OptionsDefine.Language]:
|
4516
|
+
profile.language = g_param[OptionsDefine.Language]
|
4517
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4518
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4520
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
+
model = models.ArchiveDynamicFlowRequest()
|
4522
|
+
model.from_json_string(json.dumps(args))
|
4523
|
+
start_time = time.time()
|
4524
|
+
while True:
|
4525
|
+
rsp = client.ArchiveDynamicFlow(model)
|
4526
|
+
result = rsp.to_json_string()
|
4527
|
+
try:
|
4528
|
+
json_obj = json.loads(result)
|
4529
|
+
except TypeError as e:
|
4530
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4531
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4532
|
+
break
|
4533
|
+
cur_time = time.time()
|
4534
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4535
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4536
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4537
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4538
|
+
else:
|
4539
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4540
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4541
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
|
+
|
4543
|
+
|
4440
4544
|
def doUpdateIntegrationEmployees(args, parsed_globals):
|
4441
4545
|
g_param = parse_global_arg(parsed_globals)
|
4442
4546
|
|
@@ -4828,6 +4932,7 @@ ACTION_MAP = {
|
|
4828
4932
|
"CreateIntegrationSubOrganizationActiveRecord": doCreateIntegrationSubOrganizationActiveRecord,
|
4829
4933
|
"DescribeFlowComponents": doDescribeFlowComponents,
|
4830
4934
|
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
4935
|
+
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|
4831
4936
|
"CreateIntegrationEmployees": doCreateIntegrationEmployees,
|
4832
4937
|
"CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,
|
4833
4938
|
"ModifyApplicationCallbackInfo": doModifyApplicationCallbackInfo,
|
@@ -4845,6 +4950,7 @@ ACTION_MAP = {
|
|
4845
4950
|
"DisableUserAutoSign": doDisableUserAutoSign,
|
4846
4951
|
"GetTaskResultApi": doGetTaskResultApi,
|
4847
4952
|
"DescribeBillUsage": doDescribeBillUsage,
|
4953
|
+
"ArchiveDynamicFlow": doArchiveDynamicFlow,
|
4848
4954
|
"UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
|
4849
4955
|
"CreateOrganizationBatchSignUrl": doCreateOrganizationBatchSignUrl,
|
4850
4956
|
"DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
|