tccli 3.0.1294.1__py2.py3-none-any.whl → 3.0.1296.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 +123 -116
- tccli/services/bi/v20220105/api.json +17 -17
- tccli/services/bi/v20220105/examples.json +16 -16
- tccli/services/cam/v20190116/api.json +2 -2
- tccli/services/cam/v20190116/examples.json +1 -1
- tccli/services/captcha/v20190722/api.json +49 -39
- tccli/services/cbs/v20170312/api.json +16 -16
- tccli/services/ccc/v20200210/api.json +124 -23
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdc/v20201214/api.json +1 -1
- tccli/services/cdn/v20180606/api.json +61 -55
- tccli/services/cdn/v20180606/examples.json +11 -11
- tccli/services/cdwpg/v20201230/api.json +21 -21
- tccli/services/cdwpg/v20201230/examples.json +6 -6
- tccli/services/cfw/v20190904/api.json +1 -1
- tccli/services/chc/v20230418/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +3 -3
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cme/v20191029/api.json +522 -501
- tccli/services/cme/v20191029/examples.json +138 -138
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +40 -0
- tccli/services/cynosdb/v20190107/api.json +15 -15
- tccli/services/dbdc/v20201029/api.json +42 -42
- tccli/services/dlc/v20210125/api.json +212 -17
- tccli/services/domain/v20180808/api.json +5 -5
- tccli/services/dts/v20180330/api.json +2 -2
- tccli/services/dts/v20211206/api.json +14 -14
- tccli/services/ecdn/v20191012/api.json +4 -4
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/ess/v20201111/api.json +13 -4
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/gs/v20191118/api.json +9 -0
- tccli/services/hai/v20230812/api.json +53 -53
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/iotcloud/v20210408/api.json +64 -60
- tccli/services/iotcloud/v20210408/examples.json +13 -13
- tccli/services/iotexplorer/v20190423/api.json +20 -0
- tccli/services/iotvideo/v20191126/api.json +35 -34
- tccli/services/iotvideo/v20191126/examples.json +2 -2
- tccli/services/iotvideo/v20201215/api.json +314 -296
- tccli/services/iotvideo/v20201215/examples.json +56 -56
- tccli/services/iotvideo/v20211125/api.json +309 -281
- tccli/services/iotvideo/v20211125/examples.json +68 -68
- tccli/services/live/v20180801/api.json +39 -10
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +11 -1
- tccli/services/mariadb/v20170312/api.json +5 -5
- tccli/services/mmps/v20200710/api.json +8 -8
- tccli/services/monitor/v20180724/api.json +59 -3
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/mps/v20190612/api.json +123 -4
- tccli/services/mqtt/v20240516/api.json +144 -105
- tccli/services/mqtt/v20240516/examples.json +9 -9
- tccli/services/ocr/ocr_client.py +16 -175
- tccli/services/ocr/v20181119/api.json +15 -245
- tccli/services/ocr/v20181119/examples.json +1 -25
- tccli/services/partners/partners_client.py +118 -65
- tccli/services/partners/v20180321/api.json +93 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/privatedns/v20201028/api.json +32 -32
- tccli/services/sqlserver/v20180328/api.json +37 -0
- tccli/services/taf/taf_client.py +53 -0
- tccli/services/taf/v20200210/api.json +138 -0
- tccli/services/taf/v20200210/examples.json +8 -0
- tccli/services/tag/v20180813/api.json +77 -75
- tccli/services/tag/v20180813/examples.json +10 -10
- tccli/services/tbaas/v20180416/api.json +21 -16
- tccli/services/tcr/v20190924/api.json +41 -23
- tccli/services/tdid/v20210519/api.json +12 -12
- tccli/services/tdmq/tdmq_client.py +0 -53
- tccli/services/tdmq/v20200217/api.json +2 -54
- tccli/services/tdmq/v20200217/examples.json +0 -8
- tccli/services/thpc/v20230321/api.json +10 -0
- tccli/services/tke/tke_client.py +61 -8
- tccli/services/tke/v20180525/api.json +355 -245
- tccli/services/tke/v20180525/examples.json +14 -0
- tccli/services/trtc/v20190722/api.json +19 -0
- tccli/services/tsf/v20180326/api.json +44 -12
- tccli/services/vod/v20180717/api.json +1486 -1415
- tccli/services/vod/v20180717/examples.json +50 -50
- tccli/services/vpc/v20170312/api.json +137 -56
- tccli/services/vpc/v20170312/examples.json +5 -5
- tccli/services/waf/v20180125/api.json +2 -2
- tccli/services/waf/v20180125/examples.json +2 -2
- {tccli-3.0.1294.1.dist-info → tccli-3.0.1296.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1294.1.dist-info → tccli-3.0.1296.1.dist-info}/RECORD +92 -92
- {tccli-3.0.1294.1.dist-info → tccli-3.0.1296.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1294.1.dist-info → tccli-3.0.1296.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1294.1.dist-info → tccli-3.0.1296.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/tke/tke_client.py
CHANGED
@@ -747,7 +747,7 @@ def doDeleteEdgeClusterInstances(args, parsed_globals):
|
|
747
747
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
748
748
|
|
749
749
|
|
750
|
-
def
|
750
|
+
def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
|
751
751
|
g_param = parse_global_arg(parsed_globals)
|
752
752
|
|
753
753
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -776,11 +776,11 @@ def doModifyPrometheusAlertRule(args, parsed_globals):
|
|
776
776
|
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
777
777
|
client._sdkVersion += ("_CLI_" + __version__)
|
778
778
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
779
|
-
model = models.
|
779
|
+
model = models.DescribeTKEEdgeExternalKubeconfigRequest()
|
780
780
|
model.from_json_string(json.dumps(args))
|
781
781
|
start_time = time.time()
|
782
782
|
while True:
|
783
|
-
rsp = client.
|
783
|
+
rsp = client.DescribeTKEEdgeExternalKubeconfig(model)
|
784
784
|
result = rsp.to_json_string()
|
785
785
|
try:
|
786
786
|
json_obj = json.loads(result)
|
@@ -2203,7 +2203,7 @@ def doModifyReservedInstanceScope(args, parsed_globals):
|
|
2203
2203
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2204
2204
|
|
2205
2205
|
|
2206
|
-
def
|
2206
|
+
def doDescribeOSImages(args, parsed_globals):
|
2207
2207
|
g_param = parse_global_arg(parsed_globals)
|
2208
2208
|
|
2209
2209
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2232,11 +2232,11 @@ def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
|
|
2232
2232
|
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2233
2233
|
client._sdkVersion += ("_CLI_" + __version__)
|
2234
2234
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2235
|
-
model = models.
|
2235
|
+
model = models.DescribeOSImagesRequest()
|
2236
2236
|
model.from_json_string(json.dumps(args))
|
2237
2237
|
start_time = time.time()
|
2238
2238
|
while True:
|
2239
|
-
rsp = client.
|
2239
|
+
rsp = client.DescribeOSImages(model)
|
2240
2240
|
result = rsp.to_json_string()
|
2241
2241
|
try:
|
2242
2242
|
json_obj = json.loads(result)
|
@@ -4699,6 +4699,58 @@ def doAddExistedInstances(args, parsed_globals):
|
|
4699
4699
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4700
4700
|
|
4701
4701
|
|
4702
|
+
def doModifyPrometheusAlertRule(args, parsed_globals):
|
4703
|
+
g_param = parse_global_arg(parsed_globals)
|
4704
|
+
|
4705
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4706
|
+
cred = credential.CVMRoleCredential()
|
4707
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4708
|
+
cred = credential.STSAssumeRoleCredential(
|
4709
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4710
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4711
|
+
)
|
4712
|
+
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):
|
4713
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4714
|
+
else:
|
4715
|
+
cred = credential.Credential(
|
4716
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4717
|
+
)
|
4718
|
+
http_profile = HttpProfile(
|
4719
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4720
|
+
reqMethod="POST",
|
4721
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4722
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4723
|
+
)
|
4724
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4725
|
+
if g_param[OptionsDefine.Language]:
|
4726
|
+
profile.language = g_param[OptionsDefine.Language]
|
4727
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4728
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
4729
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4730
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4731
|
+
model = models.ModifyPrometheusAlertRuleRequest()
|
4732
|
+
model.from_json_string(json.dumps(args))
|
4733
|
+
start_time = time.time()
|
4734
|
+
while True:
|
4735
|
+
rsp = client.ModifyPrometheusAlertRule(model)
|
4736
|
+
result = rsp.to_json_string()
|
4737
|
+
try:
|
4738
|
+
json_obj = json.loads(result)
|
4739
|
+
except TypeError as e:
|
4740
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4741
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4742
|
+
break
|
4743
|
+
cur_time = time.time()
|
4744
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4745
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4746
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4747
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4748
|
+
else:
|
4749
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4750
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4751
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4752
|
+
|
4753
|
+
|
4702
4754
|
def doCreateEdgeCVMInstances(args, parsed_globals):
|
4703
4755
|
g_param = parse_global_arg(parsed_globals)
|
4704
4756
|
|
@@ -12578,7 +12630,7 @@ ACTION_MAP = {
|
|
12578
12630
|
"UpdateEdgeClusterVersion": doUpdateEdgeClusterVersion,
|
12579
12631
|
"DescribeExternalNodeSupportConfig": doDescribeExternalNodeSupportConfig,
|
12580
12632
|
"DeleteEdgeClusterInstances": doDeleteEdgeClusterInstances,
|
12581
|
-
"
|
12633
|
+
"DescribeTKEEdgeExternalKubeconfig": doDescribeTKEEdgeExternalKubeconfig,
|
12582
12634
|
"SetNodePoolNodeProtection": doSetNodePoolNodeProtection,
|
12583
12635
|
"DescribeEKSContainerInstanceEvent": doDescribeEKSContainerInstanceEvent,
|
12584
12636
|
"DescribeEdgeAvailableExtraArgs": doDescribeEdgeAvailableExtraArgs,
|
@@ -12606,7 +12658,7 @@ ACTION_MAP = {
|
|
12606
12658
|
"DeleteEKSCluster": doDeleteEKSCluster,
|
12607
12659
|
"AddNodeToNodePool": doAddNodeToNodePool,
|
12608
12660
|
"ModifyReservedInstanceScope": doModifyReservedInstanceScope,
|
12609
|
-
"
|
12661
|
+
"DescribeOSImages": doDescribeOSImages,
|
12610
12662
|
"DescribeClusters": doDescribeClusters,
|
12611
12663
|
"CreateCLSLogConfig": doCreateCLSLogConfig,
|
12612
12664
|
"EnableClusterAudit": doEnableClusterAudit,
|
@@ -12654,6 +12706,7 @@ ACTION_MAP = {
|
|
12654
12706
|
"DescribeRegions": doDescribeRegions,
|
12655
12707
|
"DescribeReservedInstanceUtilizationRate": doDescribeReservedInstanceUtilizationRate,
|
12656
12708
|
"AddExistedInstances": doAddExistedInstances,
|
12709
|
+
"ModifyPrometheusAlertRule": doModifyPrometheusAlertRule,
|
12657
12710
|
"CreateEdgeCVMInstances": doCreateEdgeCVMInstances,
|
12658
12711
|
"DisableClusterDeletionProtection": doDisableClusterDeletionProtection,
|
12659
12712
|
"DescribePrometheusTargets": doDescribePrometheusTargets,
|