tccli 3.0.1125.1__py2.py3-none-any.whl → 3.0.1127.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/billing/v20180709/api.json +2 -2
- tccli/services/cam/cam_client.py +110 -57
- tccli/services/cam/v20190116/api.json +128 -0
- tccli/services/cam/v20190116/examples.json +8 -0
- tccli/services/cat/v20180409/api.json +10 -0
- tccli/services/cds/v20180420/api.json +2 -2
- tccli/services/cls/v20201016/api.json +19 -0
- tccli/services/domain/v20180808/api.json +702 -40
- tccli/services/domain/v20180808/examples.json +13 -13
- tccli/services/emr/v20190103/api.json +20 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +31 -23
- tccli/services/iotexplorer/v20190423/examples.json +4 -4
- tccli/services/mongodb/mongodb_client.py +212 -0
- tccli/services/mongodb/v20190725/api.json +322 -0
- tccli/services/mongodb/v20190725/examples.json +32 -0
- tccli/services/monitor/v20180724/api.json +1 -0
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/postgres/v20170312/api.json +11 -11
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +151 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/teo/teo_client.py +216 -4
- tccli/services/teo/v20220901/api.json +375 -0
- tccli/services/teo/v20220901/examples.json +32 -0
- tccli/services/tmt/v20180321/api.json +5 -4
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tse/tse_client.py +53 -0
- tccli/services/tse/v20201207/api.json +43 -0
- tccli/services/tse/v20201207/examples.json +8 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/RECORD +36 -36
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/license_files/LICENSE +0 -0
@@ -91,7 +91,7 @@
|
|
91
91
|
"DeleteBidding": [
|
92
92
|
{
|
93
93
|
"document": "删除记录",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteBidding\n<公共请求参数>\n\n{}",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteBidding\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
|
95
95
|
"output": "{\n \"Response\": {\n \"RequestId\": \"e5ae6a11-ad75-4196-8176-9d72bc287eda\"\n }\n}",
|
96
96
|
"title": "删除记录"
|
97
97
|
}
|
@@ -155,48 +155,48 @@
|
|
155
155
|
"DescribeBiddingAppointDetail": [
|
156
156
|
{
|
157
157
|
"document": "我预定的域名-预约详情",
|
158
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointDetail\n<公共请求参数>\n\n{}",
|
159
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e0d60073-3fbb-4216-ba20-7ccad80d030a\",\n \"Status\": 7\n }\n}",
|
158
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
|
159
|
+
"output": "{\n \"Response\": {\n \"AppointBondPrice\": 70,\n \"AppointEndTime\": \"2023-10-28 09:53:48\",\n \"AppointNum\": 1,\n \"AppointPrice\": 105,\n \"AppointStartTime\": \"2023-10-18 09:53:48\",\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"e0d60073-3fbb-4216-ba20-7ccad80d030a\",\n \"Status\": 7\n }\n}",
|
160
160
|
"title": "我预定的域名-预约详情"
|
161
161
|
}
|
162
162
|
],
|
163
163
|
"DescribeBiddingAppointList": [
|
164
164
|
{
|
165
165
|
"document": "我的预约列表",
|
166
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointList\n<公共请求参数>\n\n{\n \"PageSize\": 20\n}",
|
167
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"02f51803-507c-40ad-b26a-9a0178fa7ffc\"\n }\n}",
|
166
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingAppointList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 20\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"AppointList\": [\n {\n \"AppointBondPrice\": 70,\n \"AppointEndTime\": \"2023-10-28T09:53:48+08:00\",\n \"AppointNum\": 1,\n \"AppointPrice\": 105,\n \"BusinessID\": \"xxxx\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 1\n }\n ],\n \"RequestId\": \"02f51803-507c-40ad-b26a-9a0178fa7ffc\",\n \"Total\": 1\n }\n}",
|
168
168
|
"title": "我的预约列表"
|
169
169
|
}
|
170
170
|
],
|
171
171
|
"DescribeBiddingDetail": [
|
172
172
|
{
|
173
173
|
"document": "我竞价的域名-竞价详情",
|
174
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingDetail\n<公共请求参数>\n\n{}",
|
175
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5fdc5b55-514b-42f8-85a3-e269db61f752\"\n }\n}",
|
174
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
|
175
|
+
"output": "{\n \"Response\": {\n \"BiddingBondPrice\": 80,\n \"BiddingBondRefund\": \"no\",\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 1,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 150,\n \"BiddingStartTime\": \"2023-10-28 09:53:48\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"5fdc5b55-514b-42f8-85a3-e269db61f752\",\n \"Status\": 2\n }\n}",
|
176
176
|
"title": "我竞价的域名-竞价详情"
|
177
177
|
}
|
178
178
|
],
|
179
179
|
"DescribeBiddingList": [
|
180
180
|
{
|
181
181
|
"document": "我的竞价列表",
|
182
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingList\n<公共请求参数>\n\n{\n \"PageSize\": 20\n}",
|
183
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"560e00d9-ddf1-4d4b-a3d8-461eb8c8e40c\"\n }\n}",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 20\n}",
|
183
|
+
"output": "{\n \"Response\": {\n \"BiddingList\": [\n {\n \"BiddingBondPrice\": 0,\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 0,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 0,\n \"BusinessID\": \"xxxx\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 7\n },\n {\n \"BiddingBondPrice\": 80,\n \"BiddingEndTime\": \"2023-11-04 09:53:48\",\n \"BiddingFlag\": 1,\n \"BiddingNum\": 1,\n \"BiddingPrice\": 150,\n \"BusinessID\": \"xxxx\",\n \"CurrentNickname\": \"feng\",\n \"CurrentPrice\": 120,\n \"Domain\": \"sasdfzcccc2216.com\",\n \"Status\": 2\n }\n ],\n \"RequestId\": \"560e00d9-ddf1-4d4b-a3d8-461eb8c8e40c\",\n \"Total\": 2\n }\n}",
|
184
184
|
"title": "我的竞价列表"
|
185
185
|
}
|
186
186
|
],
|
187
187
|
"DescribeBiddingSuccessfulDetail": [
|
188
188
|
{
|
189
189
|
"document": "我得标的域名-得标详情",
|
190
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulDetail\n<公共请求参数>\n\n{}",
|
191
|
-
"output": "{\n \"Response\": {\n \"BiddingBondRefund\": \"no\",\n \"RequestId\": \"7a179528-6d80-495b-8e6c-14b935eccec9\",\n \"Status\": 5\n }\n}",
|
190
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulDetail\n<公共请求参数>\n\n{\n \"BusinessID\": \"xxxx\"\n}",
|
191
|
+
"output": "{\n \"Response\": {\n \"BiddingBondPrice\": 80,\n \"BiddingBondRefund\": \"no\",\n \"DeleteTime\": \"2023-11-28 09:53:48\",\n \"Domain\": \"sasdfzcccc2216.com\",\n \"ExpireTime\": \"2023-09-28 09:53:48\",\n \"PayEndTime\": \"2023-11-07 09:53:48\",\n \"RegTime\": \"2022-09-28 09:53:48\",\n \"RequestId\": \"7a179528-6d80-495b-8e6c-14b935eccec9\",\n \"Status\": 5,\n \"SuccessfulPrice\": 200,\n \"SuccessfulTime\": \"2023-10-25 16:00:00\"\n }\n}",
|
192
192
|
"title": "我得标的域名-得标详情"
|
193
193
|
}
|
194
194
|
],
|
195
195
|
"DescribeBiddingSuccessfulList": [
|
196
196
|
{
|
197
197
|
"document": "我得标的域名",
|
198
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulList\n<公共请求参数>\n\n{\n \"PageSize\": 10\n}",
|
199
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"340187d9-be66-43e7-a837-80049dad20ec\"\n }\n}",
|
198
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBiddingSuccessfulList\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
|
199
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"340187d9-be66-43e7-a837-80049dad20ec\",\n \"SuccessfulList\": [\n {}\n ],\n \"Total\": 1\n }\n}",
|
200
200
|
"title": "我得标的域名"
|
201
201
|
}
|
202
202
|
],
|
@@ -10082,6 +10082,16 @@
|
|
10082
10082
|
"type": "int",
|
10083
10083
|
"value_allowed_null": true
|
10084
10084
|
},
|
10085
|
+
{
|
10086
|
+
"disabled": false,
|
10087
|
+
"document": "查询流程状态,流程额外信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
10088
|
+
"example": "无",
|
10089
|
+
"member": "string",
|
10090
|
+
"name": "TraceId",
|
10091
|
+
"output_required": false,
|
10092
|
+
"type": "string",
|
10093
|
+
"value_allowed_null": true
|
10094
|
+
},
|
10085
10095
|
{
|
10086
10096
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10087
10097
|
"member": "string",
|
@@ -10402,6 +10412,16 @@
|
|
10402
10412
|
"type": "string",
|
10403
10413
|
"value_allowed_null": true
|
10404
10414
|
},
|
10415
|
+
{
|
10416
|
+
"disabled": false,
|
10417
|
+
"document": "扩容TraceId\n注意:此字段可能返回 null,表示取不到有效值。",
|
10418
|
+
"example": "\"\"",
|
10419
|
+
"member": "string",
|
10420
|
+
"name": "TraceId",
|
10421
|
+
"output_required": false,
|
10422
|
+
"type": "string",
|
10423
|
+
"value_allowed_null": true
|
10424
|
+
},
|
10405
10425
|
{
|
10406
10426
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10407
10427
|
"member": "string",
|
@@ -337,7 +337,7 @@
|
|
337
337
|
"status": "online"
|
338
338
|
},
|
339
339
|
"CreateConsoleLoginUrl": {
|
340
|
-
"document": "此接口(CreateConsoleLoginUrl)用于创建第三方平台子客企业控制台Web/移动登录链接。支持web控制台、电子签小程序和H5链接。登录链接是进入子客web企业控制台的唯一入口。\n\nWeb链接访问后,会根据子客企业(**Agent中ProxyOrganizationOpenId表示**)和员工(**Agent中OpenId表示**)的状态,进入不同的流程,主要情况分类如下:\n<table>\n<thead>\n<tr>\n<th>子客企业状态</th>\n<th>子客企业员工状态</th>\n<th>点击链接进入的流程</th>\n
|
340
|
+
"document": "此接口(CreateConsoleLoginUrl)用于创建第三方平台子客企业控制台Web/移动登录链接。支持web控制台、电子签小程序和H5链接。登录链接是进入子客web企业控制台的唯一入口。\n\nWeb链接访问后,会根据子客企业(**Agent中ProxyOrganizationOpenId表示**)和员工(**Agent中OpenId表示**)的状态,进入不同的流程,主要情况分类如下:\n<table>\n<thead>\n<tr>\n<th>子客企业状态</th>\n<th>子客企业员工状态</th>\n<th>点击链接进入的流程</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>企业未激活</td>\n<td>员工未认证</td>\n<td>进入企业激活流程,首次完成企业激活流程的员工会成为超管</td>\n</tr>\n<tr>\n<td>企业已激活</td>\n<td>员工未认证</td>\n<td>进入员认证并加入企业流程</td>\n</tr>\n<tr>\n<td>企业已激活</td>\n<td>员工已认证</td>\n<td>进入子客企业Web控制台</td>\n</tr>\n</tbody>\n</table>\n如果是企业激活流程,需要注意如下情况:\n\n1. 若在激活过程中,**更换用户OpenID重新生成链接,之前的认证会被清理**。因此不要在企业认证过程生成多个链接给多人同时操作,会导致认证过程互相影响。\n2. 若您认证中发现信息有误需要重新认证,**可通过更换用户OpenID重新生成链接的方式,来清理掉已有的流程**。\n\n系统的渠道企业, 应用, 子客企业, 子客员工的组织形式\n\n\n\n<font color=\"red\">相关视频指引</font> <br>\n1. <a href=\"https://dyn.ess.tencent.cn/guide/apivideo/essbasic-createconsoleloginin.mp4\" target=\"_blank\">【生成子客登录链接】代码编写 & 子企业认证示例</a><br>",
|
341
341
|
"input": "CreateConsoleLoginUrlRequest",
|
342
342
|
"name": "生成子客登录链接",
|
343
343
|
"output": "CreateConsoleLoginUrlResponse",
|
@@ -638,7 +638,7 @@
|
|
638
638
|
"status": "online"
|
639
639
|
},
|
640
640
|
"GetDeviceSumStatistics": {
|
641
|
-
"document": "拉取设备统计汇总数据
|
641
|
+
"document": "拉取设备统计汇总数据",
|
642
642
|
"input": "GetDeviceSumStatisticsRequest",
|
643
643
|
"name": "拉取设备统计汇总数据",
|
644
644
|
"output": "GetDeviceSumStatisticsResponse",
|
@@ -6054,7 +6054,7 @@
|
|
6054
6054
|
"example": "无",
|
6055
6055
|
"member": "BindProductInfo",
|
6056
6056
|
"name": "Products",
|
6057
|
-
"
|
6057
|
+
"output_required": true,
|
6058
6058
|
"type": "list",
|
6059
6059
|
"value_allowed_null": false
|
6060
6060
|
},
|
@@ -6064,7 +6064,7 @@
|
|
6064
6064
|
"example": "1",
|
6065
6065
|
"member": "uint64",
|
6066
6066
|
"name": "Total",
|
6067
|
-
"
|
6067
|
+
"output_required": true,
|
6068
6068
|
"type": "int",
|
6069
6069
|
"value_allowed_null": false
|
6070
6070
|
},
|
@@ -8288,7 +8288,7 @@
|
|
8288
8288
|
{
|
8289
8289
|
"disabled": false,
|
8290
8290
|
"document": "项目id",
|
8291
|
-
"example": "",
|
8291
|
+
"example": "pro-d1",
|
8292
8292
|
"member": "string",
|
8293
8293
|
"name": "ProjectId",
|
8294
8294
|
"required": true,
|
@@ -8297,7 +8297,7 @@
|
|
8297
8297
|
{
|
8298
8298
|
"disabled": false,
|
8299
8299
|
"document": "产品id列表,长度为0则拉取项目内全部产品",
|
8300
|
-
"example": "",
|
8300
|
+
"example": "无",
|
8301
8301
|
"member": "string",
|
8302
8302
|
"name": "ProductIds",
|
8303
8303
|
"required": false,
|
@@ -8312,72 +8312,80 @@
|
|
8312
8312
|
{
|
8313
8313
|
"disabled": false,
|
8314
8314
|
"document": "激活设备总数",
|
8315
|
-
"example": "",
|
8315
|
+
"example": "100",
|
8316
8316
|
"member": "int64",
|
8317
8317
|
"name": "ActivationCount",
|
8318
|
+
"output_required": true,
|
8318
8319
|
"type": "int",
|
8319
8320
|
"value_allowed_null": false
|
8320
8321
|
},
|
8321
8322
|
{
|
8322
8323
|
"disabled": false,
|
8323
8324
|
"document": "在线设备总数",
|
8324
|
-
"example": "",
|
8325
|
+
"example": "100",
|
8325
8326
|
"member": "int64",
|
8326
8327
|
"name": "OnlineCount",
|
8328
|
+
"output_required": true,
|
8327
8329
|
"type": "int",
|
8328
8330
|
"value_allowed_null": false
|
8329
8331
|
},
|
8330
8332
|
{
|
8331
8333
|
"disabled": false,
|
8332
8334
|
"document": "前一天激活设备数",
|
8333
|
-
"example": "",
|
8335
|
+
"example": "100",
|
8334
8336
|
"member": "int64",
|
8335
8337
|
"name": "ActivationBeforeDay",
|
8338
|
+
"output_required": true,
|
8336
8339
|
"type": "int",
|
8337
8340
|
"value_allowed_null": false
|
8338
8341
|
},
|
8339
8342
|
{
|
8340
8343
|
"disabled": false,
|
8341
8344
|
"document": "前一天活跃设备数",
|
8342
|
-
"example": "",
|
8345
|
+
"example": "100",
|
8343
8346
|
"member": "int64",
|
8344
8347
|
"name": "ActiveBeforeDay",
|
8348
|
+
"output_required": true,
|
8345
8349
|
"type": "int",
|
8346
8350
|
"value_allowed_null": false
|
8347
8351
|
},
|
8348
8352
|
{
|
8349
8353
|
"disabled": false,
|
8350
8354
|
"document": "前一周激活设备数",
|
8351
|
-
"example": "",
|
8355
|
+
"example": "1",
|
8352
8356
|
"member": "int64",
|
8353
8357
|
"name": "ActivationWeekDayCount",
|
8358
|
+
"output_required": true,
|
8354
8359
|
"type": "int",
|
8355
8360
|
"value_allowed_null": false
|
8356
8361
|
},
|
8357
8362
|
{
|
8358
8363
|
"disabled": false,
|
8359
8364
|
"document": "前一周活跃设备数",
|
8360
|
-
"example": "",
|
8365
|
+
"example": "1",
|
8361
8366
|
"member": "int64",
|
8362
8367
|
"name": "ActiveWeekDayCount",
|
8368
|
+
"output_required": true,
|
8363
8369
|
"type": "int",
|
8364
8370
|
"value_allowed_null": false
|
8365
8371
|
},
|
8366
8372
|
{
|
8367
8373
|
"disabled": false,
|
8368
8374
|
"document": "上一周激活设备数",
|
8369
|
-
"example": "",
|
8375
|
+
"example": "1",
|
8370
8376
|
"member": "int64",
|
8371
8377
|
"name": "ActivationBeforeWeekDayCount",
|
8378
|
+
"output_required": true,
|
8372
8379
|
"type": "int",
|
8373
8380
|
"value_allowed_null": false
|
8374
8381
|
},
|
8375
8382
|
{
|
8376
8383
|
"disabled": false,
|
8377
8384
|
"document": "上一周活跃设备数",
|
8378
|
-
"example": "",
|
8385
|
+
"example": "1",
|
8379
8386
|
"member": "int64",
|
8380
8387
|
"name": "ActiveBeforeWeekDayCount",
|
8388
|
+
"output_required": true,
|
8381
8389
|
"type": "int",
|
8382
8390
|
"value_allowed_null": false
|
8383
8391
|
},
|
@@ -8616,7 +8624,7 @@
|
|
8616
8624
|
"example": "无",
|
8617
8625
|
"member": "PositionSpaceInfo",
|
8618
8626
|
"name": "List",
|
8619
|
-
"
|
8627
|
+
"output_required": true,
|
8620
8628
|
"type": "list",
|
8621
8629
|
"value_allowed_null": true
|
8622
8630
|
},
|
@@ -8626,7 +8634,7 @@
|
|
8626
8634
|
"example": "1",
|
8627
8635
|
"member": "int64",
|
8628
8636
|
"name": "Total",
|
8629
|
-
"
|
8637
|
+
"output_required": true,
|
8630
8638
|
"type": "int",
|
8631
8639
|
"value_allowed_null": true
|
8632
8640
|
},
|
@@ -12560,40 +12568,40 @@
|
|
12560
12568
|
{
|
12561
12569
|
"disabled": false,
|
12562
12570
|
"document": "规则名称",
|
12563
|
-
"example": "",
|
12571
|
+
"example": "无",
|
12564
12572
|
"member": "string",
|
12565
12573
|
"name": "RuleName",
|
12566
|
-
"
|
12574
|
+
"output_required": true,
|
12567
12575
|
"type": "string",
|
12568
12576
|
"value_allowed_null": false
|
12569
12577
|
},
|
12570
12578
|
{
|
12571
12579
|
"disabled": false,
|
12572
12580
|
"document": "规则描述",
|
12573
|
-
"example": "",
|
12581
|
+
"example": "无",
|
12574
12582
|
"member": "string",
|
12575
12583
|
"name": "Description",
|
12576
|
-
"
|
12584
|
+
"output_required": true,
|
12577
12585
|
"type": "string",
|
12578
12586
|
"value_allowed_null": false
|
12579
12587
|
},
|
12580
12588
|
{
|
12581
12589
|
"disabled": false,
|
12582
12590
|
"document": "创建时间",
|
12583
|
-
"example": "",
|
12591
|
+
"example": "无",
|
12584
12592
|
"member": "int64",
|
12585
12593
|
"name": "CreatedAt",
|
12586
|
-
"
|
12594
|
+
"output_required": true,
|
12587
12595
|
"type": "int",
|
12588
12596
|
"value_allowed_null": false
|
12589
12597
|
},
|
12590
12598
|
{
|
12591
12599
|
"disabled": false,
|
12592
12600
|
"document": "规则是否禁用",
|
12593
|
-
"example": "",
|
12601
|
+
"example": "无",
|
12594
12602
|
"member": "bool",
|
12595
12603
|
"name": "RuleDisabled",
|
12596
|
-
"
|
12604
|
+
"output_required": true,
|
12597
12605
|
"type": "bool",
|
12598
12606
|
"value_allowed_null": false
|
12599
12607
|
}
|
@@ -574,7 +574,7 @@
|
|
574
574
|
{
|
575
575
|
"document": "",
|
576
576
|
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGatewaySubProducts\n<公共请求参数>\n\n{\n \"GatewayProductId\": \"M5QJPYQ\",\n \"ProjectId\": \"pri_211\",\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
|
577
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"
|
577
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Products\": [\n {\n \"DevStatus\": \"1\",\n \"NetType\": \"wifi\",\n \"DataProtocol\": 1,\n \"ProjectId\": \"pro-jed\",\n \"ProductName\": \"名称\",\n \"ProductType\": 0,\n \"CategoryId\": 0,\n \"ProductId\": \"p_34rd\",\n \"ProductOwnerName\": \"\"\n }\n ],\n \"RequestId\": \"ed3-5tgbth565-678g\"\n }\n}",
|
578
578
|
"title": "用于获取网关可绑定或解绑的子产品"
|
579
579
|
}
|
580
580
|
],
|
@@ -773,8 +773,8 @@
|
|
773
773
|
"GetDeviceSumStatistics": [
|
774
774
|
{
|
775
775
|
"document": "",
|
776
|
-
"input": "
|
777
|
-
"output": "{\n \"Response\": {\n \"ActivationBeforeWeekDayCount\": 100,\n \"ActiveBeforeWeekDayCount\": 60,\n \"RequestId\": \"6b6e765c-1625-49e6-9743-452e6ce15caa\"\n }\n}",
|
776
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetDeviceSumStatistics\n<公共请求参数>\n\n{\n \"ProjectId\": \"abc\",\n \"ProductIds\": [\n \"abc\"\n ]\n}",
|
777
|
+
"output": "{\n \"Response\": {\n \"ActivationCount\": 1,\n \"OnlineCount\": 1,\n \"ActiveBeforeDay\": 20,\n \"ActivationBeforeDay\": 10,\n \"ActivationWeekDayCount\": 80,\n \"ActiveWeekDayCount\": 40,\n \"ActivationBeforeWeekDayCount\": 100,\n \"ActiveBeforeWeekDayCount\": 60,\n \"RequestId\": \"6b6e765c-1625-49e6-9743-452e6ce15caa\"\n }\n}",
|
778
778
|
"title": "拉取设备统计汇总数据示例"
|
779
779
|
}
|
780
780
|
],
|
@@ -812,7 +812,7 @@
|
|
812
812
|
{
|
813
813
|
"document": "",
|
814
814
|
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetPositionSpaceList\n<公共请求参数>\n\n{\n \"ProjectId\": \"prj-projectid\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
815
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"List\": [\n {\n \"UpdateTime\": 1598863974,\n \"Description\": \"desc\",\n \"ProjectId\": \"prj\",\n \"AuthorizeType\": 0,\n \"SpaceId\": \"id\",\n \"ProductIdList\": [\n \"ProductId\"\n ],\n \"CreateTime\": 1598863974,\n \"SpaceName\": \"name\",\n \"Icon\": \"icon\",\n \"Zoom\": 0\n }\n ],\n \"RequestId\": \"
|
815
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"List\": [\n {\n \"UpdateTime\": 1598863974,\n \"Description\": \"desc\",\n \"ProjectId\": \"prj\",\n \"AuthorizeType\": 0,\n \"SpaceId\": \"id\",\n \"ProductIdList\": [\n \"ProductId\"\n ],\n \"CreateTime\": 1598863974,\n \"SpaceName\": \"name\",\n \"Icon\": \"icon\",\n \"Zoom\": 0\n }\n ],\n \"RequestId\": \"1qaz-efg4-65777777\"\n }\n}",
|
816
816
|
"title": "获取位置空间列表"
|
817
817
|
}
|
818
818
|
],
|
@@ -695,6 +695,58 @@ def doIsolateDBInstance(args, parsed_globals):
|
|
695
695
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
696
696
|
|
697
697
|
|
698
|
+
def doSetBackupRules(args, parsed_globals):
|
699
|
+
g_param = parse_global_arg(parsed_globals)
|
700
|
+
|
701
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
702
|
+
cred = credential.CVMRoleCredential()
|
703
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
704
|
+
cred = credential.STSAssumeRoleCredential(
|
705
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
706
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
707
|
+
)
|
708
|
+
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):
|
709
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
710
|
+
else:
|
711
|
+
cred = credential.Credential(
|
712
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
713
|
+
)
|
714
|
+
http_profile = HttpProfile(
|
715
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
716
|
+
reqMethod="POST",
|
717
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
718
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
719
|
+
)
|
720
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
721
|
+
if g_param[OptionsDefine.Language]:
|
722
|
+
profile.language = g_param[OptionsDefine.Language]
|
723
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
724
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
725
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
726
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
727
|
+
model = models.SetBackupRulesRequest()
|
728
|
+
model.from_json_string(json.dumps(args))
|
729
|
+
start_time = time.time()
|
730
|
+
while True:
|
731
|
+
rsp = client.SetBackupRules(model)
|
732
|
+
result = rsp.to_json_string()
|
733
|
+
try:
|
734
|
+
json_obj = json.loads(result)
|
735
|
+
except TypeError as e:
|
736
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
737
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
738
|
+
break
|
739
|
+
cur_time = time.time()
|
740
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
741
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
742
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
743
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
744
|
+
else:
|
745
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
746
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
747
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
748
|
+
|
749
|
+
|
698
750
|
def doInquirePriceModifyDBInstanceSpec(args, parsed_globals):
|
699
751
|
g_param = parse_global_arg(parsed_globals)
|
700
752
|
|
@@ -747,6 +799,58 @@ def doInquirePriceModifyDBInstanceSpec(args, parsed_globals):
|
|
747
799
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
748
800
|
|
749
801
|
|
802
|
+
def doDescribeBackupRules(args, parsed_globals):
|
803
|
+
g_param = parse_global_arg(parsed_globals)
|
804
|
+
|
805
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
806
|
+
cred = credential.CVMRoleCredential()
|
807
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
808
|
+
cred = credential.STSAssumeRoleCredential(
|
809
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
810
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
811
|
+
)
|
812
|
+
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):
|
813
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
814
|
+
else:
|
815
|
+
cred = credential.Credential(
|
816
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
817
|
+
)
|
818
|
+
http_profile = HttpProfile(
|
819
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
820
|
+
reqMethod="POST",
|
821
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
822
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
823
|
+
)
|
824
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
825
|
+
if g_param[OptionsDefine.Language]:
|
826
|
+
profile.language = g_param[OptionsDefine.Language]
|
827
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
828
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
829
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
830
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
831
|
+
model = models.DescribeBackupRulesRequest()
|
832
|
+
model.from_json_string(json.dumps(args))
|
833
|
+
start_time = time.time()
|
834
|
+
while True:
|
835
|
+
rsp = client.DescribeBackupRules(model)
|
836
|
+
result = rsp.to_json_string()
|
837
|
+
try:
|
838
|
+
json_obj = json.loads(result)
|
839
|
+
except TypeError as e:
|
840
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
841
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
842
|
+
break
|
843
|
+
cur_time = time.time()
|
844
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
845
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
846
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
847
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
848
|
+
else:
|
849
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
850
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
851
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
852
|
+
|
853
|
+
|
750
854
|
def doDescribeAsyncRequestInfo(args, parsed_globals):
|
751
855
|
g_param = parse_global_arg(parsed_globals)
|
752
856
|
|
@@ -1787,6 +1891,58 @@ def doAssignProject(args, parsed_globals):
|
|
1787
1891
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1788
1892
|
|
1789
1893
|
|
1894
|
+
def doDescribeTransparentDataEncryptionStatus(args, parsed_globals):
|
1895
|
+
g_param = parse_global_arg(parsed_globals)
|
1896
|
+
|
1897
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1898
|
+
cred = credential.CVMRoleCredential()
|
1899
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1900
|
+
cred = credential.STSAssumeRoleCredential(
|
1901
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1902
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1903
|
+
)
|
1904
|
+
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):
|
1905
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1906
|
+
else:
|
1907
|
+
cred = credential.Credential(
|
1908
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1909
|
+
)
|
1910
|
+
http_profile = HttpProfile(
|
1911
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1912
|
+
reqMethod="POST",
|
1913
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1914
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1915
|
+
)
|
1916
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1917
|
+
if g_param[OptionsDefine.Language]:
|
1918
|
+
profile.language = g_param[OptionsDefine.Language]
|
1919
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1920
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
1921
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1922
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1923
|
+
model = models.DescribeTransparentDataEncryptionStatusRequest()
|
1924
|
+
model.from_json_string(json.dumps(args))
|
1925
|
+
start_time = time.time()
|
1926
|
+
while True:
|
1927
|
+
rsp = client.DescribeTransparentDataEncryptionStatus(model)
|
1928
|
+
result = rsp.to_json_string()
|
1929
|
+
try:
|
1930
|
+
json_obj = json.loads(result)
|
1931
|
+
except TypeError as e:
|
1932
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1933
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1934
|
+
break
|
1935
|
+
cur_time = time.time()
|
1936
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1937
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1938
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1939
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1940
|
+
else:
|
1941
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1942
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1943
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1944
|
+
|
1945
|
+
|
1790
1946
|
def doDescribeAccountUsers(args, parsed_globals):
|
1791
1947
|
g_param = parse_global_arg(parsed_globals)
|
1792
1948
|
|
@@ -2099,6 +2255,58 @@ def doKillOps(args, parsed_globals):
|
|
2099
2255
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2100
2256
|
|
2101
2257
|
|
2258
|
+
def doEnableTransparentDataEncryption(args, parsed_globals):
|
2259
|
+
g_param = parse_global_arg(parsed_globals)
|
2260
|
+
|
2261
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2262
|
+
cred = credential.CVMRoleCredential()
|
2263
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2264
|
+
cred = credential.STSAssumeRoleCredential(
|
2265
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2266
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2267
|
+
)
|
2268
|
+
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):
|
2269
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2270
|
+
else:
|
2271
|
+
cred = credential.Credential(
|
2272
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2273
|
+
)
|
2274
|
+
http_profile = HttpProfile(
|
2275
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2276
|
+
reqMethod="POST",
|
2277
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2278
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2279
|
+
)
|
2280
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2281
|
+
if g_param[OptionsDefine.Language]:
|
2282
|
+
profile.language = g_param[OptionsDefine.Language]
|
2283
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2284
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
2285
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2286
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2287
|
+
model = models.EnableTransparentDataEncryptionRequest()
|
2288
|
+
model.from_json_string(json.dumps(args))
|
2289
|
+
start_time = time.time()
|
2290
|
+
while True:
|
2291
|
+
rsp = client.EnableTransparentDataEncryption(model)
|
2292
|
+
result = rsp.to_json_string()
|
2293
|
+
try:
|
2294
|
+
json_obj = json.loads(result)
|
2295
|
+
except TypeError as e:
|
2296
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2297
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2298
|
+
break
|
2299
|
+
cur_time = time.time()
|
2300
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2301
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2302
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2303
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2304
|
+
else:
|
2305
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2306
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2307
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2308
|
+
|
2309
|
+
|
2102
2310
|
def doCreateBackupDBInstance(args, parsed_globals):
|
2103
2311
|
g_param = parse_global_arg(parsed_globals)
|
2104
2312
|
|
@@ -2333,7 +2541,9 @@ ACTION_MAP = {
|
|
2333
2541
|
"SetAutoRenew": doSetAutoRenew,
|
2334
2542
|
"DescribeDBBackups": doDescribeDBBackups,
|
2335
2543
|
"IsolateDBInstance": doIsolateDBInstance,
|
2544
|
+
"SetBackupRules": doSetBackupRules,
|
2336
2545
|
"InquirePriceModifyDBInstanceSpec": doInquirePriceModifyDBInstanceSpec,
|
2546
|
+
"DescribeBackupRules": doDescribeBackupRules,
|
2337
2547
|
"DescribeAsyncRequestInfo": doDescribeAsyncRequestInfo,
|
2338
2548
|
"CreateAccountUser": doCreateAccountUser,
|
2339
2549
|
"CreateDBInstanceHour": doCreateDBInstanceHour,
|
@@ -2354,12 +2564,14 @@ ACTION_MAP = {
|
|
2354
2564
|
"DescribeBackupDownloadTask": doDescribeBackupDownloadTask,
|
2355
2565
|
"InquirePriceCreateDBInstances": doInquirePriceCreateDBInstances,
|
2356
2566
|
"AssignProject": doAssignProject,
|
2567
|
+
"DescribeTransparentDataEncryptionStatus": doDescribeTransparentDataEncryptionStatus,
|
2357
2568
|
"DescribeAccountUsers": doDescribeAccountUsers,
|
2358
2569
|
"DescribeSlowLog": doDescribeSlowLog,
|
2359
2570
|
"SetInstanceMaintenance": doSetInstanceMaintenance,
|
2360
2571
|
"RenameInstance": doRenameInstance,
|
2361
2572
|
"UpgradeDBInstance": doUpgradeDBInstance,
|
2362
2573
|
"KillOps": doKillOps,
|
2574
|
+
"EnableTransparentDataEncryption": doEnableTransparentDataEncryption,
|
2363
2575
|
"CreateBackupDBInstance": doCreateBackupDBInstance,
|
2364
2576
|
"InquirePriceRenewDBInstances": doInquirePriceRenewDBInstances,
|
2365
2577
|
"DeleteAccountUser": doDeleteAccountUser,
|