dominodatalab-data 5.11.0.dev1__tar.gz → 5.11.0.dev3__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.
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/PKG-INFO +6 -7
- dominodatalab_data-5.11.0.dev3/datasource_api_client/__init__.py +8 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/api/__init__.py +1 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/api/datasource/get_datasource_by_name.py +195 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/api/proxy/get_key_url.py +168 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/api/proxy/list_keys.py +169 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/api/proxy/log_metric.py +128 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/client.py +277 -0
- dominodatalab_data-5.11.0.dev3/datasource_api_client/errors.py +16 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/__init__.py +17 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_config.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_dto.py +38 -14
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_dto_added_by.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_owner_info.py +6 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/error_response.py +4 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/key_request.py +16 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/list_request.py +15 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/proxy_error_response.py +6 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/types.py +11 -8
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/client.py +17 -16
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/run.py +1 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/auth.py +25 -14
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/configuration_gen.py +1 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/data_sources.py +10 -9
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/training_sets/client.py +127 -117
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/vectordb.py +5 -3
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/__init__.py +8 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/__init__.py +1 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/get.py +136 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/get_feature_view_name_store.py +153 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/post.py +170 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/post_featureview.py +114 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/post_lock.py +168 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/api/default/post_unlock.py +165 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/client.py +277 -0
- dominodatalab_data-5.11.0.dev3/feature_store_api_client/errors.py +16 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/__init__.py +31 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/auth_config.py +15 -8
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/auth_config_fields.py +12 -10
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/auth_config_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/create_feature_store_request.py +18 -8
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/create_feature_store_request_offline_store_config.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/entity.py +6 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature.py +13 -6
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_store.py +15 -6
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_store_offline_store_config.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_tags.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_view.py +26 -16
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_view_request.py +22 -14
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_view_request_tags.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_view_tags.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/field.py +10 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/lock_feature_store_request.py +7 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/metadata.py +5 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/offline_store_config.py +12 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/offline_store_config_fields.py +12 -10
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/unlock_feature_store_request.py +5 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/upsert_feature_views_request.py +13 -8
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/types.py +11 -8
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/pyproject.toml +14 -14
- dominodatalab_data-5.11.0.dev3/training_set_api_client/__init__.py +8 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/__init__.py +1 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/delete_training_set_name.py +100 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/delete_training_set_name_number.py +108 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/get_training_set_name.py +153 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/get_training_set_name_number.py +167 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/post_find.py +216 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/post_training_set_name.py +176 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/post_version_find.py +216 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/put_training_set_name.py +176 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/api/default/put_training_set_name_number.py +190 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/client.py +277 -0
- dominodatalab_data-5.11.0.dev3/training_set_api_client/errors.py +16 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/__init__.py +20 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/create_training_set_version_request.py +31 -9
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/create_training_set_version_request_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/monitoring_meta.py +10 -4
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set.py +24 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_filter.py +18 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_filter_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_version.py +40 -9
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_version_filter.py +27 -11
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_version_filter_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_version_filter_training_set_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/training_set_version_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/update_training_set_request.py +17 -7
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/update_training_set_request_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/update_training_set_version_request.py +30 -9
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/models/update_training_set_version_request_meta.py +4 -5
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/types.py +13 -10
- dominodatalab_data-5.11.0.dev1/datasource_api_client/__init__.py +0 -2
- dominodatalab_data-5.11.0.dev1/datasource_api_client/api/__init__.py +0 -1
- dominodatalab_data-5.11.0.dev1/datasource_api_client/api/datasource/get_datasource_by_name.py +0 -177
- dominodatalab_data-5.11.0.dev1/datasource_api_client/api/proxy/get_key_url.py +0 -148
- dominodatalab_data-5.11.0.dev1/datasource_api_client/api/proxy/list_keys.py +0 -149
- dominodatalab_data-5.11.0.dev1/datasource_api_client/api/proxy/log_metric.py +0 -116
- dominodatalab_data-5.11.0.dev1/datasource_api_client/client.py +0 -52
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/__init__.py +0 -2
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/__init__.py +0 -1
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/get.py +0 -125
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/get_feature_view_name_store.py +0 -137
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/post.py +0 -150
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/post_featureview.py +0 -90
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/post_lock.py +0 -148
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/api/default/post_unlock.py +0 -145
- dominodatalab_data-5.11.0.dev1/feature_store_api_client/client.py +0 -52
- dominodatalab_data-5.11.0.dev1/training_set_api_client/__init__.py +0 -2
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/__init__.py +0 -1
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/delete_training_set_name.py +0 -67
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/delete_training_set_name_number.py +0 -74
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/get_training_set_name.py +0 -104
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/get_training_set_name_number.py +0 -115
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/post_find.py +0 -148
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/post_training_set_name.py +0 -117
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/post_version_find.py +0 -148
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/put_training_set_name.py +0 -117
- dominodatalab_data-5.11.0.dev1/training_set_api_client/api/default/put_training_set_name_number.py +0 -128
- dominodatalab_data-5.11.0.dev1/training_set_api_client/client.py +0 -49
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/LICENSE +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/README.md +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/api/datasource/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/api/proxy/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_dto_auth_type.py +3 -3
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_dto_data_source_type.py +1 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/datasource_dto_status.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/log_metric_m.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/datasource_api_client/models/log_metric_t.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/exceptions.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/git.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/logging.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/_feature_store/sync.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/logging.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/meta.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/py.typed +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/training_sets/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/training_sets/model.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/domino_data/transfer.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/api/default/__init__.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/auth_field_name.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/auth_type.py +1 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/config_field_name.py +10 -10
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/feature_store_sync_result.py +1 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/git_provider_name.py +0 -0
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/feature_store_api_client/models/offline_store_type.py +1 -1
- {dominodatalab_data-5.11.0.dev1 → dominodatalab_data-5.11.0.dev3}/training_set_api_client/api/default/__init__.py +0 -0
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dominodatalab-data
|
|
3
|
-
Version: 5.11.0.
|
|
3
|
+
Version: 5.11.0.dev3
|
|
4
4
|
Summary: Domino Data API for interacting with Domino Data features
|
|
5
5
|
Home-page: https://github.com/dominodatalab/domino-data
|
|
6
6
|
License: Apache Software License 2.0
|
|
7
7
|
Author: Gabriel Haim
|
|
8
8
|
Author-email: gabriel.haim@dominodatalab.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: License :: Other/Proprietary License
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
21
|
Requires-Dist: attrs (>=20.1.0)
|
|
23
|
-
Requires-Dist: backoff (>=1.11.1
|
|
22
|
+
Requires-Dist: backoff (>=1.11.1)
|
|
24
23
|
Requires-Dist: bson (>=0.5.10,<0.6.0)
|
|
25
|
-
Requires-Dist: httpx (>=0.23.0
|
|
24
|
+
Requires-Dist: httpx (>=0.23.0)
|
|
26
25
|
Requires-Dist: loguru (>=0.5.3,<0.6.0)
|
|
27
|
-
Requires-Dist: pandas (>=1.3.0
|
|
28
|
-
Requires-Dist: pyarrow (>=
|
|
26
|
+
Requires-Dist: pandas (>=1.3.0)
|
|
27
|
+
Requires-Dist: pyarrow (>=15.0.2)
|
|
29
28
|
Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
|
|
30
29
|
Requires-Dist: urllib3 (>=1.26.16,<2.0.0)
|
|
31
30
|
Project-URL: Repository, https://github.com/dominodatalab/domino-data
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
from typing import Any, Dict, Optional, Union
|
|
2
|
+
|
|
3
|
+
from http import HTTPStatus
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.datasource_dto import DatasourceDto
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
name: str,
|
|
16
|
+
*,
|
|
17
|
+
run_id: Union[Unset, str] = UNSET,
|
|
18
|
+
) -> Dict[str, Any]:
|
|
19
|
+
params: Dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
params["runId"] = run_id
|
|
22
|
+
|
|
23
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
24
|
+
|
|
25
|
+
_kwargs: Dict[str, Any] = {
|
|
26
|
+
"method": "get",
|
|
27
|
+
"url": "/datasource/name/{name}".format(
|
|
28
|
+
name=name,
|
|
29
|
+
),
|
|
30
|
+
"params": params,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> Optional[Union[DatasourceDto, ErrorResponse]]:
|
|
39
|
+
if response.status_code == HTTPStatus.OK:
|
|
40
|
+
response_200 = DatasourceDto.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_200
|
|
43
|
+
if response.status_code == HTTPStatus.BAD_REQUEST:
|
|
44
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_400
|
|
47
|
+
if response.status_code == HTTPStatus.UNAUTHORIZED:
|
|
48
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_401
|
|
51
|
+
if response.status_code == HTTPStatus.FORBIDDEN:
|
|
52
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_403
|
|
55
|
+
if response.status_code == HTTPStatus.NOT_FOUND:
|
|
56
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_404
|
|
59
|
+
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
60
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_500
|
|
63
|
+
if client.raise_on_unexpected_status:
|
|
64
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
65
|
+
else:
|
|
66
|
+
return None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _build_response(
|
|
70
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
71
|
+
) -> Response[Union[DatasourceDto, ErrorResponse]]:
|
|
72
|
+
return Response(
|
|
73
|
+
status_code=HTTPStatus(response.status_code),
|
|
74
|
+
content=response.content,
|
|
75
|
+
headers=response.headers,
|
|
76
|
+
parsed=_parse_response(client=client, response=response),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def sync_detailed(
|
|
81
|
+
name: str,
|
|
82
|
+
*,
|
|
83
|
+
client: Union[AuthenticatedClient, Client],
|
|
84
|
+
run_id: Union[Unset, str] = UNSET,
|
|
85
|
+
) -> Response[Union[DatasourceDto, ErrorResponse]]:
|
|
86
|
+
"""Get datasource by name
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
name (str):
|
|
90
|
+
run_id (Union[Unset, str]):
|
|
91
|
+
|
|
92
|
+
Raises:
|
|
93
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
94
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
Response[Union[DatasourceDto, ErrorResponse]]
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
kwargs = _get_kwargs(
|
|
101
|
+
name=name,
|
|
102
|
+
run_id=run_id,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = client.get_httpx_client().request(
|
|
106
|
+
**kwargs,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
return _build_response(client=client, response=response)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def sync(
|
|
113
|
+
name: str,
|
|
114
|
+
*,
|
|
115
|
+
client: Union[AuthenticatedClient, Client],
|
|
116
|
+
run_id: Union[Unset, str] = UNSET,
|
|
117
|
+
) -> Optional[Union[DatasourceDto, ErrorResponse]]:
|
|
118
|
+
"""Get datasource by name
|
|
119
|
+
|
|
120
|
+
Args:
|
|
121
|
+
name (str):
|
|
122
|
+
run_id (Union[Unset, str]):
|
|
123
|
+
|
|
124
|
+
Raises:
|
|
125
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
126
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
Union[DatasourceDto, ErrorResponse]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
return sync_detailed(
|
|
133
|
+
name=name,
|
|
134
|
+
client=client,
|
|
135
|
+
run_id=run_id,
|
|
136
|
+
).parsed
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
async def asyncio_detailed(
|
|
140
|
+
name: str,
|
|
141
|
+
*,
|
|
142
|
+
client: Union[AuthenticatedClient, Client],
|
|
143
|
+
run_id: Union[Unset, str] = UNSET,
|
|
144
|
+
) -> Response[Union[DatasourceDto, ErrorResponse]]:
|
|
145
|
+
"""Get datasource by name
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
name (str):
|
|
149
|
+
run_id (Union[Unset, str]):
|
|
150
|
+
|
|
151
|
+
Raises:
|
|
152
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
153
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
154
|
+
|
|
155
|
+
Returns:
|
|
156
|
+
Response[Union[DatasourceDto, ErrorResponse]]
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
kwargs = _get_kwargs(
|
|
160
|
+
name=name,
|
|
161
|
+
run_id=run_id,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
165
|
+
|
|
166
|
+
return _build_response(client=client, response=response)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
async def asyncio(
|
|
170
|
+
name: str,
|
|
171
|
+
*,
|
|
172
|
+
client: Union[AuthenticatedClient, Client],
|
|
173
|
+
run_id: Union[Unset, str] = UNSET,
|
|
174
|
+
) -> Optional[Union[DatasourceDto, ErrorResponse]]:
|
|
175
|
+
"""Get datasource by name
|
|
176
|
+
|
|
177
|
+
Args:
|
|
178
|
+
name (str):
|
|
179
|
+
run_id (Union[Unset, str]):
|
|
180
|
+
|
|
181
|
+
Raises:
|
|
182
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
183
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
184
|
+
|
|
185
|
+
Returns:
|
|
186
|
+
Union[DatasourceDto, ErrorResponse]
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
return (
|
|
190
|
+
await asyncio_detailed(
|
|
191
|
+
name=name,
|
|
192
|
+
client=client,
|
|
193
|
+
run_id=run_id,
|
|
194
|
+
)
|
|
195
|
+
).parsed
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
from typing import Any, Dict, Optional, Union, cast
|
|
2
|
+
|
|
3
|
+
from http import HTTPStatus
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.key_request import KeyRequest
|
|
10
|
+
from ...models.proxy_error_response import ProxyErrorResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: KeyRequest,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
headers: Dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: Dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/objectstore/key",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_body = body.to_dict()
|
|
26
|
+
|
|
27
|
+
_kwargs["json"] = _body
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[ProxyErrorResponse, str]]:
|
|
37
|
+
if response.status_code == HTTPStatus.OK:
|
|
38
|
+
response_200 = cast(str, response.json())
|
|
39
|
+
return response_200
|
|
40
|
+
if response.status_code == HTTPStatus.BAD_REQUEST:
|
|
41
|
+
response_400 = ProxyErrorResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_400
|
|
44
|
+
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
45
|
+
response_500 = ProxyErrorResponse.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_500
|
|
48
|
+
if client.raise_on_unexpected_status:
|
|
49
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
50
|
+
else:
|
|
51
|
+
return None
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _build_response(
|
|
55
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
56
|
+
) -> Response[Union[ProxyErrorResponse, str]]:
|
|
57
|
+
return Response(
|
|
58
|
+
status_code=HTTPStatus(response.status_code),
|
|
59
|
+
content=response.content,
|
|
60
|
+
headers=response.headers,
|
|
61
|
+
parsed=_parse_response(client=client, response=response),
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def sync_detailed(
|
|
66
|
+
*,
|
|
67
|
+
client: Union[AuthenticatedClient, Client],
|
|
68
|
+
body: KeyRequest,
|
|
69
|
+
) -> Response[Union[ProxyErrorResponse, str]]:
|
|
70
|
+
"""Request a new signed URL for the key of a object store
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
body (KeyRequest):
|
|
74
|
+
|
|
75
|
+
Raises:
|
|
76
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
77
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
78
|
+
|
|
79
|
+
Returns:
|
|
80
|
+
Response[Union[ProxyErrorResponse, str]]
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
kwargs = _get_kwargs(
|
|
84
|
+
body=body,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
response = client.get_httpx_client().request(
|
|
88
|
+
**kwargs,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
return _build_response(client=client, response=response)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def sync(
|
|
95
|
+
*,
|
|
96
|
+
client: Union[AuthenticatedClient, Client],
|
|
97
|
+
body: KeyRequest,
|
|
98
|
+
) -> Optional[Union[ProxyErrorResponse, str]]:
|
|
99
|
+
"""Request a new signed URL for the key of a object store
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
body (KeyRequest):
|
|
103
|
+
|
|
104
|
+
Raises:
|
|
105
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
106
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
107
|
+
|
|
108
|
+
Returns:
|
|
109
|
+
Union[ProxyErrorResponse, str]
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
return sync_detailed(
|
|
113
|
+
client=client,
|
|
114
|
+
body=body,
|
|
115
|
+
).parsed
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
async def asyncio_detailed(
|
|
119
|
+
*,
|
|
120
|
+
client: Union[AuthenticatedClient, Client],
|
|
121
|
+
body: KeyRequest,
|
|
122
|
+
) -> Response[Union[ProxyErrorResponse, str]]:
|
|
123
|
+
"""Request a new signed URL for the key of a object store
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
body (KeyRequest):
|
|
127
|
+
|
|
128
|
+
Raises:
|
|
129
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
130
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
Response[Union[ProxyErrorResponse, str]]
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
kwargs = _get_kwargs(
|
|
137
|
+
body=body,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
141
|
+
|
|
142
|
+
return _build_response(client=client, response=response)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
async def asyncio(
|
|
146
|
+
*,
|
|
147
|
+
client: Union[AuthenticatedClient, Client],
|
|
148
|
+
body: KeyRequest,
|
|
149
|
+
) -> Optional[Union[ProxyErrorResponse, str]]:
|
|
150
|
+
"""Request a new signed URL for the key of a object store
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
body (KeyRequest):
|
|
154
|
+
|
|
155
|
+
Raises:
|
|
156
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
157
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
158
|
+
|
|
159
|
+
Returns:
|
|
160
|
+
Union[ProxyErrorResponse, str]
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
await asyncio_detailed(
|
|
165
|
+
client=client,
|
|
166
|
+
body=body,
|
|
167
|
+
)
|
|
168
|
+
).parsed
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
|
|
3
|
+
from http import HTTPStatus
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.list_request import ListRequest
|
|
10
|
+
from ...models.proxy_error_response import ProxyErrorResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: ListRequest,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
headers: Dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: Dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/objectstore/list",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_body = body.to_dict()
|
|
26
|
+
|
|
27
|
+
_kwargs["json"] = _body
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[List[str], ProxyErrorResponse]]:
|
|
37
|
+
if response.status_code == HTTPStatus.OK:
|
|
38
|
+
response_200 = cast(List[str], response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
if response.status_code == HTTPStatus.BAD_REQUEST:
|
|
42
|
+
response_400 = ProxyErrorResponse.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_400
|
|
45
|
+
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
46
|
+
response_500 = ProxyErrorResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_500
|
|
49
|
+
if client.raise_on_unexpected_status:
|
|
50
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
51
|
+
else:
|
|
52
|
+
return None
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _build_response(
|
|
56
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
57
|
+
) -> Response[Union[List[str], ProxyErrorResponse]]:
|
|
58
|
+
return Response(
|
|
59
|
+
status_code=HTTPStatus(response.status_code),
|
|
60
|
+
content=response.content,
|
|
61
|
+
headers=response.headers,
|
|
62
|
+
parsed=_parse_response(client=client, response=response),
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def sync_detailed(
|
|
67
|
+
*,
|
|
68
|
+
client: Union[AuthenticatedClient, Client],
|
|
69
|
+
body: ListRequest,
|
|
70
|
+
) -> Response[Union[List[str], ProxyErrorResponse]]:
|
|
71
|
+
"""Request a new signed URL for a blob datasource
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
body (ListRequest):
|
|
75
|
+
|
|
76
|
+
Raises:
|
|
77
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
78
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Response[Union[List[str], ProxyErrorResponse]]
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = _get_kwargs(
|
|
85
|
+
body=body,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
response = client.get_httpx_client().request(
|
|
89
|
+
**kwargs,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
return _build_response(client=client, response=response)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def sync(
|
|
96
|
+
*,
|
|
97
|
+
client: Union[AuthenticatedClient, Client],
|
|
98
|
+
body: ListRequest,
|
|
99
|
+
) -> Optional[Union[List[str], ProxyErrorResponse]]:
|
|
100
|
+
"""Request a new signed URL for a blob datasource
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
body (ListRequest):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Union[List[str], ProxyErrorResponse]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
return sync_detailed(
|
|
114
|
+
client=client,
|
|
115
|
+
body=body,
|
|
116
|
+
).parsed
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
async def asyncio_detailed(
|
|
120
|
+
*,
|
|
121
|
+
client: Union[AuthenticatedClient, Client],
|
|
122
|
+
body: ListRequest,
|
|
123
|
+
) -> Response[Union[List[str], ProxyErrorResponse]]:
|
|
124
|
+
"""Request a new signed URL for a blob datasource
|
|
125
|
+
|
|
126
|
+
Args:
|
|
127
|
+
body (ListRequest):
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
131
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
Response[Union[List[str], ProxyErrorResponse]]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
kwargs = _get_kwargs(
|
|
138
|
+
body=body,
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
142
|
+
|
|
143
|
+
return _build_response(client=client, response=response)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
async def asyncio(
|
|
147
|
+
*,
|
|
148
|
+
client: Union[AuthenticatedClient, Client],
|
|
149
|
+
body: ListRequest,
|
|
150
|
+
) -> Optional[Union[List[str], ProxyErrorResponse]]:
|
|
151
|
+
"""Request a new signed URL for a blob datasource
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
body (ListRequest):
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
158
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
Union[List[str], ProxyErrorResponse]
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
await asyncio_detailed(
|
|
166
|
+
client=client,
|
|
167
|
+
body=body,
|
|
168
|
+
)
|
|
169
|
+
).parsed
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
from typing import Any, Dict, Optional, Union
|
|
2
|
+
|
|
3
|
+
from http import HTTPStatus
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.log_metric_m import LogMetricM
|
|
10
|
+
from ...models.log_metric_t import LogMetricT
|
|
11
|
+
from ...types import UNSET, Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
t: LogMetricT,
|
|
17
|
+
b: int,
|
|
18
|
+
m: LogMetricM,
|
|
19
|
+
) -> Dict[str, Any]:
|
|
20
|
+
params: Dict[str, Any] = {}
|
|
21
|
+
|
|
22
|
+
json_t = t.value
|
|
23
|
+
params["t"] = json_t
|
|
24
|
+
|
|
25
|
+
params["b"] = b
|
|
26
|
+
|
|
27
|
+
json_m = m.value
|
|
28
|
+
params["m"] = json_m
|
|
29
|
+
|
|
30
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
31
|
+
|
|
32
|
+
_kwargs: Dict[str, Any] = {
|
|
33
|
+
"method": "head",
|
|
34
|
+
"url": "/objectstore/metric",
|
|
35
|
+
"params": params,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return _kwargs
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse_response(
|
|
42
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
43
|
+
) -> Optional[Any]:
|
|
44
|
+
if response.status_code == HTTPStatus.OK:
|
|
45
|
+
return None
|
|
46
|
+
if client.raise_on_unexpected_status:
|
|
47
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
48
|
+
else:
|
|
49
|
+
return None
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _build_response(
|
|
53
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
54
|
+
) -> Response[Any]:
|
|
55
|
+
return Response(
|
|
56
|
+
status_code=HTTPStatus(response.status_code),
|
|
57
|
+
content=response.content,
|
|
58
|
+
headers=response.headers,
|
|
59
|
+
parsed=_parse_response(client=client, response=response),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def sync_detailed(
|
|
64
|
+
*,
|
|
65
|
+
client: Union[AuthenticatedClient, Client],
|
|
66
|
+
t: LogMetricT,
|
|
67
|
+
b: int,
|
|
68
|
+
m: LogMetricM,
|
|
69
|
+
) -> Response[Any]:
|
|
70
|
+
"""Log metrics about file size read or written
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
t (LogMetricT):
|
|
74
|
+
b (int):
|
|
75
|
+
m (LogMetricM):
|
|
76
|
+
|
|
77
|
+
Raises:
|
|
78
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
79
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
80
|
+
|
|
81
|
+
Returns:
|
|
82
|
+
Response[Any]
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
kwargs = _get_kwargs(
|
|
86
|
+
t=t,
|
|
87
|
+
b=b,
|
|
88
|
+
m=m,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
response = client.get_httpx_client().request(
|
|
92
|
+
**kwargs,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
return _build_response(client=client, response=response)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
async def asyncio_detailed(
|
|
99
|
+
*,
|
|
100
|
+
client: Union[AuthenticatedClient, Client],
|
|
101
|
+
t: LogMetricT,
|
|
102
|
+
b: int,
|
|
103
|
+
m: LogMetricM,
|
|
104
|
+
) -> Response[Any]:
|
|
105
|
+
"""Log metrics about file size read or written
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
t (LogMetricT):
|
|
109
|
+
b (int):
|
|
110
|
+
m (LogMetricM):
|
|
111
|
+
|
|
112
|
+
Raises:
|
|
113
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
114
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
115
|
+
|
|
116
|
+
Returns:
|
|
117
|
+
Response[Any]
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
kwargs = _get_kwargs(
|
|
121
|
+
t=t,
|
|
122
|
+
b=b,
|
|
123
|
+
m=m,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
127
|
+
|
|
128
|
+
return _build_response(client=client, response=response)
|