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
@@ -2045,58 +2045,6 @@ def doDeleteCmqTopic(args, parsed_globals):
|
|
2045
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2046
|
|
2047
2047
|
|
2048
|
-
def doModifyPublicNetworkAccessPoint(args, parsed_globals):
|
2049
|
-
g_param = parse_global_arg(parsed_globals)
|
2050
|
-
|
2051
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2052
|
-
cred = credential.CVMRoleCredential()
|
2053
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2054
|
-
cred = credential.STSAssumeRoleCredential(
|
2055
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2056
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2057
|
-
)
|
2058
|
-
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):
|
2059
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2060
|
-
else:
|
2061
|
-
cred = credential.Credential(
|
2062
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2063
|
-
)
|
2064
|
-
http_profile = HttpProfile(
|
2065
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2066
|
-
reqMethod="POST",
|
2067
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2068
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2069
|
-
)
|
2070
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2071
|
-
if g_param[OptionsDefine.Language]:
|
2072
|
-
profile.language = g_param[OptionsDefine.Language]
|
2073
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2074
|
-
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2076
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
-
model = models.ModifyPublicNetworkAccessPointRequest()
|
2078
|
-
model.from_json_string(json.dumps(args))
|
2079
|
-
start_time = time.time()
|
2080
|
-
while True:
|
2081
|
-
rsp = client.ModifyPublicNetworkAccessPoint(model)
|
2082
|
-
result = rsp.to_json_string()
|
2083
|
-
try:
|
2084
|
-
json_obj = json.loads(result)
|
2085
|
-
except TypeError as e:
|
2086
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2087
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2088
|
-
break
|
2089
|
-
cur_time = time.time()
|
2090
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2091
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2092
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2093
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2094
|
-
else:
|
2095
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2096
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2097
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
|
-
|
2099
|
-
|
2100
2048
|
def doModifyRocketMQInstance(args, parsed_globals):
|
2101
2049
|
g_param = parse_global_arg(parsed_globals)
|
2102
2050
|
|
@@ -7867,7 +7815,6 @@ ACTION_MAP = {
|
|
7867
7815
|
"DeleteRocketMQNamespace": doDeleteRocketMQNamespace,
|
7868
7816
|
"CreateRabbitMQVirtualHost": doCreateRabbitMQVirtualHost,
|
7869
7817
|
"DeleteCmqTopic": doDeleteCmqTopic,
|
7870
|
-
"ModifyPublicNetworkAccessPoint": doModifyPublicNetworkAccessPoint,
|
7871
7818
|
"ModifyRocketMQInstance": doModifyRocketMQInstance,
|
7872
7819
|
"CreateCmqQueue": doCreateCmqQueue,
|
7873
7820
|
"ModifyRocketMQGroup": doModifyRocketMQGroup,
|