tccli-intl-en 3.0.1261.1__py2.py3-none-any.whl → 3.0.1263.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.
@@ -540,10 +540,10 @@
540
540
  ],
541
541
  "DescribeTaskDetail": [
542
542
  {
543
- "document": "This example shows you how to query the result of a task.",
543
+ "document": "This example shows you how to querying task results.",
544
544
  "input": "https://mps.tencentcloudapi.com/?Action=DescribeTaskDetail\n&TaskId=235303****-WorkflowTask-80108cc3380155d98b2e3573a48a******\n&<Common request parameters>",
545
- "output": "{\n \"Response\": {\n \"TaskType\": \"WorkflowTask\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-07-16T06:21:27Z\",\n \"BeginProcessTime\": \"2019-07-16T06:21:28Z\",\n \"FinishTime\": \"2019-07-16T06:21:46Z\",\n \"WorkflowTask\": {\n \"TaskId\": \"235303****-WorkflowTask-80108cc3380155d98b2e3573a48a******\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"vodtestbj-235303****\",\n \"Region\": \"ap-beijing\",\n \"Object\": \"/input/videoplayback.mp4\"\n },\n \"S3InputInfo\": null,\n \"UrlInputInfo\": null\n },\n \"MetaData\": {\n \"AudioDuration\": 380.9465637207031,\n \"AudioStreamSet\": [\n {\n \"Channel\": 0,\n \"Bitrate\": 95999,\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100\n }\n ],\n \"Bitrate\": 409657,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 380.9465637207031,\n \"Height\": 360,\n \"Rotate\": 0,\n \"Size\": 19626862,\n \"VideoDuration\": 380.8804931640625,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 313658,\n \"Codec\": \"h264\",\n \"Codecs\": \"avc1.ffe100\",\n \"Fps\": 29,\n \"Height\": 360,\n \"HdrType\": \"\",\n \"ColorPrimaries\": \"\",\n \"ColorSpace\": \"\",\n \"ColorTransfer\": \"\",\n \"Width\": 480\n }\n ],\n \"Width\": 480\n },\n \"MediaProcessResultSet\": [\n {\n \"Type\": \"Transcode\",\n \"TranscodeTask\": {\n \"Status\": \"SUCCESS\",\n \"ErrCode\": 0,\n \"Message\": \"SUCCESS\",\n \"ErrCodeExt\": \"SUCCESS\",\n \"Progress\": 100,\n \"Input\": {\n \"Definition\": 210,\n \"WatermarkSet\": [],\n \"MosaicSet\": [],\n \"RawParameter\": null,\n \"EndTimeOffset\": 0,\n \"OverrideParameter\": null,\n \"HeadTailParameter\": null,\n \"StartTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"vodtestgz-235303****\",\n \"Region\": \"ap-guangzhou\"\n },\n \"S3OutputStorage\": null\n },\n \"OutputObjectPath\": \"/hello/world/what/ever/videoplayback_transcode111_210\",\n \"SegmentObjectName\": \"/hello/world/what/ever/no/problem/videoplayback_transcode11_210_{number}\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 2,\n \"Increment\": 3,\n \"MinLength\": 1,\n \"PlaceHolder\": \"0\"\n }\n },\n \"Output\": {\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"vodtestgz-235303****\",\n \"Region\": \"ap-guangzhou\"\n },\n \"S3OutputStorage\": null\n },\n \"Path\": \"/hello/world/what/ever/videoplayback_transcode111_210.m3u8\",\n \"Definition\": 210,\n \"Bitrate\": 353297,\n \"Height\": 240,\n \"Width\": 320,\n \"Size\": 5692,\n \"Duration\": 380.9580078125,\n \"Container\": \"hls,applehttp\",\n \"Md5\": \"ae0dfe7c7336291d6243463b7bb14fea\",\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 302307,\n \"Codec\": \"h264\",\n \"Codecs\": \"avc1.ffe100\",\n \"Fps\": 24,\n \"Height\": 240,\n \"HdrType\": \"\",\n \"ColorPrimaries\": \"\",\n \"ColorSpace\": \"\",\n \"ColorTransfer\": \"\",\n \"Width\": 320\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Channel\": 0,\n \"Bitrate\": 50990,\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100\n }\n ]\n }\n },\n \"AnimatedGraphicTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"SampleSnapshotTask\": null,\n \"ImageSpriteTask\": null\n }\n ],\n \"AiAnalysisResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiQualityControlTaskResult\": null\n },\n \"TaskNotifyConfig\": null,\n \"EditMediaTask\": null,\n \"LiveStreamProcessTask\": null,\n \"ScheduleTask\": null,\n \"LiveScheduleTask\": null,\n \"TasksPriority\": 0,\n \"SessionId\": \"\",\n \"SessionContext\": \"\",\n \"ExtInfo\": \"\",\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
546
- "title": "Querying the result of a task"
545
+ "output": "{\n \"Response\": {\n \"TaskType\": \"WorkflowTask\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-07-16T06:21:27Z\",\n \"BeginProcessTime\": \"2019-07-16T06:21:28Z\",\n \"FinishTime\": \"2019-07-16T06:21:46Z\",\n \"WorkflowTask\": {\n \"TaskId\": \"235303****-WorkflowTask-80108cc3380155d98b2e3573a48a******\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"vodtestbj-235303****\",\n \"Region\": \"ap-beijing\",\n \"Object\": \"/input/videoplayback.mp4\"\n },\n \"S3InputInfo\": null,\n \"UrlInputInfo\": null\n },\n \"MetaData\": {\n \"AudioDuration\": 380.9465637207031,\n \"AudioStreamSet\": [\n {\n \"Channel\": 0,\n \"Bitrate\": 95999,\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100\n }\n ],\n \"Bitrate\": 409657,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 380.9465637207031,\n \"Height\": 360,\n \"Rotate\": 0,\n \"Size\": 19626862,\n \"VideoDuration\": 380.8804931640625,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 313658,\n \"Codec\": \"h264\",\n \"Codecs\": \"avc1.ffe100\",\n \"Fps\": 29,\n \"Height\": 360,\n \"HdrType\": \"\",\n \"ColorPrimaries\": \"\",\n \"ColorSpace\": \"\",\n \"ColorTransfer\": \"\",\n \"Width\": 480\n }\n ],\n \"Width\": 480\n },\n \"MediaProcessResultSet\": [\n {\n \"Type\": \"Transcode\",\n \"TranscodeTask\": {\n \"Status\": \"SUCCESS\",\n \"ErrCode\": 0,\n \"Message\": \"SUCCESS\",\n \"ErrCodeExt\": \"SUCCESS\",\n \"Progress\": 100,\n \"Input\": {\n \"Definition\": 210,\n \"WatermarkSet\": [],\n \"MosaicSet\": [],\n \"RawParameter\": null,\n \"EndTimeOffset\": 0,\n \"OverrideParameter\": null,\n \"HeadTailParameter\": null,\n \"StartTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"vodtestgz-235303****\",\n \"Region\": \"ap-guangzhou\"\n },\n \"S3OutputStorage\": null\n },\n \"OutputObjectPath\": \"/hello/world/what/ever/videoplayback_transcode111_210\",\n \"SegmentObjectName\": \"/hello/world/what/ever/no/problem/videoplayback_transcode11_210_{number}\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 2,\n \"Increment\": 3,\n \"MinLength\": 1,\n \"PlaceHolder\": \"0\"\n }\n },\n \"Output\": {\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"vodtestgz-235303****\",\n \"Region\": \"ap-guangzhou\"\n },\n \"S3OutputStorage\": null\n },\n \"Path\": \"/hello/world/what/ever/videoplayback_transcode111_210.m3u8\",\n \"Definition\": 210,\n \"Bitrate\": 353297,\n \"Height\": 240,\n \"Width\": 320,\n \"Size\": 5692,\n \"Duration\": 380.9580078125,\n \"Container\": \"hls,applehttp\",\n \"Md5\": \"ae0dfe7c7336291d6243463b7bb14fea\",\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 302307,\n \"Codec\": \"h264\",\n \"Codecs\": \"avc1.ffe100\",\n \"Fps\": 24,\n \"Height\": 240,\n \"HdrType\": \"\",\n \"ColorPrimaries\": \"\",\n \"ColorSpace\": \"\",\n \"ColorTransfer\": \"\",\n \"Width\": 320\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Channel\": 0,\n \"Bitrate\": 50990,\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100\n }\n ]\n }\n },\n \"AnimatedGraphicTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"SampleSnapshotTask\": null,\n \"ImageSpriteTask\": null,\n \"AdaptiveDynamicStreamingTask\": null\n }\n ],\n \"AiAnalysisResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiQualityControlTaskResult\": null\n },\n \"TaskNotifyConfig\": null,\n \"EditMediaTask\": null,\n \"LiveStreamProcessTask\": null,\n \"ScheduleTask\": null,\n \"LiveScheduleTask\": null,\n \"TasksPriority\": 0,\n \"SessionId\": \"\",\n \"SessionContext\": \"\",\n \"ExtInfo\": \"\",\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
546
+ "title": "Obtaining Task Details"
547
547
  }
548
548
  ],
549
549
  "DescribeTasks": [
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from tccli.services.quota.quota_client import action_caller
4
+
@@ -0,0 +1,207 @@
1
+ # -*- coding: utf-8 -*-
2
+ import os
3
+ import sys
4
+ import six
5
+ import json
6
+ import tccli.options_define as OptionsDefine
7
+ import tccli.format_output as FormatOutput
8
+ from tccli import __version__
9
+ from tccli.utils import Utils
10
+ from tccli.exceptions import ConfigurationError, ClientError, ParamError
11
+ from tencentcloud.common import credential
12
+ from tencentcloud.common.profile.http_profile import HttpProfile
13
+ from tencentcloud.common.profile.client_profile import ClientProfile
14
+ from tencentcloud.quota.v20241204 import quota_client as quota_client_v20241204
15
+ from tencentcloud.quota.v20241204 import models as models_v20241204
16
+
17
+ from jmespath import search
18
+ import time
19
+
20
+ def doCreateAlarm(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.QuotaClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.CreateAlarmRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.CreateAlarm(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
+ CLIENT_MAP = {
73
+ "v20241204": quota_client_v20241204,
74
+
75
+ }
76
+
77
+ MODELS_MAP = {
78
+ "v20241204": models_v20241204,
79
+
80
+ }
81
+
82
+ ACTION_MAP = {
83
+ "CreateAlarm": doCreateAlarm,
84
+
85
+ }
86
+
87
+ AVAILABLE_VERSION_LIST = [
88
+ "v20241204",
89
+
90
+ ]
91
+
92
+
93
+ def action_caller():
94
+ return ACTION_MAP
95
+
96
+
97
+ def parse_global_arg(parsed_globals):
98
+ g_param = parsed_globals
99
+ cvm_role_flag = True
100
+ for param in parsed_globals.keys():
101
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
102
+ OptionsDefine.RoleSessionName]:
103
+ if parsed_globals[param] is not None:
104
+ cvm_role_flag = False
105
+ break
106
+ is_exist_profile = True
107
+ if not parsed_globals["profile"]:
108
+ is_exist_profile = False
109
+ g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
110
+
111
+ configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
112
+ is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
113
+ is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
114
+
115
+ conf = {}
116
+ cred = {}
117
+
118
+ if is_conf_exist:
119
+ conf = Utils.load_json_msg(conf_path)
120
+ if is_cred_exist:
121
+ cred = Utils.load_json_msg(cred_path)
122
+
123
+ if not (isinstance(conf, dict) and isinstance(cred, dict)):
124
+ raise ConfigurationError(
125
+ "file: %s or %s is not json format"
126
+ % (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
127
+
128
+ if OptionsDefine.Token not in cred:
129
+ cred[OptionsDefine.Token] = None
130
+
131
+ if not is_exist_profile:
132
+ if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
133
+ cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
134
+ cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
135
+ cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
136
+ cvm_role_flag = False
137
+
138
+ if os.environ.get(OptionsDefine.ENV_REGION):
139
+ conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
140
+
141
+ if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
142
+ cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
143
+ cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
144
+ cvm_role_flag = False
145
+
146
+ if cvm_role_flag:
147
+ if "type" in cred and cred["type"] == "cvm-role":
148
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
149
+
150
+ for param in g_param.keys():
151
+ if g_param[param] is None:
152
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
153
+ if param in cred:
154
+ g_param[param] = cred[param]
155
+ elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
156
+ or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
157
+ raise ConfigurationError("%s is invalid" % param)
158
+ elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
159
+ if param in conf[OptionsDefine.SysParam]:
160
+ g_param[param] = conf[OptionsDefine.SysParam][param]
161
+ elif param != OptionsDefine.Language:
162
+ raise ConfigurationError("%s is invalid" % param)
163
+ elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
164
+ if param.replace('_', '-') in cred:
165
+ g_param[param] = cred[param.replace('_', '-')]
166
+
167
+ try:
168
+ if g_param[OptionsDefine.ServiceVersion]:
169
+ g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
170
+ else:
171
+ version = conf["quota"][OptionsDefine.Version]
172
+ g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
173
+
174
+ if g_param[OptionsDefine.Endpoint] is None:
175
+ g_param[OptionsDefine.Endpoint] = conf["quota"][OptionsDefine.Endpoint]
176
+ g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
177
+ except Exception as err:
178
+ raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
179
+
180
+ if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
181
+ raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
182
+
183
+ if g_param[OptionsDefine.Waiter]:
184
+ param = eval(g_param[OptionsDefine.Waiter])
185
+ if 'expr' not in param:
186
+ raise Exception('`expr` in `--waiter` must be defined')
187
+ if 'to' not in param:
188
+ raise Exception('`to` in `--waiter` must be defined')
189
+ if 'timeout' not in param:
190
+ if 'waiter' in conf and 'timeout' in conf['waiter']:
191
+ param['timeout'] = conf['waiter']['timeout']
192
+ else:
193
+ param['timeout'] = 180
194
+ if 'interval' not in param:
195
+ if 'waiter' in conf and 'interval' in conf['waiter']:
196
+ param['interval'] = conf['waiter']['interval']
197
+ else:
198
+ param['interval'] = 5
199
+ param['interval'] = min(param['interval'], param['timeout'])
200
+ g_param['OptionsDefine.WaiterInfo'] = param
201
+
202
+ if six.PY2:
203
+ for key, value in g_param.items():
204
+ if isinstance(value, six.text_type):
205
+ g_param[key] = value.encode('utf-8')
206
+ return g_param
207
+
@@ -0,0 +1,99 @@
1
+ {
2
+ "actions": {
3
+ "CreateAlarm": {
4
+ "document": "Add alarm rules",
5
+ "input": "CreateAlarmRequest",
6
+ "name": "Create Alarm Rule",
7
+ "output": "CreateAlarmResponse",
8
+ "status": "online"
9
+ }
10
+ },
11
+ "metadata": {
12
+ "apiVersion": "2024-12-04",
13
+ "serviceNameCN": "配额中心",
14
+ "serviceShortName": "quota"
15
+ },
16
+ "objects": {
17
+ "CreateAlarmRequest": {
18
+ "document": "CreateAlarm request structure.",
19
+ "members": [
20
+ {
21
+ "disabled": false,
22
+ "document": "Alarm rule name. specifies the name of the Alarm rule.",
23
+ "example": "监控告警",
24
+ "member": "string",
25
+ "name": "Name",
26
+ "required": true,
27
+ "type": "string"
28
+ },
29
+ {
30
+ "disabled": false,
31
+ "document": "Product ID.",
32
+ "example": "11",
33
+ "member": "int64",
34
+ "name": "ProductId",
35
+ "required": true,
36
+ "type": "int"
37
+ },
38
+ {
39
+ "disabled": false,
40
+ "document": "Quota ID.",
41
+ "example": "12",
42
+ "member": "int64",
43
+ "name": "QuotaId",
44
+ "required": true,
45
+ "type": "int"
46
+ },
47
+ {
48
+ "disabled": false,
49
+ "document": "Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.",
50
+ "example": "2",
51
+ "member": "int64",
52
+ "name": "Metrics",
53
+ "required": true,
54
+ "type": "int"
55
+ },
56
+ {
57
+ "disabled": false,
58
+ "document": "Specifies the Alarm threshold. value range: 0-100.",
59
+ "example": "50",
60
+ "member": "int64",
61
+ "name": "Threshold",
62
+ "required": true,
63
+ "type": "int"
64
+ },
65
+ {
66
+ "disabled": false,
67
+ "document": "Alarm frequency.",
68
+ "example": "2",
69
+ "member": "int64",
70
+ "name": "Frequency",
71
+ "required": true,
72
+ "type": "int"
73
+ },
74
+ {
75
+ "disabled": false,
76
+ "document": " Member UIN",
77
+ "example": "2342",
78
+ "member": "int64",
79
+ "name": "MemberUin",
80
+ "required": false,
81
+ "type": "int"
82
+ }
83
+ ],
84
+ "type": "object"
85
+ },
86
+ "CreateAlarmResponse": {
87
+ "document": "CreateAlarm response structure.",
88
+ "members": [
89
+ {
90
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
91
+ "member": "string",
92
+ "name": "RequestId",
93
+ "type": "string"
94
+ }
95
+ ],
96
+ "type": "object"
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "actions": {
3
+ "CreateAlarm": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: quota.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAlarm\n<Common request parameters>\n\n{\n \"Name\": \"Quota 2\",\n \"ProductId\": 2,\n \"QuotaId\": 3,\n \"Metrics\": 1,\n \"Threshold\": 1,\n \"Frequency\": 1\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1c5d13bd-070e-4eb8-90c2-4a01dc1b2c54\"\n }\n}",
8
+ "title": "Creat Quota"
9
+ }
10
+ ]
11
+ }
12
+ }
@@ -43,7 +43,7 @@
43
43
  "status": "online"
44
44
  },
45
45
  "CreateAliasDomain": {
46
- "document": "This API is used to create an alias domain name.\nThe feature is only supported by the enterprise plan and is currently in closed beta testing. If you need to use it, please [contact us](https://intl.cloud.tencent.com/online?from_cn_redirect=1-service?from=connect-us).",
46
+ "document": "This API is used to create an alias domain name.\nThe feature is only supported by the enterprise plan and is currently in closed beta testing. If you need to use it, please [contact us](https://www.tencentcloud.com/contact-us).",
47
47
  "input": "CreateAliasDomainRequest",
48
48
  "name": "Creates an alias domain name.",
49
49
  "output": "CreateAliasDomainResponse",
@@ -141,7 +141,7 @@
141
141
  "status": "online"
142
142
  },
143
143
  "CreateLoadBalancer": {
144
- "document": "This API is used to create a LoadBalancer. For details, see [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The load balancing feature is in beta test. If you need to use it, [contact us](https://intl.cloud.tencent.com/online?from_cn_redirect=1-service).",
144
+ "document": "This API is used to create a LoadBalancer. For details, see [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The load balancing feature is in beta test. If you need to use it, [contact us](https://www.tencentcloud.com/contact-us).",
145
145
  "input": "CreateLoadBalancerRequest",
146
146
  "name": "Creates a LoadBalancer",
147
147
  "output": "CreateLoadBalancerResponse",
@@ -1016,7 +1016,7 @@
1016
1016
  "status": "online"
1017
1017
  },
1018
1018
  "ModifyAliasDomainStatus": {
1019
- "document": "This API is used to modify the status of an alias domain name.\nThe feature is only supported in the enterprise plan and is currently in closed beta testing. If you need to use it, [Contact Us](https://intl.cloud.tencent.com/online?from_cn_redirect=1-service?from=connect-us).",
1019
+ "document": "This API is used to modify the status of an alias domain name.\nThe feature is only supported in the enterprise plan and is currently in closed beta testing. If you need to use it, [Contact Us](https://www.tencentcloud.com/contact-us).",
1020
1020
  "input": "ModifyAliasDomainStatusRequest",
1021
1021
  "name": "Modifies the status of an alias domain name.",
1022
1022
  "output": "ModifyAliasDomainStatusResponse",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli-intl-en
3
- Version: 3.0.1261.1
3
+ Version: 3.0.1263.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-cli-intl-en.git
6
6
  Author: Tencent Cloud
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.4
22
22
  Classifier: Programming Language :: Python :: 3.5
23
23
  Classifier: Programming Language :: Python :: 3.6
24
24
  License-File: LICENSE
25
- Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.1261)
25
+ Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.1263)
26
26
  Requires-Dist: jmespath (==0.10.0)
27
27
  Requires-Dist: six (==1.16.0)
28
28
 
@@ -1,4 +1,4 @@
1
- tccli/__init__.py,sha256=U8jfTlBM7VDN5rk26rG1kH7yyz3hLeJ_jgi1YE_jB_U,28
1
+ tccli/__init__.py,sha256=D65a5cNaouXr0-CPzni5EWOpDVAYFk6wenhA0cZLUtY,28
2
2
  tccli/argparser.py,sha256=WtfpBhj2R6JHSzagy6w6Q4y3YVmyIC_yK80w3tqBPgU,5589
3
3
  tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
4
4
  tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
@@ -49,7 +49,7 @@ tccli/plugins/sso/terminal.py,sha256=niX5xr6avR32NDIWGrXjuhJ-Y9OiBWW45RmxWxwXT6I
49
49
  tccli/plugins/sso/texts.py,sha256=N5bt3WXMk9oKWHFsuIG7jVVejdUi5Mzi8wsrhWX3t1s,2234
50
50
  tccli/plugins/test/__init__.py,sha256=ed14rjeb4-Sf_uttli4x3gRl27FT2-NHPtQxRcdwE3o,2712
51
51
  tccli/plugins/test/add.py,sha256=L8EcHizXbEb8NiH1C-Giu9RPHRxe9rxGBDziaaFa1LE,1016
52
- tccli/services/__init__.py,sha256=ID9toUe6whYyIYHpKEudZ_1Ep7LsEtiGEkPFIil9EFU,6265
52
+ tccli/services/__init__.py,sha256=KtR0PWILyIwQMEQamkfbIUeUUQkkDensHuS9yBUSBtI,6349
53
53
  tccli/services/advisor/__init__.py,sha256=94YMESuc98jtnMMx_zO-vxCDjIdVjLy_KTCcG7nvOVo,93
54
54
  tccli/services/advisor/advisor_client.py,sha256=P1Zc-T2sJfOiBwH7ynDirSEgm7pcPQK8fPkH8GFibMk,12366
55
55
  tccli/services/advisor/v20200721/api.json,sha256=WrgEe_7e5-wVC7N4iftxYIMkrwdDL8EmIQli8sMryGo,15295
@@ -134,6 +134,10 @@ tccli/services/cdwpg/__init__.py,sha256=Vls5x8VLkhT0eXbX41lUKDOUN0u8oUZjX8skg5C_
134
134
  tccli/services/cdwpg/cdwpg_client.py,sha256=LwBZ9bjqN5BT4V_b-Q5W9Hv44ieXhqIaceZqjO2EMps,80286
135
135
  tccli/services/cdwpg/v20201230/api.json,sha256=Mg_NsxgjY6Q5lhop-uvr0lLSMURU-GK7jFZpdXFcXKk,138988
136
136
  tccli/services/cdwpg/v20201230/examples.json,sha256=cmk1Yq2hQ-JF2_hurhTy-Bcphxz64cgA4OdaERa4FNM,59186
137
+ tccli/services/cdz/__init__.py,sha256=EzIt4pDlJ27Ds_O37jYWkFVRxLnra-Ptl7FImM26lHc,85
138
+ tccli/services/cdz/cdz_client.py,sha256=3xVPqc8t8mLrY6GQT6BTB96ugK--Cm_-pkSJp4poOcc,9323
139
+ tccli/services/cdz/v20221123/api.json,sha256=XGR9Rk5Q-jOO9CTOqCWoea4All63HV0JRpngRmLFymY,7947
140
+ tccli/services/cdz/v20221123/examples.json,sha256=UY-n-6lTAQfpbD10rRF7vrS0ZQb8TsTqgWc3FHvbFZs,6966
137
141
  tccli/services/cfg/__init__.py,sha256=sF71Ho4tZVY4EKKzaF4XaWu2USzgvRWYjHYYFnc4guk,85
138
142
  tccli/services/cfg/cfg_client.py,sha256=9q87LwnNv1Ji7myzphLPNnVhyjbzieZ8LRbQYxY295Q,55598
139
143
  tccli/services/cfg/v20210820/api.json,sha256=nMBdTroOz4WYBfEE0K2nlDrBIHa8uEe5o7y18yk28ME,134290
@@ -278,7 +282,7 @@ tccli/services/facefusion/v20220927/api.json,sha256=0MmF_KULZYK_agSc1ZZMRhvSjp01
278
282
  tccli/services/facefusion/v20220927/examples.json,sha256=6qZnFLt6wwaOwAvAUwfwsZc8GUVB76oFf4v7rga8ai8,3496
279
283
  tccli/services/faceid/__init__.py,sha256=zbcAvv37wx7NH6hsSFPSCqgR2ih1UiQOdqNfmitdeVY,91
280
284
  tccli/services/faceid/faceid_client.py,sha256=oQTnb7MIASy-cSQywg5TS9kq9yFOrxsi8Z1Wgjra_Hw,65222
281
- tccli/services/faceid/v20180301/api.json,sha256=UTthjtcOO4AHKaW0Xk6Swq0eI-DtqzwGqbmSiWjPUY0,232946
285
+ tccli/services/faceid/v20180301/api.json,sha256=YFHehLQA1lQhmnd881rGNqRMRJ29GalNwZzVqW6ko6I,232901
282
286
  tccli/services/faceid/v20180301/examples.json,sha256=toM7bAseju0KD4hN7HwIASnj9ku_UKbMP8fqgyjcipY,35131
283
287
  tccli/services/gaap/__init__.py,sha256=S_z9yBKvBasiqOewA4ok4_IsMa25mEeOkC-3TCbGn4k,87
284
288
  tccli/services/gaap/gaap_client.py,sha256=wYOVGOwQYcEaGB9oBaOWQ-0mu9Y-XbVsLsSroheaGPE,278997
@@ -374,8 +378,8 @@ tccli/services/monitor/v20180724/api.json,sha256=gL_d2VZy96mCg2SzszZ5frO-gmPcfvZ
374
378
  tccli/services/monitor/v20180724/examples.json,sha256=LzC8p9xNNhp-OPrj9QmC_OYy2Hj0Wydvtnsd5AtJFjI,210616
375
379
  tccli/services/mps/__init__.py,sha256=4M5o2xc0u3rqtgz_5an9Qxw2QaOqwBq8Fjc3IB64p2o,85
376
380
  tccli/services/mps/mps_client.py,sha256=tVa09eDqji7-qBhFhF07V99W6StivjsWKd6bgqowXxU,292620
377
- tccli/services/mps/v20190612/api.json,sha256=_Qlr1p-3MCyZDsCDEES8opICsKW_1CKRjib2_ofDEsk,1117971
378
- tccli/services/mps/v20190612/examples.json,sha256=Dsy9MYx4zX9c4OrtcGeE79l4y0mA8nkVd4ayHO6cmjQ,268123
381
+ tccli/services/mps/v20190612/api.json,sha256=HBTMiBtW9AKhjwM_nIIH3ukLBGq57bQ4uBNDlHlfC8U,1158116
382
+ tccli/services/mps/v20190612/examples.json,sha256=v3boTxHGpbzgkJ1bb9ExR6Y4_RP58Fk0VrNshQMEesE,268172
379
383
  tccli/services/msp/__init__.py,sha256=0k_5yz4kYV72TCSBHRT9p4FBqtVxKOiOrNCR-QXcjEA,85
380
384
  tccli/services/msp/msp_client.py,sha256=c9mp5t5nyCC00NeYhjThQY-lEJVCSauBnVZiXB49AKo,27905
381
385
  tccli/services/msp/v20180319/api.json,sha256=PUGm-MEDPWDfGFbQzE_XM2QGC68xgf1Oy3otIjOWkG0,22901
@@ -406,6 +410,10 @@ tccli/services/pts/__init__.py,sha256=J0iwcjb1pfQr8JhxLeQ_n2JUhbIET_8hfW-6g-RrVl
406
410
  tccli/services/pts/pts_client.py,sha256=4yW8yLLg3aZ9ozcrJ9Hras8c8tQ_-HEiK4Dq7Si7it8,153992
407
411
  tccli/services/pts/v20210728/api.json,sha256=jMxT4d6OYwrAcOlxTtGTuoCK4F8bBS8_qZ6X6lFHJTU,250027
408
412
  tccli/services/pts/v20210728/examples.json,sha256=e33IuZ07ORwDgYUkhmhY3uIfZ-fUH05ff9Jzs4suKm0,90839
413
+ tccli/services/quota/__init__.py,sha256=AOKYvT89EKCoKMkMZLrU4cP8XILPg9KUGyTnc8vrwvI,89
414
+ tccli/services/quota/quota_client.py,sha256=VxplXK537GTQ1OYfSHGoypYymo_-iEavTZ8y95xGFyo,9189
415
+ tccli/services/quota/v20241204/api.json,sha256=NXNsvUug_F95XhlzD7NDG0AQft_V5Qpf3OLxEd398Tc,2760
416
+ tccli/services/quota/v20241204/examples.json,sha256=r1_QGqgtbIuE65A-oTIaj4ojH7JUvrV6hQrUsuJo-C0,541
409
417
  tccli/services/rce/__init__.py,sha256=hA0_efK_b48bYi70kHNZugvJchdDwQNHYJofWYNzyKo,85
410
418
  tccli/services/rce/rce_client.py,sha256=X0to7tDeJRzidLOYKi_qUk64BsNlZMzWmFN9ImXIhTE,9228
411
419
  tccli/services/rce/v20201103/api.json,sha256=sS510FJf3S198XvERTmlN8JnOX244IHy4gQnaghzui8,7026
@@ -506,7 +514,7 @@ tccli/services/teo/__init__.py,sha256=nvzcUSkSQuTftWEJ399BUZpUk_0jEq-l97539DwbAw
506
514
  tccli/services/teo/teo_client.py,sha256=aKu9kxw__IqmH8MFfa7JZ2vJ8eyksBiwHL97KqVqPyE,745543
507
515
  tccli/services/teo/v20220106/api.json,sha256=pEZJsuPOV4oAO5uxFRxpkBzxdGbhiuDGeDhItZLpBk0,440930
508
516
  tccli/services/teo/v20220106/examples.json,sha256=bzXKxeiSSmtv7lL1wbcb7YaTbgbOFBJbD_uCv1fzQuk,87233
509
- tccli/services/teo/v20220901/api.json,sha256=hfgtBH6Lpd6gft_uaj-Uv6zx7kWY32bNVI49KnI8IGo,1160611
517
+ tccli/services/teo/v20220901/api.json,sha256=oDAwQPqZXCRAxRuUI_iKUtAT6xnail4f2AcEX34ORjs,1160504
510
518
  tccli/services/teo/v20220901/examples.json,sha256=DwEWUpOMKpLjMj5jhbe1OxwyPrrB3vesi887UcfDRag,525409
511
519
  tccli/services/tione/__init__.py,sha256=hVHB2cJpskiRtSHmEaJj2ZcjQp28c17sepm54VgFH7I,89
512
520
  tccli/services/tione/tione_client.py,sha256=dqxNYR2NRnjyRhfEaHIvCf3KT71PqDvU9JvN5e_Q5Dc,9264
@@ -578,9 +586,9 @@ tccli/services/yunjing/__init__.py,sha256=8HTKN8_ow1j67tspqAbBMQgeteXAagLvtb9WAf
578
586
  tccli/services/yunjing/yunjing_client.py,sha256=Vh5vFOLjDJ53q_RX9WADwLT610kGcUxwCmtny95k3js,226485
579
587
  tccli/services/yunjing/v20180228/api.json,sha256=zYojacZyPgPCi71CLBjuHsQR9mIxcZjCX5JwA9TYr1s,173428
580
588
  tccli/services/yunjing/v20180228/examples.json,sha256=j3GL3TtNTkZpNLlksz0nJNCVDxYGUqfRqOt94Y-P8OE,58723
581
- tccli_intl_en-3.0.1261.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
582
- tccli_intl_en-3.0.1261.1.dist-info/METADATA,sha256=ou7aRcAQo-1cqqdaJaorgbNHwyrfn1Aplq1BF306RQs,3092
583
- tccli_intl_en-3.0.1261.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
584
- tccli_intl_en-3.0.1261.1.dist-info/entry_points.txt,sha256=68P7ZjqXFm4zPWf5RsAVabzbECUWYFB2VyUnnv8XgMI,86
585
- tccli_intl_en-3.0.1261.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
586
- tccli_intl_en-3.0.1261.1.dist-info/RECORD,,
589
+ tccli_intl_en-3.0.1263.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
590
+ tccli_intl_en-3.0.1263.1.dist-info/METADATA,sha256=G4wTj67_th4V8tVlma0ENVdtZ0o9I8Z4vN66N6dWg0s,3092
591
+ tccli_intl_en-3.0.1263.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
592
+ tccli_intl_en-3.0.1263.1.dist-info/entry_points.txt,sha256=68P7ZjqXFm4zPWf5RsAVabzbECUWYFB2VyUnnv8XgMI,86
593
+ tccli_intl_en-3.0.1263.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
594
+ tccli_intl_en-3.0.1263.1.dist-info/RECORD,,