bely-api 2026.3.dev5__tar.gz → 2026.3.1__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.
Files changed (89) hide show
  1. bely_api-2026.3.1/.gitignore +64 -0
  2. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/BelyApiFactory.py +82 -35
  3. bely_api-2026.3.1/PKG-INFO +12 -0
  4. bely_api-2026.3.1/belyApi/__init__.py +266 -0
  5. bely_api-2026.3.1/belyApi/api/__init__.py +55 -0
  6. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/downloads_api.py +250 -0
  7. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/logbook_api.py +260 -3
  8. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api_client.py +53 -25
  9. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/configuration.py +92 -23
  10. bely_api-2026.3.1/belyApi/models/__init__.py +200 -0
  11. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/allowed_property_value.py +4 -3
  12. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/api_exception_message.py +4 -3
  13. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/api_exception_message_exception.py +6 -7
  14. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/api_exception_message_exception_cause.py +6 -7
  15. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/api_exception_message_exception_cause_stack_trace_inner.py +4 -3
  16. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/api_exception_message_exception_cause_suppressed_inner.py +5 -5
  17. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/connector.py +6 -7
  18. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/connector_type.py +5 -5
  19. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/domain.py +8 -11
  20. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/entity_info.py +10 -9
  21. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/entity_type.py +10 -15
  22. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item.py +15 -20
  23. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_category.py +4 -3
  24. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_connector.py +12 -19
  25. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_domain_logbook.py +15 -20
  26. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_element.py +15 -20
  27. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_element_history.py +4 -3
  28. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_element_relationship.py +19 -20
  29. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_element_relationship_history.py +4 -3
  30. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_project.py +4 -3
  31. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_resource.py +4 -3
  32. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_source.py +4 -3
  33. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/item_type.py +5 -5
  34. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/list_tbl.py +7 -9
  35. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log.py +6 -7
  36. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log_document_options.py +4 -3
  37. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log_document_section.py +4 -3
  38. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log_entry.py +6 -7
  39. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log_entry_attachment.py +4 -3
  40. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/log_reaction.py +8 -7
  41. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/logbook_search_results.py +6 -7
  42. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_configuration.py +8 -7
  43. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_configuration_handler_setting.py +4 -3
  44. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_configuration_setting.py +4 -3
  45. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_handler_config_key.py +5 -5
  46. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_provider.py +6 -7
  47. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/notification_provider_config_key.py +5 -5
  48. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/property_metadata.py +4 -3
  49. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/property_type.py +5 -5
  50. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/property_value.py +9 -13
  51. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/property_value_history.py +4 -3
  52. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/reaction.py +4 -3
  53. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/relationship_type.py +5 -5
  54. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/relationship_type_handler.py +5 -5
  55. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/resource_type.py +8 -11
  56. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/resource_type_category.py +5 -5
  57. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/role_type.py +4 -3
  58. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/search_entities_options.py +4 -3
  59. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/search_entities_results.py +20 -35
  60. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/search_result.py +10 -9
  61. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/source.py +4 -3
  62. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/user_group.py +4 -3
  63. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/user_info.py +16 -18
  64. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/models/user_role.py +4 -3
  65. bely_api-2026.3.1/belyApi/py.typed +0 -0
  66. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/rest.py +79 -8
  67. bely_api-2026.3.1/pyproject.toml +36 -0
  68. bely_api-2026.3.dev5/PKG-INFO +0 -8
  69. bely_api-2026.3.dev5/belyApi/__init__.py +0 -175
  70. bely_api-2026.3.dev5/belyApi/api/__init__.py +0 -14
  71. bely_api-2026.3.dev5/belyApi/models/__init__.py +0 -71
  72. bely_api-2026.3.dev5/bely_api.egg-info/PKG-INFO +0 -8
  73. bely_api-2026.3.dev5/bely_api.egg-info/SOURCES.txt +0 -80
  74. bely_api-2026.3.dev5/bely_api.egg-info/dependency_links.txt +0 -1
  75. bely_api-2026.3.dev5/bely_api.egg-info/entry_points.txt +0 -2
  76. bely_api-2026.3.dev5/bely_api.egg-info/requires.txt +0 -4
  77. bely_api-2026.3.dev5/bely_api.egg-info/top_level.txt +0 -2
  78. bely_api-2026.3.dev5/setup.cfg +0 -4
  79. bely_api-2026.3.dev5/setup.py +0 -29
  80. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/authentication_api.py +0 -0
  81. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/domain_api.py +0 -0
  82. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/notification_configuration_api.py +0 -0
  83. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/property_value_api.py +0 -0
  84. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/search_api.py +0 -0
  85. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/system_log_api.py +0 -0
  86. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/test_api.py +0 -0
  87. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api/users_api.py +0 -0
  88. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/api_response.py +0 -0
  89. {bely_api-2026.3.dev5 → bely_api-2026.3.1}/belyApi/exceptions.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,28 @@
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
6
11
  import os
7
12
  import warnings
8
-
9
- from belyApi import Configuration, ApiClient
10
- from belyApi import (
11
- DomainApi,
12
- DownloadsApi,
13
- UsersApi,
14
- PropertyValueApi,
15
- SystemLogApi,
16
- SearchApi,
17
- AuthenticationApi,
18
- LogbookApi,
19
- NotificationConfigurationApi,
20
- )
21
- from belyApi import ApiExceptionMessage
13
+ import typing
14
+
15
+ if typing.TYPE_CHECKING:
16
+ from belyApi import (
17
+ AuthenticationApi,
18
+ DomainApi,
19
+ DownloadsApi,
20
+ LogbookApi,
21
+ NotificationConfigurationApi,
22
+ PropertyValueApi,
23
+ SearchApi,
24
+ SystemLogApi,
25
+ UsersApi,
26
+ )
22
27
 
23
28
 
24
29
  class BelyApiFactory:
@@ -28,34 +33,74 @@ class BelyApiFactory:
28
33
 
29
34
  LOGBOOK_DOMAIN_ID = 1
30
35
 
36
+ # attribute name -> generated api class. Each api is built on first access by
37
+ # __getattr__ so that importing this module does not drag in every belyApi
38
+ # model; see the "Known startup cost" section of bely-cli/CLAUDE.md. The
39
+ # generator's lazyImports option only pays off while this stays lazy.
40
+ _API_CLASSES = {
41
+ "auth_api": "AuthenticationApi",
42
+ "domain_api": "DomainApi",
43
+ "downloads_api": "DownloadsApi",
44
+ "logbook_api": "LogbookApi",
45
+ "notification_configuration_api": "NotificationConfigurationApi",
46
+ "property_value_api": "PropertyValueApi",
47
+ "search_api": "SearchApi",
48
+ "systemlog_api": "SystemLogApi",
49
+ "users_api": "UsersApi",
50
+ }
51
+
52
+ # Deprecated camelCase aliases -> canonical attribute name
53
+ _API_ALIASES = {
54
+ "domainApi": "domain_api",
55
+ "downloadsApi": "downloads_api",
56
+ "propertyValueApi": "property_value_api",
57
+ "searchApi": "search_api",
58
+ "systemlogApi": "systemlog_api",
59
+ "usersApi": "users_api",
60
+ }
61
+
31
62
  def __init__(self, bely_url):
63
+ from belyApi import ApiClient, Configuration
64
+
32
65
  self.bely_url = bely_url
33
66
  self.config = Configuration(host=self.bely_url)
34
67
  self.api_client = ApiClient(configuration=self.config)
35
68
 
36
- self.logbook_api = LogbookApi(api_client=self.api_client)
37
- self.notification_configuration_api = NotificationConfigurationApi(
38
- api_client=self.api_client
69
+ def __getattr__(self, name):
70
+ """Build api instances on first access.
71
+
72
+ Only called when normal attribute lookup fails, so each api is created
73
+ once and then cached in __dict__.
74
+ """
75
+ canonical = self._API_ALIASES.get(name, name)
76
+ class_name = self._API_CLASSES.get(canonical)
77
+ if class_name is None:
78
+ raise AttributeError(
79
+ f"{type(self).__name__!r} object has no attribute {name!r}"
80
+ )
81
+
82
+ # __init__ must have run; guard against access on a half-built instance
83
+ # (e.g. during unpickling) recursing back into __getattr__.
84
+ if "api_client" not in self.__dict__:
85
+ raise AttributeError(
86
+ f"cannot build {canonical!r} before BelyApiFactory.__init__ has run"
87
+ )
88
+
89
+ import belyApi
90
+
91
+ api = getattr(belyApi, class_name)(api_client=self.api_client)
92
+ setattr(self, canonical, api)
93
+ if name != canonical:
94
+ setattr(self, name, api)
95
+ return api
96
+
97
+ def __dir__(self):
98
+ return sorted(
99
+ set(super().__dir__())
100
+ | set(self._API_CLASSES)
101
+ | set(self._API_ALIASES)
39
102
  )
40
103
 
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
104
  def _deprecated(self, old_name, new_name):
60
105
  warnings.warn(
61
106
  f"{old_name} is deprecated, use {new_name} instead",
@@ -110,6 +155,8 @@ class BelyApiFactory:
110
155
  self.auth_api.log_out()
111
156
 
112
157
  def parse_api_exception(self, open_api_exception):
158
+ from belyApi import ApiExceptionMessage
159
+
113
160
  response_type = ApiExceptionMessage.__name__
114
161
  open_api_exception.data = open_api_exception.body
115
162
  ex_obj = self.api_client.deserialize(open_api_exception, response_type)
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.5
2
+ Name: bely-api
3
+ Version: 2026.3.1
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: 2024.5
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())