bely-api 2026.3.dev5__tar.gz → 2026.10.0__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.
- bely_api-2026.10.0/.gitignore +64 -0
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/BelyApiFactory.py +105 -40
- bely_api-2026.10.0/PKG-INFO +12 -0
- bely_api-2026.10.0/belyApi/__init__.py +266 -0
- bely_api-2026.10.0/belyApi/api/__init__.py +55 -0
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/authentication_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/domain_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/downloads_api.py +251 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/logbook_api.py +1587 -7
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/notification_configuration_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/property_value_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/search_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/system_log_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/test_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api/users_api.py +1 -1
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api_client.py +54 -26
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/configuration.py +94 -25
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/exceptions.py +1 -1
- bely_api-2026.10.0/belyApi/models/__init__.py +200 -0
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/allowed_property_value.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/api_exception_message.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/api_exception_message_exception.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/api_exception_message_exception_cause.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/api_exception_message_exception_cause_stack_trace_inner.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/api_exception_message_exception_cause_suppressed_inner.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/connector.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/connector_type.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/domain.py +9 -12
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/entity_info.py +11 -10
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/entity_type.py +16 -19
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item.py +14 -19
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_category.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_connector.py +13 -20
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_domain_logbook.py +14 -19
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_element.py +16 -21
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_element_history.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_element_relationship.py +13 -14
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_element_relationship_history.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_project.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_resource.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_source.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/item_type.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/list_tbl.py +8 -10
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log_document_options.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log_document_section.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log_entry.py +10 -9
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log_entry_attachment.py +9 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/log_reaction.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/logbook_search_results.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_configuration.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_configuration_handler_setting.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_configuration_setting.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_handler_config_key.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_provider.py +7 -8
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/notification_provider_config_key.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/property_metadata.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/property_type.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/property_value.py +10 -14
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/property_value_history.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/reaction.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/relationship_type.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/relationship_type_handler.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/resource_type.py +9 -12
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/resource_type_category.py +6 -6
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/role_type.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/search_entities_options.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/search_entities_results.py +21 -36
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/search_result.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/source.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/user_group.py +5 -4
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/user_info.py +8 -10
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/models/user_role.py +5 -4
- bely_api-2026.10.0/belyApi/py.typed +0 -0
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/rest.py +80 -9
- bely_api-2026.10.0/pyproject.toml +36 -0
- bely_api-2026.3.dev5/PKG-INFO +0 -8
- bely_api-2026.3.dev5/belyApi/__init__.py +0 -175
- bely_api-2026.3.dev5/belyApi/api/__init__.py +0 -14
- bely_api-2026.3.dev5/belyApi/models/__init__.py +0 -71
- bely_api-2026.3.dev5/bely_api.egg-info/PKG-INFO +0 -8
- bely_api-2026.3.dev5/bely_api.egg-info/SOURCES.txt +0 -80
- bely_api-2026.3.dev5/bely_api.egg-info/dependency_links.txt +0 -1
- bely_api-2026.3.dev5/bely_api.egg-info/entry_points.txt +0 -2
- bely_api-2026.3.dev5/bely_api.egg-info/requires.txt +0 -4
- bely_api-2026.3.dev5/bely_api.egg-info/top_level.txt +0 -2
- bely_api-2026.3.dev5/setup.cfg +0 -4
- bely_api-2026.3.dev5/setup.py +0 -29
- {bely_api-2026.3.dev5 → bely_api-2026.10.0}/belyApi/api_response.py +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.idea
|
|
2
|
+
.vscode
|
|
3
|
+
.DS_Store
|
|
4
|
+
src/python/.loglogin
|
|
5
|
+
.loglogin
|
|
6
|
+
|
|
7
|
+
# Compiled files
|
|
8
|
+
*.pyc
|
|
9
|
+
src/java/LogrPortal/build/
|
|
10
|
+
src/java/LogrPortal/dist/
|
|
11
|
+
tools/developer_tools/portal_testing/CdbFunctionalTester/build/
|
|
12
|
+
tools/developer_tools/portal_testing/CdbFunctionalTester/nbproject/private/
|
|
13
|
+
|
|
14
|
+
/tools/developer_tools/code_testing/CdbWebPortalTest/target/
|
|
15
|
+
/tools/developer_tools/portal_testing/PythonSeleniumTest/support_bin/
|
|
16
|
+
/tools/developer_tools/portal_testing/PythonSeleniumTest/dw-data/
|
|
17
|
+
/tools/developer_tools/python-client/*
|
|
18
|
+
/tools/developer_tools/python-client/**/.DS_Store
|
|
19
|
+
!/tools/developer_tools/python-client/generatePyClient.sh
|
|
20
|
+
!/tools/developer_tools/python-client/ClientApiConfig.yml
|
|
21
|
+
!/tools/developer_tools/python-client/test
|
|
22
|
+
!/tools/developer_tools/python-client/conda-recipe
|
|
23
|
+
!/tools/developer_tools/python-client/conda-build.sh
|
|
24
|
+
!/tools/developer_tools/python-client/data
|
|
25
|
+
!/tools/developer_tools/python-client/pyproject.toml
|
|
26
|
+
!/tools/developer_tools/python-client/uv.lock
|
|
27
|
+
!/tools/developer_tools/python-client/README.md
|
|
28
|
+
!/tools/developer_tools/python-client/packages
|
|
29
|
+
/tools/developer_tools/python-client/packages/api/belyApi/
|
|
30
|
+
/tools/developer_tools/python-client/packages/**/__pycache__/
|
|
31
|
+
/tools/developer_tools/python-client/packages/**/dist/
|
|
32
|
+
/tools/developer_tools/python-client/conda-recipe/API/build
|
|
33
|
+
/tools/developer_tools/python-client/conda-recipe/API/bely-api-env.txt
|
|
34
|
+
|
|
35
|
+
# Generated deployment specific config files
|
|
36
|
+
src/java/LogrPortal/nbproject/private/private.xml
|
|
37
|
+
src/java/LogrPortal/nbproject/private/private.properties
|
|
38
|
+
src/java/LogrPortal/src/java/cdb.portal.properties
|
|
39
|
+
src/java/LogrPortal/web/WEB-INF/glassfish-web.xml
|
|
40
|
+
src/java/LogrPortal/web/WEB-INF/web.xml
|
|
41
|
+
src/java/LogrPortal/setup/glassfish-resources.xml
|
|
42
|
+
|
|
43
|
+
# Plugin directories, autogenerated files
|
|
44
|
+
src/java/LogrPortal/web/views/plugins/
|
|
45
|
+
src/python/cdb/cdb_web_service/plugins/
|
|
46
|
+
src/java/LogrPortal/src/java/gov/anl/aps/logr/portal/plugins/support/
|
|
47
|
+
|
|
48
|
+
# Python docs
|
|
49
|
+
docs/python/_build/
|
|
50
|
+
/src/java/LogrPortal/nbproject/private/
|
|
51
|
+
/src/java/LogrPortal/build/
|
|
52
|
+
/src/java/LogrPortal/dist/
|
|
53
|
+
/src/java/LogrPortal/nbproject/private/
|
|
54
|
+
|
|
55
|
+
# Python REST Api Dist
|
|
56
|
+
/src/python/cdb_api.egg-info
|
|
57
|
+
/src/python/dist
|
|
58
|
+
|
|
59
|
+
# Temporary testing csv files
|
|
60
|
+
.env
|
|
61
|
+
tools/developer_tools/bely-mqtt-message-broker/conda-bld
|
|
62
|
+
tools/developer_tools/bely-mqtt-message-broker/dev-config
|
|
63
|
+
tools/developer_tools/bely-mqtt-message-broker/conda-recipe/bely-mqtt-env.txt
|
|
64
|
+
tools/developer_tools/bely-mqtt-message-broker/conda-recipe/src
|
|
@@ -2,23 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
# Copyright (c) UChicago Argonne, LLC. All rights reserved.
|
|
4
4
|
# See LICENSE file.
|
|
5
|
+
|
|
6
|
+
# Annotations are stored as strings so that the API return types below can be
|
|
7
|
+
# named without importing them at module load time.
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
5
10
|
import base64
|
|
11
|
+
import json
|
|
6
12
|
import os
|
|
7
13
|
import warnings
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
import typing
|
|
15
|
+
|
|
16
|
+
if typing.TYPE_CHECKING:
|
|
17
|
+
from belyApi import (
|
|
18
|
+
AuthenticationApi,
|
|
19
|
+
DomainApi,
|
|
20
|
+
DownloadsApi,
|
|
21
|
+
LogbookApi,
|
|
22
|
+
NotificationConfigurationApi,
|
|
23
|
+
PropertyValueApi,
|
|
24
|
+
SearchApi,
|
|
25
|
+
SystemLogApi,
|
|
26
|
+
UsersApi,
|
|
27
|
+
)
|
|
22
28
|
|
|
23
29
|
|
|
24
30
|
class BelyApiFactory:
|
|
@@ -28,34 +34,74 @@ class BelyApiFactory:
|
|
|
28
34
|
|
|
29
35
|
LOGBOOK_DOMAIN_ID = 1
|
|
30
36
|
|
|
37
|
+
# attribute name -> generated api class. Each api is built on first access by
|
|
38
|
+
# __getattr__ so that importing this module does not drag in every belyApi
|
|
39
|
+
# model; see the "Known startup cost" section of bely-cli/CLAUDE.md. The
|
|
40
|
+
# generator's lazyImports option only pays off while this stays lazy.
|
|
41
|
+
_API_CLASSES = {
|
|
42
|
+
"auth_api": "AuthenticationApi",
|
|
43
|
+
"domain_api": "DomainApi",
|
|
44
|
+
"downloads_api": "DownloadsApi",
|
|
45
|
+
"logbook_api": "LogbookApi",
|
|
46
|
+
"notification_configuration_api": "NotificationConfigurationApi",
|
|
47
|
+
"property_value_api": "PropertyValueApi",
|
|
48
|
+
"search_api": "SearchApi",
|
|
49
|
+
"systemlog_api": "SystemLogApi",
|
|
50
|
+
"users_api": "UsersApi",
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# Deprecated camelCase aliases -> canonical attribute name
|
|
54
|
+
_API_ALIASES = {
|
|
55
|
+
"domainApi": "domain_api",
|
|
56
|
+
"downloadsApi": "downloads_api",
|
|
57
|
+
"propertyValueApi": "property_value_api",
|
|
58
|
+
"searchApi": "search_api",
|
|
59
|
+
"systemlogApi": "systemlog_api",
|
|
60
|
+
"usersApi": "users_api",
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
def __init__(self, bely_url):
|
|
64
|
+
from belyApi import ApiClient, Configuration
|
|
65
|
+
|
|
32
66
|
self.bely_url = bely_url
|
|
33
67
|
self.config = Configuration(host=self.bely_url)
|
|
34
68
|
self.api_client = ApiClient(configuration=self.config)
|
|
35
69
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
70
|
+
def __getattr__(self, name):
|
|
71
|
+
"""Build api instances on first access.
|
|
72
|
+
|
|
73
|
+
Only called when normal attribute lookup fails, so each api is created
|
|
74
|
+
once and then cached in __dict__.
|
|
75
|
+
"""
|
|
76
|
+
canonical = self._API_ALIASES.get(name, name)
|
|
77
|
+
class_name = self._API_CLASSES.get(canonical)
|
|
78
|
+
if class_name is None:
|
|
79
|
+
raise AttributeError(
|
|
80
|
+
f"{type(self).__name__!r} object has no attribute {name!r}"
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
# __init__ must have run; guard against access on a half-built instance
|
|
84
|
+
# (e.g. during unpickling) recursing back into __getattr__.
|
|
85
|
+
if "api_client" not in self.__dict__:
|
|
86
|
+
raise AttributeError(
|
|
87
|
+
f"cannot build {canonical!r} before BelyApiFactory.__init__ has run"
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
import belyApi
|
|
91
|
+
|
|
92
|
+
api = getattr(belyApi, class_name)(api_client=self.api_client)
|
|
93
|
+
setattr(self, canonical, api)
|
|
94
|
+
if name != canonical:
|
|
95
|
+
setattr(self, name, api)
|
|
96
|
+
return api
|
|
97
|
+
|
|
98
|
+
def __dir__(self):
|
|
99
|
+
return sorted(
|
|
100
|
+
set(super().__dir__())
|
|
101
|
+
| set(self._API_CLASSES)
|
|
102
|
+
| set(self._API_ALIASES)
|
|
39
103
|
)
|
|
40
104
|
|
|
41
|
-
self.downloads_api = DownloadsApi(api_client=self.api_client)
|
|
42
|
-
self.property_value_api = PropertyValueApi(api_client=self.api_client)
|
|
43
|
-
self.users_api = UsersApi(api_client=self.api_client)
|
|
44
|
-
self.domain_api = DomainApi(api_client=self.api_client)
|
|
45
|
-
|
|
46
|
-
self.systemlog_api = SystemLogApi(api_client=self.api_client)
|
|
47
|
-
self.search_api = SearchApi(api_client=self.api_client)
|
|
48
|
-
|
|
49
|
-
# Deprecated camelCase aliases
|
|
50
|
-
self.downloadsApi = self.downloads_api
|
|
51
|
-
self.propertyValueApi = self.property_value_api
|
|
52
|
-
self.usersApi = self.users_api
|
|
53
|
-
self.domainApi = self.domain_api
|
|
54
|
-
self.systemlogApi = self.systemlog_api
|
|
55
|
-
self.searchApi = self.search_api
|
|
56
|
-
|
|
57
|
-
self.auth_api = AuthenticationApi(api_client=self.api_client)
|
|
58
|
-
|
|
59
105
|
def _deprecated(self, old_name, new_name):
|
|
60
106
|
warnings.warn(
|
|
61
107
|
f"{old_name} is deprecated, use {new_name} instead",
|
|
@@ -110,11 +156,30 @@ class BelyApiFactory:
|
|
|
110
156
|
self.auth_api.log_out()
|
|
111
157
|
|
|
112
158
|
def parse_api_exception(self, open_api_exception):
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
159
|
+
"""Parse an API exception response into an ApiExceptionMessage."""
|
|
160
|
+
from belyApi import ApiExceptionMessage
|
|
161
|
+
|
|
162
|
+
payload = open_api_exception.body
|
|
163
|
+
if payload is None:
|
|
164
|
+
payload = open_api_exception.data
|
|
165
|
+
if isinstance(payload, bytes):
|
|
166
|
+
payload = payload.decode("utf-8")
|
|
167
|
+
if isinstance(payload, str):
|
|
168
|
+
payload = json.loads(payload)
|
|
169
|
+
if not isinstance(payload, dict):
|
|
170
|
+
raise ValueError("API exception does not contain a JSON object")
|
|
171
|
+
|
|
172
|
+
parsed = ApiExceptionMessage.from_dict(payload)
|
|
173
|
+
if not parsed.message:
|
|
174
|
+
exception = parsed.exception
|
|
175
|
+
parsed.message = (
|
|
176
|
+
getattr(exception, "message", None)
|
|
177
|
+
or getattr(exception, "localized_message", None)
|
|
178
|
+
or parsed.simple_name
|
|
179
|
+
or getattr(open_api_exception, "reason", None)
|
|
180
|
+
or "API request failed"
|
|
181
|
+
)
|
|
182
|
+
return parsed
|
|
118
183
|
|
|
119
184
|
# -- Deprecated camelCase wrappers --
|
|
120
185
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: bely-api
|
|
3
|
+
Version: 2026.10.0
|
|
4
|
+
Summary: Python client API library used to communicate with BELY API.
|
|
5
|
+
Project-URL: Homepage, https://github.com/AdvancedPhotonSource/BELY
|
|
6
|
+
Maintainer-email: Dariusz Jarosz <djarosz@aps.anl.gov>
|
|
7
|
+
License: Copyright (c) UChicago Argonne, LLC. All rights reserved.
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: certifi
|
|
10
|
+
Requires-Dist: pydantic>=1.10
|
|
11
|
+
Requires-Dist: python-dateutil
|
|
12
|
+
Requires-Dist: urllib3
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
BELY API
|
|
7
|
+
|
|
8
|
+
The API that provides access to BELY data.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 2026.10.0
|
|
11
|
+
Contact: djarosz@anl.gov
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "1.0.0"
|
|
19
|
+
|
|
20
|
+
# Define package exports
|
|
21
|
+
__all__ = [
|
|
22
|
+
"AuthenticationApi",
|
|
23
|
+
"DownloadsApi",
|
|
24
|
+
"LogbookApi",
|
|
25
|
+
"NotificationConfigurationApi",
|
|
26
|
+
"PropertyValueApi",
|
|
27
|
+
"SearchApi",
|
|
28
|
+
"SystemLogApi",
|
|
29
|
+
"TestApi",
|
|
30
|
+
"UsersApi",
|
|
31
|
+
"DomainApi",
|
|
32
|
+
"ApiResponse",
|
|
33
|
+
"ApiClient",
|
|
34
|
+
"Configuration",
|
|
35
|
+
"OpenApiException",
|
|
36
|
+
"ApiTypeError",
|
|
37
|
+
"ApiValueError",
|
|
38
|
+
"ApiKeyError",
|
|
39
|
+
"ApiAttributeError",
|
|
40
|
+
"ApiException",
|
|
41
|
+
"AllowedPropertyValue",
|
|
42
|
+
"ApiExceptionMessage",
|
|
43
|
+
"ApiExceptionMessageException",
|
|
44
|
+
"ApiExceptionMessageExceptionCause",
|
|
45
|
+
"ApiExceptionMessageExceptionCauseStackTraceInner",
|
|
46
|
+
"ApiExceptionMessageExceptionCauseSuppressedInner",
|
|
47
|
+
"Connector",
|
|
48
|
+
"ConnectorType",
|
|
49
|
+
"Domain",
|
|
50
|
+
"EntityInfo",
|
|
51
|
+
"EntityType",
|
|
52
|
+
"Item",
|
|
53
|
+
"ItemCategory",
|
|
54
|
+
"ItemConnector",
|
|
55
|
+
"ItemDomainLogbook",
|
|
56
|
+
"ItemElement",
|
|
57
|
+
"ItemElementHistory",
|
|
58
|
+
"ItemElementRelationship",
|
|
59
|
+
"ItemElementRelationshipHistory",
|
|
60
|
+
"ItemProject",
|
|
61
|
+
"ItemResource",
|
|
62
|
+
"ItemSource",
|
|
63
|
+
"ItemType",
|
|
64
|
+
"ListTbl",
|
|
65
|
+
"Log",
|
|
66
|
+
"LogDocumentOptions",
|
|
67
|
+
"LogDocumentSection",
|
|
68
|
+
"LogEntry",
|
|
69
|
+
"LogEntryAttachment",
|
|
70
|
+
"LogReaction",
|
|
71
|
+
"LogbookSearchResults",
|
|
72
|
+
"NotificationConfiguration",
|
|
73
|
+
"NotificationConfigurationHandlerSetting",
|
|
74
|
+
"NotificationConfigurationSetting",
|
|
75
|
+
"NotificationHandlerConfigKey",
|
|
76
|
+
"NotificationProvider",
|
|
77
|
+
"NotificationProviderConfigKey",
|
|
78
|
+
"PropertyMetadata",
|
|
79
|
+
"PropertyType",
|
|
80
|
+
"PropertyValue",
|
|
81
|
+
"PropertyValueHistory",
|
|
82
|
+
"Reaction",
|
|
83
|
+
"RelationshipType",
|
|
84
|
+
"RelationshipTypeHandler",
|
|
85
|
+
"ResourceType",
|
|
86
|
+
"ResourceTypeCategory",
|
|
87
|
+
"RoleType",
|
|
88
|
+
"SearchEntitiesOptions",
|
|
89
|
+
"SearchEntitiesResults",
|
|
90
|
+
"SearchResult",
|
|
91
|
+
"Source",
|
|
92
|
+
"UserGroup",
|
|
93
|
+
"UserInfo",
|
|
94
|
+
"UserRole",
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
import typing as _typing
|
|
98
|
+
|
|
99
|
+
if _typing.TYPE_CHECKING:
|
|
100
|
+
# import apis into sdk package
|
|
101
|
+
from belyApi.api.authentication_api import AuthenticationApi as AuthenticationApi
|
|
102
|
+
from belyApi.api.downloads_api import DownloadsApi as DownloadsApi
|
|
103
|
+
from belyApi.api.logbook_api import LogbookApi as LogbookApi
|
|
104
|
+
from belyApi.api.notification_configuration_api import NotificationConfigurationApi as NotificationConfigurationApi
|
|
105
|
+
from belyApi.api.property_value_api import PropertyValueApi as PropertyValueApi
|
|
106
|
+
from belyApi.api.search_api import SearchApi as SearchApi
|
|
107
|
+
from belyApi.api.system_log_api import SystemLogApi as SystemLogApi
|
|
108
|
+
from belyApi.api.test_api import TestApi as TestApi
|
|
109
|
+
from belyApi.api.users_api import UsersApi as UsersApi
|
|
110
|
+
from belyApi.api.domain_api import DomainApi as DomainApi
|
|
111
|
+
|
|
112
|
+
# import ApiClient
|
|
113
|
+
from belyApi.api_response import ApiResponse as ApiResponse
|
|
114
|
+
from belyApi.api_client import ApiClient as ApiClient
|
|
115
|
+
from belyApi.configuration import Configuration as Configuration
|
|
116
|
+
from belyApi.exceptions import OpenApiException as OpenApiException
|
|
117
|
+
from belyApi.exceptions import ApiTypeError as ApiTypeError
|
|
118
|
+
from belyApi.exceptions import ApiValueError as ApiValueError
|
|
119
|
+
from belyApi.exceptions import ApiKeyError as ApiKeyError
|
|
120
|
+
from belyApi.exceptions import ApiAttributeError as ApiAttributeError
|
|
121
|
+
from belyApi.exceptions import ApiException as ApiException
|
|
122
|
+
|
|
123
|
+
# import models into sdk package
|
|
124
|
+
from belyApi.models.allowed_property_value import AllowedPropertyValue as AllowedPropertyValue
|
|
125
|
+
from belyApi.models.api_exception_message import ApiExceptionMessage as ApiExceptionMessage
|
|
126
|
+
from belyApi.models.api_exception_message_exception import ApiExceptionMessageException as ApiExceptionMessageException
|
|
127
|
+
from belyApi.models.api_exception_message_exception_cause import ApiExceptionMessageExceptionCause as ApiExceptionMessageExceptionCause
|
|
128
|
+
from belyApi.models.api_exception_message_exception_cause_stack_trace_inner import ApiExceptionMessageExceptionCauseStackTraceInner as ApiExceptionMessageExceptionCauseStackTraceInner
|
|
129
|
+
from belyApi.models.api_exception_message_exception_cause_suppressed_inner import ApiExceptionMessageExceptionCauseSuppressedInner as ApiExceptionMessageExceptionCauseSuppressedInner
|
|
130
|
+
from belyApi.models.connector import Connector as Connector
|
|
131
|
+
from belyApi.models.connector_type import ConnectorType as ConnectorType
|
|
132
|
+
from belyApi.models.domain import Domain as Domain
|
|
133
|
+
from belyApi.models.entity_info import EntityInfo as EntityInfo
|
|
134
|
+
from belyApi.models.entity_type import EntityType as EntityType
|
|
135
|
+
from belyApi.models.item import Item as Item
|
|
136
|
+
from belyApi.models.item_category import ItemCategory as ItemCategory
|
|
137
|
+
from belyApi.models.item_connector import ItemConnector as ItemConnector
|
|
138
|
+
from belyApi.models.item_domain_logbook import ItemDomainLogbook as ItemDomainLogbook
|
|
139
|
+
from belyApi.models.item_element import ItemElement as ItemElement
|
|
140
|
+
from belyApi.models.item_element_history import ItemElementHistory as ItemElementHistory
|
|
141
|
+
from belyApi.models.item_element_relationship import ItemElementRelationship as ItemElementRelationship
|
|
142
|
+
from belyApi.models.item_element_relationship_history import ItemElementRelationshipHistory as ItemElementRelationshipHistory
|
|
143
|
+
from belyApi.models.item_project import ItemProject as ItemProject
|
|
144
|
+
from belyApi.models.item_resource import ItemResource as ItemResource
|
|
145
|
+
from belyApi.models.item_source import ItemSource as ItemSource
|
|
146
|
+
from belyApi.models.item_type import ItemType as ItemType
|
|
147
|
+
from belyApi.models.list_tbl import ListTbl as ListTbl
|
|
148
|
+
from belyApi.models.log import Log as Log
|
|
149
|
+
from belyApi.models.log_document_options import LogDocumentOptions as LogDocumentOptions
|
|
150
|
+
from belyApi.models.log_document_section import LogDocumentSection as LogDocumentSection
|
|
151
|
+
from belyApi.models.log_entry import LogEntry as LogEntry
|
|
152
|
+
from belyApi.models.log_entry_attachment import LogEntryAttachment as LogEntryAttachment
|
|
153
|
+
from belyApi.models.log_reaction import LogReaction as LogReaction
|
|
154
|
+
from belyApi.models.logbook_search_results import LogbookSearchResults as LogbookSearchResults
|
|
155
|
+
from belyApi.models.notification_configuration import NotificationConfiguration as NotificationConfiguration
|
|
156
|
+
from belyApi.models.notification_configuration_handler_setting import NotificationConfigurationHandlerSetting as NotificationConfigurationHandlerSetting
|
|
157
|
+
from belyApi.models.notification_configuration_setting import NotificationConfigurationSetting as NotificationConfigurationSetting
|
|
158
|
+
from belyApi.models.notification_handler_config_key import NotificationHandlerConfigKey as NotificationHandlerConfigKey
|
|
159
|
+
from belyApi.models.notification_provider import NotificationProvider as NotificationProvider
|
|
160
|
+
from belyApi.models.notification_provider_config_key import NotificationProviderConfigKey as NotificationProviderConfigKey
|
|
161
|
+
from belyApi.models.property_metadata import PropertyMetadata as PropertyMetadata
|
|
162
|
+
from belyApi.models.property_type import PropertyType as PropertyType
|
|
163
|
+
from belyApi.models.property_value import PropertyValue as PropertyValue
|
|
164
|
+
from belyApi.models.property_value_history import PropertyValueHistory as PropertyValueHistory
|
|
165
|
+
from belyApi.models.reaction import Reaction as Reaction
|
|
166
|
+
from belyApi.models.relationship_type import RelationshipType as RelationshipType
|
|
167
|
+
from belyApi.models.relationship_type_handler import RelationshipTypeHandler as RelationshipTypeHandler
|
|
168
|
+
from belyApi.models.resource_type import ResourceType as ResourceType
|
|
169
|
+
from belyApi.models.resource_type_category import ResourceTypeCategory as ResourceTypeCategory
|
|
170
|
+
from belyApi.models.role_type import RoleType as RoleType
|
|
171
|
+
from belyApi.models.search_entities_options import SearchEntitiesOptions as SearchEntitiesOptions
|
|
172
|
+
from belyApi.models.search_entities_results import SearchEntitiesResults as SearchEntitiesResults
|
|
173
|
+
from belyApi.models.search_result import SearchResult as SearchResult
|
|
174
|
+
from belyApi.models.source import Source as Source
|
|
175
|
+
from belyApi.models.user_group import UserGroup as UserGroup
|
|
176
|
+
from belyApi.models.user_info import UserInfo as UserInfo
|
|
177
|
+
from belyApi.models.user_role import UserRole as UserRole
|
|
178
|
+
|
|
179
|
+
else:
|
|
180
|
+
from importlib import import_module
|
|
181
|
+
|
|
182
|
+
_exports = {
|
|
183
|
+
"AuthenticationApi": ".api.authentication_api",
|
|
184
|
+
"DownloadsApi": ".api.downloads_api",
|
|
185
|
+
"LogbookApi": ".api.logbook_api",
|
|
186
|
+
"NotificationConfigurationApi": ".api.notification_configuration_api",
|
|
187
|
+
"PropertyValueApi": ".api.property_value_api",
|
|
188
|
+
"SearchApi": ".api.search_api",
|
|
189
|
+
"SystemLogApi": ".api.system_log_api",
|
|
190
|
+
"TestApi": ".api.test_api",
|
|
191
|
+
"UsersApi": ".api.users_api",
|
|
192
|
+
"DomainApi": ".api.domain_api",
|
|
193
|
+
"ApiResponse": ".api_response",
|
|
194
|
+
"ApiClient": ".api_client",
|
|
195
|
+
"Configuration": ".configuration",
|
|
196
|
+
"OpenApiException": ".exceptions",
|
|
197
|
+
"ApiTypeError": ".exceptions",
|
|
198
|
+
"ApiValueError": ".exceptions",
|
|
199
|
+
"ApiKeyError": ".exceptions",
|
|
200
|
+
"ApiAttributeError": ".exceptions",
|
|
201
|
+
"ApiException": ".exceptions",
|
|
202
|
+
"AllowedPropertyValue": ".models.allowed_property_value",
|
|
203
|
+
"ApiExceptionMessage": ".models.api_exception_message",
|
|
204
|
+
"ApiExceptionMessageException": ".models.api_exception_message_exception",
|
|
205
|
+
"ApiExceptionMessageExceptionCause": ".models.api_exception_message_exception_cause",
|
|
206
|
+
"ApiExceptionMessageExceptionCauseStackTraceInner": ".models.api_exception_message_exception_cause_stack_trace_inner",
|
|
207
|
+
"ApiExceptionMessageExceptionCauseSuppressedInner": ".models.api_exception_message_exception_cause_suppressed_inner",
|
|
208
|
+
"Connector": ".models.connector",
|
|
209
|
+
"ConnectorType": ".models.connector_type",
|
|
210
|
+
"Domain": ".models.domain",
|
|
211
|
+
"EntityInfo": ".models.entity_info",
|
|
212
|
+
"EntityType": ".models.entity_type",
|
|
213
|
+
"Item": ".models.item",
|
|
214
|
+
"ItemCategory": ".models.item_category",
|
|
215
|
+
"ItemConnector": ".models.item_connector",
|
|
216
|
+
"ItemDomainLogbook": ".models.item_domain_logbook",
|
|
217
|
+
"ItemElement": ".models.item_element",
|
|
218
|
+
"ItemElementHistory": ".models.item_element_history",
|
|
219
|
+
"ItemElementRelationship": ".models.item_element_relationship",
|
|
220
|
+
"ItemElementRelationshipHistory": ".models.item_element_relationship_history",
|
|
221
|
+
"ItemProject": ".models.item_project",
|
|
222
|
+
"ItemResource": ".models.item_resource",
|
|
223
|
+
"ItemSource": ".models.item_source",
|
|
224
|
+
"ItemType": ".models.item_type",
|
|
225
|
+
"ListTbl": ".models.list_tbl",
|
|
226
|
+
"Log": ".models.log",
|
|
227
|
+
"LogDocumentOptions": ".models.log_document_options",
|
|
228
|
+
"LogDocumentSection": ".models.log_document_section",
|
|
229
|
+
"LogEntry": ".models.log_entry",
|
|
230
|
+
"LogEntryAttachment": ".models.log_entry_attachment",
|
|
231
|
+
"LogReaction": ".models.log_reaction",
|
|
232
|
+
"LogbookSearchResults": ".models.logbook_search_results",
|
|
233
|
+
"NotificationConfiguration": ".models.notification_configuration",
|
|
234
|
+
"NotificationConfigurationHandlerSetting": ".models.notification_configuration_handler_setting",
|
|
235
|
+
"NotificationConfigurationSetting": ".models.notification_configuration_setting",
|
|
236
|
+
"NotificationHandlerConfigKey": ".models.notification_handler_config_key",
|
|
237
|
+
"NotificationProvider": ".models.notification_provider",
|
|
238
|
+
"NotificationProviderConfigKey": ".models.notification_provider_config_key",
|
|
239
|
+
"PropertyMetadata": ".models.property_metadata",
|
|
240
|
+
"PropertyType": ".models.property_type",
|
|
241
|
+
"PropertyValue": ".models.property_value",
|
|
242
|
+
"PropertyValueHistory": ".models.property_value_history",
|
|
243
|
+
"Reaction": ".models.reaction",
|
|
244
|
+
"RelationshipType": ".models.relationship_type",
|
|
245
|
+
"RelationshipTypeHandler": ".models.relationship_type_handler",
|
|
246
|
+
"ResourceType": ".models.resource_type",
|
|
247
|
+
"ResourceTypeCategory": ".models.resource_type_category",
|
|
248
|
+
"RoleType": ".models.role_type",
|
|
249
|
+
"SearchEntitiesOptions": ".models.search_entities_options",
|
|
250
|
+
"SearchEntitiesResults": ".models.search_entities_results",
|
|
251
|
+
"SearchResult": ".models.search_result",
|
|
252
|
+
"Source": ".models.source",
|
|
253
|
+
"UserGroup": ".models.user_group",
|
|
254
|
+
"UserInfo": ".models.user_info",
|
|
255
|
+
"UserRole": ".models.user_role",
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
def __getattr__(name: str) -> object:
|
|
259
|
+
if (module_name := _exports.get(name)) is None:
|
|
260
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
261
|
+
value = getattr(import_module(module_name, __name__), name)
|
|
262
|
+
globals()[name] = value
|
|
263
|
+
return value
|
|
264
|
+
|
|
265
|
+
def __dir__() -> list[str]:
|
|
266
|
+
return sorted(globals().keys() | _exports.keys())
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"AuthenticationApi",
|
|
5
|
+
"DownloadsApi",
|
|
6
|
+
"LogbookApi",
|
|
7
|
+
"NotificationConfigurationApi",
|
|
8
|
+
"PropertyValueApi",
|
|
9
|
+
"SearchApi",
|
|
10
|
+
"SystemLogApi",
|
|
11
|
+
"TestApi",
|
|
12
|
+
"UsersApi",
|
|
13
|
+
"DomainApi",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
import typing as _typing
|
|
17
|
+
|
|
18
|
+
if _typing.TYPE_CHECKING:
|
|
19
|
+
# import apis into api package
|
|
20
|
+
from belyApi.api.authentication_api import AuthenticationApi
|
|
21
|
+
from belyApi.api.downloads_api import DownloadsApi
|
|
22
|
+
from belyApi.api.logbook_api import LogbookApi
|
|
23
|
+
from belyApi.api.notification_configuration_api import NotificationConfigurationApi
|
|
24
|
+
from belyApi.api.property_value_api import PropertyValueApi
|
|
25
|
+
from belyApi.api.search_api import SearchApi
|
|
26
|
+
from belyApi.api.system_log_api import SystemLogApi
|
|
27
|
+
from belyApi.api.test_api import TestApi
|
|
28
|
+
from belyApi.api.users_api import UsersApi
|
|
29
|
+
from belyApi.api.domain_api import DomainApi
|
|
30
|
+
|
|
31
|
+
else:
|
|
32
|
+
from importlib import import_module
|
|
33
|
+
|
|
34
|
+
_exports = {
|
|
35
|
+
"AuthenticationApi": ".authentication_api",
|
|
36
|
+
"DownloadsApi": ".downloads_api",
|
|
37
|
+
"LogbookApi": ".logbook_api",
|
|
38
|
+
"NotificationConfigurationApi": ".notification_configuration_api",
|
|
39
|
+
"PropertyValueApi": ".property_value_api",
|
|
40
|
+
"SearchApi": ".search_api",
|
|
41
|
+
"SystemLogApi": ".system_log_api",
|
|
42
|
+
"TestApi": ".test_api",
|
|
43
|
+
"UsersApi": ".users_api",
|
|
44
|
+
"DomainApi": ".domain_api",
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __getattr__(name: str) -> object:
|
|
48
|
+
if (module_name := _exports.get(name)) is None:
|
|
49
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
50
|
+
value = getattr(import_module(module_name, __name__), name)
|
|
51
|
+
globals()[name] = value
|
|
52
|
+
return value
|
|
53
|
+
|
|
54
|
+
def __dir__() -> list[str]:
|
|
55
|
+
return sorted(globals().keys() | _exports.keys())
|