tccli 3.0.1265.1__py2.py3-none-any.whl → 3.0.1267.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/antiddos/v20200309/api.json +12 -6
- tccli/services/antiddos/v20200309/examples.json +2 -2
- tccli/services/billing/v20180709/api.json +4 -2
- tccli/services/ccc/v20200210/api.json +2 -2
- tccli/services/cdn/v20180606/api.json +33 -11
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +12 -2
- tccli/services/emr/v20190103/api.json +11 -1
- tccli/services/ess/ess_client.py +159 -0
- tccli/services/ess/v20201111/api.json +369 -21
- tccli/services/ess/v20201111/examples.json +36 -0
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gme/v20180711/api.json +77 -39
- tccli/services/gme/v20180711/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +5 -5
- tccli/services/hunyuan/v20230901/examples.json +6 -6
- tccli/services/lcic/v20220817/api.json +48 -53
- tccli/services/lighthouse/v20200324/api.json +10 -10
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lkeap/v20240522/api.json +415 -12
- tccli/services/lkeap/v20240522/examples.json +19 -19
- tccli/services/mongodb/mongodb_client.py +53 -0
- tccli/services/mongodb/v20190725/api.json +70 -0
- tccli/services/mongodb/v20190725/examples.json +8 -0
- tccli/services/mps/v20190612/api.json +40 -0
- tccli/services/ocr/v20181119/api.json +22 -2
- tccli/services/redis/v20180412/api.json +40 -40
- tccli/services/rum/v20210622/api.json +12 -12
- tccli/services/rum/v20210622/examples.json +6 -6
- tccli/services/smop/v20201203/api.json +34 -34
- tccli/services/ssl/v20191205/api.json +20 -20
- tccli/services/sts/v20180813/api.json +1 -1
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tke/v20180525/api.json +18 -0
- tccli/services/trro/v20220325/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +8 -7
- tccli/services/trtc/v20190722/examples.json +5 -5
- tccli/services/vms/v20200902/api.json +11 -11
- tccli/services/vms/v20200902/examples.json +5 -5
- tccli/services/vpc/v20170312/api.json +1003 -15
- tccli/services/vpc/v20170312/examples.json +104 -8
- tccli/services/vpc/vpc_client.py +690 -54
- tccli/services/waf/v20180125/api.json +24 -2
- tccli/services/wedata/v20210820/api.json +186 -3
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1265.1.dist-info → tccli-3.0.1267.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1265.1.dist-info → tccli-3.0.1267.1.dist-info}/RECORD +52 -52
- {tccli-3.0.1265.1.dist-info → tccli-3.0.1267.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1265.1.dist-info → tccli-3.0.1267.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1265.1.dist-info → tccli-3.0.1267.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,7 +17,7 @@
|
|
17
17
|
"CreateAttributeLabel": [
|
18
18
|
{
|
19
19
|
"document": "添加属性标签",
|
20
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAttributeLabel\n<公共请求参数>\n\n{\n \"Labels\": [\n {\n \"LabelName\": \"现代\"\n },\n {\n \"LabelName\": \"流行\"\n }\n ]\n}",
|
20
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"AttributeKey\": \"style\",\n \"AttributeName\": \"风格\",\n \"Labels\": [\n {\n \"LabelName\": \"现代\"\n },\n {\n \"LabelName\": \"流行\"\n }\n ]\n}",
|
21
21
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3973e13a-926f-40a5-91d7-d61a56083314\"\n }\n}",
|
22
22
|
"title": "添加属性标签"
|
23
23
|
}
|
@@ -33,14 +33,14 @@
|
|
33
33
|
"CreateQA": [
|
34
34
|
{
|
35
35
|
"document": "创建问答对",
|
36
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateQA\n<公共请求参数>\n\n{\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830994685416869312\",\n \"LabelIds\": [\n \"1830994685429452224\"\n ]\n }\n ]\n}",
|
37
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"28c960e9-c3ba-4a6d-be28-0d5d0dcca5ca\"\n }\n}",
|
36
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateQA\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"Question\": \"你是谁\",\n \"Answer\": \"我是腾讯大模型知识引擎\",\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830994685416869312\",\n \"LabelIds\": [\n \"1830994685429452224\"\n ]\n }\n ]\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"QaId\": \"1830995120618932160\",\n \"RequestId\": \"28c960e9-c3ba-4a6d-be28-0d5d0dcca5ca\"\n }\n}",
|
38
38
|
"title": "创建问答对"
|
39
39
|
},
|
40
40
|
{
|
41
41
|
"document": "创建无标签问答对",
|
42
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateQA\n<公共请求参数>\n\n{}",
|
43
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a37897c3-acf5-420a-bc32-9a1da9348c13\"\n }\n}",
|
42
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateQA\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"Question\": \"你是谁\",\n \"Answer\": \"我是腾讯大模型知识引擎\"\n}",
|
43
|
+
"output": "{\n \"Response\": {\n \"QaId\": \"1831158575324892608\",\n \"RequestId\": \"a37897c3-acf5-420a-bc32-9a1da9348c13\"\n }\n}",
|
44
44
|
"title": "创建无标签问答对"
|
45
45
|
}
|
46
46
|
],
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"DeleteAttributeLabels": [
|
64
64
|
{
|
65
65
|
"document": "删除属性标签",
|
66
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAttributeLabel\n<公共请求参数>\n\n{}",
|
66
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"AttributeIds\": [\n \"1830996257455365986\"\n ]\n}",
|
67
67
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1966c811-59a6-4385-bd4f-4ce12bdaa21a\"\n }\n}",
|
68
68
|
"title": "删除属性标签"
|
69
69
|
}
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"DeleteDocs": [
|
72
72
|
{
|
73
73
|
"document": "删除文档",
|
74
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDoc\n<公共请求参数>\n\n{}",
|
74
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDoc\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"DocIds\": [\n \"1830996257459865536\"\n ]\n}",
|
75
75
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f3d05737-0b05-45cd-aa6a-fe16213cfe01\"\n }\n}",
|
76
76
|
"title": "删除文档"
|
77
77
|
}
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"DeleteQAs": [
|
88
88
|
{
|
89
89
|
"document": "删除qa",
|
90
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteQA\n<公共请求参数>\n\n{}",
|
90
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteQA\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"QaIds\": [\n \"1830996257459865536\"\n ]\n}",
|
91
91
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6c081879-196a-4df0-87ac-07e73a00952e\"\n }\n}",
|
92
92
|
"title": "删除问答对"
|
93
93
|
}
|
@@ -95,8 +95,8 @@
|
|
95
95
|
"DescribeDoc": [
|
96
96
|
{
|
97
97
|
"document": "查询文档详情",
|
98
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDoc\n<公共请求参数>\n\n{}",
|
99
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"bf318516-67a7-41df-9460-e581b4ecedbd\"\n }\n}",
|
98
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDoc\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"DocId\": \"1830881178265519872\"\n}",
|
99
|
+
"output": "{\n \"Response\": {\n \"DocId\": \"1830881178265519872\",\n \"FileName\": \"product_manuals.docx\",\n \"RequestId\": \"bf318516-67a7-41df-9460-e581b4ecedbd\",\n \"Status\": \"Parsing\"\n }\n}",
|
100
100
|
"title": "查询文档详情"
|
101
101
|
}
|
102
102
|
],
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"ImportQAs": [
|
128
128
|
{
|
129
129
|
"document": "批量导入问答对",
|
130
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportQAs\n<公共请求参数>\n\n{}",
|
130
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportQAs\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"FileName\": \"qa_import.xlsx\",\n \"FileUrl\": \"https://xxx.cos.ap-guangzhou.myqcloud.com/file/qa_import.xlsx\"\n}",
|
131
131
|
"output": "{\n \"Response\": {\n \"RequestId\": \"21305ff4-94c7-4113-9977-9b20427e0a2a\"\n }\n}",
|
132
132
|
"title": "批量导入问答对"
|
133
133
|
}
|
@@ -135,31 +135,31 @@
|
|
135
135
|
"ListAttributeLabels": [
|
136
136
|
{
|
137
137
|
"document": "获取标签列表",
|
138
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListAttributeLabel\n<公共请求参数>\n\n{}",
|
139
|
-
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"AttributeId\": \"1830880287852529408\",\n \"AttributeKey\": \"stylee\",\n \"AttributeName\": \"风格\",\n \"Labels\": [\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"流行\"\n },\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"现代\"\n }\n ]\n }\n ],\n \"RequestId\": \"c5821f64-064a-448c-9279-b40eff06f4ae\"\n }\n}",
|
138
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"PageNumber\": 1,\n \"PageSize\": 50\n}",
|
139
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"AttributeId\": \"1830880287852529408\",\n \"AttributeKey\": \"stylee\",\n \"AttributeName\": \"风格\",\n \"Labels\": [\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"流行\"\n },\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"现代\"\n }\n ]\n }\n ],\n \"RequestId\": \"c5821f64-064a-448c-9279-b40eff06f4ae\",\n \"TotalCount\": 1\n }\n}",
|
140
140
|
"title": "获取标签列表"
|
141
141
|
}
|
142
142
|
],
|
143
143
|
"ListDocs": [
|
144
144
|
{
|
145
145
|
"document": "获取文档列表",
|
146
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListDocs\n<公共请求参数>\n\n{}",
|
147
|
-
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"DocId\": \"1830985874053466048\",\n \"FileName\": \"product_manuals.docx\",\n \"Status\": \"Success\"\n }\n ],\n \"RequestId\": \"292da1b4-1125-4423-b7cd-5cf3b14eb98d\"\n }\n}",
|
146
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListDocs\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
|
147
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"DocId\": \"1830985874053466048\",\n \"FileName\": \"product_manuals.docx\",\n \"Status\": \"Success\"\n }\n ],\n \"RequestId\": \"292da1b4-1125-4423-b7cd-5cf3b14eb98d\",\n \"TotalCount\": 1\n }\n}",
|
148
148
|
"title": "获取文档列表"
|
149
149
|
}
|
150
150
|
],
|
151
151
|
"ListQAs": [
|
152
152
|
{
|
153
153
|
"document": "查询已经上传的问答对列表",
|
154
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListQAs\n<公共请求参数>\n\n{}",
|
155
|
-
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"Answer\": \"我是腾讯大模型知识引擎\",\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830880287852529408\",\n \"LabelIds\": [\n \"1830880287865112320\"\n ]\n }\n ],\n \"QaId\": \"1830882708456671000\",\n \"Question\": \"你是谁\"\n }\n ],\n \"RequestId\": \"5f95d7c7-c881-49d1-98fc-34f138d8ca54\"\n }\n}",
|
154
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListQAs\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"49019910127\",\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
|
155
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"Answer\": \"我是腾讯大模型知识引擎\",\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830880287852529408\",\n \"LabelIds\": [\n \"1830880287865112320\"\n ]\n }\n ],\n \"QaId\": \"1830882708456671000\",\n \"Question\": \"你是谁\"\n }\n ],\n \"RequestId\": \"5f95d7c7-c881-49d1-98fc-34f138d8ca54\",\n \"TotalCount\": 1\n }\n}",
|
156
156
|
"title": "获取问答对列表"
|
157
157
|
}
|
158
158
|
],
|
159
159
|
"ModifyAttributeLabel": [
|
160
160
|
{
|
161
161
|
"document": "修改属性标签",
|
162
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAttributeLabel\n<公共请求参数>\n\n{\n \"Labels\": [\n {\n \"LabelId\": \"1830993312978765760\",\n \"LabelName\": \"主流\"\n },\n {\n \"LabelId\": \"1830993312978765761\",\n \"LabelName\": \"现代\"\n }\n ]\n}",
|
162
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"AttributeId\": \"1830993312966182848\",\n \"AttributeKey\": \"style\",\n \"AttributeName\": \"风格\",\n \"Labels\": [\n {\n \"LabelId\": \"1830993312978765760\",\n \"LabelName\": \"主流\"\n },\n {\n \"LabelId\": \"1830993312978765761\",\n \"LabelName\": \"现代\"\n }\n ]\n}",
|
163
163
|
"output": "{\n \"Response\": {\n \"RequestId\": \"04ba0a85-161a-408a-9c80-029601af9775\"\n }\n}",
|
164
164
|
"title": "修改属性标签"
|
165
165
|
}
|
@@ -167,7 +167,7 @@
|
|
167
167
|
"ModifyQA": [
|
168
168
|
{
|
169
169
|
"document": "修改问答对",
|
170
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyQA\n<公共请求参数>\n\n{\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830994685416869312\",\n \"LabelIds\": [\n \"1830994685429452224\"\n ]\n }\n ]\n}",
|
170
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyQA\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"QaId\": \"1830995120618932160\",\n \"Question\": \"你是谁\",\n \"Answer\": \"我是腾讯大模型知识引擎\",\n \"AttributeLabels\": [\n {\n \"AttributeId\": \"1830994685416869312\",\n \"LabelIds\": [\n \"1830994685429452224\"\n ]\n }\n ]\n}",
|
171
171
|
"output": "{\n \"Response\": {\n \"RequestId\": \"4f4843c1-8f3b-4a0b-ad7e-91b47f2b93c7\"\n }\n}",
|
172
172
|
"title": "修改问答对"
|
173
173
|
}
|
@@ -71,6 +71,58 @@ def doTerminateDBInstances(args, parsed_globals):
|
|
71
71
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
72
72
|
|
73
73
|
|
74
|
+
def doDescribeDBInstanceURL(args, parsed_globals):
|
75
|
+
g_param = parse_global_arg(parsed_globals)
|
76
|
+
|
77
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
78
|
+
cred = credential.CVMRoleCredential()
|
79
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
80
|
+
cred = credential.STSAssumeRoleCredential(
|
81
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
82
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
83
|
+
)
|
84
|
+
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):
|
85
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
86
|
+
else:
|
87
|
+
cred = credential.Credential(
|
88
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
89
|
+
)
|
90
|
+
http_profile = HttpProfile(
|
91
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
92
|
+
reqMethod="POST",
|
93
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
94
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
95
|
+
)
|
96
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
97
|
+
if g_param[OptionsDefine.Language]:
|
98
|
+
profile.language = g_param[OptionsDefine.Language]
|
99
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
100
|
+
client = mod.MongodbClient(cred, g_param[OptionsDefine.Region], profile)
|
101
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
102
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
103
|
+
model = models.DescribeDBInstanceURLRequest()
|
104
|
+
model.from_json_string(json.dumps(args))
|
105
|
+
start_time = time.time()
|
106
|
+
while True:
|
107
|
+
rsp = client.DescribeDBInstanceURL(model)
|
108
|
+
result = rsp.to_json_string()
|
109
|
+
try:
|
110
|
+
json_obj = json.loads(result)
|
111
|
+
except TypeError as e:
|
112
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
113
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
114
|
+
break
|
115
|
+
cur_time = time.time()
|
116
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
117
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
118
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
119
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
120
|
+
else:
|
121
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
122
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
123
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
124
|
+
|
125
|
+
|
74
126
|
def doDescribeDBInstanceNodeProperty(args, parsed_globals):
|
75
127
|
g_param = parse_global_arg(parsed_globals)
|
76
128
|
|
@@ -2893,6 +2945,7 @@ MODELS_MAP = {
|
|
2893
2945
|
|
2894
2946
|
ACTION_MAP = {
|
2895
2947
|
"TerminateDBInstances": doTerminateDBInstances,
|
2948
|
+
"DescribeDBInstanceURL": doDescribeDBInstanceURL,
|
2896
2949
|
"DescribeDBInstanceNodeProperty": doDescribeDBInstanceNodeProperty,
|
2897
2950
|
"DescribeDBInstanceParamTpl": doDescribeDBInstanceParamTpl,
|
2898
2951
|
"DescribeDBInstanceDeal": doDescribeDBInstanceDeal,
|
@@ -133,6 +133,13 @@
|
|
133
133
|
"output": "DescribeDBInstanceParamTplDetailResponse",
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
|
+
"DescribeDBInstanceURL": {
|
137
|
+
"document": "本接口(DescribeDBInstanceURL)用于获取指定实例的 URI 形式的连接串访问地址示例。",
|
138
|
+
"input": "DescribeDBInstanceURLRequest",
|
139
|
+
"name": "获取实例连接的URI。",
|
140
|
+
"output": "DescribeDBInstanceURLResponse",
|
141
|
+
"status": "online"
|
142
|
+
},
|
136
143
|
"DescribeDBInstances": {
|
137
144
|
"document": "本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选主实例、灾备实例和只读实例信息列表。",
|
138
145
|
"input": "DescribeDBInstancesRequest",
|
@@ -1794,6 +1801,32 @@
|
|
1794
1801
|
],
|
1795
1802
|
"usage": "both"
|
1796
1803
|
},
|
1804
|
+
"DbURL": {
|
1805
|
+
"document": "数据库实例 URI 形式的连接串访问地址示例。",
|
1806
|
+
"members": [
|
1807
|
+
{
|
1808
|
+
"disabled": false,
|
1809
|
+
"document": "指 URI 类别,包括:,\n- CLUSTER_ALL:指通过该 URI 连接库实例的主节点,可读写。\n- CLUSTER_READ_READONLY:指通过该 URI 连接实例只读节点。\n- CLUSTER_READ_SECONDARY:指通过该 URI 连接实例从节点。\n- CLUSTER_READ_SECONDARY_AND_READONLY:指通过该 URI 连接实例只读从节点。\n- CLUSTER_PRIMARY_AND_SECONDARY:指通过该 URI 连接实例 主节点与从节点。\n- MONGOS_ALL:指通过该 URI 连接每个 Mongos 节点,可读写。\n- MONGOS_READ_READONLY:指通过该 URI 连接 Mongos 的只读节点。\n- MONGOS_READ_SECONDARY:指通过该 URI 连接 Mongos 的从节点。\n- MONGOS_READ_PRIMARY_AND_SECONDARY:指通过该URI 连接 Mongos 的主节点与从节点。\n- MONGOS_READ_SECONDARY_AND_READONLY:指通过该URI 连接 Mongos 的从节点与只读节点。",
|
1810
|
+
"example": "MONGOS_ALL",
|
1811
|
+
"member": "string",
|
1812
|
+
"name": "URLType",
|
1813
|
+
"required": true,
|
1814
|
+
"type": "string",
|
1815
|
+
"value_allowed_null": false
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"disabled": false,
|
1819
|
+
"document": "实例 URI 形式的连接串访问地址示例。",
|
1820
|
+
"example": "无",
|
1821
|
+
"member": "string",
|
1822
|
+
"name": "Address",
|
1823
|
+
"required": true,
|
1824
|
+
"type": "string",
|
1825
|
+
"value_allowed_null": false
|
1826
|
+
}
|
1827
|
+
],
|
1828
|
+
"usage": "out"
|
1829
|
+
},
|
1797
1830
|
"DeleteAccountUserRequest": {
|
1798
1831
|
"document": "DeleteAccountUser请求参数结构体",
|
1799
1832
|
"members": [
|
@@ -2730,6 +2763,43 @@
|
|
2730
2763
|
],
|
2731
2764
|
"type": "object"
|
2732
2765
|
},
|
2766
|
+
"DescribeDBInstanceURLRequest": {
|
2767
|
+
"document": "DescribeDBInstanceURL请求参数结构体",
|
2768
|
+
"members": [
|
2769
|
+
{
|
2770
|
+
"disabled": false,
|
2771
|
+
"document": "实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。",
|
2772
|
+
"example": "cmgo-p8vn********",
|
2773
|
+
"member": "string",
|
2774
|
+
"name": "InstanceId",
|
2775
|
+
"required": true,
|
2776
|
+
"type": "string"
|
2777
|
+
}
|
2778
|
+
],
|
2779
|
+
"type": "object"
|
2780
|
+
},
|
2781
|
+
"DescribeDBInstanceURLResponse": {
|
2782
|
+
"document": "DescribeDBInstanceURL返回参数结构体",
|
2783
|
+
"members": [
|
2784
|
+
{
|
2785
|
+
"disabled": false,
|
2786
|
+
"document": "实例 URI 形式的连接串访问地址示例。包含:URI 类型及连接串地址。",
|
2787
|
+
"example": "无",
|
2788
|
+
"member": "DbURL",
|
2789
|
+
"name": "Urls",
|
2790
|
+
"output_required": true,
|
2791
|
+
"type": "list",
|
2792
|
+
"value_allowed_null": false
|
2793
|
+
},
|
2794
|
+
{
|
2795
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2796
|
+
"member": "string",
|
2797
|
+
"name": "RequestId",
|
2798
|
+
"type": "string"
|
2799
|
+
}
|
2800
|
+
],
|
2801
|
+
"type": "object"
|
2802
|
+
},
|
2733
2803
|
"DescribeDBInstancesRequest": {
|
2734
2804
|
"document": "DescribeDBInstances请求参数结构体",
|
2735
2805
|
"members": [
|
@@ -152,6 +152,14 @@
|
|
152
152
|
"title": "查询参数模板详情"
|
153
153
|
}
|
154
154
|
],
|
155
|
+
"DescribeDBInstanceURL": [
|
156
|
+
{
|
157
|
+
"document": "获取指定实例的 URI 形式的连接串访问地址示例,包含 URI 类型、URI 连接串。",
|
158
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstanceURL\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-g5*****\"\n}",
|
159
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8e4cb480-9d32-11ec-8dfc-037b69052954\",\n \"Urls\": [\n {\n \"Address\": \"mongodb://mongouser:******@10.*.0.**:27017,10.*.0.**:27017/test?authSource=admin\",\n \"URLType\": \"CLUSTER_ALL\"\n },\n {\n \"Address\": \"mongodb://mongouser:******@10.*.0.**:27017,10.*.0.**:27017/test?authSource=admin&readPreference=secondaryPreferred\",\n \"URLType\": \"CLUSTER_READ_SECONDARY\"\n }\n ]\n }\n}",
|
160
|
+
"title": "获取访问实例的 URI。"
|
161
|
+
}
|
162
|
+
],
|
155
163
|
"DescribeDBInstances": [
|
156
164
|
{
|
157
165
|
"document": "查询实例列表",
|
@@ -3059,6 +3059,26 @@
|
|
3059
3059
|
"type": "string",
|
3060
3060
|
"value_allowed_null": true
|
3061
3061
|
},
|
3062
|
+
{
|
3063
|
+
"disabled": false,
|
3064
|
+
"document": "分段标题",
|
3065
|
+
"example": "分段标题",
|
3066
|
+
"member": "string",
|
3067
|
+
"name": "Title",
|
3068
|
+
"output_required": false,
|
3069
|
+
"type": "string",
|
3070
|
+
"value_allowed_null": false
|
3071
|
+
},
|
3072
|
+
{
|
3073
|
+
"disabled": false,
|
3074
|
+
"document": "分段关键词",
|
3075
|
+
"example": "[\"words1\",\"words2\"]",
|
3076
|
+
"member": "string",
|
3077
|
+
"name": "Keywords",
|
3078
|
+
"output_required": false,
|
3079
|
+
"type": "list",
|
3080
|
+
"value_allowed_null": false
|
3081
|
+
},
|
3062
3082
|
{
|
3063
3083
|
"disabled": false,
|
3064
3084
|
"document": "分段起始时间点,秒\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -19226,6 +19246,26 @@
|
|
19226
19246
|
"type": "float",
|
19227
19247
|
"value_allowed_null": false
|
19228
19248
|
},
|
19249
|
+
{
|
19250
|
+
"disabled": false,
|
19251
|
+
"document": "智能描述标题",
|
19252
|
+
"example": "标题",
|
19253
|
+
"member": "string",
|
19254
|
+
"name": "Title",
|
19255
|
+
"output_required": false,
|
19256
|
+
"type": "string",
|
19257
|
+
"value_allowed_null": false
|
19258
|
+
},
|
19259
|
+
{
|
19260
|
+
"disabled": false,
|
19261
|
+
"document": "智能描述关键词",
|
19262
|
+
"example": "[\"word1\",\"word2\"]",
|
19263
|
+
"member": "string",
|
19264
|
+
"name": "Keywords",
|
19265
|
+
"output_required": false,
|
19266
|
+
"type": "list",
|
19267
|
+
"value_allowed_null": false
|
19268
|
+
},
|
19229
19269
|
{
|
19230
19270
|
"disabled": false,
|
19231
19271
|
"document": "分段结果。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -2784,7 +2784,7 @@
|
|
2784
2784
|
},
|
2785
2785
|
{
|
2786
2786
|
"disabled": false,
|
2787
|
-
"document": "
|
2787
|
+
"document": "字段是否不完整(value内容)\n0 字段正常\n1 字段不完整",
|
2788
2788
|
"example": "无",
|
2789
2789
|
"member": "int64",
|
2790
2790
|
"name": "IsInComplete",
|
@@ -2794,13 +2794,33 @@
|
|
2794
2794
|
},
|
2795
2795
|
{
|
2796
2796
|
"disabled": false,
|
2797
|
-
"document": "
|
2797
|
+
"document": "字段反光(value内容)\n0 字段正常\n1 字段有反光",
|
2798
2798
|
"example": "无",
|
2799
2799
|
"member": "int64",
|
2800
2800
|
"name": "IsReflect",
|
2801
2801
|
"output_required": true,
|
2802
2802
|
"type": "int",
|
2803
2803
|
"value_allowed_null": false
|
2804
|
+
},
|
2805
|
+
{
|
2806
|
+
"disabled": false,
|
2807
|
+
"document": "字段是否不完整(key内容)\n0 字段正常\n1 字段不完整",
|
2808
|
+
"example": "无",
|
2809
|
+
"member": "int64",
|
2810
|
+
"name": "IsKeyInComplete",
|
2811
|
+
"output_required": true,
|
2812
|
+
"type": "int",
|
2813
|
+
"value_allowed_null": false
|
2814
|
+
},
|
2815
|
+
{
|
2816
|
+
"disabled": false,
|
2817
|
+
"document": "字段反光(key内容)\n0 字段正常\n1 字段有反光",
|
2818
|
+
"example": "无",
|
2819
|
+
"member": "int64",
|
2820
|
+
"name": "IsKeyReflect",
|
2821
|
+
"output_required": true,
|
2822
|
+
"type": "int",
|
2823
|
+
"value_allowed_null": false
|
2804
2824
|
}
|
2805
2825
|
],
|
2806
2826
|
"usage": "out"
|