tccli 3.0.1222.1__py2.py3-none-any.whl → 3.0.1224.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/services/apigateway/apigateway_client.py +136 -30
- tccli/services/apigateway/v20180808/api.json +183 -0
- tccli/services/apigateway/v20180808/examples.json +16 -0
- tccli/services/autoscaling/v20180419/api.json +4 -4
- tccli/services/bi/bi_client.py +106 -0
- tccli/services/bi/v20220105/api.json +355 -0
- tccli/services/bi/v20220105/examples.json +16 -0
- tccli/services/billing/v20180709/api.json +593 -542
- tccli/services/billing/v20180709/examples.json +9 -9
- tccli/services/bpaas/v20181217/api.json +71 -46
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +99 -78
- tccli/services/cam/v20190116/examples.json +10 -10
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudhsm/v20191112/api.json +324 -320
- tccli/services/cloudhsm/v20191112/examples.json +16 -16
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/config/config_client.py +106 -0
- tccli/services/config/v20220802/api.json +364 -0
- tccli/services/config/v20220802/examples.json +16 -0
- tccli/services/dcdb/v20180411/api.json +136 -136
- tccli/services/dnspod/dnspod_client.py +139 -33
- tccli/services/dnspod/v20210323/api.json +104 -0
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/ess/v20201111/api.json +5 -5
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/goosefs/v20220519/api.json +9 -0
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +13 -2
- tccli/services/ivld/v20210903/api.json +3 -3
- tccli/services/lcic/lcic_client.py +110 -4
- tccli/services/lcic/v20220817/api.json +306 -2
- tccli/services/lcic/v20220817/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/live_client.py +322 -4
- tccli/services/live/v20180801/api.json +333 -1
- tccli/services/live/v20180801/examples.json +48 -0
- tccli/services/lke/v20231130/api.json +30 -10
- tccli/services/mariadb/v20170312/api.json +142 -142
- tccli/services/mps/v20190612/api.json +12 -2
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/ocr_client.py +314 -685
- tccli/services/ocr/v20181119/api.json +187 -1206
- tccli/services/ocr/v20181119/examples.json +4 -66
- tccli/services/organization/v20181225/api.json +43 -43
- tccli/services/organization/v20181225/examples.json +2 -2
- tccli/services/organization/v20210331/api.json +516 -508
- tccli/services/organization/v20210331/examples.json +26 -26
- tccli/services/privatedns/privatedns_client.py +4 -534
- tccli/services/privatedns/v20201028/api.json +4 -943
- tccli/services/privatedns/v20201028/examples.json +0 -80
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/teo/v20220901/api.json +5 -0
- tccli/services/tke/v20220501/api.json +3 -1
- tccli/services/trtc/trtc_client.py +126 -20
- tccli/services/trtc/v20190722/api.json +138 -14
- tccli/services/trtc/v20190722/examples.json +16 -0
- tccli/services/vod/v20180717/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +30 -1
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/RECORD +67 -67
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1224.1'
|
@@ -693,7 +693,7 @@ def doDescribeAPIDocs(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def
|
696
|
+
def doDescribeServiceSubDomainMappings(args, parsed_globals):
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
698
698
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -722,11 +722,11 @@ def doCreateUsagePlan(args, parsed_globals):
|
|
722
722
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.
|
725
|
+
model = models.DescribeServiceSubDomainMappingsRequest()
|
726
726
|
model.from_json_string(json.dumps(args))
|
727
727
|
start_time = time.time()
|
728
728
|
while True:
|
729
|
-
rsp = client.
|
729
|
+
rsp = client.DescribeServiceSubDomainMappings(model)
|
730
730
|
result = rsp.to_json_string()
|
731
731
|
try:
|
732
732
|
json_obj = json.loads(result)
|
@@ -1785,6 +1785,58 @@ def doEnableApiKey(args, parsed_globals):
|
|
1785
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1786
|
|
1787
1787
|
|
1788
|
+
def doCreateExclusiveInstances(args, parsed_globals):
|
1789
|
+
g_param = parse_global_arg(parsed_globals)
|
1790
|
+
|
1791
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1792
|
+
cred = credential.CVMRoleCredential()
|
1793
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1794
|
+
cred = credential.STSAssumeRoleCredential(
|
1795
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1796
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1797
|
+
)
|
1798
|
+
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):
|
1799
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1800
|
+
else:
|
1801
|
+
cred = credential.Credential(
|
1802
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1803
|
+
)
|
1804
|
+
http_profile = HttpProfile(
|
1805
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1806
|
+
reqMethod="POST",
|
1807
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1808
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1809
|
+
)
|
1810
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1811
|
+
if g_param[OptionsDefine.Language]:
|
1812
|
+
profile.language = g_param[OptionsDefine.Language]
|
1813
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1814
|
+
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1816
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
+
model = models.CreateExclusiveInstancesRequest()
|
1818
|
+
model.from_json_string(json.dumps(args))
|
1819
|
+
start_time = time.time()
|
1820
|
+
while True:
|
1821
|
+
rsp = client.CreateExclusiveInstances(model)
|
1822
|
+
result = rsp.to_json_string()
|
1823
|
+
try:
|
1824
|
+
json_obj = json.loads(result)
|
1825
|
+
except TypeError as e:
|
1826
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1827
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1828
|
+
break
|
1829
|
+
cur_time = time.time()
|
1830
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1831
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1832
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1833
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1834
|
+
else:
|
1835
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1836
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1837
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
|
+
|
1839
|
+
|
1788
1840
|
def doModifyUsagePlan(args, parsed_globals):
|
1789
1841
|
g_param = parse_global_arg(parsed_globals)
|
1790
1842
|
|
@@ -2721,7 +2773,7 @@ def doCreateApi(args, parsed_globals):
|
|
2721
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2774
|
|
2723
2775
|
|
2724
|
-
def
|
2776
|
+
def doDescribeExclusiveInstanceDetail(args, parsed_globals):
|
2725
2777
|
g_param = parse_global_arg(parsed_globals)
|
2726
2778
|
|
2727
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2802,11 @@ def doDescribeServiceSubDomainMappings(args, parsed_globals):
|
|
2750
2802
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2805
|
+
model = models.DescribeExclusiveInstanceDetailRequest()
|
2754
2806
|
model.from_json_string(json.dumps(args))
|
2755
2807
|
start_time = time.time()
|
2756
2808
|
while True:
|
2757
|
-
rsp = client.
|
2809
|
+
rsp = client.DescribeExclusiveInstanceDetail(model)
|
2758
2810
|
result = rsp.to_json_string()
|
2759
2811
|
try:
|
2760
2812
|
json_obj = json.loads(result)
|
@@ -2773,7 +2825,7 @@ def doDescribeServiceSubDomainMappings(args, parsed_globals):
|
|
2773
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2826
|
|
2775
2827
|
|
2776
|
-
def
|
2828
|
+
def doAttachPlugin(args, parsed_globals):
|
2777
2829
|
g_param = parse_global_arg(parsed_globals)
|
2778
2830
|
|
2779
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2854,11 @@ def doDescribeExclusiveInstanceDetail(args, parsed_globals):
|
|
2802
2854
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2857
|
+
model = models.AttachPluginRequest()
|
2806
2858
|
model.from_json_string(json.dumps(args))
|
2807
2859
|
start_time = time.time()
|
2808
2860
|
while True:
|
2809
|
-
rsp = client.
|
2861
|
+
rsp = client.AttachPlugin(model)
|
2810
2862
|
result = rsp.to_json_string()
|
2811
2863
|
try:
|
2812
2864
|
json_obj = json.loads(result)
|
@@ -2825,7 +2877,7 @@ def doDescribeExclusiveInstanceDetail(args, parsed_globals):
|
|
2825
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2878
|
|
2827
2879
|
|
2828
|
-
def
|
2880
|
+
def doDescribePluginsByApi(args, parsed_globals):
|
2829
2881
|
g_param = parse_global_arg(parsed_globals)
|
2830
2882
|
|
2831
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +2906,11 @@ def doAttachPlugin(args, parsed_globals):
|
|
2854
2906
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
2909
|
+
model = models.DescribePluginsByApiRequest()
|
2858
2910
|
model.from_json_string(json.dumps(args))
|
2859
2911
|
start_time = time.time()
|
2860
2912
|
while True:
|
2861
|
-
rsp = client.
|
2913
|
+
rsp = client.DescribePluginsByApi(model)
|
2862
2914
|
result = rsp.to_json_string()
|
2863
2915
|
try:
|
2864
2916
|
json_obj = json.loads(result)
|
@@ -2877,7 +2929,7 @@ def doAttachPlugin(args, parsed_globals):
|
|
2877
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2930
|
|
2879
2931
|
|
2880
|
-
def
|
2932
|
+
def doDescribeApiBindApiAppsStatus(args, parsed_globals):
|
2881
2933
|
g_param = parse_global_arg(parsed_globals)
|
2882
2934
|
|
2883
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2958,11 @@ def doDescribePluginsByApi(args, parsed_globals):
|
|
2906
2958
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2961
|
+
model = models.DescribeApiBindApiAppsStatusRequest()
|
2910
2962
|
model.from_json_string(json.dumps(args))
|
2911
2963
|
start_time = time.time()
|
2912
2964
|
while True:
|
2913
|
-
rsp = client.
|
2965
|
+
rsp = client.DescribeApiBindApiAppsStatus(model)
|
2914
2966
|
result = rsp.to_json_string()
|
2915
2967
|
try:
|
2916
2968
|
json_obj = json.loads(result)
|
@@ -2929,7 +2981,7 @@ def doDescribePluginsByApi(args, parsed_globals):
|
|
2929
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2982
|
|
2931
2983
|
|
2932
|
-
def
|
2984
|
+
def doDescribeLogSearch(args, parsed_globals):
|
2933
2985
|
g_param = parse_global_arg(parsed_globals)
|
2934
2986
|
|
2935
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +3010,11 @@ def doDescribeApiBindApiAppsStatus(args, parsed_globals):
|
|
2958
3010
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
3013
|
+
model = models.DescribeLogSearchRequest()
|
2962
3014
|
model.from_json_string(json.dumps(args))
|
2963
3015
|
start_time = time.time()
|
2964
3016
|
while True:
|
2965
|
-
rsp = client.
|
3017
|
+
rsp = client.DescribeLogSearch(model)
|
2966
3018
|
result = rsp.to_json_string()
|
2967
3019
|
try:
|
2968
3020
|
json_obj = json.loads(result)
|
@@ -2981,7 +3033,7 @@ def doDescribeApiBindApiAppsStatus(args, parsed_globals):
|
|
2981
3033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
3034
|
|
2983
3035
|
|
2984
|
-
def
|
3036
|
+
def doDeleteService(args, parsed_globals):
|
2985
3037
|
g_param = parse_global_arg(parsed_globals)
|
2986
3038
|
|
2987
3039
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3010,11 +3062,11 @@ def doDescribeLogSearch(args, parsed_globals):
|
|
3010
3062
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
3063
|
client._sdkVersion += ("_CLI_" + __version__)
|
3012
3064
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.
|
3065
|
+
model = models.DeleteServiceRequest()
|
3014
3066
|
model.from_json_string(json.dumps(args))
|
3015
3067
|
start_time = time.time()
|
3016
3068
|
while True:
|
3017
|
-
rsp = client.
|
3069
|
+
rsp = client.DeleteService(model)
|
3018
3070
|
result = rsp.to_json_string()
|
3019
3071
|
try:
|
3020
3072
|
json_obj = json.loads(result)
|
@@ -3033,7 +3085,7 @@ def doDescribeLogSearch(args, parsed_globals):
|
|
3033
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
3086
|
|
3035
3087
|
|
3036
|
-
def
|
3088
|
+
def doDescribeExclusiveInstanceRegions(args, parsed_globals):
|
3037
3089
|
g_param = parse_global_arg(parsed_globals)
|
3038
3090
|
|
3039
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3114,11 @@ def doDeleteService(args, parsed_globals):
|
|
3062
3114
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3117
|
+
model = models.DescribeExclusiveInstanceRegionsRequest()
|
3066
3118
|
model.from_json_string(json.dumps(args))
|
3067
3119
|
start_time = time.time()
|
3068
3120
|
while True:
|
3069
|
-
rsp = client.
|
3121
|
+
rsp = client.DescribeExclusiveInstanceRegions(model)
|
3070
3122
|
result = rsp.to_json_string()
|
3071
3123
|
try:
|
3072
3124
|
json_obj = json.loads(result)
|
@@ -3189,6 +3241,58 @@ def doDescribeApiUsagePlan(args, parsed_globals):
|
|
3189
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3242
|
|
3191
3243
|
|
3244
|
+
def doDescribeInstancesNetworkConfig(args, parsed_globals):
|
3245
|
+
g_param = parse_global_arg(parsed_globals)
|
3246
|
+
|
3247
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3248
|
+
cred = credential.CVMRoleCredential()
|
3249
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3250
|
+
cred = credential.STSAssumeRoleCredential(
|
3251
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3252
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3253
|
+
)
|
3254
|
+
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):
|
3255
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3256
|
+
else:
|
3257
|
+
cred = credential.Credential(
|
3258
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3259
|
+
)
|
3260
|
+
http_profile = HttpProfile(
|
3261
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3262
|
+
reqMethod="POST",
|
3263
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3264
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3265
|
+
)
|
3266
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3267
|
+
if g_param[OptionsDefine.Language]:
|
3268
|
+
profile.language = g_param[OptionsDefine.Language]
|
3269
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3270
|
+
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3272
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
+
model = models.DescribeInstancesNetworkConfigRequest()
|
3274
|
+
model.from_json_string(json.dumps(args))
|
3275
|
+
start_time = time.time()
|
3276
|
+
while True:
|
3277
|
+
rsp = client.DescribeInstancesNetworkConfig(model)
|
3278
|
+
result = rsp.to_json_string()
|
3279
|
+
try:
|
3280
|
+
json_obj = json.loads(result)
|
3281
|
+
except TypeError as e:
|
3282
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3283
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3284
|
+
break
|
3285
|
+
cur_time = time.time()
|
3286
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3287
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3288
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3289
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3290
|
+
else:
|
3291
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3292
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3293
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
|
+
|
3295
|
+
|
3192
3296
|
def doDescribeIPStrategysStatus(args, parsed_globals):
|
3193
3297
|
g_param = parse_global_arg(parsed_globals)
|
3194
3298
|
|
@@ -4437,7 +4541,7 @@ def doDescribeServiceUsagePlan(args, parsed_globals):
|
|
4437
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4438
4542
|
|
4439
4543
|
|
4440
|
-
def
|
4544
|
+
def doCreateUsagePlan(args, parsed_globals):
|
4441
4545
|
g_param = parse_global_arg(parsed_globals)
|
4442
4546
|
|
4443
4547
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4466,11 +4570,11 @@ def doDescribeExclusiveInstanceRegions(args, parsed_globals):
|
|
4466
4570
|
client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
|
4467
4571
|
client._sdkVersion += ("_CLI_" + __version__)
|
4468
4572
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4469
|
-
model = models.
|
4573
|
+
model = models.CreateUsagePlanRequest()
|
4470
4574
|
model.from_json_string(json.dumps(args))
|
4471
4575
|
start_time = time.time()
|
4472
4576
|
while True:
|
4473
|
-
rsp = client.
|
4577
|
+
rsp = client.CreateUsagePlan(model)
|
4474
4578
|
result = rsp.to_json_string()
|
4475
4579
|
try:
|
4476
4580
|
json_obj = json.loads(result)
|
@@ -5085,7 +5189,7 @@ ACTION_MAP = {
|
|
5085
5189
|
"BindApiApp": doBindApiApp,
|
5086
5190
|
"DescribeServicesStatus": doDescribeServicesStatus,
|
5087
5191
|
"DescribeAPIDocs": doDescribeAPIDocs,
|
5088
|
-
"
|
5192
|
+
"DescribeServiceSubDomainMappings": doDescribeServiceSubDomainMappings,
|
5089
5193
|
"DescribeAllPluginApis": doDescribeAllPluginApis,
|
5090
5194
|
"UnBindIPStrategy": doUnBindIPStrategy,
|
5091
5195
|
"ResetAPIDocPassword": doResetAPIDocPassword,
|
@@ -5106,6 +5210,7 @@ ACTION_MAP = {
|
|
5106
5210
|
"DescribeServiceEnvironmentReleaseHistory": doDescribeServiceEnvironmentReleaseHistory,
|
5107
5211
|
"DeleteApi": doDeleteApi,
|
5108
5212
|
"EnableApiKey": doEnableApiKey,
|
5213
|
+
"CreateExclusiveInstances": doCreateExclusiveInstances,
|
5109
5214
|
"ModifyUsagePlan": doModifyUsagePlan,
|
5110
5215
|
"BindEnvironment": doBindEnvironment,
|
5111
5216
|
"ModifyAPIDoc": doModifyAPIDoc,
|
@@ -5124,15 +5229,16 @@ ACTION_MAP = {
|
|
5124
5229
|
"DescribePlugins": doDescribePlugins,
|
5125
5230
|
"DeleteApiKey": doDeleteApiKey,
|
5126
5231
|
"CreateApi": doCreateApi,
|
5127
|
-
"DescribeServiceSubDomainMappings": doDescribeServiceSubDomainMappings,
|
5128
5232
|
"DescribeExclusiveInstanceDetail": doDescribeExclusiveInstanceDetail,
|
5129
5233
|
"AttachPlugin": doAttachPlugin,
|
5130
5234
|
"DescribePluginsByApi": doDescribePluginsByApi,
|
5131
5235
|
"DescribeApiBindApiAppsStatus": doDescribeApiBindApiAppsStatus,
|
5132
5236
|
"DescribeLogSearch": doDescribeLogSearch,
|
5133
5237
|
"DeleteService": doDeleteService,
|
5238
|
+
"DescribeExclusiveInstanceRegions": doDescribeExclusiveInstanceRegions,
|
5134
5239
|
"ModifyApiIncrement": doModifyApiIncrement,
|
5135
5240
|
"DescribeApiUsagePlan": doDescribeApiUsagePlan,
|
5241
|
+
"DescribeInstancesNetworkConfig": doDescribeInstancesNetworkConfig,
|
5136
5242
|
"DescribeIPStrategysStatus": doDescribeIPStrategysStatus,
|
5137
5243
|
"ModifyServiceEnvironmentStrategy": doModifyServiceEnvironmentStrategy,
|
5138
5244
|
"ModifyExclusiveInstance": doModifyExclusiveInstance,
|
@@ -5157,7 +5263,7 @@ ACTION_MAP = {
|
|
5157
5263
|
"DemoteServiceUsagePlan": doDemoteServiceUsagePlan,
|
5158
5264
|
"DescribeServiceSubDomains": doDescribeServiceSubDomains,
|
5159
5265
|
"DescribeServiceUsagePlan": doDescribeServiceUsagePlan,
|
5160
|
-
"
|
5266
|
+
"CreateUsagePlan": doCreateUsagePlan,
|
5161
5267
|
"UpdateApiKey": doUpdateApiKey,
|
5162
5268
|
"DeletePlugin": doDeletePlugin,
|
5163
5269
|
"BindIPStrategy": doBindIPStrategy,
|
@@ -77,6 +77,13 @@
|
|
77
77
|
"output": "CreateApiKeyResponse",
|
78
78
|
"status": "online"
|
79
79
|
},
|
80
|
+
"CreateExclusiveInstances": {
|
81
|
+
"document": "创建专享实例",
|
82
|
+
"input": "CreateExclusiveInstancesRequest",
|
83
|
+
"name": "创建专享实例",
|
84
|
+
"output": "CreateExclusiveInstancesResponse",
|
85
|
+
"status": "online"
|
86
|
+
},
|
80
87
|
"CreateIPStrategy": {
|
81
88
|
"document": "本接口(CreateIPStrategy)用于创建服务IP策略。",
|
82
89
|
"input": "CreateIPStrategyRequest",
|
@@ -336,6 +343,13 @@
|
|
336
343
|
"output": "DescribeIPStrategysStatusResponse",
|
337
344
|
"status": "online"
|
338
345
|
},
|
346
|
+
"DescribeInstancesNetworkConfig": {
|
347
|
+
"document": "获取专享实例网络配置列表",
|
348
|
+
"input": "DescribeInstancesNetworkConfigRequest",
|
349
|
+
"name": "获取专享实例网络配置",
|
350
|
+
"output": "DescribeInstancesNetworkConfigResponse",
|
351
|
+
"status": "online"
|
352
|
+
},
|
339
353
|
"DescribeLogSearch": {
|
340
354
|
"document": "本接口DescribeLogSearch用于搜索日志",
|
341
355
|
"input": "DescribeLogSearchRequest",
|
@@ -4049,6 +4063,124 @@
|
|
4049
4063
|
],
|
4050
4064
|
"usage": "out"
|
4051
4065
|
},
|
4066
|
+
"CreateExclusiveInstancesRequest": {
|
4067
|
+
"document": "CreateExclusiveInstances请求参数结构体",
|
4068
|
+
"members": [
|
4069
|
+
{
|
4070
|
+
"disabled": false,
|
4071
|
+
"document": "可用区",
|
4072
|
+
"example": "ap-chongqing-1,ap-chongqing-2",
|
4073
|
+
"member": "string",
|
4074
|
+
"name": "Zones",
|
4075
|
+
"required": true,
|
4076
|
+
"type": "list"
|
4077
|
+
},
|
4078
|
+
{
|
4079
|
+
"disabled": false,
|
4080
|
+
"document": "实例类型: \nbasic: 基础版\nprofessional: 专业版\nenterprise: 企业版\nplatium: 铂金版\ndiamond: 钻石版",
|
4081
|
+
"example": "basic",
|
4082
|
+
"member": "string",
|
4083
|
+
"name": "InstanceType",
|
4084
|
+
"required": true,
|
4085
|
+
"type": "string"
|
4086
|
+
},
|
4087
|
+
{
|
4088
|
+
"disabled": false,
|
4089
|
+
"document": "网络配置",
|
4090
|
+
"example": "无",
|
4091
|
+
"member": "InstanceNetworkConfig",
|
4092
|
+
"name": "NetworkConfig",
|
4093
|
+
"required": true,
|
4094
|
+
"type": "object"
|
4095
|
+
},
|
4096
|
+
{
|
4097
|
+
"disabled": false,
|
4098
|
+
"document": "VPC配置",
|
4099
|
+
"example": "无",
|
4100
|
+
"member": "VpcConfig",
|
4101
|
+
"name": "VpcConfig",
|
4102
|
+
"required": true,
|
4103
|
+
"type": "object"
|
4104
|
+
},
|
4105
|
+
{
|
4106
|
+
"disabled": false,
|
4107
|
+
"document": "付费类型:\nPOSTPAID:后付费\nPREPAID: 预付费",
|
4108
|
+
"example": "POSTPAID",
|
4109
|
+
"member": "string",
|
4110
|
+
"name": "PayMode",
|
4111
|
+
"required": true,
|
4112
|
+
"type": "string"
|
4113
|
+
},
|
4114
|
+
{
|
4115
|
+
"disabled": false,
|
4116
|
+
"document": "实例名",
|
4117
|
+
"example": "test",
|
4118
|
+
"member": "string",
|
4119
|
+
"name": "InstanceName",
|
4120
|
+
"required": false,
|
4121
|
+
"type": "string"
|
4122
|
+
},
|
4123
|
+
{
|
4124
|
+
"disabled": false,
|
4125
|
+
"document": "实例描述",
|
4126
|
+
"example": "实例描述",
|
4127
|
+
"member": "string",
|
4128
|
+
"name": "InstanceDescription",
|
4129
|
+
"required": false,
|
4130
|
+
"type": "string"
|
4131
|
+
},
|
4132
|
+
{
|
4133
|
+
"disabled": false,
|
4134
|
+
"document": "标签",
|
4135
|
+
"example": "无",
|
4136
|
+
"member": "Tag",
|
4137
|
+
"name": "Tags",
|
4138
|
+
"required": false,
|
4139
|
+
"type": "list"
|
4140
|
+
},
|
4141
|
+
{
|
4142
|
+
"disabled": false,
|
4143
|
+
"document": "预付费付费时长:单位是月",
|
4144
|
+
"example": "1",
|
4145
|
+
"member": "int64",
|
4146
|
+
"name": "Period",
|
4147
|
+
"required": false,
|
4148
|
+
"type": "int"
|
4149
|
+
},
|
4150
|
+
{
|
4151
|
+
"disabled": false,
|
4152
|
+
"document": "预付费续费标志:\nNOTIFY_AND_MANUAL_RENEW 手动续费\nNOTIFY_AND_AUTO_RENEW 自动续费\nDISABLE_NOTIFY_AND_MANUAL_RENEW 不续费",
|
4153
|
+
"example": "NOTIFY_AND_MANUAL_RENEW",
|
4154
|
+
"member": "string",
|
4155
|
+
"name": "AutoRenewFlag",
|
4156
|
+
"required": false,
|
4157
|
+
"type": "string"
|
4158
|
+
}
|
4159
|
+
],
|
4160
|
+
"type": "object"
|
4161
|
+
},
|
4162
|
+
"CreateExclusiveInstancesResponse": {
|
4163
|
+
"document": "CreateExclusiveInstances返回参数结构体",
|
4164
|
+
"members": [
|
4165
|
+
{
|
4166
|
+
"disabled": false,
|
4167
|
+
"document": "实例ID",
|
4168
|
+
"example": "instance-xxxxx",
|
4169
|
+
"member": "string",
|
4170
|
+
"name": "Result",
|
4171
|
+
"output_required": false,
|
4172
|
+
"type": "string",
|
4173
|
+
"value_allowed_null": false
|
4174
|
+
},
|
4175
|
+
{
|
4176
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4177
|
+
"member": "string",
|
4178
|
+
"name": "RequestId",
|
4179
|
+
"type": "string"
|
4180
|
+
}
|
4181
|
+
],
|
4182
|
+
"type": "object"
|
4183
|
+
},
|
4052
4184
|
"CreateIPStrategyRequest": {
|
4053
4185
|
"document": "CreateIPStrategy请求参数结构体",
|
4054
4186
|
"members": [
|
@@ -6684,6 +6816,42 @@
|
|
6684
6816
|
],
|
6685
6817
|
"type": "object"
|
6686
6818
|
},
|
6819
|
+
"DescribeInstancesNetworkConfigRequest": {
|
6820
|
+
"document": "DescribeInstancesNetworkConfig请求参数结构体",
|
6821
|
+
"members": [
|
6822
|
+
{
|
6823
|
+
"disabled": false,
|
6824
|
+
"document": "返回数量,默认为 20,最大值为 100。\n",
|
6825
|
+
"example": "20",
|
6826
|
+
"member": "uint64",
|
6827
|
+
"name": "Limit",
|
6828
|
+
"required": false,
|
6829
|
+
"type": "int"
|
6830
|
+
},
|
6831
|
+
{
|
6832
|
+
"disabled": false,
|
6833
|
+
"document": "偏移量,默认为 0。\n",
|
6834
|
+
"example": "0",
|
6835
|
+
"member": "uint64",
|
6836
|
+
"name": "Offset",
|
6837
|
+
"required": false,
|
6838
|
+
"type": "int"
|
6839
|
+
}
|
6840
|
+
],
|
6841
|
+
"type": "object"
|
6842
|
+
},
|
6843
|
+
"DescribeInstancesNetworkConfigResponse": {
|
6844
|
+
"document": "DescribeInstancesNetworkConfig返回参数结构体",
|
6845
|
+
"members": [
|
6846
|
+
{
|
6847
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6848
|
+
"member": "string",
|
6849
|
+
"name": "RequestId",
|
6850
|
+
"type": "string"
|
6851
|
+
}
|
6852
|
+
],
|
6853
|
+
"type": "object"
|
6854
|
+
},
|
6687
6855
|
"DescribeLogSearchRequest": {
|
6688
6856
|
"document": "DescribeLogSearch请求参数结构体",
|
6689
6857
|
"members": [
|
@@ -9505,6 +9673,21 @@
|
|
9505
9673
|
],
|
9506
9674
|
"usage": "out"
|
9507
9675
|
},
|
9676
|
+
"InstanceNetworkConfig": {
|
9677
|
+
"document": "专享网络配置",
|
9678
|
+
"members": [
|
9679
|
+
{
|
9680
|
+
"disabled": false,
|
9681
|
+
"document": "公网带宽",
|
9682
|
+
"example": "5000",
|
9683
|
+
"member": "uint64",
|
9684
|
+
"name": "InternetMaxBandwidthOut",
|
9685
|
+
"required": true,
|
9686
|
+
"type": "int"
|
9687
|
+
}
|
9688
|
+
],
|
9689
|
+
"usage": "in"
|
9690
|
+
},
|
9508
9691
|
"InstanceParameterInput": {
|
9509
9692
|
"document": "独享实例参数信息",
|
9510
9693
|
"members": [
|
@@ -88,6 +88,14 @@
|
|
88
88
|
"title": "CreateApiKey"
|
89
89
|
}
|
90
90
|
],
|
91
|
+
"CreateExclusiveInstances": [
|
92
|
+
{
|
93
|
+
"document": "创建专享实例",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: apigateway.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExclusiveInstances\n<公共请求参数>\n\n{\n \"Zones\": [\n \"ap-beijing-5\",\n \"ap-beijing-6\"\n ],\n \"InstanceName\": \"test\",\n \"InstanceDescription\": \"test\",\n \"InstanceType\": \"basic\",\n \"NetworkConfig\": {\n \"InternetMaxBandwidthOut\": 5000\n },\n \"VpcConfig\": {\n \"UniqVpcId\": \"vpc-6bjypxxxx\",\n \"UniqSubnetId\": \"subnet-rd2xxxx\"\n },\n \"PayMode\": \"POSTPAID\"\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a6dcc75c-d10f-4b37-bff8-a5cc7be6fa7a\",\n \"Result\": \"instance-lxxxxxxx\"\n }\n}",
|
96
|
+
"title": "创建专享实例"
|
97
|
+
}
|
98
|
+
],
|
91
99
|
"CreateIPStrategy": [
|
92
100
|
{
|
93
101
|
"document": "创建服务IP策略",
|
@@ -390,6 +398,14 @@
|
|
390
398
|
"title": "DescribeIPStrategysStatus"
|
391
399
|
}
|
392
400
|
],
|
401
|
+
"DescribeInstancesNetworkConfig": [
|
402
|
+
{
|
403
|
+
"document": "获取专享实例网络配置列表",
|
404
|
+
"input": "POST / HTTP/1.1\nHost: apigateway.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancesNetworkConfig\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 1\n}",
|
405
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f2bee379-c9e4-4ffb-a18b-56ba15ea6af9\"\n }\n}",
|
406
|
+
"title": "获取专享实例网络配置列表"
|
407
|
+
}
|
408
|
+
],
|
393
409
|
"DescribeLogSearch": [
|
394
410
|
{
|
395
411
|
"document": "下面的示例提示参数错误",
|
@@ -2237,7 +2237,7 @@
|
|
2237
2237
|
},
|
2238
2238
|
{
|
2239
2239
|
"disabled": false,
|
2240
|
-
"document": "预定义监控项,仅适用于目标追踪策略。取值范围:\n<li>ASG_AVG_CPU_UTILIZATION:平均CPU使用率</li>\n<li>ASG_AVG_LAN_TRAFFIC_OUT:平均内网出带宽</li>\n<li>ASG_AVG_LAN_TRAFFIC_IN:平均内网入带宽</li>\n<li>ASG_AVG_WAN_TRAFFIC_OUT:平均外网出带宽</li>\n<li>ASG_AVG_WAN_TRAFFIC_IN
|
2240
|
+
"document": "预定义监控项,仅适用于目标追踪策略。取值范围:\n<li>ASG_AVG_CPU_UTILIZATION:平均CPU使用率</li>\n<li>ASG_AVG_LAN_TRAFFIC_OUT:平均内网出带宽</li>\n<li>ASG_AVG_LAN_TRAFFIC_IN:平均内网入带宽</li>\n<li>ASG_AVG_WAN_TRAFFIC_OUT:平均外网出带宽</li>\n<li>ASG_AVG_WAN_TRAFFIC_IN:平均外网入带宽</li>",
|
2241
2241
|
"example": "ASG_AVG_CPU_UTILIZATION",
|
2242
2242
|
"member": "string",
|
2243
2243
|
"name": "PredefinedMetricType",
|
@@ -5039,7 +5039,7 @@
|
|
5039
5039
|
"members": [
|
5040
5040
|
{
|
5041
5041
|
"disabled": false,
|
5042
|
-
"document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:\n
|
5042
|
+
"document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:\n- Linux实例密码必须8到30位,至少包括四项(小写字母、大写字母、数字和特殊符号)中的两项。\n- Windows实例密码必须12到30位,至少包括包括四项(小写字母、大写字母、数字和特殊符号)中的三项。\n- 若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。\n特殊符号的取值范围: [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]",
|
5043
5043
|
"example": "passExam@!7862543",
|
5044
5044
|
"member": "string",
|
5045
5045
|
"name": "Password",
|
@@ -6680,11 +6680,11 @@
|
|
6680
6680
|
"usage": "both"
|
6681
6681
|
},
|
6682
6682
|
"RunMonitorServiceEnabled": {
|
6683
|
-
"document": "描述了
|
6683
|
+
"document": "描述了 “可观测平台(原名云监控)” 服务相关的信息。",
|
6684
6684
|
"members": [
|
6685
6685
|
{
|
6686
6686
|
"disabled": false,
|
6687
|
-
"document": "是否开启[
|
6687
|
+
"document": "是否开启[可观测平台(原名云监控)](https://cloud.tencent.com/document/product/248)服务。取值范围:\n<li>TRUE:表示开启云监控服务</li>\n<li>FALSE:表示不开启云监控服务</li>\n默认取值:TRUE。\n注意:此字段可能返回 null,表示取不到有效值。",
|
6688
6688
|
"example": "{\"Enabled\": true}",
|
6689
6689
|
"member": "bool",
|
6690
6690
|
"name": "Enabled",
|