tccli 3.0.1212.1__py2.py3-none-any.whl → 3.0.1214.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 (64) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/v20170312/api.json +2 -2
  3. tccli/services/captcha/v20190722/api.json +55 -45
  4. tccli/services/captcha/v20190722/examples.json +11 -11
  5. tccli/services/cdb/v20170320/api.json +9 -0
  6. tccli/services/cfw/v20190904/api.json +96 -87
  7. tccli/services/cfw/v20190904/examples.json +32 -32
  8. tccli/services/clb/v20180317/api.json +19 -1
  9. tccli/services/cvm/v20170312/api.json +3 -3
  10. tccli/services/cwp/v20180228/api.json +478 -394
  11. tccli/services/cwp/v20180228/examples.json +160 -160
  12. tccli/services/cynosdb/v20190107/api.json +51 -40
  13. tccli/services/cynosdb/v20190107/examples.json +2 -2
  14. tccli/services/dbbrain/v20210527/api.json +2 -2
  15. tccli/services/dbbrain/v20210527/examples.json +1 -1
  16. tccli/services/ecdn/v20191012/api.json +2 -2
  17. tccli/services/ecdn/v20191012/examples.json +1 -1
  18. tccli/services/emr/v20190103/api.json +2 -2
  19. tccli/services/emr/v20190103/examples.json +1 -1
  20. tccli/services/ess/v20201111/api.json +19 -1
  21. tccli/services/ess/v20201111/examples.json +6 -0
  22. tccli/services/essbasic/v20210526/api.json +18 -0
  23. tccli/services/essbasic/v20210526/examples.json +6 -0
  24. tccli/services/gaap/v20180529/api.json +95 -85
  25. tccli/services/gaap/v20180529/examples.json +27 -33
  26. tccli/services/hunyuan/v20230901/api.json +1 -1
  27. tccli/services/lcic/v20220817/api.json +1 -1
  28. tccli/services/lcic/v20220817/examples.json +2 -2
  29. tccli/services/lighthouse/v20200324/api.json +6 -6
  30. tccli/services/lighthouse/v20200324/examples.json +1 -1
  31. tccli/services/monitor/v20180724/api.json +19 -0
  32. tccli/services/mqtt/v20240516/api.json +3 -3
  33. tccli/services/ocr/v20181119/api.json +1 -1
  34. tccli/services/pts/v20210728/api.json +11 -0
  35. tccli/services/rce/v20201103/api.json +10 -10
  36. tccli/services/rce/v20201103/examples.json +1 -1
  37. tccli/services/redis/v20180412/api.json +2 -2
  38. tccli/services/ses/v20201002/api.json +21 -21
  39. tccli/services/sms/v20190711/api.json +74 -74
  40. tccli/services/sms/v20190711/examples.json +12 -12
  41. tccli/services/sms/v20210111/api.json +73 -73
  42. tccli/services/sms/v20210111/examples.json +15 -15
  43. tccli/services/taf/v20200210/api.json +92 -95
  44. tccli/services/taf/v20200210/examples.json +2 -2
  45. tccli/services/tdmq/tdmq_client.py +159 -0
  46. tccli/services/tdmq/v20200217/api.json +769 -358
  47. tccli/services/tdmq/v20200217/examples.json +107 -83
  48. tccli/services/trocket/v20230308/api.json +382 -285
  49. tccli/services/trocket/v20230308/examples.json +60 -66
  50. tccli/services/tsi/v20210325/api.json +79 -0
  51. tccli/services/vod/v20180717/api.json +500 -57
  52. tccli/services/vod/v20180717/examples.json +8 -2
  53. tccli/services/vpc/v20170312/api.json +9 -9
  54. tccli/services/waf/v20180125/api.json +83 -1
  55. tccli/services/waf/v20180125/examples.json +9 -1
  56. tccli/services/waf/waf_client.py +57 -4
  57. tccli/services/wedata/v20210820/api.json +390 -0
  58. tccli/services/wedata/v20210820/examples.json +14 -0
  59. tccli/services/wedata/wedata_client.py +57 -4
  60. {tccli-3.0.1212.1.dist-info → tccli-3.0.1214.1.dist-info}/METADATA +2 -2
  61. {tccli-3.0.1212.1.dist-info → tccli-3.0.1214.1.dist-info}/RECORD +64 -64
  62. {tccli-3.0.1212.1.dist-info → tccli-3.0.1214.1.dist-info}/WHEEL +0 -0
  63. {tccli-3.0.1212.1.dist-info → tccli-3.0.1214.1.dist-info}/entry_points.txt +0 -0
  64. {tccli-3.0.1212.1.dist-info → tccli-3.0.1214.1.dist-info}/license_files/LICENSE +0 -0
@@ -3761,6 +3761,58 @@ def doResetMsgSubOffsetByTimestamp(args, parsed_globals):
3761
3761
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
3762
 
3763
3763
 
3764
+ def doCreateRabbitMQBinding(args, parsed_globals):
3765
+ g_param = parse_global_arg(parsed_globals)
3766
+
3767
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3768
+ cred = credential.CVMRoleCredential()
3769
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3770
+ cred = credential.STSAssumeRoleCredential(
3771
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3772
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3773
+ )
3774
+ 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):
3775
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3776
+ else:
3777
+ cred = credential.Credential(
3778
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3779
+ )
3780
+ http_profile = HttpProfile(
3781
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3782
+ reqMethod="POST",
3783
+ endpoint=g_param[OptionsDefine.Endpoint],
3784
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3785
+ )
3786
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3787
+ if g_param[OptionsDefine.Language]:
3788
+ profile.language = g_param[OptionsDefine.Language]
3789
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3790
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
3791
+ client._sdkVersion += ("_CLI_" + __version__)
3792
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3793
+ model = models.CreateRabbitMQBindingRequest()
3794
+ model.from_json_string(json.dumps(args))
3795
+ start_time = time.time()
3796
+ while True:
3797
+ rsp = client.CreateRabbitMQBinding(model)
3798
+ result = rsp.to_json_string()
3799
+ try:
3800
+ json_obj = json.loads(result)
3801
+ except TypeError as e:
3802
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3803
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3804
+ break
3805
+ cur_time = time.time()
3806
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3807
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3808
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3809
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3810
+ else:
3811
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3812
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3813
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
+
3815
+
3764
3816
  def doDescribeMsgTrace(args, parsed_globals):
3765
3817
  g_param = parse_global_arg(parsed_globals)
3766
3818
 
@@ -5841,6 +5893,58 @@ def doModifyTopic(args, parsed_globals):
5841
5893
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5842
5894
 
5843
5895
 
5896
+ def doDescribeRabbitMQBindings(args, parsed_globals):
5897
+ g_param = parse_global_arg(parsed_globals)
5898
+
5899
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5900
+ cred = credential.CVMRoleCredential()
5901
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5902
+ cred = credential.STSAssumeRoleCredential(
5903
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5904
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5905
+ )
5906
+ 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):
5907
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5908
+ else:
5909
+ cred = credential.Credential(
5910
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5911
+ )
5912
+ http_profile = HttpProfile(
5913
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5914
+ reqMethod="POST",
5915
+ endpoint=g_param[OptionsDefine.Endpoint],
5916
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5917
+ )
5918
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5919
+ if g_param[OptionsDefine.Language]:
5920
+ profile.language = g_param[OptionsDefine.Language]
5921
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5922
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
5923
+ client._sdkVersion += ("_CLI_" + __version__)
5924
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5925
+ model = models.DescribeRabbitMQBindingsRequest()
5926
+ model.from_json_string(json.dumps(args))
5927
+ start_time = time.time()
5928
+ while True:
5929
+ rsp = client.DescribeRabbitMQBindings(model)
5930
+ result = rsp.to_json_string()
5931
+ try:
5932
+ json_obj = json.loads(result)
5933
+ except TypeError as e:
5934
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5935
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5936
+ break
5937
+ cur_time = time.time()
5938
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5939
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5940
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5941
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5942
+ else:
5943
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5944
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5945
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5946
+
5947
+
5844
5948
  def doDescribeTopicMsgs(args, parsed_globals):
5845
5949
  g_param = parse_global_arg(parsed_globals)
5846
5950
 
@@ -7037,6 +7141,58 @@ def doDescribeRocketMQPublicAccessPoint(args, parsed_globals):
7037
7141
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7038
7142
 
7039
7143
 
7144
+ def doDeleteRabbitMQBinding(args, parsed_globals):
7145
+ g_param = parse_global_arg(parsed_globals)
7146
+
7147
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7148
+ cred = credential.CVMRoleCredential()
7149
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7150
+ cred = credential.STSAssumeRoleCredential(
7151
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7152
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7153
+ )
7154
+ 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):
7155
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7156
+ else:
7157
+ cred = credential.Credential(
7158
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7159
+ )
7160
+ http_profile = HttpProfile(
7161
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7162
+ reqMethod="POST",
7163
+ endpoint=g_param[OptionsDefine.Endpoint],
7164
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7165
+ )
7166
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7167
+ if g_param[OptionsDefine.Language]:
7168
+ profile.language = g_param[OptionsDefine.Language]
7169
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7170
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
7171
+ client._sdkVersion += ("_CLI_" + __version__)
7172
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7173
+ model = models.DeleteRabbitMQBindingRequest()
7174
+ model.from_json_string(json.dumps(args))
7175
+ start_time = time.time()
7176
+ while True:
7177
+ rsp = client.DeleteRabbitMQBinding(model)
7178
+ result = rsp.to_json_string()
7179
+ try:
7180
+ json_obj = json.loads(result)
7181
+ except TypeError as e:
7182
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7183
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7184
+ break
7185
+ cur_time = time.time()
7186
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7187
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7188
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7189
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7190
+ else:
7191
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7192
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7193
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7194
+
7195
+
7040
7196
  def doModifyRole(args, parsed_globals):
7041
7197
  g_param = parse_global_arg(parsed_globals)
7042
7198
 
@@ -7484,6 +7640,7 @@ ACTION_MAP = {
7484
7640
  "DescribeRocketMQCluster": doDescribeRocketMQCluster,
7485
7641
  "DeleteTopics": doDeleteTopics,
7486
7642
  "ResetMsgSubOffsetByTimestamp": doResetMsgSubOffsetByTimestamp,
7643
+ "CreateRabbitMQBinding": doCreateRabbitMQBinding,
7487
7644
  "DescribeMsgTrace": doDescribeMsgTrace,
7488
7645
  "ModifyRocketMQRole": doModifyRocketMQRole,
7489
7646
  "DescribeRabbitMQNodeList": doDescribeRabbitMQNodeList,
@@ -7524,6 +7681,7 @@ ACTION_MAP = {
7524
7681
  "DescribeRocketMQClusters": doDescribeRocketMQClusters,
7525
7682
  "SendMessages": doSendMessages,
7526
7683
  "ModifyTopic": doModifyTopic,
7684
+ "DescribeRabbitMQBindings": doDescribeRabbitMQBindings,
7527
7685
  "DescribeTopicMsgs": doDescribeTopicMsgs,
7528
7686
  "DescribeNodeHealthOpt": doDescribeNodeHealthOpt,
7529
7687
  "CreateRole": doCreateRole,
@@ -7547,6 +7705,7 @@ ACTION_MAP = {
7547
7705
  "ClearCmqSubscriptionFilterTags": doClearCmqSubscriptionFilterTags,
7548
7706
  "ModifyEnvironmentRole": doModifyEnvironmentRole,
7549
7707
  "DescribeRocketMQPublicAccessPoint": doDescribeRocketMQPublicAccessPoint,
7708
+ "DeleteRabbitMQBinding": doDeleteRabbitMQBinding,
7550
7709
  "ModifyRole": doModifyRole,
7551
7710
  "DescribeRabbitMQVirtualHostList": doDescribeRabbitMQVirtualHostList,
7552
7711
  "DeleteRocketMQEnvironmentRoles": doDeleteRocketMQEnvironmentRoles,