tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1291.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/antiddos/v20200309/api.json +132 -103
- tccli/services/antiddos/v20200309/examples.json +5 -5
- tccli/services/bi/v20220105/api.json +1 -1
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/v20180709/api.json +16 -16
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +39 -33
- tccli/services/cam/v20190116/examples.json +1 -1
- tccli/services/cbs/v20170312/api.json +24 -20
- 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/cdwch/v20200915/api.json +204 -199
- tccli/services/cdwch/v20200915/examples.json +11 -11
- tccli/services/ckafka/v20190819/api.json +273 -268
- tccli/services/clb/v20180317/api.json +31 -22
- tccli/services/cls/cls_client.py +18 -230
- tccli/services/cls/v20201016/api.json +285 -687
- tccli/services/cls/v20201016/examples.json +2 -34
- tccli/services/cvm/v20170312/api.json +10 -0
- tccli/services/cynosdb/v20190107/api.json +97 -97
- tccli/services/dbbrain/v20191016/api.json +54 -51
- tccli/services/dbbrain/v20210527/api.json +125 -125
- tccli/services/dcdb/v20180411/api.json +48 -48
- tccli/services/dnspod/dnspod_client.py +466 -307
- tccli/services/dnspod/v20210323/api.json +391 -0
- tccli/services/dnspod/v20210323/examples.json +24 -0
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/dsgc/dsgc_client.py +0 -53
- tccli/services/dsgc/v20190723/api.json +0 -24
- tccli/services/dsgc/v20190723/examples.json +0 -8
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- 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/iotvideoindustry/v20201201/api.json +542 -523
- tccli/services/iotvideoindustry/v20201201/examples.json +15 -15
- tccli/services/lighthouse/v20200324/api.json +8 -8
- tccli/services/lke/v20231130/api.json +10 -0
- tccli/services/lowcode/v20210108/api.json +2 -2
- tccli/services/mariadb/v20170312/api.json +42 -42
- tccli/services/mariadb/v20170312/examples.json +12 -0
- tccli/services/mmps/v20200710/api.json +95 -95
- 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 +2071 -282
- tccli/services/mps/v20190612/examples.json +72 -0
- tccli/services/mqtt/v20240516/api.json +1 -1
- tccli/services/mqtt/v20240516/examples.json +1 -1
- tccli/services/postgres/v20170312/api.json +308 -283
- 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 +66 -66
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/tcb/tcb_client.py +53 -53
- tccli/services/tcb/v20180608/api.json +220 -263
- tccli/services/tcb/v20180608/examples.json +8 -8
- tccli/services/tcbr/v20220217/examples.json +1 -1
- tccli/services/tcss/tcss_client.py +224 -277
- tccli/services/tcss/v20201101/api.json +4618 -4329
- tccli/services/tcss/v20201101/examples.json +207 -221
- tccli/services/tdmq/tdmq_client.py +0 -53
- tccli/services/tdmq/v20200217/api.json +379 -374
- tccli/services/tdmq/v20200217/examples.json +1 -9
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +82 -11
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/thpc/v20211109/api.json +8 -8
- tccli/services/thpc/v20220401/api.json +8 -8
- tccli/services/thpc/v20230321/api.json +11 -10
- tccli/services/tke/v20180525/api.json +60 -60
- tccli/services/tke/v20220501/api.json +34 -34
- tccli/services/vpc/v20170312/api.json +44 -44
- tccli/services/waf/v20180125/api.json +9 -0
- tccli/services/wedata/v20210820/api.json +73 -0
- tccli/services/weilingwith/v20230427/api.json +997 -997
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/RECORD +88 -88
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/license_files/LICENSE +0 -0
@@ -1429,9 +1429,10 @@
|
|
1429
1429
|
{
|
1430
1430
|
"disabled": false,
|
1431
1431
|
"document": "配置绑定的CLB ID",
|
1432
|
-
"example": "",
|
1432
|
+
"example": "lb-6e6a****",
|
1433
1433
|
"member": "string",
|
1434
1434
|
"name": "LoadBalancerId",
|
1435
|
+
"output_required": true,
|
1435
1436
|
"required": true,
|
1436
1437
|
"type": "string",
|
1437
1438
|
"value_allowed_null": false
|
@@ -1439,9 +1440,10 @@
|
|
1439
1440
|
{
|
1440
1441
|
"disabled": false,
|
1441
1442
|
"document": "配置绑定的监听器ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1442
|
-
"example": "",
|
1443
|
+
"example": "lbl-cuxw****",
|
1443
1444
|
"member": "string",
|
1444
1445
|
"name": "ListenerId",
|
1446
|
+
"output_required": true,
|
1445
1447
|
"required": true,
|
1446
1448
|
"type": "string",
|
1447
1449
|
"value_allowed_null": true
|
@@ -1449,9 +1451,10 @@
|
|
1449
1451
|
{
|
1450
1452
|
"disabled": false,
|
1451
1453
|
"document": "配置绑定的域名\n注意:此字段可能返回 null,表示取不到有效值。",
|
1452
|
-
"example": "",
|
1454
|
+
"example": "www.test.com",
|
1453
1455
|
"member": "string",
|
1454
1456
|
"name": "Domain",
|
1457
|
+
"output_required": true,
|
1455
1458
|
"required": true,
|
1456
1459
|
"type": "string",
|
1457
1460
|
"value_allowed_null": true
|
@@ -1459,9 +1462,10 @@
|
|
1459
1462
|
{
|
1460
1463
|
"disabled": false,
|
1461
1464
|
"document": "配置绑定的规则\n注意:此字段可能返回 null,表示取不到有效值。",
|
1462
|
-
"example": "",
|
1465
|
+
"example": "loc-4apy****",
|
1463
1466
|
"member": "string",
|
1464
1467
|
"name": "LocationId",
|
1468
|
+
"output_required": true,
|
1465
1469
|
"required": false,
|
1466
1470
|
"type": "string",
|
1467
1471
|
"value_allowed_null": true
|
@@ -3498,7 +3502,7 @@
|
|
3498
3502
|
},
|
3499
3503
|
{
|
3500
3504
|
"disabled": false,
|
3501
|
-
"document": "
|
3505
|
+
"document": "目标组绑定的后端服务器,单次最多支持50个。",
|
3502
3506
|
"example": "无",
|
3503
3507
|
"member": "TargetGroupInstance",
|
3504
3508
|
"name": "TargetGroupInstances",
|
@@ -3514,6 +3518,15 @@
|
|
3514
3518
|
"required": false,
|
3515
3519
|
"type": "string"
|
3516
3520
|
},
|
3521
|
+
{
|
3522
|
+
"disabled": false,
|
3523
|
+
"document": "目标组后端转发协议。v2新版目标组该项必填。目前支持tcp、udp。",
|
3524
|
+
"example": "tcp",
|
3525
|
+
"member": "string",
|
3526
|
+
"name": "Protocol",
|
3527
|
+
"required": false,
|
3528
|
+
"type": "string"
|
3529
|
+
},
|
3517
3530
|
{
|
3518
3531
|
"disabled": false,
|
3519
3532
|
"document": "标签。",
|
@@ -3589,7 +3602,7 @@
|
|
3589
3602
|
},
|
3590
3603
|
{
|
3591
3604
|
"disabled": false,
|
3592
|
-
"document": "
|
3605
|
+
"document": "存储时间,单位天\n- 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。\n- 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。",
|
3593
3606
|
"example": "30",
|
3594
3607
|
"member": "uint64",
|
3595
3608
|
"name": "Period",
|
@@ -7791,7 +7804,7 @@
|
|
7791
7804
|
},
|
7792
7805
|
{
|
7793
7806
|
"disabled": false,
|
7794
|
-
"document": "负载均衡IP
|
7807
|
+
"document": "负载均衡IP地址所属的运营商。\n\n- BGP : BGP(多线)\n- CMCC:中国移动单线\n- CTCC:中国电信单线\n- CUCC:中国联通单线\n注意:此字段可能返回 null,表示取不到有效值。",
|
7795
7808
|
"example": "BGP",
|
7796
7809
|
"member": "string",
|
7797
7810
|
"name": "VipIsp",
|
@@ -8202,8 +8215,8 @@
|
|
8202
8215
|
},
|
8203
8216
|
{
|
8204
8217
|
"disabled": false,
|
8205
|
-
"document": "负载均衡实例的网络类型:\
|
8206
|
-
"example": "
|
8218
|
+
"document": "负载均衡实例的网络类型:\nPublic:公网属性,Private:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。\n注意:此字段可能返回 null,表示取不到有效值。",
|
8219
|
+
"example": "Public",
|
8207
8220
|
"member": "string",
|
8208
8221
|
"name": "LoadBalancerType",
|
8209
8222
|
"output_required": true,
|
@@ -10462,7 +10475,7 @@
|
|
10462
10475
|
"members": [
|
10463
10476
|
{
|
10464
10477
|
"disabled": false,
|
10465
|
-
"document": "重定向目标的监听器ID
|
10478
|
+
"document": "重定向目标的监听器ID,该字段仅配置了重定向时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
10466
10479
|
"example": "lbl-q471xxxx",
|
10467
10480
|
"member": "string",
|
10468
10481
|
"name": "TargetListenerId",
|
@@ -10472,7 +10485,7 @@
|
|
10472
10485
|
},
|
10473
10486
|
{
|
10474
10487
|
"disabled": false,
|
10475
|
-
"document": "重定向目标的转发规则ID
|
10488
|
+
"document": "重定向目标的转发规则ID,该字段仅配置了重定向时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
10476
10489
|
"example": "loc-188pxxxx",
|
10477
10490
|
"member": "string",
|
10478
10491
|
"name": "TargetLocationId",
|
@@ -11237,7 +11250,7 @@
|
|
11237
11250
|
},
|
11238
11251
|
{
|
11239
11252
|
"disabled": false,
|
11240
|
-
"document": "日志服务(CLS)的日志集 ID。\n<li>增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。</li>\n<li
|
11253
|
+
"document": "日志服务(CLS)的日志集 ID。\n<li>增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。</li>\n<li>删除日志主题时,此参数填写为**空字符串**即可。</li>",
|
11241
11254
|
"example": "xxxx-xx-xx-xx-xxxxxxxx",
|
11242
11255
|
"member": "string",
|
11243
11256
|
"name": "LogSetId",
|
@@ -11246,7 +11259,7 @@
|
|
11246
11259
|
},
|
11247
11260
|
{
|
11248
11261
|
"disabled": false,
|
11249
|
-
"document": "日志服务(CLS)的日志主题 ID。\n<li>增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。</li>\n<li
|
11262
|
+
"document": "日志服务(CLS)的日志主题 ID。\n<li>增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。</li>\n<li>删除日志主题时,此参数填写为**空字符串**即可。</li>",
|
11250
11263
|
"example": "xxxx-xx-xx-xx-yyyyyyyy",
|
11251
11264
|
"member": "string",
|
11252
11265
|
"name": "LogTopicId",
|
@@ -11884,8 +11897,7 @@
|
|
11884
11897
|
"member": "string",
|
11885
11898
|
"name": "BindIP",
|
11886
11899
|
"required": true,
|
11887
|
-
"type": "string"
|
11888
|
-
"value_allowed_null": false
|
11900
|
+
"type": "string"
|
11889
11901
|
},
|
11890
11902
|
{
|
11891
11903
|
"disabled": false,
|
@@ -11894,18 +11906,16 @@
|
|
11894
11906
|
"member": "uint64",
|
11895
11907
|
"name": "Port",
|
11896
11908
|
"required": false,
|
11897
|
-
"type": "int"
|
11898
|
-
"value_allowed_null": false
|
11909
|
+
"type": "int"
|
11899
11910
|
},
|
11900
11911
|
{
|
11901
11912
|
"disabled": false,
|
11902
|
-
"document": "
|
11913
|
+
"document": "目标组实例的权重\n\nv2目标组需要配置权重,调用CreateTargetGroup接口创建目标组时该参数与创建接口中的Weight参数必填其一。",
|
11903
11914
|
"example": "10",
|
11904
11915
|
"member": "uint64",
|
11905
11916
|
"name": "Weight",
|
11906
11917
|
"required": false,
|
11907
|
-
"type": "int"
|
11908
|
-
"value_allowed_null": false
|
11918
|
+
"type": "int"
|
11909
11919
|
},
|
11910
11920
|
{
|
11911
11921
|
"disabled": false,
|
@@ -11914,8 +11924,7 @@
|
|
11914
11924
|
"member": "uint64",
|
11915
11925
|
"name": "NewPort",
|
11916
11926
|
"required": false,
|
11917
|
-
"type": "int"
|
11918
|
-
"value_allowed_null": false
|
11927
|
+
"type": "int"
|
11919
11928
|
}
|
11920
11929
|
],
|
11921
11930
|
"usage": "in"
|
tccli/services/cls/cls_client.py
CHANGED
@@ -797,110 +797,6 @@ def doCreateTopic(args, parsed_globals):
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
798
|
|
799
799
|
|
800
|
-
def doDescribeCloudProductLogTasks(args, parsed_globals):
|
801
|
-
g_param = parse_global_arg(parsed_globals)
|
802
|
-
|
803
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
-
cred = credential.CVMRoleCredential()
|
805
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
-
cred = credential.STSAssumeRoleCredential(
|
807
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
-
)
|
810
|
-
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):
|
811
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
-
else:
|
813
|
-
cred = credential.Credential(
|
814
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
-
)
|
816
|
-
http_profile = HttpProfile(
|
817
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
-
reqMethod="POST",
|
819
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
-
)
|
822
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
-
if g_param[OptionsDefine.Language]:
|
824
|
-
profile.language = g_param[OptionsDefine.Language]
|
825
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
-
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
-
model = models.DescribeCloudProductLogTasksRequest()
|
830
|
-
model.from_json_string(json.dumps(args))
|
831
|
-
start_time = time.time()
|
832
|
-
while True:
|
833
|
-
rsp = client.DescribeCloudProductLogTasks(model)
|
834
|
-
result = rsp.to_json_string()
|
835
|
-
try:
|
836
|
-
json_obj = json.loads(result)
|
837
|
-
except TypeError as e:
|
838
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
-
break
|
841
|
-
cur_time = time.time()
|
842
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
-
else:
|
847
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
-
|
851
|
-
|
852
|
-
def doDeleteCloudProductLogTask(args, parsed_globals):
|
853
|
-
g_param = parse_global_arg(parsed_globals)
|
854
|
-
|
855
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
-
cred = credential.CVMRoleCredential()
|
857
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
-
cred = credential.STSAssumeRoleCredential(
|
859
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
-
)
|
862
|
-
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):
|
863
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
-
else:
|
865
|
-
cred = credential.Credential(
|
866
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
-
)
|
868
|
-
http_profile = HttpProfile(
|
869
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
-
reqMethod="POST",
|
871
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
-
)
|
874
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
-
if g_param[OptionsDefine.Language]:
|
876
|
-
profile.language = g_param[OptionsDefine.Language]
|
877
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
-
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
-
model = models.DeleteCloudProductLogTaskRequest()
|
882
|
-
model.from_json_string(json.dumps(args))
|
883
|
-
start_time = time.time()
|
884
|
-
while True:
|
885
|
-
rsp = client.DeleteCloudProductLogTask(model)
|
886
|
-
result = rsp.to_json_string()
|
887
|
-
try:
|
888
|
-
json_obj = json.loads(result)
|
889
|
-
except TypeError as e:
|
890
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
-
break
|
893
|
-
cur_time = time.time()
|
894
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
-
else:
|
899
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
-
|
903
|
-
|
904
800
|
def doDeleteAlarmNotice(args, parsed_globals):
|
905
801
|
g_param = parse_global_arg(parsed_globals)
|
906
802
|
|
@@ -1213,58 +1109,6 @@ def doDescribeTopics(args, parsed_globals):
|
|
1213
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1110
|
|
1215
1111
|
|
1216
|
-
def doCreateAlarmNotice(args, parsed_globals):
|
1217
|
-
g_param = parse_global_arg(parsed_globals)
|
1218
|
-
|
1219
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1220
|
-
cred = credential.CVMRoleCredential()
|
1221
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1222
|
-
cred = credential.STSAssumeRoleCredential(
|
1223
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1224
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1225
|
-
)
|
1226
|
-
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):
|
1227
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1228
|
-
else:
|
1229
|
-
cred = credential.Credential(
|
1230
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1231
|
-
)
|
1232
|
-
http_profile = HttpProfile(
|
1233
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1234
|
-
reqMethod="POST",
|
1235
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1236
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1237
|
-
)
|
1238
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1239
|
-
if g_param[OptionsDefine.Language]:
|
1240
|
-
profile.language = g_param[OptionsDefine.Language]
|
1241
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1242
|
-
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1244
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.CreateAlarmNoticeRequest()
|
1246
|
-
model.from_json_string(json.dumps(args))
|
1247
|
-
start_time = time.time()
|
1248
|
-
while True:
|
1249
|
-
rsp = client.CreateAlarmNotice(model)
|
1250
|
-
result = rsp.to_json_string()
|
1251
|
-
try:
|
1252
|
-
json_obj = json.loads(result)
|
1253
|
-
except TypeError as e:
|
1254
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1255
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1256
|
-
break
|
1257
|
-
cur_time = time.time()
|
1258
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1259
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1260
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1261
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1262
|
-
else:
|
1263
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1264
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1265
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
|
-
|
1267
|
-
|
1268
1112
|
def doCreateCosRecharge(args, parsed_globals):
|
1269
1113
|
g_param = parse_global_arg(parsed_globals)
|
1270
1114
|
|
@@ -1785,7 +1629,7 @@ def doCreateNoticeContent(args, parsed_globals):
|
|
1785
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1630
|
|
1787
1631
|
|
1788
|
-
def
|
1632
|
+
def doDeleteConsumer(args, parsed_globals):
|
1789
1633
|
g_param = parse_global_arg(parsed_globals)
|
1790
1634
|
|
1791
1635
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1658,11 @@ def doModifyCloudProductLogTask(args, parsed_globals):
|
|
1814
1658
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1659
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1660
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1661
|
+
model = models.DeleteConsumerRequest()
|
1818
1662
|
model.from_json_string(json.dumps(args))
|
1819
1663
|
start_time = time.time()
|
1820
1664
|
while True:
|
1821
|
-
rsp = client.
|
1665
|
+
rsp = client.DeleteConsumer(model)
|
1822
1666
|
result = rsp.to_json_string()
|
1823
1667
|
try:
|
1824
1668
|
json_obj = json.loads(result)
|
@@ -1837,7 +1681,7 @@ def doModifyCloudProductLogTask(args, parsed_globals):
|
|
1837
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1682
|
|
1839
1683
|
|
1840
|
-
def
|
1684
|
+
def doDeleteMachineGroup(args, parsed_globals):
|
1841
1685
|
g_param = parse_global_arg(parsed_globals)
|
1842
1686
|
|
1843
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1710,11 @@ def doDeleteConsumer(args, parsed_globals):
|
|
1866
1710
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1713
|
+
model = models.DeleteMachineGroupRequest()
|
1870
1714
|
model.from_json_string(json.dumps(args))
|
1871
1715
|
start_time = time.time()
|
1872
1716
|
while True:
|
1873
|
-
rsp = client.
|
1717
|
+
rsp = client.DeleteMachineGroup(model)
|
1874
1718
|
result = rsp.to_json_string()
|
1875
1719
|
try:
|
1876
1720
|
json_obj = json.loads(result)
|
@@ -1889,7 +1733,7 @@ def doDeleteConsumer(args, parsed_globals):
|
|
1889
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1734
|
|
1891
1735
|
|
1892
|
-
def
|
1736
|
+
def doDescribeConfigMachineGroups(args, parsed_globals):
|
1893
1737
|
g_param = parse_global_arg(parsed_globals)
|
1894
1738
|
|
1895
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1762,11 @@ def doDeleteMachineGroup(args, parsed_globals):
|
|
1918
1762
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1765
|
+
model = models.DescribeConfigMachineGroupsRequest()
|
1922
1766
|
model.from_json_string(json.dumps(args))
|
1923
1767
|
start_time = time.time()
|
1924
1768
|
while True:
|
1925
|
-
rsp = client.
|
1769
|
+
rsp = client.DescribeConfigMachineGroups(model)
|
1926
1770
|
result = rsp.to_json_string()
|
1927
1771
|
try:
|
1928
1772
|
json_obj = json.loads(result)
|
@@ -2721,7 +2565,7 @@ def doModifyAlarmShield(args, parsed_globals):
|
|
2721
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2566
|
|
2723
2567
|
|
2724
|
-
def
|
2568
|
+
def doSearchDashboardSubscribe(args, parsed_globals):
|
2725
2569
|
g_param = parse_global_arg(parsed_globals)
|
2726
2570
|
|
2727
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2594,11 @@ def doCreateCloudProductLogTask(args, parsed_globals):
|
|
2750
2594
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2597
|
+
model = models.SearchDashboardSubscribeRequest()
|
2754
2598
|
model.from_json_string(json.dumps(args))
|
2755
2599
|
start_time = time.time()
|
2756
2600
|
while True:
|
2757
|
-
rsp = client.
|
2601
|
+
rsp = client.SearchDashboardSubscribe(model)
|
2758
2602
|
result = rsp.to_json_string()
|
2759
2603
|
try:
|
2760
2604
|
json_obj = json.loads(result)
|
@@ -4125,7 +3969,7 @@ def doQueryRangeMetric(args, parsed_globals):
|
|
4125
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
3970
|
|
4127
3971
|
|
4128
|
-
def
|
3972
|
+
def doCreateAlarmNotice(args, parsed_globals):
|
4129
3973
|
g_param = parse_global_arg(parsed_globals)
|
4130
3974
|
|
4131
3975
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4154,11 +3998,11 @@ def doDescribeConfigMachineGroups(args, parsed_globals):
|
|
4154
3998
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
4155
3999
|
client._sdkVersion += ("_CLI_" + __version__)
|
4156
4000
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4157
|
-
model = models.
|
4001
|
+
model = models.CreateAlarmNoticeRequest()
|
4158
4002
|
model.from_json_string(json.dumps(args))
|
4159
4003
|
start_time = time.time()
|
4160
4004
|
while True:
|
4161
|
-
rsp = client.
|
4005
|
+
rsp = client.CreateAlarmNotice(model)
|
4162
4006
|
result = rsp.to_json_string()
|
4163
4007
|
try:
|
4164
4008
|
json_obj = json.loads(result)
|
@@ -4801,58 +4645,6 @@ def doDescribeConfigExtras(args, parsed_globals):
|
|
4801
4645
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
4646
|
|
4803
4647
|
|
4804
|
-
def doSearchDashboardSubscribe(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.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
4831
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4832
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4833
|
-
model = models.SearchDashboardSubscribeRequest()
|
4834
|
-
model.from_json_string(json.dumps(args))
|
4835
|
-
start_time = time.time()
|
4836
|
-
while True:
|
4837
|
-
rsp = client.SearchDashboardSubscribe(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
|
-
|
4856
4648
|
def doCheckRechargeKafkaServer(args, parsed_globals):
|
4857
4649
|
g_param = parse_global_arg(parsed_globals)
|
4858
4650
|
|
@@ -5926,15 +5718,12 @@ ACTION_MAP = {
|
|
5926
5718
|
"DeleteDataTransform": doDeleteDataTransform,
|
5927
5719
|
"CreateLogset": doCreateLogset,
|
5928
5720
|
"CreateTopic": doCreateTopic,
|
5929
|
-
"DescribeCloudProductLogTasks": doDescribeCloudProductLogTasks,
|
5930
|
-
"DeleteCloudProductLogTask": doDeleteCloudProductLogTask,
|
5931
5721
|
"DeleteAlarmNotice": doDeleteAlarmNotice,
|
5932
5722
|
"DescribeAlertRecordHistory": doDescribeAlertRecordHistory,
|
5933
5723
|
"DeleteKafkaRecharge": doDeleteKafkaRecharge,
|
5934
5724
|
"CreateConfig": doCreateConfig,
|
5935
5725
|
"DescribeLogsets": doDescribeLogsets,
|
5936
5726
|
"DescribeTopics": doDescribeTopics,
|
5937
|
-
"CreateAlarmNotice": doCreateAlarmNotice,
|
5938
5727
|
"CreateCosRecharge": doCreateCosRecharge,
|
5939
5728
|
"MergePartition": doMergePartition,
|
5940
5729
|
"ModifyAlarmNotice": doModifyAlarmNotice,
|
@@ -5945,9 +5734,9 @@ ACTION_MAP = {
|
|
5945
5734
|
"CreateAlarmShield": doCreateAlarmShield,
|
5946
5735
|
"CreateShipper": doCreateShipper,
|
5947
5736
|
"CreateNoticeContent": doCreateNoticeContent,
|
5948
|
-
"ModifyCloudProductLogTask": doModifyCloudProductLogTask,
|
5949
5737
|
"DeleteConsumer": doDeleteConsumer,
|
5950
5738
|
"DeleteMachineGroup": doDeleteMachineGroup,
|
5739
|
+
"DescribeConfigMachineGroups": doDescribeConfigMachineGroups,
|
5951
5740
|
"DescribeKafkaRecharges": doDescribeKafkaRecharges,
|
5952
5741
|
"DescribeAlarms": doDescribeAlarms,
|
5953
5742
|
"DescribeCosRecharges": doDescribeCosRecharges,
|
@@ -5963,7 +5752,7 @@ ACTION_MAP = {
|
|
5963
5752
|
"ModifyCosRecharge": doModifyCosRecharge,
|
5964
5753
|
"ModifyConfigExtra": doModifyConfigExtra,
|
5965
5754
|
"ModifyAlarmShield": doModifyAlarmShield,
|
5966
|
-
"
|
5755
|
+
"SearchDashboardSubscribe": doSearchDashboardSubscribe,
|
5967
5756
|
"CreateConfigExtra": doCreateConfigExtra,
|
5968
5757
|
"DescribeAlarmShields": doDescribeAlarmShields,
|
5969
5758
|
"ModifyScheduledSql": doModifyScheduledSql,
|
@@ -5990,7 +5779,7 @@ ACTION_MAP = {
|
|
5990
5779
|
"DeleteAlarm": doDeleteAlarm,
|
5991
5780
|
"DeleteShipper": doDeleteShipper,
|
5992
5781
|
"QueryRangeMetric": doQueryRangeMetric,
|
5993
|
-
"
|
5782
|
+
"CreateAlarmNotice": doCreateAlarmNotice,
|
5994
5783
|
"DeleteExport": doDeleteExport,
|
5995
5784
|
"SplitPartition": doSplitPartition,
|
5996
5785
|
"DescribeDataTransformInfo": doDescribeDataTransformInfo,
|
@@ -6003,7 +5792,6 @@ ACTION_MAP = {
|
|
6003
5792
|
"DescribeScheduledSqlInfo": doDescribeScheduledSqlInfo,
|
6004
5793
|
"DeleteConfig": doDeleteConfig,
|
6005
5794
|
"DescribeConfigExtras": doDescribeConfigExtras,
|
6006
|
-
"SearchDashboardSubscribe": doSearchDashboardSubscribe,
|
6007
5795
|
"CheckRechargeKafkaServer": doCheckRechargeKafkaServer,
|
6008
5796
|
"ModifyAlarm": doModifyAlarm,
|
6009
5797
|
"DescribeShippers": doDescribeShippers,
|