tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1216.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/configure.py +46 -1
  3. tccli/services/__init__.py +0 -3
  4. tccli/services/apm/v20210622/api.json +20 -0
  5. tccli/services/asr/v20190614/api.json +3 -3
  6. tccli/services/bi/v20220105/api.json +32 -4
  7. tccli/services/bi/v20220105/examples.json +1 -1
  8. tccli/services/billing/billing_client.py +53 -0
  9. tccli/services/billing/v20180709/api.json +304 -0
  10. tccli/services/billing/v20180709/examples.json +8 -0
  11. tccli/services/bsca/v20210811/api.json +222 -17
  12. tccli/services/bsca/v20210811/examples.json +4 -4
  13. tccli/services/ccc/ccc_client.py +53 -0
  14. tccli/services/ccc/v20200210/api.json +167 -18
  15. tccli/services/ccc/v20200210/examples.json +11 -3
  16. tccli/services/cdb/v20170320/api.json +13 -4
  17. tccli/services/cdb/v20170320/examples.json +1 -1
  18. tccli/services/cdn/v20180606/api.json +5 -3
  19. tccli/services/cdwdoris/v20211228/api.json +12 -2
  20. tccli/services/cfw/v20190904/api.json +81 -47
  21. tccli/services/cfw/v20190904/examples.json +46 -40
  22. tccli/services/ciam/v20220331/api.json +316 -315
  23. tccli/services/ciam/v20220331/examples.json +49 -49
  24. tccli/services/cloudaudit/cloudaudit_client.py +30 -30
  25. tccli/services/cloudaudit/v20190319/api.json +215 -186
  26. tccli/services/cloudaudit/v20190319/examples.json +13 -13
  27. tccli/services/cls/v20201016/api.json +365 -66
  28. tccli/services/cls/v20201016/examples.json +9 -3
  29. tccli/services/csip/v20221121/api.json +4 -4
  30. tccli/services/cvm/v20170312/api.json +42 -0
  31. tccli/services/cwp/v20180228/api.json +217 -163
  32. tccli/services/cwp/v20180228/examples.json +53 -65
  33. tccli/services/cynosdb/v20190107/api.json +77 -29
  34. tccli/services/cynosdb/v20190107/examples.json +22 -22
  35. tccli/services/dasb/v20191018/api.json +77 -0
  36. tccli/services/dasb/v20191018/examples.json +5 -5
  37. tccli/services/domain/v20180808/api.json +3 -3
  38. tccli/services/domain/v20180808/examples.json +3 -3
  39. tccli/services/eb/v20210416/api.json +15 -15
  40. tccli/services/eb/v20210416/examples.json +1 -1
  41. tccli/services/es/es_client.py +249 -37
  42. tccli/services/es/v20180416/api.json +521 -0
  43. tccli/services/es/v20180416/examples.json +32 -0
  44. tccli/services/ess/ess_client.py +53 -0
  45. tccli/services/ess/v20201111/api.json +145 -9
  46. tccli/services/ess/v20201111/examples.json +15 -1
  47. tccli/services/essbasic/essbasic_client.py +106 -0
  48. tccli/services/essbasic/v20210526/api.json +234 -12
  49. tccli/services/essbasic/v20210526/examples.json +22 -0
  50. tccli/services/gaap/v20180529/api.json +44 -26
  51. tccli/services/gaap/v20180529/examples.json +24 -30
  52. tccli/services/iotexplorer/v20190423/api.json +40 -0
  53. tccli/services/live/v20180801/api.json +35 -9
  54. tccli/services/mongodb/v20190725/api.json +6 -8
  55. tccli/services/ocr/v20181119/api.json +2 -2
  56. tccli/services/organization/organization_client.py +352 -34
  57. tccli/services/organization/v20210331/api.json +451 -0
  58. tccli/services/organization/v20210331/examples.json +48 -0
  59. tccli/services/region/v20220627/api.json +1 -1
  60. tccli/services/scf/scf_client.py +269 -4
  61. tccli/services/scf/v20180416/api.json +554 -0
  62. tccli/services/scf/v20180416/examples.json +46 -0
  63. tccli/services/ssl/v20191205/api.json +1 -1
  64. tccli/services/tat/v20201028/api.json +27 -25
  65. tccli/services/tat/v20201028/examples.json +4 -4
  66. tccli/services/tcss/v20201101/api.json +13 -13
  67. tccli/services/tcss/v20201101/examples.json +5 -5
  68. tccli/services/tdmq/v20200217/api.json +64 -63
  69. tccli/services/tdmq/v20200217/examples.json +2 -2
  70. tccli/services/tem/v20210701/api.json +144 -103
  71. tccli/services/tem/v20210701/examples.json +27 -27
  72. tccli/services/teo/teo_client.py +277 -12
  73. tccli/services/teo/v20220901/api.json +1020 -143
  74. tccli/services/teo/v20220901/examples.json +71 -1
  75. tccli/services/tke/tke_client.py +53 -0
  76. tccli/services/tke/v20180525/api.json +43 -0
  77. tccli/services/tke/v20180525/examples.json +8 -0
  78. tccli/services/tms/tms_client.py +4 -57
  79. tccli/services/tms/v20201229/api.json +0 -354
  80. tccli/services/tms/v20201229/examples.json +0 -8
  81. tccli/services/trtc/v20190722/api.json +221 -22
  82. tccli/services/vpc/v20170312/api.json +105 -30
  83. tccli/services/vpc/v20170312/examples.json +10 -2
  84. tccli/services/vpc/vpc_client.py +107 -54
  85. tccli/services/waf/v20180125/api.json +61 -0
  86. tccli/services/waf/v20180125/examples.json +8 -0
  87. tccli/services/waf/waf_client.py +53 -0
  88. tccli/services/wedata/v20210820/api.json +686 -0
  89. tccli/services/wedata/v20210820/examples.json +16 -0
  90. tccli/services/wedata/wedata_client.py +106 -0
  91. {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/METADATA +6 -2
  92. {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/RECORD +95 -99
  93. tccli/services/cr/__init__.py +0 -4
  94. tccli/services/cr/cr_client.py +0 -1626
  95. tccli/services/cr/v20180321/api.json +0 -2829
  96. tccli/services/cr/v20180321/examples.json +0 -235
  97. {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/WHEEL +0 -0
  98. {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/entry_points.txt +0 -0
  99. {tccli-3.0.1215.1.dist-info → tccli-3.0.1216.1.dist-info}/license_files/LICENSE +0 -0
@@ -3917,7 +3917,7 @@ def doModifyVpnGatewayAttribute(args, parsed_globals):
3917
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
3918
 
3919
3919
 
3920
- def doUnlockCcns(args, parsed_globals):
3920
+ def doDeleteVpc(args, parsed_globals):
3921
3921
  g_param = parse_global_arg(parsed_globals)
3922
3922
 
3923
3923
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3946,11 +3946,11 @@ def doUnlockCcns(args, parsed_globals):
3946
3946
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
3947
3947
  client._sdkVersion += ("_CLI_" + __version__)
3948
3948
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
- model = models.UnlockCcnsRequest()
3949
+ model = models.DeleteVpcRequest()
3950
3950
  model.from_json_string(json.dumps(args))
3951
3951
  start_time = time.time()
3952
3952
  while True:
3953
- rsp = client.UnlockCcns(model)
3953
+ rsp = client.DeleteVpc(model)
3954
3954
  result = rsp.to_json_string()
3955
3955
  try:
3956
3956
  json_obj = json.loads(result)
@@ -11925,7 +11925,7 @@ def doModifyCcnRouteTables(args, parsed_globals):
11925
11925
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11926
11926
 
11927
11927
 
11928
- def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11928
+ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
11929
11929
  g_param = parse_global_arg(parsed_globals)
11930
11930
 
11931
11931
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -11954,11 +11954,11 @@ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11954
11954
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
11955
11955
  client._sdkVersion += ("_CLI_" + __version__)
11956
11956
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
11957
- model = models.ModifyHighPriorityRouteECMPAlgorithmRequest()
11957
+ model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
11958
11958
  model.from_json_string(json.dumps(args))
11959
11959
  start_time = time.time()
11960
11960
  while True:
11961
- rsp = client.ModifyHighPriorityRouteECMPAlgorithm(model)
11961
+ rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
11962
11962
  result = rsp.to_json_string()
11963
11963
  try:
11964
11964
  json_obj = json.loads(result)
@@ -11977,7 +11977,7 @@ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11977
11977
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11978
11978
 
11979
11979
 
11980
- def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
11980
+ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11981
11981
  g_param = parse_global_arg(parsed_globals)
11982
11982
 
11983
11983
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12006,11 +12006,11 @@ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12006
12006
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12007
12007
  client._sdkVersion += ("_CLI_" + __version__)
12008
12008
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12009
- model = models.DeleteNatGatewaySourceIpTranslationNatRuleRequest()
12009
+ model = models.ModifyHighPriorityRouteECMPAlgorithmRequest()
12010
12010
  model.from_json_string(json.dumps(args))
12011
12011
  start_time = time.time()
12012
12012
  while True:
12013
- rsp = client.DeleteNatGatewaySourceIpTranslationNatRule(model)
12013
+ rsp = client.ModifyHighPriorityRouteECMPAlgorithm(model)
12014
12014
  result = rsp.to_json_string()
12015
12015
  try:
12016
12016
  json_obj = json.loads(result)
@@ -12029,7 +12029,7 @@ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12029
12029
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12030
12030
 
12031
12031
 
12032
- def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12032
+ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12033
12033
  g_param = parse_global_arg(parsed_globals)
12034
12034
 
12035
12035
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12058,11 +12058,11 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12058
12058
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12059
12059
  client._sdkVersion += ("_CLI_" + __version__)
12060
12060
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12061
- model = models.ModifyNatGatewaySourceIpTranslationNatRuleRequest()
12061
+ model = models.DeleteNatGatewaySourceIpTranslationNatRuleRequest()
12062
12062
  model.from_json_string(json.dumps(args))
12063
12063
  start_time = time.time()
12064
12064
  while True:
12065
- rsp = client.ModifyNatGatewaySourceIpTranslationNatRule(model)
12065
+ rsp = client.DeleteNatGatewaySourceIpTranslationNatRule(model)
12066
12066
  result = rsp.to_json_string()
12067
12067
  try:
12068
12068
  json_obj = json.loads(result)
@@ -12081,7 +12081,7 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12081
12081
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12082
12082
 
12083
12083
 
12084
- def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12084
+ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12085
12085
  g_param = parse_global_arg(parsed_globals)
12086
12086
 
12087
12087
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12110,11 +12110,11 @@ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12110
12110
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12111
12111
  client._sdkVersion += ("_CLI_" + __version__)
12112
12112
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12113
- model = models.UnassignIpv6SubnetCidrBlockRequest()
12113
+ model = models.ModifyNatGatewaySourceIpTranslationNatRuleRequest()
12114
12114
  model.from_json_string(json.dumps(args))
12115
12115
  start_time = time.time()
12116
12116
  while True:
12117
- rsp = client.UnassignIpv6SubnetCidrBlock(model)
12117
+ rsp = client.ModifyNatGatewaySourceIpTranslationNatRule(model)
12118
12118
  result = rsp.to_json_string()
12119
12119
  try:
12120
12120
  json_obj = json.loads(result)
@@ -12133,7 +12133,7 @@ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12133
12133
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12134
12134
 
12135
12135
 
12136
- def doDisableRoutes(args, parsed_globals):
12136
+ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12137
12137
  g_param = parse_global_arg(parsed_globals)
12138
12138
 
12139
12139
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12162,11 +12162,11 @@ def doDisableRoutes(args, parsed_globals):
12162
12162
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12163
12163
  client._sdkVersion += ("_CLI_" + __version__)
12164
12164
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12165
- model = models.DisableRoutesRequest()
12165
+ model = models.UnassignIpv6SubnetCidrBlockRequest()
12166
12166
  model.from_json_string(json.dumps(args))
12167
12167
  start_time = time.time()
12168
12168
  while True:
12169
- rsp = client.DisableRoutes(model)
12169
+ rsp = client.UnassignIpv6SubnetCidrBlock(model)
12170
12170
  result = rsp.to_json_string()
12171
12171
  try:
12172
12172
  json_obj = json.loads(result)
@@ -12185,7 +12185,7 @@ def doDisableRoutes(args, parsed_globals):
12185
12185
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12186
12186
 
12187
12187
 
12188
- def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12188
+ def doDisableRoutes(args, parsed_globals):
12189
12189
  g_param = parse_global_arg(parsed_globals)
12190
12190
 
12191
12191
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12214,11 +12214,11 @@ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12214
12214
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12215
12215
  client._sdkVersion += ("_CLI_" + __version__)
12216
12216
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12217
- model = models.EnableVpnGatewaySslClientCertRequest()
12217
+ model = models.DisableRoutesRequest()
12218
12218
  model.from_json_string(json.dumps(args))
12219
12219
  start_time = time.time()
12220
12220
  while True:
12221
- rsp = client.EnableVpnGatewaySslClientCert(model)
12221
+ rsp = client.DisableRoutes(model)
12222
12222
  result = rsp.to_json_string()
12223
12223
  try:
12224
12224
  json_obj = json.loads(result)
@@ -12237,7 +12237,7 @@ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12237
12237
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12238
12238
 
12239
12239
 
12240
- def doCreateAssistantCidr(args, parsed_globals):
12240
+ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12241
12241
  g_param = parse_global_arg(parsed_globals)
12242
12242
 
12243
12243
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12266,11 +12266,11 @@ def doCreateAssistantCidr(args, parsed_globals):
12266
12266
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12267
12267
  client._sdkVersion += ("_CLI_" + __version__)
12268
12268
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12269
- model = models.CreateAssistantCidrRequest()
12269
+ model = models.EnableVpnGatewaySslClientCertRequest()
12270
12270
  model.from_json_string(json.dumps(args))
12271
12271
  start_time = time.time()
12272
12272
  while True:
12273
- rsp = client.CreateAssistantCidr(model)
12273
+ rsp = client.EnableVpnGatewaySslClientCert(model)
12274
12274
  result = rsp.to_json_string()
12275
12275
  try:
12276
12276
  json_obj = json.loads(result)
@@ -12289,7 +12289,7 @@ def doCreateAssistantCidr(args, parsed_globals):
12289
12289
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12290
12290
 
12291
12291
 
12292
- def doDescribeVpnGatewaySslClients(args, parsed_globals):
12292
+ def doCreateAssistantCidr(args, parsed_globals):
12293
12293
  g_param = parse_global_arg(parsed_globals)
12294
12294
 
12295
12295
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12318,11 +12318,11 @@ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12318
12318
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12319
12319
  client._sdkVersion += ("_CLI_" + __version__)
12320
12320
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12321
- model = models.DescribeVpnGatewaySslClientsRequest()
12321
+ model = models.CreateAssistantCidrRequest()
12322
12322
  model.from_json_string(json.dumps(args))
12323
12323
  start_time = time.time()
12324
12324
  while True:
12325
- rsp = client.DescribeVpnGatewaySslClients(model)
12325
+ rsp = client.CreateAssistantCidr(model)
12326
12326
  result = rsp.to_json_string()
12327
12327
  try:
12328
12328
  json_obj = json.loads(result)
@@ -12341,7 +12341,7 @@ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12341
12341
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12342
12342
 
12343
12343
 
12344
- def doCreateNatGateway(args, parsed_globals):
12344
+ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12345
12345
  g_param = parse_global_arg(parsed_globals)
12346
12346
 
12347
12347
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12370,11 +12370,11 @@ def doCreateNatGateway(args, parsed_globals):
12370
12370
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12371
12371
  client._sdkVersion += ("_CLI_" + __version__)
12372
12372
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12373
- model = models.CreateNatGatewayRequest()
12373
+ model = models.DescribeVpnGatewaySslClientsRequest()
12374
12374
  model.from_json_string(json.dumps(args))
12375
12375
  start_time = time.time()
12376
12376
  while True:
12377
- rsp = client.CreateNatGateway(model)
12377
+ rsp = client.DescribeVpnGatewaySslClients(model)
12378
12378
  result = rsp.to_json_string()
12379
12379
  try:
12380
12380
  json_obj = json.loads(result)
@@ -12393,7 +12393,7 @@ def doCreateNatGateway(args, parsed_globals):
12393
12393
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12394
12394
 
12395
12395
 
12396
- def doDeleteNetDetect(args, parsed_globals):
12396
+ def doCreateNatGateway(args, parsed_globals):
12397
12397
  g_param = parse_global_arg(parsed_globals)
12398
12398
 
12399
12399
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12422,11 +12422,11 @@ def doDeleteNetDetect(args, parsed_globals):
12422
12422
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12423
12423
  client._sdkVersion += ("_CLI_" + __version__)
12424
12424
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12425
- model = models.DeleteNetDetectRequest()
12425
+ model = models.CreateNatGatewayRequest()
12426
12426
  model.from_json_string(json.dumps(args))
12427
12427
  start_time = time.time()
12428
12428
  while True:
12429
- rsp = client.DeleteNetDetect(model)
12429
+ rsp = client.CreateNatGateway(model)
12430
12430
  result = rsp.to_json_string()
12431
12431
  try:
12432
12432
  json_obj = json.loads(result)
@@ -12445,7 +12445,7 @@ def doDeleteNetDetect(args, parsed_globals):
12445
12445
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12446
12446
 
12447
12447
 
12448
- def doNotifyRoutes(args, parsed_globals):
12448
+ def doDeleteNetDetect(args, parsed_globals):
12449
12449
  g_param = parse_global_arg(parsed_globals)
12450
12450
 
12451
12451
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12474,11 +12474,11 @@ def doNotifyRoutes(args, parsed_globals):
12474
12474
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12475
12475
  client._sdkVersion += ("_CLI_" + __version__)
12476
12476
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12477
- model = models.NotifyRoutesRequest()
12477
+ model = models.DeleteNetDetectRequest()
12478
12478
  model.from_json_string(json.dumps(args))
12479
12479
  start_time = time.time()
12480
12480
  while True:
12481
- rsp = client.NotifyRoutes(model)
12481
+ rsp = client.DeleteNetDetect(model)
12482
12482
  result = rsp.to_json_string()
12483
12483
  try:
12484
12484
  json_obj = json.loads(result)
@@ -12497,7 +12497,7 @@ def doNotifyRoutes(args, parsed_globals):
12497
12497
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12498
12498
 
12499
12499
 
12500
- def doDeleteVpcEndPoint(args, parsed_globals):
12500
+ def doNotifyRoutes(args, parsed_globals):
12501
12501
  g_param = parse_global_arg(parsed_globals)
12502
12502
 
12503
12503
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12526,11 +12526,11 @@ def doDeleteVpcEndPoint(args, parsed_globals):
12526
12526
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12527
12527
  client._sdkVersion += ("_CLI_" + __version__)
12528
12528
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12529
- model = models.DeleteVpcEndPointRequest()
12529
+ model = models.NotifyRoutesRequest()
12530
12530
  model.from_json_string(json.dumps(args))
12531
12531
  start_time = time.time()
12532
12532
  while True:
12533
- rsp = client.DeleteVpcEndPoint(model)
12533
+ rsp = client.NotifyRoutes(model)
12534
12534
  result = rsp.to_json_string()
12535
12535
  try:
12536
12536
  json_obj = json.loads(result)
@@ -12549,7 +12549,7 @@ def doDeleteVpcEndPoint(args, parsed_globals):
12549
12549
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12550
12550
 
12551
12551
 
12552
- def doDeleteHighPriorityRoutes(args, parsed_globals):
12552
+ def doDeleteVpcEndPoint(args, parsed_globals):
12553
12553
  g_param = parse_global_arg(parsed_globals)
12554
12554
 
12555
12555
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12578,11 +12578,11 @@ def doDeleteHighPriorityRoutes(args, parsed_globals):
12578
12578
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12579
12579
  client._sdkVersion += ("_CLI_" + __version__)
12580
12580
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12581
- model = models.DeleteHighPriorityRoutesRequest()
12581
+ model = models.DeleteVpcEndPointRequest()
12582
12582
  model.from_json_string(json.dumps(args))
12583
12583
  start_time = time.time()
12584
12584
  while True:
12585
- rsp = client.DeleteHighPriorityRoutes(model)
12585
+ rsp = client.DeleteVpcEndPoint(model)
12586
12586
  result = rsp.to_json_string()
12587
12587
  try:
12588
12588
  json_obj = json.loads(result)
@@ -12601,7 +12601,7 @@ def doDeleteHighPriorityRoutes(args, parsed_globals):
12601
12601
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12602
12602
 
12603
12603
 
12604
- def doCreateServiceTemplate(args, parsed_globals):
12604
+ def doDeleteHighPriorityRoutes(args, parsed_globals):
12605
12605
  g_param = parse_global_arg(parsed_globals)
12606
12606
 
12607
12607
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12630,11 +12630,11 @@ def doCreateServiceTemplate(args, parsed_globals):
12630
12630
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12631
12631
  client._sdkVersion += ("_CLI_" + __version__)
12632
12632
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12633
- model = models.CreateServiceTemplateRequest()
12633
+ model = models.DeleteHighPriorityRoutesRequest()
12634
12634
  model.from_json_string(json.dumps(args))
12635
12635
  start_time = time.time()
12636
12636
  while True:
12637
- rsp = client.CreateServiceTemplate(model)
12637
+ rsp = client.DeleteHighPriorityRoutes(model)
12638
12638
  result = rsp.to_json_string()
12639
12639
  try:
12640
12640
  json_obj = json.loads(result)
@@ -12653,7 +12653,7 @@ def doCreateServiceTemplate(args, parsed_globals):
12653
12653
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12654
12654
 
12655
12655
 
12656
- def doDeleteVpc(args, parsed_globals):
12656
+ def doCreateServiceTemplate(args, parsed_globals):
12657
12657
  g_param = parse_global_arg(parsed_globals)
12658
12658
 
12659
12659
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12682,11 +12682,11 @@ def doDeleteVpc(args, parsed_globals):
12682
12682
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12683
12683
  client._sdkVersion += ("_CLI_" + __version__)
12684
12684
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12685
- model = models.DeleteVpcRequest()
12685
+ model = models.CreateServiceTemplateRequest()
12686
12686
  model.from_json_string(json.dumps(args))
12687
12687
  start_time = time.time()
12688
12688
  while True:
12689
- rsp = client.DeleteVpc(model)
12689
+ rsp = client.CreateServiceTemplate(model)
12690
12690
  result = rsp.to_json_string()
12691
12691
  try:
12692
12692
  json_obj = json.loads(result)
@@ -14733,7 +14733,7 @@ def doDescribeNetDetects(args, parsed_globals):
14733
14733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14734
14734
 
14735
14735
 
14736
- def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
14736
+ def doModifyAddressesRenewFlag(args, parsed_globals):
14737
14737
  g_param = parse_global_arg(parsed_globals)
14738
14738
 
14739
14739
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -14762,11 +14762,11 @@ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
14762
14762
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
14763
14763
  client._sdkVersion += ("_CLI_" + __version__)
14764
14764
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
14765
- model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
14765
+ model = models.ModifyAddressesRenewFlagRequest()
14766
14766
  model.from_json_string(json.dumps(args))
14767
14767
  start_time = time.time()
14768
14768
  while True:
14769
- rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
14769
+ rsp = client.ModifyAddressesRenewFlag(model)
14770
14770
  result = rsp.to_json_string()
14771
14771
  try:
14772
14772
  json_obj = json.loads(result)
@@ -17801,6 +17801,58 @@ def doDescribeNatGatewayDirectConnectGatewayRoute(args, parsed_globals):
17801
17801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17802
17802
 
17803
17803
 
17804
+ def doUnlockCcns(args, parsed_globals):
17805
+ g_param = parse_global_arg(parsed_globals)
17806
+
17807
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
17808
+ cred = credential.CVMRoleCredential()
17809
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
17810
+ cred = credential.STSAssumeRoleCredential(
17811
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
17812
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
17813
+ )
17814
+ 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):
17815
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
17816
+ else:
17817
+ cred = credential.Credential(
17818
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
17819
+ )
17820
+ http_profile = HttpProfile(
17821
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
17822
+ reqMethod="POST",
17823
+ endpoint=g_param[OptionsDefine.Endpoint],
17824
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
17825
+ )
17826
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
17827
+ if g_param[OptionsDefine.Language]:
17828
+ profile.language = g_param[OptionsDefine.Language]
17829
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
17830
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
17831
+ client._sdkVersion += ("_CLI_" + __version__)
17832
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
17833
+ model = models.UnlockCcnsRequest()
17834
+ model.from_json_string(json.dumps(args))
17835
+ start_time = time.time()
17836
+ while True:
17837
+ rsp = client.UnlockCcns(model)
17838
+ result = rsp.to_json_string()
17839
+ try:
17840
+ json_obj = json.loads(result)
17841
+ except TypeError as e:
17842
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
17843
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
17844
+ break
17845
+ cur_time = time.time()
17846
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
17847
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
17848
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
17849
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
17850
+ else:
17851
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
17852
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
17853
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17854
+
17855
+
17804
17856
  def doHaVipAssociateAddressIp(args, parsed_globals):
17805
17857
  g_param = parse_global_arg(parsed_globals)
17806
17858
 
@@ -19343,7 +19395,7 @@ ACTION_MAP = {
19343
19395
  "ModifyBandwidthPackageAttribute": doModifyBandwidthPackageAttribute,
19344
19396
  "CreateVpnGatewaySslServer": doCreateVpnGatewaySslServer,
19345
19397
  "ModifyVpnGatewayAttribute": doModifyVpnGatewayAttribute,
19346
- "UnlockCcns": doUnlockCcns,
19398
+ "DeleteVpc": doDeleteVpc,
19347
19399
  "DescribeSubnets": doDescribeSubnets,
19348
19400
  "ModifyPrivateNatGatewayTranslationAclRule": doModifyPrivateNatGatewayTranslationAclRule,
19349
19401
  "ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
@@ -19497,6 +19549,7 @@ ACTION_MAP = {
19497
19549
  "DeleteNetworkAclEntries": doDeleteNetworkAclEntries,
19498
19550
  "DescribeBandwidthPackageBillUsage": doDescribeBandwidthPackageBillUsage,
19499
19551
  "ModifyCcnRouteTables": doModifyCcnRouteTables,
19552
+ "ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
19500
19553
  "ModifyHighPriorityRouteECMPAlgorithm": doModifyHighPriorityRouteECMPAlgorithm,
19501
19554
  "DeleteNatGatewaySourceIpTranslationNatRule": doDeleteNatGatewaySourceIpTranslationNatRule,
19502
19555
  "ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
@@ -19511,7 +19564,6 @@ ACTION_MAP = {
19511
19564
  "DeleteVpcEndPoint": doDeleteVpcEndPoint,
19512
19565
  "DeleteHighPriorityRoutes": doDeleteHighPriorityRoutes,
19513
19566
  "CreateServiceTemplate": doCreateServiceTemplate,
19514
- "DeleteVpc": doDeleteVpc,
19515
19567
  "ModifyDirectConnectGatewayAttribute": doModifyDirectConnectGatewayAttribute,
19516
19568
  "ModifySubnetAttribute": doModifySubnetAttribute,
19517
19569
  "DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
@@ -19551,7 +19603,7 @@ ACTION_MAP = {
19551
19603
  "DisassociateNetworkInterfaceSecurityGroups": doDisassociateNetworkInterfaceSecurityGroups,
19552
19604
  "ResetRoutes": doResetRoutes,
19553
19605
  "DescribeNetDetects": doDescribeNetDetects,
19554
- "ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
19606
+ "ModifyAddressesRenewFlag": doModifyAddressesRenewFlag,
19555
19607
  "DescribeCcnRouteTableInputPolicys": doDescribeCcnRouteTableInputPolicys,
19556
19608
  "CloneSecurityGroup": doCloneSecurityGroup,
19557
19609
  "DeleteSnapshotPolicies": doDeleteSnapshotPolicies,
@@ -19610,6 +19662,7 @@ ACTION_MAP = {
19610
19662
  "DescribeServiceTemplates": doDescribeServiceTemplates,
19611
19663
  "HaVipDisassociateAddressIp": doHaVipDisassociateAddressIp,
19612
19664
  "DescribeNatGatewayDirectConnectGatewayRoute": doDescribeNatGatewayDirectConnectGatewayRoute,
19665
+ "UnlockCcns": doUnlockCcns,
19613
19666
  "HaVipAssociateAddressIp": doHaVipAssociateAddressIp,
19614
19667
  "CheckDefaultSubnet": doCheckDefaultSubnet,
19615
19668
  "AssociateNetworkInterfaceSecurityGroups": doAssociateNetworkInterfaceSecurityGroups,
@@ -917,6 +917,13 @@
917
917
  "output": "ModifyUserSignatureRuleResponse",
918
918
  "status": "online"
919
919
  },
920
+ "ModifyUserSignatureRuleV2": {
921
+ "document": "修改用户防护规则,开启关闭具体的某条规则",
922
+ "input": "ModifyUserSignatureRuleV2Request",
923
+ "name": "修改用户防护规则V2",
924
+ "output": "ModifyUserSignatureRuleV2Response",
925
+ "status": "online"
926
+ },
920
927
  "ModifyWafAutoDenyRules": {
921
928
  "document": "修改ip惩罚规则",
922
929
  "input": "ModifyWafAutoDenyRulesRequest",
@@ -18004,6 +18011,60 @@
18004
18011
  ],
18005
18012
  "type": "object"
18006
18013
  },
18014
+ "ModifyUserSignatureRuleV2Request": {
18015
+ "document": "ModifyUserSignatureRuleV2请求参数结构体",
18016
+ "members": [
18017
+ {
18018
+ "disabled": false,
18019
+ "document": "域名",
18020
+ "example": "xx.qcloudwaf.com",
18021
+ "member": "string",
18022
+ "name": "Domain",
18023
+ "required": true,
18024
+ "type": "string"
18025
+ },
18026
+ {
18027
+ "disabled": false,
18028
+ "document": "主类id",
18029
+ "example": "010000000",
18030
+ "member": "string",
18031
+ "name": "MainClassID",
18032
+ "required": false,
18033
+ "type": "string"
18034
+ },
18035
+ {
18036
+ "disabled": false,
18037
+ "document": "主类开关0=关闭,1=开启,2=只告警",
18038
+ "example": "1",
18039
+ "member": "int64",
18040
+ "name": "Status",
18041
+ "required": false,
18042
+ "type": "int"
18043
+ },
18044
+ {
18045
+ "disabled": false,
18046
+ "document": "下发修改的规则列表",
18047
+ "example": "无",
18048
+ "member": "ReqUserRule",
18049
+ "name": "RuleID",
18050
+ "required": false,
18051
+ "type": "list"
18052
+ }
18053
+ ],
18054
+ "type": "object"
18055
+ },
18056
+ "ModifyUserSignatureRuleV2Response": {
18057
+ "document": "ModifyUserSignatureRuleV2返回参数结构体",
18058
+ "members": [
18059
+ {
18060
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
18061
+ "member": "string",
18062
+ "name": "RequestId",
18063
+ "type": "string"
18064
+ }
18065
+ ],
18066
+ "type": "object"
18067
+ },
18007
18068
  "ModifyWafAutoDenyRulesRequest": {
18008
18069
  "document": "ModifyWafAutoDenyRules请求参数结构体",
18009
18070
  "members": [
@@ -1160,6 +1160,14 @@
1160
1160
  "title": "查询示例"
1161
1161
  }
1162
1162
  ],
1163
+ "ModifyUserSignatureRuleV2": [
1164
+ {
1165
+ "document": "",
1166
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyUserSignatureRuleV2\n<公共请求参数>\n\n{\n \"Domain\": \"abc.test.com\",\n \"RuleID\": [\n {\n \"Id\": \"10000266\",\n \"Status\": 0\n }\n ]\n}",
1167
+ "output": "{\n \"Response\": {\n \"RequestId\": \"40bbd265-74de-4e3b-b4f8-6219222ab961\"\n }\n}",
1168
+ "title": "修改用户防护规则,关闭具体的某条规则"
1169
+ }
1170
+ ],
1163
1171
  "ModifyWafAutoDenyRules": [
1164
1172
  {
1165
1173
  "document": "修改ip惩罚配置",
@@ -5529,6 +5529,58 @@ def doDescribeHost(args, parsed_globals):
5529
5529
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5530
 
5531
5531
 
5532
+ def doModifyUserSignatureRuleV2(args, parsed_globals):
5533
+ g_param = parse_global_arg(parsed_globals)
5534
+
5535
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5536
+ cred = credential.CVMRoleCredential()
5537
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5538
+ cred = credential.STSAssumeRoleCredential(
5539
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5540
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5541
+ )
5542
+ 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):
5543
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5544
+ else:
5545
+ cred = credential.Credential(
5546
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5547
+ )
5548
+ http_profile = HttpProfile(
5549
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5550
+ reqMethod="POST",
5551
+ endpoint=g_param[OptionsDefine.Endpoint],
5552
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5553
+ )
5554
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5555
+ if g_param[OptionsDefine.Language]:
5556
+ profile.language = g_param[OptionsDefine.Language]
5557
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5558
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
5559
+ client._sdkVersion += ("_CLI_" + __version__)
5560
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5561
+ model = models.ModifyUserSignatureRuleV2Request()
5562
+ model.from_json_string(json.dumps(args))
5563
+ start_time = time.time()
5564
+ while True:
5565
+ rsp = client.ModifyUserSignatureRuleV2(model)
5566
+ result = rsp.to_json_string()
5567
+ try:
5568
+ json_obj = json.loads(result)
5569
+ except TypeError as e:
5570
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5571
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5572
+ break
5573
+ cur_time = time.time()
5574
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5575
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5576
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5577
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5578
+ else:
5579
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5580
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5581
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5582
+
5583
+
5532
5584
  def doDescribeAccessExports(args, parsed_globals):
5533
5585
  g_param = parse_global_arg(parsed_globals)
5534
5586
 
@@ -7622,6 +7674,7 @@ ACTION_MAP = {
7622
7674
  "PostAttackDownloadTask": doPostAttackDownloadTask,
7623
7675
  "DescribeCustomWhiteRule": doDescribeCustomWhiteRule,
7624
7676
  "DescribeHost": doDescribeHost,
7677
+ "ModifyUserSignatureRuleV2": doModifyUserSignatureRuleV2,
7625
7678
  "DescribeAccessExports": doDescribeAccessExports,
7626
7679
  "ModifyGenerateDeals": doModifyGenerateDeals,
7627
7680
  "DescribeHostLimit": doDescribeHostLimit,