tccli 3.0.1279.1__py2.py3-none-any.whl → 3.0.1281.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.
- tccli/__init__.py +1 -1
- tccli/services/acp/v20220105/api.json +68 -65
- tccli/services/aiart/v20221229/api.json +1 -1
- tccli/services/antiddos/v20200309/api.json +5 -1
- tccli/services/apm/v20210622/api.json +32 -32
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/billing/v20180709/api.json +550 -529
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/cat/v20180409/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +15 -1
- tccli/services/cfg/v20210820/api.json +36 -23
- tccli/services/cfg/v20210820/examples.json +11 -11
- tccli/services/cfs/v20190719/examples.json +3 -3
- tccli/services/ciam/v20220331/api.json +111 -111
- tccli/services/ciam/v20220331/examples.json +8 -8
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/controlcenter_client.py +212 -0
- tccli/services/controlcenter/v20230110/api.json +521 -3
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/v20221121/api.json +66 -6
- tccli/services/cvm/cvm_client.py +212 -0
- tccli/services/cvm/v20170312/api.json +1076 -272
- tccli/services/cvm/v20170312/examples.json +34 -2
- tccli/services/cynosdb/v20190107/api.json +13 -3
- tccli/services/dbbrain/v20191016/api.json +12 -8
- tccli/services/dbbrain/v20210527/api.json +20 -20
- tccli/services/dlc/v20210125/api.json +19 -0
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/emr/v20190103/api.json +11 -0
- tccli/services/es/v20180416/api.json +13 -0
- tccli/services/goosefs/v20220519/api.json +16 -15
- tccli/services/goosefs/v20220519/examples.json +2 -2
- tccli/services/gwlb/v20240906/api.json +22 -3
- tccli/services/gwlb/v20240906/examples.json +1 -1
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +243 -245
- tccli/services/iotcloud/v20210408/examples.json +64 -64
- tccli/services/keewidb/v20220308/api.json +94 -94
- tccli/services/lcic/v20220817/api.json +110 -63
- tccli/services/lcic/v20220817/examples.json +6 -6
- tccli/services/live/v20180801/api.json +302 -288
- tccli/services/lke/lke_client.py +84 -84
- tccli/services/lke/v20231130/api.json +220 -164
- tccli/services/lke/v20231130/examples.json +16 -16
- tccli/services/lowcode/v20210108/api.json +120 -11
- tccli/services/lowcode/v20210108/examples.json +9 -9
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/mariadb/v20170312/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +7 -6
- tccli/services/mongodb/v20190725/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/mqtt/mqtt_client.py +110 -4
- tccli/services/mqtt/v20240516/api.json +132 -0
- tccli/services/mqtt/v20240516/examples.json +22 -0
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/partners/partners_client.py +61 -8
- tccli/services/partners/v20180321/api.json +110 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/pts/v20210728/api.json +44 -6
- tccli/services/redis/v20180412/api.json +66 -66
- tccli/services/rum/v20210622/api.json +90 -0
- tccli/services/sms/v20190711/examples.json +1 -1
- tccli/services/sms/v20210111/examples.json +1 -1
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +141 -128
- tccli/services/tat/v20201028/examples.json +12 -12
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +93 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +4 -4
- tccli/services/tke/v20180525/api.json +313 -313
- tccli/services/tke/v20220501/api.json +2 -2
- tccli/services/tms/v20201229/api.json +9 -0
- tccli/services/tsf/v20180326/api.json +884 -884
- tccli/services/vdb/v20230616/api.json +12 -12
- tccli/services/waf/v20180125/api.json +7 -7
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +107 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/RECORD +86 -86
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/lke/lke_client.py
CHANGED
@@ -121,6 +121,58 @@ def doDeleteAttributeLabel(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
+
def doGetVarList(args, parsed_globals):
|
125
|
+
g_param = parse_global_arg(parsed_globals)
|
126
|
+
|
127
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
128
|
+
cred = credential.CVMRoleCredential()
|
129
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
130
|
+
cred = credential.STSAssumeRoleCredential(
|
131
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
133
|
+
)
|
134
|
+
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):
|
135
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
136
|
+
else:
|
137
|
+
cred = credential.Credential(
|
138
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
139
|
+
)
|
140
|
+
http_profile = HttpProfile(
|
141
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
142
|
+
reqMethod="POST",
|
143
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
144
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
145
|
+
)
|
146
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
147
|
+
if g_param[OptionsDefine.Language]:
|
148
|
+
profile.language = g_param[OptionsDefine.Language]
|
149
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
150
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
151
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
152
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
+
model = models.GetVarListRequest()
|
154
|
+
model.from_json_string(json.dumps(args))
|
155
|
+
start_time = time.time()
|
156
|
+
while True:
|
157
|
+
rsp = client.GetVarList(model)
|
158
|
+
result = rsp.to_json_string()
|
159
|
+
try:
|
160
|
+
json_obj = json.loads(result)
|
161
|
+
except TypeError as e:
|
162
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
163
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
164
|
+
break
|
165
|
+
cur_time = time.time()
|
166
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
167
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
168
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
169
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
170
|
+
else:
|
171
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
172
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
173
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
|
+
|
175
|
+
|
124
176
|
def doDescribeKnowledgeUsagePieGraph(args, parsed_globals):
|
125
177
|
g_param = parse_global_arg(parsed_globals)
|
126
178
|
|
@@ -2201,58 +2253,6 @@ def doDescribeTokenUsage(args, parsed_globals):
|
|
2201
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2254
|
|
2203
2255
|
|
2204
|
-
def doQueryParseDocResult(args, parsed_globals):
|
2205
|
-
g_param = parse_global_arg(parsed_globals)
|
2206
|
-
|
2207
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2208
|
-
cred = credential.CVMRoleCredential()
|
2209
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2210
|
-
cred = credential.STSAssumeRoleCredential(
|
2211
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2212
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2213
|
-
)
|
2214
|
-
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):
|
2215
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2216
|
-
else:
|
2217
|
-
cred = credential.Credential(
|
2218
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2219
|
-
)
|
2220
|
-
http_profile = HttpProfile(
|
2221
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2222
|
-
reqMethod="POST",
|
2223
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2224
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2225
|
-
)
|
2226
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2227
|
-
if g_param[OptionsDefine.Language]:
|
2228
|
-
profile.language = g_param[OptionsDefine.Language]
|
2229
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2230
|
-
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2232
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.QueryParseDocResultRequest()
|
2234
|
-
model.from_json_string(json.dumps(args))
|
2235
|
-
start_time = time.time()
|
2236
|
-
while True:
|
2237
|
-
rsp = client.QueryParseDocResult(model)
|
2238
|
-
result = rsp.to_json_string()
|
2239
|
-
try:
|
2240
|
-
json_obj = json.loads(result)
|
2241
|
-
except TypeError as e:
|
2242
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2243
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2244
|
-
break
|
2245
|
-
cur_time = time.time()
|
2246
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2247
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2248
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2249
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2250
|
-
else:
|
2251
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2252
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2253
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
|
-
|
2255
|
-
|
2256
2256
|
def doListQACate(args, parsed_globals):
|
2257
2257
|
g_param = parse_global_arg(parsed_globals)
|
2258
2258
|
|
@@ -2877,7 +2877,7 @@ def doListQA(args, parsed_globals):
|
|
2877
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2878
|
|
2879
2879
|
|
2880
|
-
def
|
2880
|
+
def doCreateVar(args, parsed_globals):
|
2881
2881
|
g_param = parse_global_arg(parsed_globals)
|
2882
2882
|
|
2883
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2906,11 @@ def doGetLikeDataCount(args, parsed_globals):
|
|
2906
2906
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2909
|
+
model = models.CreateVarRequest()
|
2910
2910
|
model.from_json_string(json.dumps(args))
|
2911
2911
|
start_time = time.time()
|
2912
2912
|
while True:
|
2913
|
-
rsp = client.
|
2913
|
+
rsp = client.CreateVar(model)
|
2914
2914
|
result = rsp.to_json_string()
|
2915
2915
|
try:
|
2916
2916
|
json_obj = json.loads(result)
|
@@ -2929,7 +2929,7 @@ def doGetLikeDataCount(args, parsed_globals):
|
|
2929
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2930
|
|
2931
2931
|
|
2932
|
-
def
|
2932
|
+
def doGetLikeDataCount(args, parsed_globals):
|
2933
2933
|
g_param = parse_global_arg(parsed_globals)
|
2934
2934
|
|
2935
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +2958,11 @@ def doModifyDocCate(args, parsed_globals):
|
|
2958
2958
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
2961
|
+
model = models.GetLikeDataCountRequest()
|
2962
2962
|
model.from_json_string(json.dumps(args))
|
2963
2963
|
start_time = time.time()
|
2964
2964
|
while True:
|
2965
|
-
rsp = client.
|
2965
|
+
rsp = client.GetLikeDataCount(model)
|
2966
2966
|
result = rsp.to_json_string()
|
2967
2967
|
try:
|
2968
2968
|
json_obj = json.loads(result)
|
@@ -2981,7 +2981,7 @@ def doModifyDocCate(args, parsed_globals):
|
|
2981
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
2982
|
|
2983
2983
|
|
2984
|
-
def
|
2984
|
+
def doModifyDocCate(args, parsed_globals):
|
2985
2985
|
g_param = parse_global_arg(parsed_globals)
|
2986
2986
|
|
2987
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3010,11 +3010,11 @@ def doExportQAList(args, parsed_globals):
|
|
3010
3010
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
3012
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.
|
3013
|
+
model = models.ModifyDocCateRequest()
|
3014
3014
|
model.from_json_string(json.dumps(args))
|
3015
3015
|
start_time = time.time()
|
3016
3016
|
while True:
|
3017
|
-
rsp = client.
|
3017
|
+
rsp = client.ModifyDocCate(model)
|
3018
3018
|
result = rsp.to_json_string()
|
3019
3019
|
try:
|
3020
3020
|
json_obj = json.loads(result)
|
@@ -3033,7 +3033,7 @@ def doExportQAList(args, parsed_globals):
|
|
3033
3033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
3034
|
|
3035
3035
|
|
3036
|
-
def
|
3036
|
+
def doExportQAList(args, parsed_globals):
|
3037
3037
|
g_param = parse_global_arg(parsed_globals)
|
3038
3038
|
|
3039
3039
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3062,11 @@ def doIgnoreUnsatisfiedReply(args, parsed_globals):
|
|
3062
3062
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3063
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3064
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3065
|
+
model = models.ExportQAListRequest()
|
3066
3066
|
model.from_json_string(json.dumps(args))
|
3067
3067
|
start_time = time.time()
|
3068
3068
|
while True:
|
3069
|
-
rsp = client.
|
3069
|
+
rsp = client.ExportQAList(model)
|
3070
3070
|
result = rsp.to_json_string()
|
3071
3071
|
try:
|
3072
3072
|
json_obj = json.loads(result)
|
@@ -3085,7 +3085,7 @@ def doIgnoreUnsatisfiedReply(args, parsed_globals):
|
|
3085
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3086
|
|
3087
3087
|
|
3088
|
-
def
|
3088
|
+
def doIgnoreUnsatisfiedReply(args, parsed_globals):
|
3089
3089
|
g_param = parse_global_arg(parsed_globals)
|
3090
3090
|
|
3091
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3114,11 +3114,11 @@ def doCreateReconstructDocumentFlow(args, parsed_globals):
|
|
3114
3114
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3116
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
-
model = models.
|
3117
|
+
model = models.IgnoreUnsatisfiedReplyRequest()
|
3118
3118
|
model.from_json_string(json.dumps(args))
|
3119
3119
|
start_time = time.time()
|
3120
3120
|
while True:
|
3121
|
-
rsp = client.
|
3121
|
+
rsp = client.IgnoreUnsatisfiedReply(model)
|
3122
3122
|
result = rsp.to_json_string()
|
3123
3123
|
try:
|
3124
3124
|
json_obj = json.loads(result)
|
@@ -3137,7 +3137,7 @@ def doCreateReconstructDocumentFlow(args, parsed_globals):
|
|
3137
3137
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3138
|
|
3139
3139
|
|
3140
|
-
def
|
3140
|
+
def doCreateReconstructDocumentFlow(args, parsed_globals):
|
3141
3141
|
g_param = parse_global_arg(parsed_globals)
|
3142
3142
|
|
3143
3143
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3166,11 @@ def doUploadAttributeLabel(args, parsed_globals):
|
|
3166
3166
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3167
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3168
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3169
|
+
model = models.CreateReconstructDocumentFlowRequest()
|
3170
3170
|
model.from_json_string(json.dumps(args))
|
3171
3171
|
start_time = time.time()
|
3172
3172
|
while True:
|
3173
|
-
rsp = client.
|
3173
|
+
rsp = client.CreateReconstructDocumentFlow(model)
|
3174
3174
|
result = rsp.to_json_string()
|
3175
3175
|
try:
|
3176
3176
|
json_obj = json.loads(result)
|
@@ -3189,7 +3189,7 @@ def doUploadAttributeLabel(args, parsed_globals):
|
|
3189
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3190
|
|
3191
3191
|
|
3192
|
-
def
|
3192
|
+
def doUploadAttributeLabel(args, parsed_globals):
|
3193
3193
|
g_param = parse_global_arg(parsed_globals)
|
3194
3194
|
|
3195
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3218,11 @@ def doGetDocPreview(args, parsed_globals):
|
|
3218
3218
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3221
|
+
model = models.UploadAttributeLabelRequest()
|
3222
3222
|
model.from_json_string(json.dumps(args))
|
3223
3223
|
start_time = time.time()
|
3224
3224
|
while True:
|
3225
|
-
rsp = client.
|
3225
|
+
rsp = client.UploadAttributeLabel(model)
|
3226
3226
|
result = rsp.to_json_string()
|
3227
3227
|
try:
|
3228
3228
|
json_obj = json.loads(result)
|
@@ -3241,7 +3241,7 @@ def doGetDocPreview(args, parsed_globals):
|
|
3241
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3242
|
|
3243
3243
|
|
3244
|
-
def
|
3244
|
+
def doGetDocPreview(args, parsed_globals):
|
3245
3245
|
g_param = parse_global_arg(parsed_globals)
|
3246
3246
|
|
3247
3247
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3270,11 +3270,11 @@ def doDescribeConcurrencyUsage(args, parsed_globals):
|
|
3270
3270
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
3271
|
client._sdkVersion += ("_CLI_" + __version__)
|
3272
3272
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
-
model = models.
|
3273
|
+
model = models.GetDocPreviewRequest()
|
3274
3274
|
model.from_json_string(json.dumps(args))
|
3275
3275
|
start_time = time.time()
|
3276
3276
|
while True:
|
3277
|
-
rsp = client.
|
3277
|
+
rsp = client.GetDocPreview(model)
|
3278
3278
|
result = rsp.to_json_string()
|
3279
3279
|
try:
|
3280
3280
|
json_obj = json.loads(result)
|
@@ -3293,7 +3293,7 @@ def doDescribeConcurrencyUsage(args, parsed_globals):
|
|
3293
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
3294
|
|
3295
3295
|
|
3296
|
-
def
|
3296
|
+
def doDescribeConcurrencyUsage(args, parsed_globals):
|
3297
3297
|
g_param = parse_global_arg(parsed_globals)
|
3298
3298
|
|
3299
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3322,11 +3322,11 @@ def doModifyRejectedQuestion(args, parsed_globals):
|
|
3322
3322
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
3324
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
-
model = models.
|
3325
|
+
model = models.DescribeConcurrencyUsageRequest()
|
3326
3326
|
model.from_json_string(json.dumps(args))
|
3327
3327
|
start_time = time.time()
|
3328
3328
|
while True:
|
3329
|
-
rsp = client.
|
3329
|
+
rsp = client.DescribeConcurrencyUsage(model)
|
3330
3330
|
result = rsp.to_json_string()
|
3331
3331
|
try:
|
3332
3332
|
json_obj = json.loads(result)
|
@@ -3345,7 +3345,7 @@ def doModifyRejectedQuestion(args, parsed_globals):
|
|
3345
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
3346
|
|
3347
3347
|
|
3348
|
-
def
|
3348
|
+
def doModifyRejectedQuestion(args, parsed_globals):
|
3349
3349
|
g_param = parse_global_arg(parsed_globals)
|
3350
3350
|
|
3351
3351
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3374,11 +3374,11 @@ def doParseDoc(args, parsed_globals):
|
|
3374
3374
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3375
3375
|
client._sdkVersion += ("_CLI_" + __version__)
|
3376
3376
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3377
|
-
model = models.
|
3377
|
+
model = models.ModifyRejectedQuestionRequest()
|
3378
3378
|
model.from_json_string(json.dumps(args))
|
3379
3379
|
start_time = time.time()
|
3380
3380
|
while True:
|
3381
|
-
rsp = client.
|
3381
|
+
rsp = client.ModifyRejectedQuestion(model)
|
3382
3382
|
result = rsp.to_json_string()
|
3383
3383
|
try:
|
3384
3384
|
json_obj = json.loads(result)
|
@@ -5178,6 +5178,7 @@ MODELS_MAP = {
|
|
5178
5178
|
ACTION_MAP = {
|
5179
5179
|
"ListUnsatisfiedReply": doListUnsatisfiedReply,
|
5180
5180
|
"DeleteAttributeLabel": doDeleteAttributeLabel,
|
5181
|
+
"GetVarList": doGetVarList,
|
5181
5182
|
"DescribeKnowledgeUsagePieGraph": doDescribeKnowledgeUsagePieGraph,
|
5182
5183
|
"ModifyQAAttrRange": doModifyQAAttrRange,
|
5183
5184
|
"GetReconstructDocumentResult": doGetReconstructDocumentResult,
|
@@ -5218,7 +5219,6 @@ ACTION_MAP = {
|
|
5218
5219
|
"GroupDoc": doGroupDoc,
|
5219
5220
|
"ListApp": doListApp,
|
5220
5221
|
"DescribeTokenUsage": doDescribeTokenUsage,
|
5221
|
-
"QueryParseDocResult": doQueryParseDocResult,
|
5222
5222
|
"ListQACate": doListQACate,
|
5223
5223
|
"ListAppCategory": doListAppCategory,
|
5224
5224
|
"DescribeQA": doDescribeQA,
|
@@ -5231,6 +5231,7 @@ ACTION_MAP = {
|
|
5231
5231
|
"DescribeRobotBizIDByAppKey": doDescribeRobotBizIDByAppKey,
|
5232
5232
|
"ListDoc": doListDoc,
|
5233
5233
|
"ListQA": doListQA,
|
5234
|
+
"CreateVar": doCreateVar,
|
5234
5235
|
"GetLikeDataCount": doGetLikeDataCount,
|
5235
5236
|
"ModifyDocCate": doModifyDocCate,
|
5236
5237
|
"ExportQAList": doExportQAList,
|
@@ -5240,7 +5241,6 @@ ACTION_MAP = {
|
|
5240
5241
|
"GetDocPreview": doGetDocPreview,
|
5241
5242
|
"DescribeConcurrencyUsage": doDescribeConcurrencyUsage,
|
5242
5243
|
"ModifyRejectedQuestion": doModifyRejectedQuestion,
|
5243
|
-
"ParseDoc": doParseDoc,
|
5244
5244
|
"IsTransferIntent": doIsTransferIntent,
|
5245
5245
|
"DescribeReleaseInfo": doDescribeReleaseInfo,
|
5246
5246
|
"ListRelease": doListRelease,
|