codosdk 1.0.14__tar.gz → 1.0.16__tar.gz
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.
- {codosdk-1.0.14 → codosdk-1.0.16}/PKG-INFO +1 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/codosdk.egg-info/PKG-INFO +1 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/setup.py +1 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/mgv4_apis.py +9 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/consts.py +6 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/crud_utils.py +1 -1
- {codosdk-1.0.14 → codosdk-1.0.16}/LICENSE +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/README.md +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/codosdk.egg-info/SOURCES.txt +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/codosdk.egg-info/dependency_links.txt +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/codosdk.egg-info/requires.txt +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/codosdk.egg-info/top_level.txt +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/opssdk/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/opssdk/utils/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/pyproject.toml +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/setup.cfg +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/api_set.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/admin_apis.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/agent_apis.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/cmdb_apis.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/kerrigan_apis.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/apis/task_apis.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/application.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/base_handler.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cache.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cache_context.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/client.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cloud/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cloud/qcloud_api.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cloud/ucloud_api.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/cloud_utils.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/configs.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/db_context.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/error.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/fetch_coroutine.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/jwt_token.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/ldap.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/logger.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/model_utils.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/mqhelper.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/program.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/salt_api.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/sqlalchemy_pagination.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/tools.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/utils/__init__.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/utils/cc_crypto.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/utils/date_format.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/utils/pydantic_utils.py +0 -0
- {codosdk-1.0.14 → codosdk-1.0.16}/websdk2/web_logs.py +0 -0
|
@@ -9,7 +9,7 @@ desc : CODO SDK
|
|
|
9
9
|
import sys
|
|
10
10
|
from setuptools import setup, find_packages
|
|
11
11
|
|
|
12
|
-
VERSION = '1.0.
|
|
12
|
+
VERSION = '1.0.16'
|
|
13
13
|
|
|
14
14
|
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 6):
|
|
15
15
|
print('This program requires at least Python 2.7 or 3.6 to run.')
|
|
@@ -92,7 +92,15 @@ class AdminV4APIS:
|
|
|
92
92
|
},
|
|
93
93
|
field_help={
|
|
94
94
|
},
|
|
95
|
-
description='
|
|
95
|
+
description='获取所有角色和角色内内用户信息-待废弃')
|
|
96
|
+
|
|
97
|
+
get_all_roles_users = dict(method='GET',
|
|
98
|
+
url=f'{route_prefix}/v4/all_roles_users/',
|
|
99
|
+
params={
|
|
100
|
+
},
|
|
101
|
+
field_help={
|
|
102
|
+
},
|
|
103
|
+
description='获取所有角色和角色内内用户信息')
|
|
96
104
|
|
|
97
105
|
get_favorites_v4 = dict(method='GET',
|
|
98
106
|
url=f'{route_prefix}/v4/favorites/',
|
|
@@ -214,7 +214,12 @@ const.ORDER_STATE_TERMINATED = '39' # 订单终止
|
|
|
214
214
|
const.ORDER_STATE_QUEUE = '11' # 订单排队中
|
|
215
215
|
const.EXEC_TIMEOUT = 1800
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
# 节点地址
|
|
218
218
|
const.NODE_ADDRESS = 'NODE_ADDRESS'
|
|
219
219
|
const.EXEC_NODE_MAP_KEY = 'EXEC_NODE_MAP_KEY'
|
|
220
220
|
const.AGENT_USED_KEY = "agent_is_used_map_mark_key"
|
|
221
|
+
|
|
222
|
+
# otel
|
|
223
|
+
const.JAEGER_EXPORTER_HOST = "jaeger_exporter_host"
|
|
224
|
+
const.JAEGER_EXPORTER_PORT = "jaeger_exporter_port"
|
|
225
|
+
const.OTEL_ENABLED = "otel_enabled"
|
|
@@ -57,7 +57,7 @@ class ModelCRUDView:
|
|
|
57
57
|
)
|
|
58
58
|
except Exception as e:
|
|
59
59
|
logging.error(f"Database query failed: {e}")
|
|
60
|
-
return dict(code=2, msg='查询失败', data=None, timestamp=get_millisecond_timestamp())
|
|
60
|
+
return dict(code=2, msg='查询失败', data=None, reason=str(e), timestamp=get_millisecond_timestamp())
|
|
61
61
|
|
|
62
62
|
def handle_list(self, params: dict, get_by_val_func=None) -> dict:
|
|
63
63
|
self.prepare()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|