tccli 3.0.845.1__py2.py3-none-any.whl → 3.0.847.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/billing/v20180709/api.json +18 -62
- tccli/services/billing/v20180709/examples.json +8 -8
- tccli/services/cat/v20180409/api.json +0 -28
- tccli/services/cat/v20180409/examples.json +7 -7
- tccli/services/ccc/v20200210/api.json +16 -7
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +71 -50
- tccli/services/cdb/v20170320/examples.json +4 -4
- tccli/services/cdn/v20180606/api.json +1 -11
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +8 -5
- tccli/services/ckafka/v20190819/examples.json +3 -3
- tccli/services/cls/v20201016/api.json +44 -33
- tccli/services/cls/v20201016/examples.json +3 -3
- tccli/services/cvm/v20170312/api.json +2 -4
- tccli/services/dbbrain/v20210527/api.json +36 -30
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +812 -157
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/dlc/v20210125/api.json +9 -0
- tccli/services/emr/v20190103/api.json +9 -29
- tccli/services/ess/ess_client.py +273 -8
- tccli/services/ess/v20201111/api.json +639 -89
- tccli/services/ess/v20201111/examples.json +58 -6
- tccli/services/essbasic/essbasic_client.py +159 -0
- tccli/services/essbasic/v20210526/api.json +287 -3
- tccli/services/essbasic/v20210526/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +25 -33
- tccli/services/iotexplorer/v20190423/examples.json +9 -9
- tccli/services/mariadb/mariadb_client.py +53 -0
- tccli/services/mariadb/v20170312/api.json +520 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +10 -11
- tccli/services/monitor/v20180724/examples.json +5 -5
- tccli/services/mps/v20190612/api.json +2 -7
- tccli/services/ocr/v20181119/api.json +73 -89
- tccli/services/ocr/v20181119/examples.json +23 -23
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +214 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +40 -7
- tccli/services/tcss/v20201101/examples.json +3 -3
- tccli/services/tdid/v20210519/api.json +68 -68
- tccli/services/tiw/tiw_client.py +1403 -78
- tccli/services/tiw/v20190919/api.json +2439 -461
- tccli/services/tiw/v20190919/examples.json +200 -0
- tccli/services/trtc/v20190722/api.json +41 -29
- tccli/services/trtc/v20190722/examples.json +10 -10
- tccli/services/vpc/v20170312/api.json +15 -27
- tccli/services/vpc/v20170312/examples.json +6 -6
- tccli/services/waf/v20180125/api.json +50 -6
- tccli/services/waf/v20180125/examples.json +2 -2
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/METADATA +2 -2
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/RECORD +59 -59
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/top_level.txt +0 -0
@@ -4024,7 +4024,6 @@
|
|
4024
4024
|
"document": "实例配置。",
|
4025
4025
|
"members": [
|
4026
4026
|
{
|
4027
|
-
"default": "",
|
4028
4027
|
"document": "数据库巡检开关, Yes/No。",
|
4029
4028
|
"example": "Yes",
|
4030
4029
|
"member": "string",
|
@@ -4034,7 +4033,6 @@
|
|
4034
4033
|
"value_allowed_null": false
|
4035
4034
|
},
|
4036
4035
|
{
|
4037
|
-
"default": "",
|
4038
4036
|
"document": "实例概览开关,Yes/No。",
|
4039
4037
|
"example": "Yes",
|
4040
4038
|
"member": "string",
|
@@ -4042,6 +4040,15 @@
|
|
4042
4040
|
"required": false,
|
4043
4041
|
"type": "string",
|
4044
4042
|
"value_allowed_null": false
|
4043
|
+
},
|
4044
|
+
{
|
4045
|
+
"document": "redis大key分析的自定义分割符,仅redis使用\n注意:此字段可能返回 null,表示取不到有效值。",
|
4046
|
+
"example": "无",
|
4047
|
+
"member": "string",
|
4048
|
+
"name": "KeyDelimiters",
|
4049
|
+
"required": false,
|
4050
|
+
"type": "list",
|
4051
|
+
"value_allowed_null": true
|
4045
4052
|
}
|
4046
4053
|
],
|
4047
4054
|
"usage": "both"
|
@@ -4050,7 +4057,6 @@
|
|
4050
4057
|
"document": "查询实例列表,返回实例的相关信息的对象。",
|
4051
4058
|
"members": [
|
4052
4059
|
{
|
4053
|
-
"default": "",
|
4054
4060
|
"document": "实例ID。",
|
4055
4061
|
"example": "cdb-test",
|
4056
4062
|
"member": "string",
|
@@ -4060,7 +4066,6 @@
|
|
4060
4066
|
"value_allowed_null": false
|
4061
4067
|
},
|
4062
4068
|
{
|
4063
|
-
"default": "",
|
4064
4069
|
"document": "实例名称。",
|
4065
4070
|
"example": "cdb-测试",
|
4066
4071
|
"member": "string",
|
@@ -4070,7 +4075,6 @@
|
|
4070
4075
|
"value_allowed_null": false
|
4071
4076
|
},
|
4072
4077
|
{
|
4073
|
-
"default": "",
|
4074
4078
|
"document": "实例所属地域。",
|
4075
4079
|
"example": "ap-guangzhou",
|
4076
4080
|
"member": "string",
|
@@ -4080,7 +4084,6 @@
|
|
4080
4084
|
"value_allowed_null": false
|
4081
4085
|
},
|
4082
4086
|
{
|
4083
|
-
"default": "",
|
4084
4087
|
"document": "健康得分。",
|
4085
4088
|
"example": "100",
|
4086
4089
|
"member": "int64",
|
@@ -4090,7 +4093,6 @@
|
|
4090
4093
|
"value_allowed_null": false
|
4091
4094
|
},
|
4092
4095
|
{
|
4093
|
-
"default": "",
|
4094
4096
|
"document": "所属产品。",
|
4095
4097
|
"example": "MySql",
|
4096
4098
|
"member": "string",
|
@@ -4100,7 +4102,6 @@
|
|
4100
4102
|
"value_allowed_null": false
|
4101
4103
|
},
|
4102
4104
|
{
|
4103
|
-
"default": "",
|
4104
4105
|
"document": "异常事件数量。",
|
4105
4106
|
"example": "0",
|
4106
4107
|
"member": "int64",
|
@@ -4110,7 +4111,6 @@
|
|
4110
4111
|
"value_allowed_null": false
|
4111
4112
|
},
|
4112
4113
|
{
|
4113
|
-
"default": "",
|
4114
4114
|
"document": "实例类型:1:MASTER;2:DR,3:RO,4:SDR。",
|
4115
4115
|
"example": "1",
|
4116
4116
|
"member": "int64",
|
@@ -4120,7 +4120,6 @@
|
|
4120
4120
|
"value_allowed_null": false
|
4121
4121
|
},
|
4122
4122
|
{
|
4123
|
-
"default": "",
|
4124
4123
|
"document": "核心数。",
|
4125
4124
|
"example": "1",
|
4126
4125
|
"member": "int64",
|
@@ -4130,7 +4129,6 @@
|
|
4130
4129
|
"value_allowed_null": false
|
4131
4130
|
},
|
4132
4131
|
{
|
4133
|
-
"default": "",
|
4134
4132
|
"document": "内存,单位MB。",
|
4135
4133
|
"example": "4000",
|
4136
4134
|
"member": "int64",
|
@@ -4140,7 +4138,6 @@
|
|
4140
4138
|
"value_allowed_null": false
|
4141
4139
|
},
|
4142
4140
|
{
|
4143
|
-
"default": "",
|
4144
4141
|
"document": "硬盘存储,单位GB。",
|
4145
4142
|
"example": "50",
|
4146
4143
|
"member": "int64",
|
@@ -4150,7 +4147,6 @@
|
|
4150
4147
|
"value_allowed_null": false
|
4151
4148
|
},
|
4152
4149
|
{
|
4153
|
-
"default": "",
|
4154
4150
|
"document": "数据库版本。",
|
4155
4151
|
"example": "5.6",
|
4156
4152
|
"member": "string",
|
@@ -4160,7 +4156,6 @@
|
|
4160
4156
|
"value_allowed_null": false
|
4161
4157
|
},
|
4162
4158
|
{
|
4163
|
-
"default": "",
|
4164
4159
|
"document": "内网地址。",
|
4165
4160
|
"example": "127.0.0.1",
|
4166
4161
|
"member": "string",
|
@@ -4170,7 +4165,6 @@
|
|
4170
4165
|
"value_allowed_null": false
|
4171
4166
|
},
|
4172
4167
|
{
|
4173
|
-
"default": "",
|
4174
4168
|
"document": "内网端口。",
|
4175
4169
|
"example": "3306",
|
4176
4170
|
"member": "int64",
|
@@ -4180,7 +4174,6 @@
|
|
4180
4174
|
"value_allowed_null": false
|
4181
4175
|
},
|
4182
4176
|
{
|
4183
|
-
"default": "",
|
4184
4177
|
"document": "接入来源。",
|
4185
4178
|
"example": "TENCENT_CLOUD",
|
4186
4179
|
"member": "string",
|
@@ -4190,7 +4183,6 @@
|
|
4190
4183
|
"value_allowed_null": false
|
4191
4184
|
},
|
4192
4185
|
{
|
4193
|
-
"default": "",
|
4194
4186
|
"document": "分组ID。",
|
4195
4187
|
"example": "test-group",
|
4196
4188
|
"member": "string",
|
@@ -4200,7 +4192,6 @@
|
|
4200
4192
|
"value_allowed_null": false
|
4201
4193
|
},
|
4202
4194
|
{
|
4203
|
-
"default": "",
|
4204
4195
|
"document": "分组组名。",
|
4205
4196
|
"example": "test-group-name",
|
4206
4197
|
"member": "string",
|
@@ -4210,7 +4201,6 @@
|
|
4210
4201
|
"value_allowed_null": false
|
4211
4202
|
},
|
4212
4203
|
{
|
4213
|
-
"default": "",
|
4214
4204
|
"document": "实例状态:0:发货中;1:运行正常;4:销毁中;5:隔离中。",
|
4215
4205
|
"example": "1",
|
4216
4206
|
"member": "int64",
|
@@ -4220,7 +4210,6 @@
|
|
4220
4210
|
"value_allowed_null": false
|
4221
4211
|
},
|
4222
4212
|
{
|
4223
|
-
"default": "",
|
4224
4213
|
"document": "子网统一ID。",
|
4225
4214
|
"example": "subnet-igztest",
|
4226
4215
|
"member": "string",
|
@@ -4230,7 +4219,6 @@
|
|
4230
4219
|
"value_allowed_null": false
|
4231
4220
|
},
|
4232
4221
|
{
|
4233
|
-
"default": "",
|
4234
4222
|
"document": "cdb类型。",
|
4235
4223
|
"example": "CUSTOM",
|
4236
4224
|
"member": "string",
|
@@ -4240,7 +4228,6 @@
|
|
4240
4228
|
"value_allowed_null": false
|
4241
4229
|
},
|
4242
4230
|
{
|
4243
|
-
"default": "",
|
4244
4231
|
"document": "cdb实例初始化标志:0:未初始化;1:已初始化。",
|
4245
4232
|
"example": "1",
|
4246
4233
|
"member": "int64",
|
@@ -4250,7 +4237,6 @@
|
|
4250
4237
|
"value_allowed_null": false
|
4251
4238
|
},
|
4252
4239
|
{
|
4253
|
-
"default": "",
|
4254
4240
|
"document": "任务状态。",
|
4255
4241
|
"example": "0",
|
4256
4242
|
"member": "int64",
|
@@ -4260,7 +4246,6 @@
|
|
4260
4246
|
"value_allowed_null": false
|
4261
4247
|
},
|
4262
4248
|
{
|
4263
|
-
"default": "",
|
4264
4249
|
"document": "私有网络统一ID。",
|
4265
4250
|
"example": "vpc-fstest",
|
4266
4251
|
"member": "string",
|
@@ -4270,7 +4255,6 @@
|
|
4270
4255
|
"value_allowed_null": false
|
4271
4256
|
},
|
4272
4257
|
{
|
4273
|
-
"default": "",
|
4274
4258
|
"document": "实例巡检/概览的状态。",
|
4275
4259
|
"example": "-",
|
4276
4260
|
"member": "InstanceConfs",
|
@@ -4280,7 +4264,6 @@
|
|
4280
4264
|
"value_allowed_null": false
|
4281
4265
|
},
|
4282
4266
|
{
|
4283
|
-
"default": "",
|
4284
4267
|
"document": "资源到期时间。",
|
4285
4268
|
"example": "2021-02-25 16:33:26",
|
4286
4269
|
"member": "datetime",
|
@@ -4290,7 +4273,6 @@
|
|
4290
4273
|
"value_allowed_null": false
|
4291
4274
|
},
|
4292
4275
|
{
|
4293
|
-
"default": "",
|
4294
4276
|
"document": "是否是DBbrain支持的实例。",
|
4295
4277
|
"example": "true",
|
4296
4278
|
"member": "bool",
|
@@ -4300,7 +4282,6 @@
|
|
4300
4282
|
"value_allowed_null": false
|
4301
4283
|
},
|
4302
4284
|
{
|
4303
|
-
"default": "",
|
4304
4285
|
"document": "实例安全审计日志开启状态:ON: 安全审计开启;OFF: 未开启安全审计。",
|
4305
4286
|
"example": "OFF",
|
4306
4287
|
"member": "string",
|
@@ -4310,7 +4291,6 @@
|
|
4310
4291
|
"value_allowed_null": false
|
4311
4292
|
},
|
4312
4293
|
{
|
4313
|
-
"default": "",
|
4314
4294
|
"document": "实例审计日志开启状态,ALL_AUDIT: 开启全审计;RULE_AUDIT: 开启规则审计;UNBOUND: 未开启审计。",
|
4315
4295
|
"example": "UNBOUND",
|
4316
4296
|
"member": "string",
|
@@ -4320,7 +4300,6 @@
|
|
4320
4300
|
"value_allowed_null": false
|
4321
4301
|
},
|
4322
4302
|
{
|
4323
|
-
"default": "",
|
4324
4303
|
"document": "实例审计日志运行状态:normal: 运行中; paused: 欠费暂停。",
|
4325
4304
|
"example": "normal",
|
4326
4305
|
"member": "string",
|
@@ -4328,6 +4307,33 @@
|
|
4328
4307
|
"required": true,
|
4329
4308
|
"type": "string",
|
4330
4309
|
"value_allowed_null": false
|
4310
|
+
},
|
4311
|
+
{
|
4312
|
+
"document": "内网vip\n注意:此字段可能返回 null,表示取不到有效值。",
|
4313
|
+
"example": "无",
|
4314
|
+
"member": "string",
|
4315
|
+
"name": "InternalVip",
|
4316
|
+
"required": false,
|
4317
|
+
"type": "string",
|
4318
|
+
"value_allowed_null": true
|
4319
|
+
},
|
4320
|
+
{
|
4321
|
+
"document": "内网port\n注意:此字段可能返回 null,表示取不到有效值。",
|
4322
|
+
"example": "无",
|
4323
|
+
"member": "int64",
|
4324
|
+
"name": "InternalVport",
|
4325
|
+
"required": false,
|
4326
|
+
"type": "int",
|
4327
|
+
"value_allowed_null": true
|
4328
|
+
},
|
4329
|
+
{
|
4330
|
+
"document": "创建时间",
|
4331
|
+
"example": "无",
|
4332
|
+
"member": "string",
|
4333
|
+
"name": "CreateTime",
|
4334
|
+
"required": false,
|
4335
|
+
"type": "string",
|
4336
|
+
"value_allowed_null": false
|
4331
4337
|
}
|
4332
4338
|
],
|
4333
4339
|
"usage": "out"
|
@@ -2981,6 +2981,58 @@ def doInitDCDBInstances(args, parsed_globals):
|
|
2981
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
2982
|
|
2983
2983
|
|
2984
|
+
def doDescribeDCDBInstanceDetail(args, parsed_globals):
|
2985
|
+
g_param = parse_global_arg(parsed_globals)
|
2986
|
+
|
2987
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2988
|
+
cred = credential.CVMRoleCredential()
|
2989
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2990
|
+
cred = credential.STSAssumeRoleCredential(
|
2991
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2992
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
2993
|
+
)
|
2994
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2995
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2996
|
+
else:
|
2997
|
+
cred = credential.Credential(
|
2998
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2999
|
+
)
|
3000
|
+
http_profile = HttpProfile(
|
3001
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3002
|
+
reqMethod="POST",
|
3003
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3004
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3005
|
+
)
|
3006
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3007
|
+
if g_param[OptionsDefine.Language]:
|
3008
|
+
profile.language = g_param[OptionsDefine.Language]
|
3009
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3010
|
+
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3012
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
+
model = models.DescribeDCDBInstanceDetailRequest()
|
3014
|
+
model.from_json_string(json.dumps(args))
|
3015
|
+
start_time = time.time()
|
3016
|
+
while True:
|
3017
|
+
rsp = client.DescribeDCDBInstanceDetail(model)
|
3018
|
+
result = rsp.to_json_string()
|
3019
|
+
try:
|
3020
|
+
json_obj = json.loads(result)
|
3021
|
+
except TypeError as e:
|
3022
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3023
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3024
|
+
break
|
3025
|
+
cur_time = time.time()
|
3026
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3027
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3028
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3029
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3030
|
+
else:
|
3031
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3032
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3033
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
|
+
|
3035
|
+
|
2984
3036
|
def doCreateAccount(args, parsed_globals):
|
2985
3037
|
g_param = parse_global_arg(parsed_globals)
|
2986
3038
|
|
@@ -3413,6 +3465,7 @@ ACTION_MAP = {
|
|
3413
3465
|
"CancelDcnJob": doCancelDcnJob,
|
3414
3466
|
"TerminateDedicatedDBInstance": doTerminateDedicatedDBInstance,
|
3415
3467
|
"InitDCDBInstances": doInitDCDBInstances,
|
3468
|
+
"DescribeDCDBInstanceDetail": doDescribeDCDBInstanceDetail,
|
3416
3469
|
"CreateAccount": doCreateAccount,
|
3417
3470
|
"ModifyDBInstanceName": doModifyDBInstanceName,
|
3418
3471
|
"CreateHourDCDBInstance": doCreateHourDCDBInstance,
|