MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / AnalyseClient

Class AnalyseClient

server/projects/main/util/webclients.py:108–199  ·  view source on GitHub ↗

Analysis访问客户端

Source from the content-addressed store, hash-verified

106
107
108class AnalyseClient(BaseClient):
109 """Analysis访问客户端
110 """
111 def __init__(self):
112 """
113 初始化需要授权,访问地址等
114 """
115 super(AnalyseClient, self).__init__()
116 self._server_url = settings.ANALYSE_SERVER_URL
117
118 self._apis = {
119 "sync_pkg_rule_map": {
120 "path": "api/base/pkgrulemapsync/",
121 "method": "post",
122 },
123 "create_project": {
124 "path": "api/projects/",
125 "method": "post",
126 },
127 "delete_project": {
128 "path": "api/projects/%d/",
129 "method": "delete",
130 },
131 "create_scan": {
132 "path": "api/projects/%d/scans/",
133 "method": "post",
134 },
135 "get_overview": {
136 "path": "api/projects/%d/overview/",
137 "method": "get",
138 },
139 'scan_check': {
140 'path': 'api/projects/%d/scans/%d/check/',
141 'method': 'get',
142 },
143 'update_scan': {
144 'path': 'api/projects/%d/scans/%d/info/',
145 'method': 'patch',
146 },
147 "get_scans": {
148 "path": "api/projects/%d/scans/",
149 "method": "get",
150 },
151 "get_scan": {
152 "path": "api/projects/%d/scans/%d/",
153 "method": "get",
154 },
155 "update_scan": {
156 "path": "api/projects/%d/scans/%d/info/",
157 "method": "patch",
158 },
159 "close_scan": {
160 "path": "api/projects/%d/scans/%d/",
161 "method": "put",
162 },
163 "get_cloc_languages": {
164 "path": "api/projects/%d/codemetric/cloclangs/",
165 "method": "get",

Callers 9

reclose_jobMethod · 0.90
close_scanMethod · 0.90
check_closing_jobMethod · 0.90
handleMethod · 0.90
__init__Method · 0.90
getMethod · 0.90
sync_pkg_rule_mapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected