tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1270.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.
Files changed (107) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +5 -4
  3. tccli/services/aiart/aiart_client.py +106 -0
  4. tccli/services/aiart/v20221229/api.json +286 -11
  5. tccli/services/aiart/v20221229/examples.json +18 -2
  6. tccli/services/antiddos/v20200309/api.json +201 -132
  7. tccli/services/antiddos/v20200309/examples.json +12 -12
  8. tccli/services/apm/v20210622/api.json +13 -3
  9. tccli/services/billing/billing_client.py +4 -163
  10. tccli/services/billing/v20180709/api.json +0 -489
  11. tccli/services/billing/v20180709/examples.json +0 -24
  12. tccli/services/cam/v20190116/api.json +8 -8
  13. tccli/services/cat/v20180409/api.json +3 -1
  14. tccli/services/cbs/cbs_client.py +220 -8
  15. tccli/services/cbs/v20170312/api.json +418 -2
  16. tccli/services/cbs/v20170312/examples.json +32 -0
  17. tccli/services/ccc/v20200210/api.json +11 -11
  18. tccli/services/ccc/v20200210/examples.json +2 -2
  19. tccli/services/cdb/v20170320/api.json +48 -18
  20. tccli/services/cdwdoris/v20211228/api.json +10 -1
  21. tccli/services/cfw/v20190904/api.json +30 -30
  22. tccli/services/ckafka/v20190819/api.json +10 -0
  23. tccli/services/cls/v20201016/api.json +11 -0
  24. tccli/services/csip/v20221121/api.json +38 -38
  25. tccli/services/cwp/cwp_client.py +4 -57
  26. tccli/services/cwp/v20180228/api.json +0 -184
  27. tccli/services/cwp/v20180228/examples.json +0 -8
  28. tccli/services/cynosdb/v20190107/api.json +1 -1
  29. tccli/services/cynosdb/v20190107/examples.json +1 -1
  30. tccli/services/dcdb/dcdb_client.py +122 -16
  31. tccli/services/dcdb/v20180411/api.json +222 -0
  32. tccli/services/dcdb/v20180411/examples.json +16 -0
  33. tccli/services/dlc/v20210125/api.json +169 -50
  34. tccli/services/dlc/v20210125/examples.json +20 -20
  35. tccli/services/domain/v20180808/api.json +8 -8
  36. tccli/services/domain/v20180808/examples.json +3 -3
  37. tccli/services/dts/v20211206/api.json +1 -1
  38. tccli/services/es/v20180416/api.json +9 -9
  39. tccli/services/ess/v20201111/api.json +1 -1
  40. tccli/services/essbasic/v20210526/api.json +3 -3
  41. tccli/services/essbasic/v20210526/examples.json +2 -2
  42. tccli/services/facefusion/v20220927/api.json +4 -4
  43. tccli/services/faceid/v20180301/api.json +5 -5
  44. tccli/services/faceid/v20180301/examples.json +6 -0
  45. tccli/services/gme/v20180711/api.json +147 -141
  46. tccli/services/gme/v20180711/examples.json +9 -9
  47. tccli/services/hunyuan/v20230901/api.json +9 -0
  48. tccli/services/iotexplorer/v20190423/api.json +4 -4
  49. tccli/services/iotexplorer/v20190423/examples.json +5 -5
  50. tccli/services/keewidb/v20220308/api.json +2 -2
  51. tccli/services/lcic/v20220817/api.json +177 -177
  52. tccli/services/lcic/v20220817/examples.json +2 -2
  53. tccli/services/lighthouse/v20200324/api.json +76 -67
  54. tccli/services/live/v20180801/api.json +1 -1
  55. tccli/services/lke/v20231130/api.json +31 -0
  56. tccli/services/lkeap/v20240522/api.json +55 -9
  57. tccli/services/lkeap/v20240522/examples.json +1 -1
  58. tccli/services/mna/mna_client.py +106 -0
  59. tccli/services/mna/v20210119/api.json +246 -0
  60. tccli/services/mna/v20210119/examples.json +16 -0
  61. tccli/services/monitor/monitor_client.py +62 -57
  62. tccli/services/monitor/v20230616/api.json +266 -0
  63. tccli/services/monitor/v20230616/examples.json +19 -0
  64. tccli/services/mqtt/mqtt_client.py +489 -12
  65. tccli/services/mqtt/v20240516/api.json +864 -3
  66. tccli/services/mqtt/v20240516/examples.json +72 -0
  67. tccli/services/ocr/ocr_client.py +53 -0
  68. tccli/services/ocr/v20181119/api.json +319 -2
  69. tccli/services/ocr/v20181119/examples.json +8 -0
  70. tccli/services/postgres/postgres_client.py +334 -16
  71. tccli/services/postgres/v20170312/api.json +717 -34
  72. tccli/services/postgres/v20170312/examples.json +72 -0
  73. tccli/services/ses/v20201002/api.json +15 -5
  74. tccli/services/ssl/v20191205/api.json +496 -493
  75. tccli/services/ssl/v20191205/examples.json +144 -24
  76. tccli/services/svp/v20240125/api.json +6 -6
  77. tccli/services/taf/taf_client.py +0 -159
  78. tccli/services/taf/v20200210/api.json +0 -665
  79. tccli/services/taf/v20200210/examples.json +0 -24
  80. tccli/services/teo/v20220901/api.json +40 -2
  81. tccli/services/tione/v20211111/api.json +14 -3
  82. tccli/services/trabbit/__init__.py +4 -0
  83. tccli/services/trabbit/trabbit_client.py +1691 -0
  84. tccli/services/trabbit/v20230418/api.json +4773 -0
  85. tccli/services/trabbit/v20230418/examples.json +237 -0
  86. tccli/services/trp/v20210515/api.json +549 -513
  87. tccli/services/trp/v20210515/examples.json +5 -5
  88. tccli/services/trtc/v20190722/api.json +8 -8
  89. tccli/services/trtc/v20190722/examples.json +2 -2
  90. tccli/services/vclm/v20240523/api.json +0 -450
  91. tccli/services/vclm/v20240523/examples.json +0 -48
  92. tccli/services/vclm/vclm_client.py +0 -159
  93. tccli/services/vpc/v20170312/api.json +124 -0
  94. tccli/services/vpc/v20170312/examples.json +16 -0
  95. tccli/services/vpc/vpc_client.py +106 -0
  96. tccli/services/wedata/v20210820/api.json +211 -33
  97. tccli/services/wedata/v20210820/examples.json +14 -0
  98. tccli/services/wedata/wedata_client.py +53 -0
  99. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/METADATA +2 -2
  100. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/RECORD +103 -101
  101. tccli/services/aa/__init__.py +0 -4
  102. tccli/services/aa/aa_client.py +0 -207
  103. tccli/services/aa/v20200224/api.json +0 -397
  104. tccli/services/aa/v20200224/examples.json +0 -13
  105. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/WHEEL +0 -0
  106. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/entry_points.txt +0 -0
  107. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,14 +8,6 @@
8
8
  "title": "检测输入图成功案例"
9
9
  }
10
10
  ],
11
- "ConfirmVideoTranslateJob": [
12
- {
13
- "document": "确认视频翻译结果正例",
14
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConfirmVideoTranslateJob\n<公共请求参数>\n\n{\n \"JobId\": \"bEOhlL4G87lFvVmN6PnG3LAH1Kdu5tgs\",\n \"TranslateResults\": [\n {\n \"SourceText\": \"当工作或学习结果不理想,\",\n \"TargetText\": \"When the result of work or study is not ideal\"\n },\n {\n \"SourceText\": \"甚至面临被全盘否定的情况时,\",\n \"TargetText\": \"Even when faced with the situation of being completely denied\"\n },\n {\n \"SourceText\": \"你会如何应对?\",\n \"TargetText\": \"How would you deal with it?\"\n },\n {\n \"SourceText\": \"可以举例说明当时你是如何处理负面情绪,\",\n \"TargetText\": \"You can give an example of how you dealt with negative emotions at that time.\"\n },\n {\n \"SourceText\": \"并找到解决办法的。\",\n \"TargetText\": \"And find a solution.\"\n }\n ]\n}",
15
- "output": "{\n \"Response\": {\n \"JobId\": \"bEOhlL4G87lFvVmN6PnG3LAH1Kdu5tgs\",\n \"JobStatus\": 5,\n \"RequestId\": \"8357c7a1-d348-4306-b744-ce6625c39fa4\"\n }\n}",
16
- "title": "确认视频翻译结果"
17
- }
18
- ],
19
11
  "DescribeImageAnimateJob": [
20
12
  {
21
13
  "document": "调用成功示例",
@@ -40,20 +32,6 @@
40
32
  "title": "成功调用-任务完成"
41
33
  }
42
34
  ],
43
- "DescribeVideoTranslateJob": [
44
- {
45
- "document": "调用失败示例",
46
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoTranslateJob\n<公共请求参数>\n\n{\n \"JobId\": \"vlSYvQkMM0KwPuoakawm0tPrREwc2p7c\"\n}",
47
- "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"FailedOperation.JobNotExist\",\n \"Message\": \"任务不存在。\"\n },\n \"RequestId\": \"78254ad1-c184-4e9e-b5a0-9d3fc435576b\"\n }\n}",
48
- "title": "调用失败示例"
49
- },
50
- {
51
- "document": "调用成功示例",
52
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoTranslateJob\n<公共请求参数>\n\n{\n \"JobId\": \"vlSYvQkMM0KwPuoakawm0tPrREwc2p7c\"\n}",
53
- "output": "{\n \"Response\": {\n \"AsrTimestamps\": [\n {\n \"EndMs\": 14080,\n \"StartMs\": 360,\n \"Text\": \"当工作或学习结果不理想,甚至面临被全盘否定的情况时,你会如何应对?可以举例说明当时你是如何处理负面情绪,并找到解决办法的。\"\n }\n ],\n \"JobErrorCode\": \"FailedOperation.Success\",\n \"JobErrorMsg\": \"成功。\",\n \"JobStatus\": 8,\n \"RequestId\": \"a974b772-3c1d-4868-8909-b1386016b9f0\",\n \"ResultVideoUrl\": \"https://tencent.cos.ap-guangzhou.myqcloud.com/video_translate/output/video.mp4\",\n \"TranslateResults\": [\n {\n \"SourceText\": \"当工作或学习结果不理想,甚至面临被全盘否定的情况时,你会如何应对?可以举例说明当时你是如何处理负面情绪,并找到解决办法的。\",\n \"TargetText\": \"How do you cope when work or academic results are not ideal, or even when faced with a complete denial of your efforts? Provide an example of how you managed negative emotions and found a solution in such a situation.\"\n }\n ]\n }\n}",
54
- "title": "调用成功示例"
55
- }
56
- ],
57
35
  "SubmitImageAnimateJob": [
58
36
  {
59
37
  "document": "调用成功示例",
@@ -101,32 +79,6 @@
101
79
  "output": "{\n \"Response\": {\n \"JobId\": \"c5daf8f7077d41a69c13aab31a7164f3\",\n \"RequestId\": \"b1990ba2-2d71-419d-8c9d-cab8e33f8352\"\n }\n}",
102
80
  "title": "成功提交任务"
103
81
  }
104
- ],
105
- "SubmitVideoTranslateJob": [
106
- {
107
- "document": "中英转译失败案例",
108
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoTranslateJob\n<公共请求参数>\n\n\n\n{\n \"VideoUrl\": \"https://console.cloud.tencent.com/cos/video.mp4\",\n \"SrcLang\": \"zh\",\n \"DstLang\": \"zh\",\n \"Confirm\": 0,\n \"LipSync\": 0,\n \"VoiceType\": \"701001\"\n}",
109
- "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameter.InvalidParameter\",\n \"Message\": \"源语种(SrcLang)和目标语种(DstLang)不允许相同,请检查后重新输入\"\n },\n \"RequestId\": \"3787745f-b446-4b39-9471-9032a4c306ee\"\n }\n}",
110
- "title": "提交中英视频转译失败案例"
111
- },
112
- {
113
- "document": "中英转译成功案例",
114
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoTranslateJob\n<公共请求参数>\n\n\n\n{\n \"VideoUrl\": \"https://console.cloud.tencent.com/cos/video.mp4\",\n \"SrcLang\": \"zh\",\n \"DstLang\": \"en\",\n \"Confirm\": 0,\n \"LipSync\": 1,\n \"VoiceType\": \"701001\"\n}",
115
- "output": "{\n \"Response\": {\n \"JobId\": \"GLo7lni4PubX9xUwzesuKUOLJokVZ0ll\",\n \"RequestId\": \"950a5a45-7bf5-4db3-aef1-dfedda487575\"\n }\n}",
116
- "title": "提交中英视频转译成功案例"
117
- },
118
- {
119
- "document": "小语种转译成功案例",
120
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoTranslateJob\n<公共请求参数>\n\n{\n \"VideoUrl\": \"https://console.cloud.tencent.com/cos/video.mp4\",\n \"SrcLang\": \"zh\",\n \"DstLang\": \"ar\",\n \"Confirm\": 0,\n \"LipSync\": 1,\n \"VoiceType\": \"701001\"\n}",
121
- "output": "{\n \"Response\": {\n \"JobId\": \"GLo7lni4PubX9xUwzesuKUOLJokVZ0ll\",\n \"RequestId\": \"950a5a45-7bf5-4db3-aef1-dfedda487575\"\n }\n}",
122
- "title": "提交小语种视频转译成功案例"
123
- },
124
- {
125
- "document": "小语种转译失败案例",
126
- "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoTranslateJob\n<公共请求参数>\n\n\n\n{\n \"VideoUrl\": \"https://console.cloud.tencent.com/cos/video.mp4\",\n \"SrcLang\": \"zh\",\n \"DstLang\": \"ar\",\n \"Confirm\": 0,\n \"LipSync\": 1\n}",
127
- "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameter.InvalidParameter\",\n \"Message\": \"音色种别不能为空\"\n },\n \"RequestId\": \"3787745f-b446-4b39-9471-9032a4c306ee\"\n }\n}",
128
- "title": "提交小语种视频转译失败案例"
129
- }
130
82
  ]
131
83
  },
132
84
  "version": "1.0"
@@ -17,110 +17,6 @@ from tencentcloud.vclm.v20240523 import models as models_v20240523
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doSubmitVideoTranslateJob(args, parsed_globals):
21
- g_param = parse_global_arg(parsed_globals)
22
-
23
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
- cred = credential.CVMRoleCredential()
25
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
- cred = credential.STSAssumeRoleCredential(
27
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
- )
30
- 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):
31
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
- else:
33
- cred = credential.Credential(
34
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
- )
36
- http_profile = HttpProfile(
37
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
- reqMethod="POST",
39
- endpoint=g_param[OptionsDefine.Endpoint],
40
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
- )
42
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
- if g_param[OptionsDefine.Language]:
44
- profile.language = g_param[OptionsDefine.Language]
45
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
- client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.SubmitVideoTranslateJobRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.SubmitVideoTranslateJob(model)
54
- result = rsp.to_json_string()
55
- try:
56
- json_obj = json.loads(result)
57
- except TypeError as e:
58
- json_obj = json.loads(result.decode('utf-8')) # python3.3
59
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
- break
61
- cur_time = time.time()
62
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
- else:
67
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
-
71
-
72
- def doDescribeVideoTranslateJob(args, parsed_globals):
73
- g_param = parse_global_arg(parsed_globals)
74
-
75
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
- cred = credential.CVMRoleCredential()
77
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
- cred = credential.STSAssumeRoleCredential(
79
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
- )
82
- 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):
83
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
- else:
85
- cred = credential.Credential(
86
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
- )
88
- http_profile = HttpProfile(
89
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
- reqMethod="POST",
91
- endpoint=g_param[OptionsDefine.Endpoint],
92
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
- )
94
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
- if g_param[OptionsDefine.Language]:
96
- profile.language = g_param[OptionsDefine.Language]
97
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
- client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
99
- client._sdkVersion += ("_CLI_" + __version__)
100
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
- model = models.DescribeVideoTranslateJobRequest()
102
- model.from_json_string(json.dumps(args))
103
- start_time = time.time()
104
- while True:
105
- rsp = client.DescribeVideoTranslateJob(model)
106
- result = rsp.to_json_string()
107
- try:
108
- json_obj = json.loads(result)
109
- except TypeError as e:
110
- json_obj = json.loads(result.decode('utf-8')) # python3.3
111
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
- break
113
- cur_time = time.time()
114
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
- else:
119
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
-
123
-
124
20
  def doSubmitVideoStylizationJob(args, parsed_globals):
125
21
  g_param = parse_global_arg(parsed_globals)
126
22
 
@@ -225,58 +121,6 @@ def doSubmitPortraitSingJob(args, parsed_globals):
225
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
122
 
227
123
 
228
- def doConfirmVideoTranslateJob(args, parsed_globals):
229
- g_param = parse_global_arg(parsed_globals)
230
-
231
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
- cred = credential.CVMRoleCredential()
233
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
- cred = credential.STSAssumeRoleCredential(
235
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
- )
238
- 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):
239
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
- else:
241
- cred = credential.Credential(
242
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
- )
244
- http_profile = HttpProfile(
245
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
- reqMethod="POST",
247
- endpoint=g_param[OptionsDefine.Endpoint],
248
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
- )
250
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
- if g_param[OptionsDefine.Language]:
252
- profile.language = g_param[OptionsDefine.Language]
253
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
- client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
255
- client._sdkVersion += ("_CLI_" + __version__)
256
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.ConfirmVideoTranslateJobRequest()
258
- model.from_json_string(json.dumps(args))
259
- start_time = time.time()
260
- while True:
261
- rsp = client.ConfirmVideoTranslateJob(model)
262
- result = rsp.to_json_string()
263
- try:
264
- json_obj = json.loads(result)
265
- except TypeError as e:
266
- json_obj = json.loads(result.decode('utf-8')) # python3.3
267
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
- break
269
- cur_time = time.time()
270
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
- else:
275
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
-
279
-
280
124
  def doDescribePortraitSingJob(args, parsed_globals):
281
125
  g_param = parse_global_arg(parsed_globals)
282
126
 
@@ -548,11 +392,8 @@ MODELS_MAP = {
548
392
  }
549
393
 
550
394
  ACTION_MAP = {
551
- "SubmitVideoTranslateJob": doSubmitVideoTranslateJob,
552
- "DescribeVideoTranslateJob": doDescribeVideoTranslateJob,
553
395
  "SubmitVideoStylizationJob": doSubmitVideoStylizationJob,
554
396
  "SubmitPortraitSingJob": doSubmitPortraitSingJob,
555
- "ConfirmVideoTranslateJob": doConfirmVideoTranslateJob,
556
397
  "DescribePortraitSingJob": doDescribePortraitSingJob,
557
398
  "DescribeImageAnimateJob": doDescribeImageAnimateJob,
558
399
  "SubmitImageAnimateJob": doSubmitImageAnimateJob,
@@ -987,6 +987,13 @@
987
987
  "output": "DescribeAccountAttributesResponse",
988
988
  "status": "online"
989
989
  },
990
+ "DescribeAddressBandwidthRange": {
991
+ "document": "查询指定EIP的带宽上下限范围。",
992
+ "input": "DescribeAddressBandwidthRangeRequest",
993
+ "name": "查询指定EIP带宽上下限",
994
+ "output": "DescribeAddressBandwidthRangeResponse",
995
+ "status": "online"
996
+ },
990
997
  "DescribeAddressQuota": {
991
998
  "document": "本接口 (DescribeAddressQuota) 用于查询您账户的[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)在当前地域的配额信息。配额详情可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733)。",
992
999
  "input": "DescribeAddressQuotaRequest",
@@ -1022,6 +1029,13 @@
1022
1029
  "output": "DescribeAssistantCidrResponse",
1023
1030
  "status": "online"
1024
1031
  },
1032
+ "DescribeBandwidthPackageBandwidthRange": {
1033
+ "document": "查询指定带宽包的带宽上下限范围",
1034
+ "input": "DescribeBandwidthPackageBandwidthRangeRequest",
1035
+ "name": "查询指定带宽包带宽上下限",
1036
+ "output": "DescribeBandwidthPackageBandwidthRangeResponse",
1037
+ "status": "online"
1038
+ },
1025
1039
  "DescribeBandwidthPackageBillUsage": {
1026
1040
  "document": "本接口 (DescribeBandwidthPackageBillUsage) 用于查询后付费共享带宽包当前的计费用量.",
1027
1041
  "input": "DescribeBandwidthPackageBillUsageRequest",
@@ -5215,6 +5229,42 @@
5215
5229
  ],
5216
5230
  "usage": "out"
5217
5231
  },
5232
+ "BandwidthRange": {
5233
+ "document": "带宽上下限。",
5234
+ "members": [
5235
+ {
5236
+ "disabled": false,
5237
+ "document": "资源ID。",
5238
+ "example": "eip-1234test",
5239
+ "member": "string",
5240
+ "name": "ResourceId",
5241
+ "output_required": false,
5242
+ "type": "string",
5243
+ "value_allowed_null": false
5244
+ },
5245
+ {
5246
+ "disabled": false,
5247
+ "document": "带宽下限,单位:Mbps。",
5248
+ "example": "1",
5249
+ "member": "uint64",
5250
+ "name": "BandwidthLowerLimit",
5251
+ "output_required": false,
5252
+ "type": "int",
5253
+ "value_allowed_null": false
5254
+ },
5255
+ {
5256
+ "disabled": false,
5257
+ "document": "带宽上限,单位:Mbps。",
5258
+ "example": "200",
5259
+ "member": "uint64",
5260
+ "name": "BandwidthUpperLimit",
5261
+ "output_required": false,
5262
+ "type": "int",
5263
+ "value_allowed_null": false
5264
+ }
5265
+ ],
5266
+ "usage": "out"
5267
+ },
5218
5268
  "BatchModifySnapshotPolicy": {
5219
5269
  "document": "批量修改快照策略信息",
5220
5270
  "members": [
@@ -13722,6 +13772,43 @@
13722
13772
  ],
13723
13773
  "type": "object"
13724
13774
  },
13775
+ "DescribeAddressBandwidthRangeRequest": {
13776
+ "document": "DescribeAddressBandwidthRange请求参数结构体",
13777
+ "members": [
13778
+ {
13779
+ "disabled": false,
13780
+ "document": "EIP资源ID列表,单次查询上限20。",
13781
+ "example": "[\"eip-test1234\", \"eip-1234test\"]",
13782
+ "member": "string",
13783
+ "name": "AddressIds",
13784
+ "required": false,
13785
+ "type": "list"
13786
+ }
13787
+ ],
13788
+ "type": "object"
13789
+ },
13790
+ "DescribeAddressBandwidthRangeResponse": {
13791
+ "document": "DescribeAddressBandwidthRange返回参数结构体",
13792
+ "members": [
13793
+ {
13794
+ "disabled": false,
13795
+ "document": "EIP带宽上下限详细信息。",
13796
+ "example": "无",
13797
+ "member": "BandwidthRange",
13798
+ "name": "BandwidthRangeSet",
13799
+ "output_required": false,
13800
+ "type": "list",
13801
+ "value_allowed_null": false
13802
+ },
13803
+ {
13804
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13805
+ "member": "string",
13806
+ "name": "RequestId",
13807
+ "type": "string"
13808
+ }
13809
+ ],
13810
+ "type": "object"
13811
+ },
13725
13812
  "DescribeAddressQuotaRequest": {
13726
13813
  "document": "DescribeAddressQuota请求参数结构体",
13727
13814
  "members": [],
@@ -14115,6 +14202,43 @@
14115
14202
  ],
14116
14203
  "type": "object"
14117
14204
  },
14205
+ "DescribeBandwidthPackageBandwidthRangeRequest": {
14206
+ "document": "DescribeBandwidthPackageBandwidthRange请求参数结构体",
14207
+ "members": [
14208
+ {
14209
+ "disabled": false,
14210
+ "document": "带宽包资源ID列表,单次查询上限20。",
14211
+ "example": "['bwp-1234test', 'bwp-test1234']",
14212
+ "member": "string",
14213
+ "name": "BandwidthPackageIds",
14214
+ "required": false,
14215
+ "type": "list"
14216
+ }
14217
+ ],
14218
+ "type": "object"
14219
+ },
14220
+ "DescribeBandwidthPackageBandwidthRangeResponse": {
14221
+ "document": "DescribeBandwidthPackageBandwidthRange返回参数结构体",
14222
+ "members": [
14223
+ {
14224
+ "disabled": false,
14225
+ "document": "带宽包带宽上下限详细信息。",
14226
+ "example": "无",
14227
+ "member": "BandwidthRange",
14228
+ "name": "BandwidthRangeSet",
14229
+ "output_required": false,
14230
+ "type": "list",
14231
+ "value_allowed_null": false
14232
+ },
14233
+ {
14234
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
14235
+ "member": "string",
14236
+ "name": "RequestId",
14237
+ "type": "string"
14238
+ }
14239
+ ],
14240
+ "type": "object"
14241
+ },
14118
14242
  "DescribeBandwidthPackageBillUsageRequest": {
14119
14243
  "document": "DescribeBandwidthPackageBillUsage请求参数结构体",
14120
14244
  "members": [
@@ -1266,6 +1266,14 @@
1266
1266
  "title": "查询账号网络属性"
1267
1267
  }
1268
1268
  ],
1269
+ "DescribeAddressBandwidthRange": [
1270
+ {
1271
+ "document": "",
1272
+ "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAddressBandwidthRange\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-j12z7dfx\",\n \"eip-8b56zjpn\"\n ]\n}",
1273
+ "output": "{\n \"Response\": {\n \"BandwidthRangeSet\": [\n {\n \"BandwidthLowerLimit\": 1,\n \"BandwidthUpperLimit\": 2000,\n \"ResourceId\": \"eip-8b56zjpn\"\n },\n {\n \"BandwidthLowerLimit\": 1,\n \"BandwidthUpperLimit\": 100,\n \"ResourceId\": \"eip-j12z7dfx\"\n }\n ],\n \"RequestId\": \"fc7f673e-8fca-43d0-a4f3-18e567cf6826\"\n }\n}",
1274
+ "title": "查询指定EIP可调整带宽范围的上下限"
1275
+ }
1276
+ ],
1269
1277
  "DescribeAddressQuota": [
1270
1278
  {
1271
1279
  "document": "查询弹性公网IP配额。",
@@ -1318,6 +1326,14 @@
1318
1326
  "title": "查询辅助CIDR列表"
1319
1327
  }
1320
1328
  ],
1329
+ "DescribeBandwidthPackageBandwidthRange": [
1330
+ {
1331
+ "document": "",
1332
+ "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBandwidthPackageBandwidthRange\n<公共请求参数>\n\n{\n \"BandwidthPackageIds\": [\n \"bwp-enjefhij\",\n \"bwp-l5jt4oz1\"\n ]\n}",
1333
+ "output": "{\n \"Response\": {\n \"BandwidthRangeSet\": [\n {\n \"BandwidthLowerLimit\": 300,\n \"BandwidthUpperLimit\": 5000,\n \"ResourceId\": \"bwp-enjefhij\"\n },\n {\n \"BandwidthLowerLimit\": 100,\n \"BandwidthUpperLimit\": 5000,\n \"ResourceId\": \"bwp-l5jt4oz1\"\n }\n ],\n \"RequestId\": \"d3c929a2-5b2e-4c90-b826-b4807dd96052\"\n }\n}",
1334
+ "title": "查询指定带宽包的带宽上下限范围"
1335
+ }
1336
+ ],
1321
1337
  "DescribeBandwidthPackageBillUsage": [
1322
1338
  {
1323
1339
  "document": "",
@@ -3085,6 +3085,58 @@ def doDescribeSnapshotAttachedInstances(args, parsed_globals):
3085
3085
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
3086
 
3087
3087
 
3088
+ def doDescribeAddressBandwidthRange(args, parsed_globals):
3089
+ g_param = parse_global_arg(parsed_globals)
3090
+
3091
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3092
+ cred = credential.CVMRoleCredential()
3093
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3094
+ cred = credential.STSAssumeRoleCredential(
3095
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3096
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3097
+ )
3098
+ 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):
3099
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3100
+ else:
3101
+ cred = credential.Credential(
3102
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3103
+ )
3104
+ http_profile = HttpProfile(
3105
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3106
+ reqMethod="POST",
3107
+ endpoint=g_param[OptionsDefine.Endpoint],
3108
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3109
+ )
3110
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3111
+ if g_param[OptionsDefine.Language]:
3112
+ profile.language = g_param[OptionsDefine.Language]
3113
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3114
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
3115
+ client._sdkVersion += ("_CLI_" + __version__)
3116
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
+ model = models.DescribeAddressBandwidthRangeRequest()
3118
+ model.from_json_string(json.dumps(args))
3119
+ start_time = time.time()
3120
+ while True:
3121
+ rsp = client.DescribeAddressBandwidthRange(model)
3122
+ result = rsp.to_json_string()
3123
+ try:
3124
+ json_obj = json.loads(result)
3125
+ except TypeError as e:
3126
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3127
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3128
+ break
3129
+ cur_time = time.time()
3130
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3131
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3132
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3133
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3134
+ else:
3135
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3136
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3137
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
+
3139
+
3088
3140
  def doDeleteAddressTemplate(args, parsed_globals):
3089
3141
  g_param = parse_global_arg(parsed_globals)
3090
3142
 
@@ -4801,6 +4853,58 @@ def doDescribeReserveIpAddresses(args, parsed_globals):
4801
4853
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4802
4854
 
4803
4855
 
4856
+ def doDescribeBandwidthPackageBandwidthRange(args, parsed_globals):
4857
+ g_param = parse_global_arg(parsed_globals)
4858
+
4859
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4860
+ cred = credential.CVMRoleCredential()
4861
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4862
+ cred = credential.STSAssumeRoleCredential(
4863
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4864
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4865
+ )
4866
+ 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):
4867
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4868
+ else:
4869
+ cred = credential.Credential(
4870
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4871
+ )
4872
+ http_profile = HttpProfile(
4873
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4874
+ reqMethod="POST",
4875
+ endpoint=g_param[OptionsDefine.Endpoint],
4876
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4877
+ )
4878
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4879
+ if g_param[OptionsDefine.Language]:
4880
+ profile.language = g_param[OptionsDefine.Language]
4881
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4882
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
4883
+ client._sdkVersion += ("_CLI_" + __version__)
4884
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4885
+ model = models.DescribeBandwidthPackageBandwidthRangeRequest()
4886
+ model.from_json_string(json.dumps(args))
4887
+ start_time = time.time()
4888
+ while True:
4889
+ rsp = client.DescribeBandwidthPackageBandwidthRange(model)
4890
+ result = rsp.to_json_string()
4891
+ try:
4892
+ json_obj = json.loads(result)
4893
+ except TypeError as e:
4894
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4895
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4896
+ break
4897
+ cur_time = time.time()
4898
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4899
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4900
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4901
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4902
+ else:
4903
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4904
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4905
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4906
+
4907
+
4804
4908
  def doReplaceRoutes(args, parsed_globals):
4805
4909
  g_param = parse_global_arg(parsed_globals)
4806
4910
 
@@ -20887,6 +20991,7 @@ ACTION_MAP = {
20887
20991
  "ReplaceDirectConnectGatewayCcnRoutes": doReplaceDirectConnectGatewayCcnRoutes,
20888
20992
  "GetCcnRegionBandwidthLimits": doGetCcnRegionBandwidthLimits,
20889
20993
  "DescribeSnapshotAttachedInstances": doDescribeSnapshotAttachedInstances,
20994
+ "DescribeAddressBandwidthRange": doDescribeAddressBandwidthRange,
20890
20995
  "DeleteAddressTemplate": doDeleteAddressTemplate,
20891
20996
  "WithdrawNotifyRoutes": doWithdrawNotifyRoutes,
20892
20997
  "CreateCdcNetPlanes": doCreateCdcNetPlanes,
@@ -20920,6 +21025,7 @@ ACTION_MAP = {
20920
21025
  "ModifyHaVipAttribute": doModifyHaVipAttribute,
20921
21026
  "ReleaseAddresses": doReleaseAddresses,
20922
21027
  "DescribeReserveIpAddresses": doDescribeReserveIpAddresses,
21028
+ "DescribeBandwidthPackageBandwidthRange": doDescribeBandwidthPackageBandwidthRange,
20923
21029
  "ReplaceRoutes": doReplaceRoutes,
20924
21030
  "DescribeVpcPrivateIpAddresses": doDescribeVpcPrivateIpAddresses,
20925
21031
  "ModifyIp6Translator": doModifyIp6Translator,