tccli 3.0.1403.1__py2.py3-none-any.whl → 3.0.1405.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/cdb/v20170320/api.json +64 -4
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +9 -0
- tccli/services/ckafka/v20190819/api.json +33 -0
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/dbbrain/v20191016/api.json +11 -1
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/es/v20180416/api.json +3 -3
- tccli/services/es/v20180416/examples.json +1 -1
- tccli/services/es/v20250101/api.json +2 -2
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +163 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +5 -5
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/postgres/v20170312/api.json +5 -5
- tccli/services/vpc/v20170312/api.json +220 -2
- tccli/services/vpc/v20170312/examples.json +32 -0
- tccli/services/vpc/vpc_client.py +228 -16
- tccli/services/wedata/v20250806/api.json +7147 -1958
- tccli/services/wedata/v20250806/examples.json +346 -0
- tccli/services/wedata/wedata_client.py +2638 -783
- {tccli-3.0.1403.1.dist-info → tccli-3.0.1405.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1403.1.dist-info → tccli-3.0.1405.1.dist-info}/RECORD +32 -32
- {tccli-3.0.1403.1.dist-info → tccli-3.0.1405.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1403.1.dist-info → tccli-3.0.1405.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1403.1.dist-info → tccli-3.0.1405.1.dist-info}/license_files/LICENSE +0 -0
@@ -1320,6 +1320,14 @@
|
|
1320
1320
|
"title": "查询弹性公网IP配额"
|
1321
1321
|
}
|
1322
1322
|
],
|
1323
|
+
"DescribeAddressTemplateGroupInstances": [
|
1324
|
+
{
|
1325
|
+
"document": "查询参数模板IP地址组关联的实例列表",
|
1326
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeAddressTemplateGroupInstances\n&AddressTemplateGroupId=ipmg-12345678\n&<公共请求参数>",
|
1327
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5efe6fa7-6de2-4ce9-911a-f7438bf697d4\"\n }\n}",
|
1328
|
+
"title": "查询参数模板IP地址组关联的实例列表"
|
1329
|
+
}
|
1330
|
+
],
|
1323
1331
|
"DescribeAddressTemplateGroups": [
|
1324
1332
|
{
|
1325
1333
|
"document": "查询IP地址模板集合",
|
@@ -1328,6 +1336,14 @@
|
|
1328
1336
|
"title": "查询IP地址模板集合"
|
1329
1337
|
}
|
1330
1338
|
],
|
1339
|
+
"DescribeAddressTemplateInstances": [
|
1340
|
+
{
|
1341
|
+
"document": "查询参数模板IP地址关联的实例列表",
|
1342
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeAddressTemplateInstances\n&AddressTemplateId=ipm-12345678\n&<公共请求参数>",
|
1343
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5efe6fa7-6de2-4ce9-911a-f7438bf697d4\"\n }\n}",
|
1344
|
+
"title": "查询参数模板IP地址关联的实例列表"
|
1345
|
+
}
|
1346
|
+
],
|
1331
1347
|
"DescribeAddressTemplates": [
|
1332
1348
|
{
|
1333
1349
|
"document": "查询IP地址模板",
|
@@ -2064,6 +2080,14 @@
|
|
2064
2080
|
"title": "查看绑定标签的安全组"
|
2065
2081
|
}
|
2066
2082
|
],
|
2083
|
+
"DescribeServiceTemplateGroupInstances": [
|
2084
|
+
{
|
2085
|
+
"document": "查询参数模板协议端口组关联的实例列表",
|
2086
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeServiceTemplateGroupInstances\n&ServiceTemplateGroupId=ppmg-12345678\n&<公共请求参数>",
|
2087
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5efe6fa7-6de2-4ce9-911a-f7438bf697d4\"\n }\n}",
|
2088
|
+
"title": "查询参数模板协议端口组关联的实例列表"
|
2089
|
+
}
|
2090
|
+
],
|
2067
2091
|
"DescribeServiceTemplateGroups": [
|
2068
2092
|
{
|
2069
2093
|
"document": "查看协议端口模板集合",
|
@@ -2072,6 +2096,14 @@
|
|
2072
2096
|
"title": "查看协议端口模板集合"
|
2073
2097
|
}
|
2074
2098
|
],
|
2099
|
+
"DescribeServiceTemplateInstances": [
|
2100
|
+
{
|
2101
|
+
"document": "查询参数模板协议端口关联的实例列表",
|
2102
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeServiceTemplateInstances\n&ServiceTemplateId=ppm-12345678\n&<公共请求参数>",
|
2103
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5efe6fa7-6de2-4ce9-911a-f7438bf697d4\"\n }\n}",
|
2104
|
+
"title": "查询参数模板协议端口关联的实例列表"
|
2105
|
+
}
|
2106
|
+
],
|
2075
2107
|
"DescribeServiceTemplates": [
|
2076
2108
|
{
|
2077
2109
|
"document": "查看协议端口模板",
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -4593,7 +4593,7 @@ def doReplaceCcnRouteTableInputPolicys(args, parsed_globals):
|
|
4593
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
4594
|
|
4595
4595
|
|
4596
|
-
def
|
4596
|
+
def doModifyNetworkInterfaceQos(args, parsed_globals):
|
4597
4597
|
g_param = parse_global_arg(parsed_globals)
|
4598
4598
|
|
4599
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4622,11 +4622,11 @@ def doCreateDirectConnectGateway(args, parsed_globals):
|
|
4622
4622
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
4623
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
4624
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4625
|
-
model = models.
|
4625
|
+
model = models.ModifyNetworkInterfaceQosRequest()
|
4626
4626
|
model.from_json_string(json.dumps(args))
|
4627
4627
|
start_time = time.time()
|
4628
4628
|
while True:
|
4629
|
-
rsp = client.
|
4629
|
+
rsp = client.ModifyNetworkInterfaceQos(model)
|
4630
4630
|
result = rsp.to_json_string()
|
4631
4631
|
try:
|
4632
4632
|
json_obj = json.loads(result)
|
@@ -6153,6 +6153,58 @@ def doDisassociateNatGatewayAddress(args, parsed_globals):
|
|
6153
6153
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6154
6154
|
|
6155
6155
|
|
6156
|
+
def doDescribeAddressTemplateInstances(args, parsed_globals):
|
6157
|
+
g_param = parse_global_arg(parsed_globals)
|
6158
|
+
|
6159
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6160
|
+
cred = credential.CVMRoleCredential()
|
6161
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6162
|
+
cred = credential.STSAssumeRoleCredential(
|
6163
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6164
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6165
|
+
)
|
6166
|
+
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):
|
6167
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6168
|
+
else:
|
6169
|
+
cred = credential.Credential(
|
6170
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6171
|
+
)
|
6172
|
+
http_profile = HttpProfile(
|
6173
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6174
|
+
reqMethod="POST",
|
6175
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6176
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6177
|
+
)
|
6178
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6179
|
+
if g_param[OptionsDefine.Language]:
|
6180
|
+
profile.language = g_param[OptionsDefine.Language]
|
6181
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6182
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
6183
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6184
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6185
|
+
model = models.DescribeAddressTemplateInstancesRequest()
|
6186
|
+
model.from_json_string(json.dumps(args))
|
6187
|
+
start_time = time.time()
|
6188
|
+
while True:
|
6189
|
+
rsp = client.DescribeAddressTemplateInstances(model)
|
6190
|
+
result = rsp.to_json_string()
|
6191
|
+
try:
|
6192
|
+
json_obj = json.loads(result)
|
6193
|
+
except TypeError as e:
|
6194
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6195
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6196
|
+
break
|
6197
|
+
cur_time = time.time()
|
6198
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6199
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6200
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6201
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6202
|
+
else:
|
6203
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6204
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6205
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6206
|
+
|
6207
|
+
|
6156
6208
|
def doDescribeGatewayFlowMonitorDetail(args, parsed_globals):
|
6157
6209
|
g_param = parse_global_arg(parsed_globals)
|
6158
6210
|
|
@@ -6413,7 +6465,7 @@ def doDescribeVpcTaskResult(args, parsed_globals):
|
|
6413
6465
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6414
6466
|
|
6415
6467
|
|
6416
|
-
def
|
6468
|
+
def doCreateDirectConnectGateway(args, parsed_globals):
|
6417
6469
|
g_param = parse_global_arg(parsed_globals)
|
6418
6470
|
|
6419
6471
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6442,11 +6494,11 @@ def doModifyNetworkInterfaceQos(args, parsed_globals):
|
|
6442
6494
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
6443
6495
|
client._sdkVersion += ("_CLI_" + __version__)
|
6444
6496
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6445
|
-
model = models.
|
6497
|
+
model = models.CreateDirectConnectGatewayRequest()
|
6446
6498
|
model.from_json_string(json.dumps(args))
|
6447
6499
|
start_time = time.time()
|
6448
6500
|
while True:
|
6449
|
-
rsp = client.
|
6501
|
+
rsp = client.CreateDirectConnectGateway(model)
|
6450
6502
|
result = rsp.to_json_string()
|
6451
6503
|
try:
|
6452
6504
|
json_obj = json.loads(result)
|
@@ -13017,7 +13069,7 @@ def doModifyCcnRouteTables(args, parsed_globals):
|
|
13017
13069
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13018
13070
|
|
13019
13071
|
|
13020
|
-
def
|
13072
|
+
def doModifyAddressesRenewFlag(args, parsed_globals):
|
13021
13073
|
g_param = parse_global_arg(parsed_globals)
|
13022
13074
|
|
13023
13075
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -13046,11 +13098,11 @@ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
|
|
13046
13098
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
13047
13099
|
client._sdkVersion += ("_CLI_" + __version__)
|
13048
13100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13049
|
-
model = models.
|
13101
|
+
model = models.ModifyAddressesRenewFlagRequest()
|
13050
13102
|
model.from_json_string(json.dumps(args))
|
13051
13103
|
start_time = time.time()
|
13052
13104
|
while True:
|
13053
|
-
rsp = client.
|
13105
|
+
rsp = client.ModifyAddressesRenewFlag(model)
|
13054
13106
|
result = rsp.to_json_string()
|
13055
13107
|
try:
|
13056
13108
|
json_obj = json.loads(result)
|
@@ -13277,6 +13329,58 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
|
|
13277
13329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13278
13330
|
|
13279
13331
|
|
13332
|
+
def doDescribeServiceTemplateGroupInstances(args, parsed_globals):
|
13333
|
+
g_param = parse_global_arg(parsed_globals)
|
13334
|
+
|
13335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
13336
|
+
cred = credential.CVMRoleCredential()
|
13337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
13338
|
+
cred = credential.STSAssumeRoleCredential(
|
13339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
13340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
13341
|
+
)
|
13342
|
+
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):
|
13343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
13344
|
+
else:
|
13345
|
+
cred = credential.Credential(
|
13346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
13347
|
+
)
|
13348
|
+
http_profile = HttpProfile(
|
13349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
13350
|
+
reqMethod="POST",
|
13351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
13352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
13353
|
+
)
|
13354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
13355
|
+
if g_param[OptionsDefine.Language]:
|
13356
|
+
profile.language = g_param[OptionsDefine.Language]
|
13357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
13358
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
13359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
13360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13361
|
+
model = models.DescribeServiceTemplateGroupInstancesRequest()
|
13362
|
+
model.from_json_string(json.dumps(args))
|
13363
|
+
start_time = time.time()
|
13364
|
+
while True:
|
13365
|
+
rsp = client.DescribeServiceTemplateGroupInstances(model)
|
13366
|
+
result = rsp.to_json_string()
|
13367
|
+
try:
|
13368
|
+
json_obj = json.loads(result)
|
13369
|
+
except TypeError as e:
|
13370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
13371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
13372
|
+
break
|
13373
|
+
cur_time = time.time()
|
13374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
13375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
13376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
13377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
13378
|
+
else:
|
13379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
13380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
13381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13382
|
+
|
13383
|
+
|
13280
13384
|
def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
|
13281
13385
|
g_param = parse_global_arg(parsed_globals)
|
13282
13386
|
|
@@ -14265,6 +14369,58 @@ def doCreateAddressTemplateGroup(args, parsed_globals):
|
|
14265
14369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14266
14370
|
|
14267
14371
|
|
14372
|
+
def doDescribeServiceTemplateInstances(args, parsed_globals):
|
14373
|
+
g_param = parse_global_arg(parsed_globals)
|
14374
|
+
|
14375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
14376
|
+
cred = credential.CVMRoleCredential()
|
14377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
14378
|
+
cred = credential.STSAssumeRoleCredential(
|
14379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
14380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
14381
|
+
)
|
14382
|
+
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):
|
14383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
14384
|
+
else:
|
14385
|
+
cred = credential.Credential(
|
14386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
14387
|
+
)
|
14388
|
+
http_profile = HttpProfile(
|
14389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
14390
|
+
reqMethod="POST",
|
14391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
14392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
14393
|
+
)
|
14394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
14395
|
+
if g_param[OptionsDefine.Language]:
|
14396
|
+
profile.language = g_param[OptionsDefine.Language]
|
14397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
14398
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
14399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
14400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
14401
|
+
model = models.DescribeServiceTemplateInstancesRequest()
|
14402
|
+
model.from_json_string(json.dumps(args))
|
14403
|
+
start_time = time.time()
|
14404
|
+
while True:
|
14405
|
+
rsp = client.DescribeServiceTemplateInstances(model)
|
14406
|
+
result = rsp.to_json_string()
|
14407
|
+
try:
|
14408
|
+
json_obj = json.loads(result)
|
14409
|
+
except TypeError as e:
|
14410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
14411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
14412
|
+
break
|
14413
|
+
cur_time = time.time()
|
14414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
14415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
14416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
14417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
14418
|
+
else:
|
14419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
14420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
14421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14422
|
+
|
14423
|
+
|
14268
14424
|
def doAssociateNetworkAclSubnets(args, parsed_globals):
|
14269
14425
|
g_param = parse_global_arg(parsed_globals)
|
14270
14426
|
|
@@ -14993,6 +15149,58 @@ def doCreateHaVip(args, parsed_globals):
|
|
14993
15149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14994
15150
|
|
14995
15151
|
|
15152
|
+
def doDescribeAddressTemplateGroupInstances(args, parsed_globals):
|
15153
|
+
g_param = parse_global_arg(parsed_globals)
|
15154
|
+
|
15155
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
15156
|
+
cred = credential.CVMRoleCredential()
|
15157
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
15158
|
+
cred = credential.STSAssumeRoleCredential(
|
15159
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
15160
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
15161
|
+
)
|
15162
|
+
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):
|
15163
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
15164
|
+
else:
|
15165
|
+
cred = credential.Credential(
|
15166
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
15167
|
+
)
|
15168
|
+
http_profile = HttpProfile(
|
15169
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
15170
|
+
reqMethod="POST",
|
15171
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
15172
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
15173
|
+
)
|
15174
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
15175
|
+
if g_param[OptionsDefine.Language]:
|
15176
|
+
profile.language = g_param[OptionsDefine.Language]
|
15177
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
15178
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
15179
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
15180
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
15181
|
+
model = models.DescribeAddressTemplateGroupInstancesRequest()
|
15182
|
+
model.from_json_string(json.dumps(args))
|
15183
|
+
start_time = time.time()
|
15184
|
+
while True:
|
15185
|
+
rsp = client.DescribeAddressTemplateGroupInstances(model)
|
15186
|
+
result = rsp.to_json_string()
|
15187
|
+
try:
|
15188
|
+
json_obj = json.loads(result)
|
15189
|
+
except TypeError as e:
|
15190
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
15191
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
15192
|
+
break
|
15193
|
+
cur_time = time.time()
|
15194
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
15195
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
15196
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
15197
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
15198
|
+
else:
|
15199
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
15200
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
15201
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15202
|
+
|
15203
|
+
|
14996
15204
|
def doDescribeTenantCcns(args, parsed_globals):
|
14997
15205
|
g_param = parse_global_arg(parsed_globals)
|
14998
15206
|
|
@@ -15981,7 +16189,7 @@ def doDescribeNetDetects(args, parsed_globals):
|
|
15981
16189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15982
16190
|
|
15983
16191
|
|
15984
|
-
def
|
16192
|
+
def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
|
15985
16193
|
g_param = parse_global_arg(parsed_globals)
|
15986
16194
|
|
15987
16195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -16010,11 +16218,11 @@ def doModifyAddressesRenewFlag(args, parsed_globals):
|
|
16010
16218
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16011
16219
|
client._sdkVersion += ("_CLI_" + __version__)
|
16012
16220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
16013
|
-
model = models.
|
16221
|
+
model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
|
16014
16222
|
model.from_json_string(json.dumps(args))
|
16015
16223
|
start_time = time.time()
|
16016
16224
|
while True:
|
16017
|
-
rsp = client.
|
16225
|
+
rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
|
16018
16226
|
result = rsp.to_json_string()
|
16019
16227
|
try:
|
16020
16228
|
json_obj = json.loads(result)
|
@@ -21592,7 +21800,7 @@ ACTION_MAP = {
|
|
21592
21800
|
"ModifyPrivateNatGatewayTranslationAclRule": doModifyPrivateNatGatewayTranslationAclRule,
|
21593
21801
|
"ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
|
21594
21802
|
"ReplaceCcnRouteTableInputPolicys": doReplaceCcnRouteTableInputPolicys,
|
21595
|
-
"
|
21803
|
+
"ModifyNetworkInterfaceQos": doModifyNetworkInterfaceQos,
|
21596
21804
|
"DetachCcnInstances": doDetachCcnInstances,
|
21597
21805
|
"CreateReserveIpAddresses": doCreateReserveIpAddresses,
|
21598
21806
|
"DescribeCrossBorderCcnRegionBandwidthLimits": doDescribeCrossBorderCcnRegionBandwidthLimits,
|
@@ -21622,12 +21830,13 @@ ACTION_MAP = {
|
|
21622
21830
|
"DescribePrivateNatGatewayRegions": doDescribePrivateNatGatewayRegions,
|
21623
21831
|
"ModifyReserveIpAddress": doModifyReserveIpAddress,
|
21624
21832
|
"DisassociateNatGatewayAddress": doDisassociateNatGatewayAddress,
|
21833
|
+
"DescribeAddressTemplateInstances": doDescribeAddressTemplateInstances,
|
21625
21834
|
"DescribeGatewayFlowMonitorDetail": doDescribeGatewayFlowMonitorDetail,
|
21626
21835
|
"UnassignIpv6Addresses": doUnassignIpv6Addresses,
|
21627
21836
|
"AssociateIPv6Address": doAssociateIPv6Address,
|
21628
21837
|
"DeleteAddressTemplateGroup": doDeleteAddressTemplateGroup,
|
21629
21838
|
"DescribeVpcTaskResult": doDescribeVpcTaskResult,
|
21630
|
-
"
|
21839
|
+
"CreateDirectConnectGateway": doCreateDirectConnectGateway,
|
21631
21840
|
"AssociateNatGatewayAddress": doAssociateNatGatewayAddress,
|
21632
21841
|
"DeleteCcnRouteTables": doDeleteCcnRouteTables,
|
21633
21842
|
"ModifyPrivateNatGatewayTranslationNatRule": doModifyPrivateNatGatewayTranslationNatRule,
|
@@ -21754,11 +21963,12 @@ ACTION_MAP = {
|
|
21754
21963
|
"DeleteNetworkAclEntries": doDeleteNetworkAclEntries,
|
21755
21964
|
"DescribeNatGatewayDirectConnectGatewayRoute": doDescribeNatGatewayDirectConnectGatewayRoute,
|
21756
21965
|
"ModifyCcnRouteTables": doModifyCcnRouteTables,
|
21757
|
-
"
|
21966
|
+
"ModifyAddressesRenewFlag": doModifyAddressesRenewFlag,
|
21758
21967
|
"ModifyHighPriorityRouteECMPAlgorithm": doModifyHighPriorityRouteECMPAlgorithm,
|
21759
21968
|
"DeleteNatGatewaySourceIpTranslationNatRule": doDeleteNatGatewaySourceIpTranslationNatRule,
|
21760
21969
|
"DisassociateIPv6Address": doDisassociateIPv6Address,
|
21761
21970
|
"ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
|
21971
|
+
"DescribeServiceTemplateGroupInstances": doDescribeServiceTemplateGroupInstances,
|
21762
21972
|
"UnassignIpv6SubnetCidrBlock": doUnassignIpv6SubnetCidrBlock,
|
21763
21973
|
"DisableRoutes": doDisableRoutes,
|
21764
21974
|
"EnableVpnGatewaySslClientCert": doEnableVpnGatewaySslClientCert,
|
@@ -21778,6 +21988,7 @@ ACTION_MAP = {
|
|
21778
21988
|
"DisableCcnRoutes": doDisableCcnRoutes,
|
21779
21989
|
"DescribeCcnRouteTableBroadcastPolicys": doDescribeCcnRouteTableBroadcastPolicys,
|
21780
21990
|
"CreateAddressTemplateGroup": doCreateAddressTemplateGroup,
|
21991
|
+
"DescribeServiceTemplateInstances": doDescribeServiceTemplateInstances,
|
21781
21992
|
"AssociateNetworkAclSubnets": doAssociateNetworkAclSubnets,
|
21782
21993
|
"DescribeVpnGateways": doDescribeVpnGateways,
|
21783
21994
|
"DownloadVpnGatewaySslClientCert": doDownloadVpnGatewaySslClientCert,
|
@@ -21792,6 +22003,7 @@ ACTION_MAP = {
|
|
21792
22003
|
"DescribePrivateNatGatewayTranslationNatRules": doDescribePrivateNatGatewayTranslationNatRules,
|
21793
22004
|
"DisassociateHaVipInstance": doDisassociateHaVipInstance,
|
21794
22005
|
"CreateHaVip": doCreateHaVip,
|
22006
|
+
"DescribeAddressTemplateGroupInstances": doDescribeAddressTemplateGroupInstances,
|
21795
22007
|
"DescribeTenantCcns": doDescribeTenantCcns,
|
21796
22008
|
"CreateHighPriorityRoutes": doCreateHighPriorityRoutes,
|
21797
22009
|
"LockCcns": doLockCcns,
|
@@ -21811,7 +22023,7 @@ ACTION_MAP = {
|
|
21811
22023
|
"DisassociateNetworkInterfaceSecurityGroups": doDisassociateNetworkInterfaceSecurityGroups,
|
21812
22024
|
"ResetRoutes": doResetRoutes,
|
21813
22025
|
"DescribeNetDetects": doDescribeNetDetects,
|
21814
|
-
"
|
22026
|
+
"ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
|
21815
22027
|
"DescribeCcnRouteTableInputPolicys": doDescribeCcnRouteTableInputPolicys,
|
21816
22028
|
"CloneSecurityGroup": doCloneSecurityGroup,
|
21817
22029
|
"DeleteSnapshotPolicies": doDeleteSnapshotPolicies,
|