tccli 3.0.1348.1__py2.py3-none-any.whl → 3.0.1349.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 (172) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -76
  3. tccli/services/ai3d/v20250513/api.json +1 -1
  4. tccli/services/aiart/v20221229/api.json +3 -3
  5. tccli/services/autoscaling/v20180419/api.json +11 -0
  6. tccli/services/batch/v20170312/api.json +44 -0
  7. tccli/services/cdb/v20170320/api.json +8 -8
  8. tccli/services/cdb/v20170320/examples.json +1 -1
  9. tccli/services/cdn/v20180606/api.json +5 -5
  10. tccli/services/cdwdoris/v20211228/api.json +145 -7
  11. tccli/services/cfg/v20210820/api.json +20 -0
  12. tccli/services/cfs/v20190719/api.json +10 -10
  13. tccli/services/cfw/cfw_client.py +53 -0
  14. tccli/services/cfw/v20190904/api.json +272 -0
  15. tccli/services/cfw/v20190904/examples.json +8 -0
  16. tccli/services/csip/csip_client.py +833 -144
  17. tccli/services/csip/v20221121/api.json +3304 -1436
  18. tccli/services/csip/v20221121/examples.json +104 -0
  19. tccli/services/cvm/v20170312/api.json +1 -1
  20. tccli/services/cwp/v20180228/api.json +9 -0
  21. tccli/services/cwp/v20180228/examples.json +6 -0
  22. tccli/services/emr/v20190103/api.json +217 -2
  23. tccli/services/es/v20250101/api.json +22 -0
  24. tccli/services/ess/v20201111/api.json +10 -1
  25. tccli/services/essbasic/v20210526/api.json +3 -3
  26. tccli/services/gs/v20191118/api.json +38 -0
  27. tccli/services/igtm/igtm_client.py +159 -0
  28. tccli/services/igtm/v20231024/api.json +577 -0
  29. tccli/services/igtm/v20231024/examples.json +24 -0
  30. tccli/services/iotexplorer/v20190423/api.json +3 -3
  31. tccli/services/lcic/lcic_client.py +53 -0
  32. tccli/services/lcic/v20220817/api.json +53 -0
  33. tccli/services/lcic/v20220817/examples.json +8 -0
  34. tccli/services/live/v20180801/api.json +203 -1
  35. tccli/services/live/v20180801/examples.json +1 -1
  36. tccli/services/lke/v20231130/api.json +248 -2
  37. tccli/services/lke/v20231130/examples.json +1 -1
  38. tccli/services/lkeap/v20240522/api.json +1 -1
  39. tccli/services/mrs/v20200910/api.json +10 -0
  40. tccli/services/nlp/nlp_client.py +4 -322
  41. tccli/services/nlp/v20190408/api.json +0 -459
  42. tccli/services/nlp/v20190408/examples.json +0 -48
  43. tccli/services/ocr/v20181119/api.json +60 -5
  44. tccli/services/omics/v20221128/api.json +38 -0
  45. tccli/services/redis/v20180412/api.json +6 -6
  46. tccli/services/redis/v20180412/examples.json +1 -1
  47. tccli/services/ses/v20201002/api.json +100 -5
  48. tccli/services/tcb/v20180608/api.json +1 -1
  49. tccli/services/tcb/v20180608/examples.json +1 -1
  50. tccli/services/tdmq/v20200217/api.json +19 -0
  51. tccli/services/teo/teo_client.py +281 -16
  52. tccli/services/teo/v20220901/api.json +611 -6
  53. tccli/services/teo/v20220901/examples.json +48 -2
  54. tccli/services/tione/v20211111/api.json +16 -0
  55. tccli/services/tke/tke_client.py +57 -4
  56. tccli/services/tke/v20180525/api.json +24 -24
  57. tccli/services/tke/v20220501/api.json +52 -0
  58. tccli/services/tke/v20220501/examples.json +8 -0
  59. tccli/services/tmt/v20180321/api.json +4 -4
  60. tccli/services/tsf/v20180326/api.json +4 -4
  61. tccli/services/vclm/v20240523/api.json +3 -3
  62. tccli/services/vod/v20180717/api.json +5 -5
  63. tccli/services/vod/v20180717/examples.json +9 -9
  64. tccli/services/vpc/v20170312/api.json +1 -1
  65. tccli/services/vrs/v20200824/api.json +1 -1
  66. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/METADATA +2 -2
  67. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/RECORD +70 -172
  68. tccli/services/cis/__init__.py +0 -4
  69. tccli/services/cis/cis_client.py +0 -525
  70. tccli/services/cis/v20180408/api.json +0 -737
  71. tccli/services/cis/v20180408/examples.json +0 -93
  72. tccli/services/dataintegration/__init__.py +0 -4
  73. tccli/services/dataintegration/dataintegration_client.py +0 -207
  74. tccli/services/dataintegration/v20220613/api.json +0 -87
  75. tccli/services/dataintegration/v20220613/examples.json +0 -13
  76. tccli/services/dtf/__init__.py +0 -4
  77. tccli/services/dtf/dtf_client.py +0 -207
  78. tccli/services/dtf/v20200506/api.json +0 -274
  79. tccli/services/dtf/v20200506/examples.json +0 -13
  80. tccli/services/gpm/__init__.py +0 -4
  81. tccli/services/gpm/gpm_client.py +0 -1108
  82. tccli/services/gpm/v20200820/api.json +0 -1959
  83. tccli/services/gpm/v20200820/examples.json +0 -149
  84. tccli/services/gse/__init__.py +0 -4
  85. tccli/services/gse/gse_client.py +0 -4076
  86. tccli/services/gse/v20191112/api.json +0 -7095
  87. tccli/services/gse/v20191112/examples.json +0 -615
  88. tccli/services/iecp/__init__.py +0 -4
  89. tccli/services/iecp/iecp_client.py +0 -4500
  90. tccli/services/iecp/v20210914/api.json +0 -9770
  91. tccli/services/iecp/v20210914/examples.json +0 -691
  92. tccli/services/iir/__init__.py +0 -4
  93. tccli/services/iir/iir_client.py +0 -207
  94. tccli/services/iir/v20200417/api.json +0 -204
  95. tccli/services/iir/v20200417/examples.json +0 -13
  96. tccli/services/iottid/__init__.py +0 -4
  97. tccli/services/iottid/iottid_client.py +0 -631
  98. tccli/services/iottid/v20190411/api.json +0 -553
  99. tccli/services/iottid/v20190411/examples.json +0 -95
  100. tccli/services/mgobe/__init__.py +0 -4
  101. tccli/services/mgobe/mgobe_client.py +0 -530
  102. tccli/services/mgobe/v20190929/api.json +0 -52
  103. tccli/services/mgobe/v20190929/examples.json +0 -13
  104. tccli/services/mgobe/v20201014/api.json +0 -671
  105. tccli/services/mgobe/v20201014/examples.json +0 -61
  106. tccli/services/mvj/__init__.py +0 -4
  107. tccli/services/mvj/mvj_client.py +0 -207
  108. tccli/services/mvj/v20190926/api.json +0 -123
  109. tccli/services/mvj/v20190926/examples.json +0 -19
  110. tccli/services/pds/__init__.py +0 -4
  111. tccli/services/pds/pds_client.py +0 -260
  112. tccli/services/pds/v20210701/api.json +0 -193
  113. tccli/services/pds/v20210701/examples.json +0 -21
  114. tccli/services/smpn/__init__.py +0 -4
  115. tccli/services/smpn/smpn_client.py +0 -260
  116. tccli/services/smpn/v20190822/api.json +0 -191
  117. tccli/services/smpn/v20190822/examples.json +0 -21
  118. tccli/services/solar/__init__.py +0 -4
  119. tccli/services/solar/solar_client.py +0 -1055
  120. tccli/services/solar/v20181011/api.json +0 -1760
  121. tccli/services/solar/v20181011/examples.json +0 -125
  122. tccli/services/tan/__init__.py +0 -4
  123. tccli/services/tan/tan_client.py +0 -207
  124. tccli/services/tan/v20220420/api.json +0 -65
  125. tccli/services/tan/v20220420/examples.json +0 -19
  126. tccli/services/tav/__init__.py +0 -4
  127. tccli/services/tav/tav_client.py +0 -366
  128. tccli/services/tav/v20190118/api.json +0 -262
  129. tccli/services/tav/v20190118/examples.json +0 -37
  130. tccli/services/tbm/__init__.py +0 -4
  131. tccli/services/tbm/tbm_client.py +0 -631
  132. tccli/services/tbm/v20180129/api.json +0 -1037
  133. tccli/services/tbm/v20180129/examples.json +0 -77
  134. tccli/services/tcex/__init__.py +0 -4
  135. tccli/services/tcex/tcex_client.py +0 -260
  136. tccli/services/tcex/v20200727/api.json +0 -158
  137. tccli/services/tcex/v20200727/examples.json +0 -21
  138. tccli/services/tci/__init__.py +0 -4
  139. tccli/services/tci/tci_client.py +0 -2327
  140. tccli/services/tci/v20190318/api.json +0 -4958
  141. tccli/services/tci/v20190318/examples.json +0 -333
  142. tccli/services/tic/__init__.py +0 -4
  143. tccli/services/tic/tic_client.py +0 -843
  144. tccli/services/tic/v20201117/api.json +0 -1067
  145. tccli/services/tic/v20201117/examples.json +0 -121
  146. tccli/services/ticm/__init__.py +0 -4
  147. tccli/services/ticm/ticm_client.py +0 -313
  148. tccli/services/ticm/v20181127/api.json +0 -1391
  149. tccli/services/ticm/v20181127/examples.json +0 -53
  150. tccli/services/tics/__init__.py +0 -4
  151. tccli/services/tics/tics_client.py +0 -366
  152. tccli/services/tics/v20181115/api.json +0 -694
  153. tccli/services/tics/v20181115/examples.json +0 -37
  154. tccli/services/tiems/__init__.py +0 -4
  155. tccli/services/tiems/tiems_client.py +0 -1479
  156. tccli/services/tiems/v20190416/api.json +0 -3144
  157. tccli/services/tiems/v20190416/examples.json +0 -217
  158. tccli/services/trdp/__init__.py +0 -4
  159. tccli/services/trdp/trdp_client.py +0 -207
  160. tccli/services/trdp/v20220726/api.json +0 -843
  161. tccli/services/trdp/v20220726/examples.json +0 -13
  162. tccli/services/ump/__init__.py +0 -4
  163. tccli/services/ump/ump_client.py +0 -1055
  164. tccli/services/ump/v20200918/api.json +0 -2168
  165. tccli/services/ump/v20200918/examples.json +0 -141
  166. tccli/services/youmall/__init__.py +0 -4
  167. tccli/services/youmall/v20180228/api.json +0 -3572
  168. tccli/services/youmall/v20180228/examples.json +0 -313
  169. tccli/services/youmall/youmall_client.py +0 -1797
  170. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/WHEEL +0 -0
  171. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/entry_points.txt +0 -0
  172. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,207 +0,0 @@
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.dtf.v20200506 import dtf_client as dtf_client_v20200506
15
- from tencentcloud.dtf.v20200506 import models as models_v20200506
16
-
17
- from jmespath import search
18
- import time
19
-
20
- def doDescribeTransactions(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.DtfClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.DescribeTransactionsRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.DescribeTransactions(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
- "v20200506": dtf_client_v20200506,
74
-
75
- }
76
-
77
- MODELS_MAP = {
78
- "v20200506": models_v20200506,
79
-
80
- }
81
-
82
- ACTION_MAP = {
83
- "DescribeTransactions": doDescribeTransactions,
84
-
85
- }
86
-
87
- AVAILABLE_VERSION_LIST = [
88
- "v20200506",
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["dtf"][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["dtf"][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
-
@@ -1,274 +0,0 @@
1
- {
2
- "actions": {
3
- "DescribeTransactions": {
4
- "document": "查询主事务列表",
5
- "input": "DescribeTransactionsRequest",
6
- "name": "查询主事务列表",
7
- "output": "DescribeTransactionsResponse",
8
- "status": "online"
9
- }
10
- },
11
- "metadata": {
12
- "apiVersion": "2020-05-06",
13
- "api_brief": null,
14
- "serviceNameCN": "分布式事务",
15
- "serviceShortName": "dtf"
16
- },
17
- "objects": {
18
- "DescribeTransactionsRequest": {
19
- "document": "DescribeTransactions请求参数结构体",
20
- "members": [
21
- {
22
- "document": "事务分组ID",
23
- "example": "group-qy9484ln",
24
- "member": "string",
25
- "name": "GroupId",
26
- "required": true,
27
- "type": "string"
28
- },
29
- {
30
- "document": "事务开始时间查询起始时间戳,UTC,精确到毫秒",
31
- "example": "1618555374569",
32
- "member": "int64",
33
- "name": "TransactionBeginFrom",
34
- "required": false,
35
- "type": "int"
36
- },
37
- {
38
- "document": "事务开始时间查询截止时间戳,UTC,精确到毫秒",
39
- "example": "1618555374569",
40
- "member": "int64",
41
- "name": "TransactionBeginTo",
42
- "required": false,
43
- "type": "int"
44
- },
45
- {
46
- "document": "仅查询异常状态的事务,true:仅查询异常,false或不传入:查询所有",
47
- "example": "true",
48
- "member": "bool",
49
- "name": "SearchError",
50
- "required": false,
51
- "type": "bool"
52
- },
53
- {
54
- "document": "主事务ID,不传入时查询全量,高优先级",
55
- "example": "1212121",
56
- "member": "int64",
57
- "name": "TransactionId",
58
- "required": false,
59
- "type": "int"
60
- },
61
- {
62
- "document": "主事务ID列表,不传入时查询全量,低优先级",
63
- "example": "[112121, 121212]",
64
- "member": "int64",
65
- "name": "TransactionIdList",
66
- "required": false,
67
- "type": "list"
68
- },
69
- {
70
- "document": "每页数量",
71
- "example": "0",
72
- "member": "int64",
73
- "name": "Limit",
74
- "required": false,
75
- "type": "int"
76
- },
77
- {
78
- "document": "起始偏移量",
79
- "example": "20",
80
- "member": "int64",
81
- "name": "Offset",
82
- "required": false,
83
- "type": "int"
84
- }
85
- ],
86
- "type": "object"
87
- },
88
- "DescribeTransactionsResponse": {
89
- "document": "DescribeTransactions返回参数结构体",
90
- "members": [
91
- {
92
- "document": "主事务分页列表",
93
- "example": "无",
94
- "member": "PagedTransaction",
95
- "name": "Result",
96
- "required": true,
97
- "type": "object",
98
- "value_allowed_null": false
99
- },
100
- {
101
- "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
102
- "member": "string",
103
- "name": "RequestId",
104
- "type": "string"
105
- }
106
- ],
107
- "type": "object"
108
- },
109
- "PagedTransaction": {
110
- "document": "分页主事务",
111
- "members": [
112
- {
113
- "document": "总条数,特定在该接口中总是会返回null\n注意:此字段可能返回 null,表示取不到有效值。",
114
- "member": "int64",
115
- "name": "TotalCount",
116
- "required": true,
117
- "type": "int",
118
- "value_allowed_null": true
119
- },
120
- {
121
- "document": "主事务分组列表",
122
- "member": "Transaction",
123
- "name": "Content",
124
- "required": true,
125
- "type": "list",
126
- "value_allowed_null": false
127
- }
128
- ],
129
- "usage": "out"
130
- },
131
- "Transaction": {
132
- "document": "主事务",
133
- "members": [
134
- {
135
- "document": "主事务ID\n注意:此字段可能返回 null,表示取不到有效值。",
136
- "example": "123123123",
137
- "member": "int64",
138
- "name": "TransactionId",
139
- "required": false,
140
- "type": "int",
141
- "value_allowed_null": true
142
- },
143
- {
144
- "document": "主事务开始时间戳,UTC,精确到毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
145
- "example": "1618555940814",
146
- "member": "int64",
147
- "name": "TransactionBegin",
148
- "required": false,
149
- "type": "int",
150
- "value_allowed_null": true
151
- },
152
- {
153
- "document": "主事务结束时间戳,UTC,精确到毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
154
- "example": "1618555940814",
155
- "member": "int64",
156
- "name": "TransactionEnd",
157
- "required": false,
158
- "type": "int",
159
- "value_allowed_null": true
160
- },
161
- {
162
- "document": "主事务提交时间戳,UTC,精确到毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
163
- "example": "1618555940814",
164
- "member": "int64",
165
- "name": "TransactionCommit",
166
- "required": false,
167
- "type": "int",
168
- "value_allowed_null": true
169
- },
170
- {
171
- "document": "主事务回滚时间戳,UTC,精确到毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
172
- "example": "1618555940814",
173
- "member": "int64",
174
- "name": "TransactionRollback",
175
- "required": false,
176
- "type": "int",
177
- "value_allowed_null": true
178
- },
179
- {
180
- "document": "主事务异常停止时间戳,UTC,精确到毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
181
- "example": "1618555940814",
182
- "member": "int64",
183
- "name": "TransactionError",
184
- "required": false,
185
- "type": "int",
186
- "value_allowed_null": true
187
- },
188
- {
189
- "document": "主事务超时时长,单位毫秒\n注意:此字段可能返回 null,表示取不到有效值。",
190
- "example": "60000",
191
- "member": "int64",
192
- "name": "Timeout",
193
- "required": false,
194
- "type": "int",
195
- "value_allowed_null": true
196
- },
197
- {
198
- "document": "主事务状态:0:Trying, 1:Confirming, 2: Confirmed, 3:Canceling, 4: Canceled\n注意:此字段可能返回 null,表示取不到有效值。",
199
- "example": "2",
200
- "member": "int64",
201
- "name": "Status",
202
- "required": false,
203
- "type": "int",
204
- "value_allowed_null": true
205
- },
206
- {
207
- "document": "主事务结束标识:0:运行中, 1: 已结束\n注意:此字段可能返回 null,表示取不到有效值。",
208
- "example": "1",
209
- "member": "int64",
210
- "name": "EndFlag",
211
- "required": false,
212
- "type": "int",
213
- "value_allowed_null": true
214
- },
215
- {
216
- "document": "主事务超时标识:0:运行中, 1: 已超时\n注意:此字段可能返回 null,表示取不到有效值。",
217
- "example": "0",
218
- "member": "int64",
219
- "name": "TimeoutFlag",
220
- "required": false,
221
- "type": "int",
222
- "value_allowed_null": true
223
- },
224
- {
225
- "document": "异常信息\n注意:此字段可能返回 null,表示取不到有效值。",
226
- "example": "\"\"",
227
- "member": "string",
228
- "name": "Comment",
229
- "required": false,
230
- "type": "string",
231
- "value_allowed_null": true
232
- },
233
- {
234
- "document": "事务分组ID\n注意:此字段可能返回 null,表示取不到有效值。",
235
- "example": "group-x3wsdh94",
236
- "member": "string",
237
- "name": "GroupId",
238
- "required": false,
239
- "type": "string",
240
- "value_allowed_null": true
241
- },
242
- {
243
- "document": "主事务来源服务标识\n注意:此字段可能返回 null,表示取不到有效值。",
244
- "example": "spring-boot-account",
245
- "member": "string",
246
- "name": "Server",
247
- "required": false,
248
- "type": "string",
249
- "value_allowed_null": true
250
- },
251
- {
252
- "document": "分支事务数量\n注意:此字段可能返回 null,表示取不到有效值。",
253
- "example": "3",
254
- "member": "int64",
255
- "name": "BranchQuantity",
256
- "required": false,
257
- "type": "int",
258
- "value_allowed_null": true
259
- },
260
- {
261
- "document": "重试标识:true:可以重试;false:不可重试\n注意:此字段可能返回 null,表示取不到有效值。",
262
- "example": "false",
263
- "member": "bool",
264
- "name": "RetryFlag",
265
- "required": false,
266
- "type": "bool",
267
- "value_allowed_null": true
268
- }
269
- ],
270
- "usage": "both"
271
- }
272
- },
273
- "version": "1.0"
274
- }
@@ -1,13 +0,0 @@
1
- {
2
- "actions": {
3
- "DescribeTransactions": [
4
- {
5
- "document": "",
6
- "input": "https://dtf.tencentcloudapi.com/?Action=DescribeTransactions\n&GroupId=group-qy9484ln\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"e0bc66ed-c2eb-4d49-931e-18dab5c25d8a\",\n \"Result\": {\n \"TotalCount\": null,\n \"Content\": [\n {\n \"TransactionId\": 20052,\n \"TransactionBegin\": 1581951071521,\n \"TransactionCommit\": 1581951077545,\n \"TransactionRollback\": null,\n \"TransactionEnd\": null,\n \"TransactionError\": 1581951077549,\n \"Timeout\": 60000,\n \"Status\": 1,\n \"TimeoutFlag\": 0,\n \"EndFlag\": 1,\n \"Comment\": \"Some Branches confirm failed.\",\n \"BranchQuantity\": 2,\n \"GroupId\": \"group-qy9484ln\",\n \"Server\": null,\n \"RetryFlag\": true\n }\n ]\n }\n }\n}",
8
- "title": "查询主事务列表"
9
- }
10
- ]
11
- },
12
- "version": "1.0"
13
- }
@@ -1,4 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from tccli.services.gpm.gpm_client import action_caller
4
-