current-data-py 0.1.13__tar.gz → 0.1.15__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.
- {current_data_py-0.1.13 → current_data_py-0.1.15}/MANIFEST.in +2 -0
- {current_data_py-0.1.13/current_data_py.egg-info → current_data_py-0.1.15}/PKG-INFO +40 -2
- {current_data_py-0.1.13 → current_data_py-0.1.15}/README.md +39 -1
- {current_data_py-0.1.13 → current_data_py-0.1.15}/__init__.py +0 -0
- current_data_py-0.1.15/_multipart.py +52 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15/current_data_py.egg-info}/PKG-INFO +40 -2
- {current_data_py-0.1.13 → current_data_py-0.1.15}/current_data_py.egg-info/SOURCES.txt +6 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/decoding.py +0 -0
- current_data_py-0.1.15/docs/api/management.md +362 -0
- current_data_py-0.1.15/docs/api/processing.md +401 -0
- current_data_py-0.1.15/docs/index.md +66 -0
- current_data_py-0.1.15/docs/skills/convert-robot-data/SKILL.md +210 -0
- current_data_py-0.1.15/docs/skills/data-platform/SKILL.md +29 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/api.md +34 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/data-transfer.md +34 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/dev-pod.md +62 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/jobs.md +86 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/test-environment.md +26 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/updates.md +44 -0
- current_data_py-0.1.15/docs/skills/data-platform/references/use-cases.md +82 -0
- current_data_py-0.1.15/docs/skills/sdk-client/SKILL.md +11 -0
- current_data_py-0.1.15/docs/skills/sdk-client/references/data-client.md +279 -0
- current_data_py-0.1.15/docs.py +46 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/examples/__init__.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/examples/list_schemas.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/examples/read_remote_td.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/examples/read_td.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/examples/write_td.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/labeling.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/management.py +12 -1
- {current_data_py-0.1.13 → current_data_py-0.1.15}/oss.py +34 -5
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/management/metadata/metadata_pb2.py +16 -16
- current_data_py-0.1.15/proto_gen/python/msg/custom_msgs/keypoints_validity_pb2.py +26 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/pyproject.toml +1 -1
- {current_data_py-0.1.13 → current_data_py-0.1.15}/remote/__init__.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/remote/client.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/remote/source.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/remote/tos_source.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/schema/__init__.py +2 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/schema/message_metadata.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/setup.py +33 -0
- current_data_py-0.1.15/tests/check_docs.py +79 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_environment.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_labeling.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_management.py +16 -1
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_oss.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_package.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tests/check_remote.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/tos.py +23 -2
- {current_data_py-0.1.13 → current_data_py-0.1.15}/current_data_py.egg-info/dependency_links.txt +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/current_data_py.egg-info/requires.txt +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/current_data_py.egg-info/top_level.txt +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/labeling/service/service_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/labeling/service/service_pb2_grpc.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/labeling/task/task_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/labeling/template/template_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/management/selection/selection_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/management/service/service_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/management/service/service_pb2_grpc.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/builtin_interfaces/duration_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/builtin_interfaces/time_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/joint_current_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/pose_rpy_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/slam_quality_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/sonic_frame_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/subtask_description_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/custom_msgs/target_quality_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/foxglove/compressed_audio_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/foxglove/compressed_video_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/point32_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/point_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/pose_array_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/pose_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/pose_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/pose_with_covariance_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/pose_with_covariance_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/quaternion_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/transform_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/transform_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/twist_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/twist_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/twist_with_covariance_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/twist_with_covariance_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/vector3_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/wrench_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/geometry_msgs/wrench_stamped_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/nav_msgs/map_meta_data_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/nav_msgs/occupancy_grid_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/nav_msgs/odometry_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/nav_msgs/path_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/battery_state_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/camera_info_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/compressed_image_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/image_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/imu_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/joint_state_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/laser_scan_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/nav_sat_fix_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/nav_sat_status_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/point_cloud2_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/point_field_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/range_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/sensor_msgs/region_of_interest_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/bool_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/color_rgba_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/float32_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/float64_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/header_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/int32_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/string_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/std_msgs/uint32_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/proto_gen/python/msg/tf2_msgs/tf_message_pb2.py +0 -0
- {current_data_py-0.1.13 → current_data_py-0.1.15}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: current-data-py
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.15
|
|
4
4
|
Summary: Current Data protobuf messages and schema metadata
|
|
5
5
|
Requires-Python: >=3.9
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -49,6 +49,44 @@ Set `ENV=test` before the first SDK import to select the test service; an unset
|
|
|
49
49
|
empty value defaults to production. An explicit client `address=` overrides the
|
|
50
50
|
default. Remote examples require service connectivity and accessible data.
|
|
51
51
|
|
|
52
|
+
## Upload files
|
|
53
|
+
|
|
54
|
+
Use `OSSClient` or `TOSClient` with upload permission. The management service
|
|
55
|
+
selects the bucket and allowed object prefix; keep it open during transfers:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
from current_data_py.management import ManagementClient
|
|
59
|
+
from current_data_py.tos import TOSClient
|
|
60
|
+
|
|
61
|
+
with ManagementClient() as management:
|
|
62
|
+
with TOSClient(management, permission="upload", data_type="YAM",
|
|
63
|
+
data_kind="CONVERTED") as storage:
|
|
64
|
+
storage.upload_file(storage.object_prefix + "recording.td", "/data/recording.td",
|
|
65
|
+
multipart_threshold=100 * 1024**2,
|
|
66
|
+
part_size=16 * 1024**2, max_workers=4)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Both clients accept the same transfer options. Files at or above
|
|
70
|
+
`multipart_threshold` use multipart upload; `0` forces multipart for nonempty
|
|
71
|
+
files. Empty files always use PutObject. Sizes are in bytes. `part_size` must be
|
|
72
|
+
5 MiB–5 GiB, and the file must fit within 10,000 parts; increase it for larger
|
|
73
|
+
files. `max_workers` controls parallel requests (1–64); part buffers use roughly
|
|
74
|
+
`part_size * max_workers` memory, plus SDK overhead. Do not modify the source
|
|
75
|
+
file during upload.
|
|
76
|
+
|
|
77
|
+
Uploads reject existing objects by default, including when completing multipart
|
|
78
|
+
uploads. Set `forbid_overwrite=False` to replace one. Content type and metadata
|
|
79
|
+
are preserved. The return value is the provider's PutObject result for small
|
|
80
|
+
files or CompleteMultipartUpload result for multipart files.
|
|
81
|
+
|
|
82
|
+
Failed multipart transfers attempt to abort and delete incomplete parts. A failed
|
|
83
|
+
cleanup emits a warning; check the bucket's incomplete uploads. The upload role
|
|
84
|
+
and its scoped STS policy must allow `oss:AbortMultipartUpload` or
|
|
85
|
+
`tos:AbortMultipartUpload` in addition to PutObject. Deploy the management-service
|
|
86
|
+
policy update and ensure the underlying cloud role permits cleanup before use.
|
|
87
|
+
There is no persistent checkpoint: a later call starts a new upload. Uploading
|
|
88
|
+
does not register the data; call `ManagementClient.register_data` separately.
|
|
89
|
+
|
|
52
90
|
## Test changes
|
|
53
91
|
|
|
54
92
|
The package bundles generated Protobuf modules during its build. After protocol
|
|
@@ -65,7 +103,7 @@ shared dependencies are left unchanged:
|
|
|
65
103
|
(cd current_data_py && python -m build --no-isolation --outdir "$sdk_dist")
|
|
66
104
|
python current_data_py/tests/check_distribution.py --dist-dir "$sdk_dist"
|
|
67
105
|
python -m pip install --no-deps --force-reinstall "$sdk_dist"/*.whl
|
|
68
|
-
for check in package environment management labeling remote oss tos decoding; do
|
|
106
|
+
for check in package environment management labeling remote oss tos decoding multipart docs; do
|
|
69
107
|
python -I "current_data_py/tests/check_${check}.py"
|
|
70
108
|
done
|
|
71
109
|
)
|
|
@@ -35,6 +35,44 @@ Set `ENV=test` before the first SDK import to select the test service; an unset
|
|
|
35
35
|
empty value defaults to production. An explicit client `address=` overrides the
|
|
36
36
|
default. Remote examples require service connectivity and accessible data.
|
|
37
37
|
|
|
38
|
+
## Upload files
|
|
39
|
+
|
|
40
|
+
Use `OSSClient` or `TOSClient` with upload permission. The management service
|
|
41
|
+
selects the bucket and allowed object prefix; keep it open during transfers:
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
from current_data_py.management import ManagementClient
|
|
45
|
+
from current_data_py.tos import TOSClient
|
|
46
|
+
|
|
47
|
+
with ManagementClient() as management:
|
|
48
|
+
with TOSClient(management, permission="upload", data_type="YAM",
|
|
49
|
+
data_kind="CONVERTED") as storage:
|
|
50
|
+
storage.upload_file(storage.object_prefix + "recording.td", "/data/recording.td",
|
|
51
|
+
multipart_threshold=100 * 1024**2,
|
|
52
|
+
part_size=16 * 1024**2, max_workers=4)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Both clients accept the same transfer options. Files at or above
|
|
56
|
+
`multipart_threshold` use multipart upload; `0` forces multipart for nonempty
|
|
57
|
+
files. Empty files always use PutObject. Sizes are in bytes. `part_size` must be
|
|
58
|
+
5 MiB–5 GiB, and the file must fit within 10,000 parts; increase it for larger
|
|
59
|
+
files. `max_workers` controls parallel requests (1–64); part buffers use roughly
|
|
60
|
+
`part_size * max_workers` memory, plus SDK overhead. Do not modify the source
|
|
61
|
+
file during upload.
|
|
62
|
+
|
|
63
|
+
Uploads reject existing objects by default, including when completing multipart
|
|
64
|
+
uploads. Set `forbid_overwrite=False` to replace one. Content type and metadata
|
|
65
|
+
are preserved. The return value is the provider's PutObject result for small
|
|
66
|
+
files or CompleteMultipartUpload result for multipart files.
|
|
67
|
+
|
|
68
|
+
Failed multipart transfers attempt to abort and delete incomplete parts. A failed
|
|
69
|
+
cleanup emits a warning; check the bucket's incomplete uploads. The upload role
|
|
70
|
+
and its scoped STS policy must allow `oss:AbortMultipartUpload` or
|
|
71
|
+
`tos:AbortMultipartUpload` in addition to PutObject. Deploy the management-service
|
|
72
|
+
policy update and ensure the underlying cloud role permits cleanup before use.
|
|
73
|
+
There is no persistent checkpoint: a later call starts a new upload. Uploading
|
|
74
|
+
does not register the data; call `ManagementClient.register_data` separately.
|
|
75
|
+
|
|
38
76
|
## Test changes
|
|
39
77
|
|
|
40
78
|
The package bundles generated Protobuf modules during its build. After protocol
|
|
@@ -51,7 +89,7 @@ shared dependencies are left unchanged:
|
|
|
51
89
|
(cd current_data_py && python -m build --no-isolation --outdir "$sdk_dist")
|
|
52
90
|
python current_data_py/tests/check_distribution.py --dist-dir "$sdk_dist"
|
|
53
91
|
python -m pip install --no-deps --force-reinstall "$sdk_dist"/*.whl
|
|
54
|
-
for check in package environment management labeling remote oss tos decoding; do
|
|
92
|
+
for check in package environment management labeling remote oss tos decoding multipart docs; do
|
|
55
93
|
python -I "current_data_py/tests/check_${check}.py"
|
|
56
94
|
done
|
|
57
95
|
)
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Bounded-memory multipart scheduling shared by OSS and TOS."""
|
|
2
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
3
|
+
import os
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def upload_size(path, threshold, part_size, max_workers):
|
|
8
|
+
for name, value, minimum, maximum in (
|
|
9
|
+
("multipart_threshold", threshold, 0, 5 * 1024**3),
|
|
10
|
+
("part_size", part_size, 5 * 1024**2, 5 * 1024**3),
|
|
11
|
+
("max_workers", max_workers, 1, 64),
|
|
12
|
+
):
|
|
13
|
+
if isinstance(value, bool) or not isinstance(value, int) or not minimum <= value <= maximum:
|
|
14
|
+
raise ValueError(f"{name} must be an integer between {minimum} and {maximum}")
|
|
15
|
+
size = os.stat(path).st_size
|
|
16
|
+
if (size + part_size - 1) // part_size > 10000:
|
|
17
|
+
raise ValueError("Upload exceeds 10000 parts; increase part_size")
|
|
18
|
+
return size
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def transfer(path, size, part_size, max_workers, start, put, complete, abort):
|
|
22
|
+
# Verify the file before creating any remote upload. Each worker opens its
|
|
23
|
+
# own handle and retains at most one part; queued tasks contain only offsets.
|
|
24
|
+
with open(path, "rb") as source:
|
|
25
|
+
before = os.fstat(source.fileno())
|
|
26
|
+
if before.st_size != size:
|
|
27
|
+
raise ValueError("Upload source changed before transfer")
|
|
28
|
+
upload_id = start()
|
|
29
|
+
|
|
30
|
+
def send(number):
|
|
31
|
+
offset = (number - 1) * part_size
|
|
32
|
+
length = min(part_size, size - offset)
|
|
33
|
+
with open(path, "rb") as source:
|
|
34
|
+
source.seek(offset)
|
|
35
|
+
data = source.read(length)
|
|
36
|
+
if len(data) != length:
|
|
37
|
+
raise ValueError("Upload source changed during transfer")
|
|
38
|
+
return number, put(upload_id, number, data)
|
|
39
|
+
|
|
40
|
+
try:
|
|
41
|
+
with ThreadPoolExecutor(max_workers=max_workers) as pool:
|
|
42
|
+
parts = list(pool.map(send, range(1, (size + part_size - 1) // part_size + 1)))
|
|
43
|
+
after = os.stat(path)
|
|
44
|
+
if (before.st_size, before.st_mtime_ns, before.st_ino) != (after.st_size, after.st_mtime_ns, after.st_ino):
|
|
45
|
+
raise ValueError("Upload source changed during transfer")
|
|
46
|
+
return complete(upload_id, parts)
|
|
47
|
+
except BaseException:
|
|
48
|
+
try:
|
|
49
|
+
abort(upload_id)
|
|
50
|
+
except Exception:
|
|
51
|
+
warnings.warn("Multipart cleanup failed; incomplete parts may remain in storage", RuntimeWarning)
|
|
52
|
+
raise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: current-data-py
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.15
|
|
4
4
|
Summary: Current Data protobuf messages and schema metadata
|
|
5
5
|
Requires-Python: >=3.9
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -49,6 +49,44 @@ Set `ENV=test` before the first SDK import to select the test service; an unset
|
|
|
49
49
|
empty value defaults to production. An explicit client `address=` overrides the
|
|
50
50
|
default. Remote examples require service connectivity and accessible data.
|
|
51
51
|
|
|
52
|
+
## Upload files
|
|
53
|
+
|
|
54
|
+
Use `OSSClient` or `TOSClient` with upload permission. The management service
|
|
55
|
+
selects the bucket and allowed object prefix; keep it open during transfers:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
from current_data_py.management import ManagementClient
|
|
59
|
+
from current_data_py.tos import TOSClient
|
|
60
|
+
|
|
61
|
+
with ManagementClient() as management:
|
|
62
|
+
with TOSClient(management, permission="upload", data_type="YAM",
|
|
63
|
+
data_kind="CONVERTED") as storage:
|
|
64
|
+
storage.upload_file(storage.object_prefix + "recording.td", "/data/recording.td",
|
|
65
|
+
multipart_threshold=100 * 1024**2,
|
|
66
|
+
part_size=16 * 1024**2, max_workers=4)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Both clients accept the same transfer options. Files at or above
|
|
70
|
+
`multipart_threshold` use multipart upload; `0` forces multipart for nonempty
|
|
71
|
+
files. Empty files always use PutObject. Sizes are in bytes. `part_size` must be
|
|
72
|
+
5 MiB–5 GiB, and the file must fit within 10,000 parts; increase it for larger
|
|
73
|
+
files. `max_workers` controls parallel requests (1–64); part buffers use roughly
|
|
74
|
+
`part_size * max_workers` memory, plus SDK overhead. Do not modify the source
|
|
75
|
+
file during upload.
|
|
76
|
+
|
|
77
|
+
Uploads reject existing objects by default, including when completing multipart
|
|
78
|
+
uploads. Set `forbid_overwrite=False` to replace one. Content type and metadata
|
|
79
|
+
are preserved. The return value is the provider's PutObject result for small
|
|
80
|
+
files or CompleteMultipartUpload result for multipart files.
|
|
81
|
+
|
|
82
|
+
Failed multipart transfers attempt to abort and delete incomplete parts. A failed
|
|
83
|
+
cleanup emits a warning; check the bucket's incomplete uploads. The upload role
|
|
84
|
+
and its scoped STS policy must allow `oss:AbortMultipartUpload` or
|
|
85
|
+
`tos:AbortMultipartUpload` in addition to PutObject. Deploy the management-service
|
|
86
|
+
policy update and ensure the underlying cloud role permits cleanup before use.
|
|
87
|
+
There is no persistent checkpoint: a later call starts a new upload. Uploading
|
|
88
|
+
does not register the data; call `ManagementClient.register_data` separately.
|
|
89
|
+
|
|
52
90
|
## Test changes
|
|
53
91
|
|
|
54
92
|
The package bundles generated Protobuf modules during its build. After protocol
|
|
@@ -65,7 +103,7 @@ shared dependencies are left unchanged:
|
|
|
65
103
|
(cd current_data_py && python -m build --no-isolation --outdir "$sdk_dist")
|
|
66
104
|
python current_data_py/tests/check_distribution.py --dist-dir "$sdk_dist"
|
|
67
105
|
python -m pip install --no-deps --force-reinstall "$sdk_dist"/*.whl
|
|
68
|
-
for check in package environment management labeling remote oss tos decoding; do
|
|
106
|
+
for check in package environment management labeling remote oss tos decoding multipart docs; do
|
|
69
107
|
python -I "current_data_py/tests/check_${check}.py"
|
|
70
108
|
done
|
|
71
109
|
)
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
MANIFEST.in
|
|
2
2
|
README.md
|
|
3
3
|
__init__.py
|
|
4
|
+
_multipart.py
|
|
4
5
|
decoding.py
|
|
6
|
+
docs.py
|
|
5
7
|
labeling.py
|
|
6
8
|
management.py
|
|
7
9
|
oss.py
|
|
@@ -9,7 +11,9 @@ pyproject.toml
|
|
|
9
11
|
setup.py
|
|
10
12
|
tos.py
|
|
11
13
|
./__init__.py
|
|
14
|
+
./_multipart.py
|
|
12
15
|
./decoding.py
|
|
16
|
+
./docs.py
|
|
13
17
|
./labeling.py
|
|
14
18
|
./management.py
|
|
15
19
|
./oss.py
|
|
@@ -30,6 +34,7 @@ current_data_py.egg-info/SOURCES.txt
|
|
|
30
34
|
current_data_py.egg-info/dependency_links.txt
|
|
31
35
|
current_data_py.egg-info/requires.txt
|
|
32
36
|
current_data_py.egg-info/top_level.txt
|
|
37
|
+
docs/index.md
|
|
33
38
|
examples/__init__.py
|
|
34
39
|
examples/list_schemas.py
|
|
35
40
|
examples/read_remote_td.py
|
|
@@ -41,6 +46,7 @@ remote/source.py
|
|
|
41
46
|
remote/tos_source.py
|
|
42
47
|
schema/__init__.py
|
|
43
48
|
schema/message_metadata.py
|
|
49
|
+
tests/check_docs.py
|
|
44
50
|
tests/check_environment.py
|
|
45
51
|
tests/check_labeling.py
|
|
46
52
|
tests/check_management.py
|
|
File without changes
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# management.service.v1.DataManagementService
|
|
2
|
+
|
|
3
|
+
SDK version: 0.1.15
|
|
4
|
+
|
|
5
|
+
## HTTP calls
|
|
6
|
+
|
|
7
|
+
Use JSON POST. Field tables below use Proto names (`snake_case`); HTTP JSON uses `camelCase`.
|
|
8
|
+
JSON encodes int64 as strings, Timestamp as RFC3339 strings, and Duration as strings such as `60s`.
|
|
9
|
+
Transport headers and authentication are documented in the data-platform Skill's HTTP guide.
|
|
10
|
+
|
|
11
|
+
| RPC | HTTP path |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `management.service.v1.DataManagementService.ListData` | `/api/management.service.v1.DataManagementService/ListData` |
|
|
14
|
+
| `management.service.v1.DataManagementService.CountData` | `/api/management.service.v1.DataManagementService/CountData` |
|
|
15
|
+
| `management.service.v1.DataManagementService.GetData` | `/api/management.service.v1.DataManagementService/GetData` |
|
|
16
|
+
|
|
17
|
+
# Protocol Documentation
|
|
18
|
+
<a name="top"></a>
|
|
19
|
+
|
|
20
|
+
## Table of Contents
|
|
21
|
+
|
|
22
|
+
- [google/protobuf/timestamp.proto](#google_protobuf_timestamp-proto)
|
|
23
|
+
- [Timestamp](#google-protobuf-Timestamp)
|
|
24
|
+
|
|
25
|
+
- [google/protobuf/duration.proto](#google_protobuf_duration-proto)
|
|
26
|
+
- [Duration](#google-protobuf-Duration)
|
|
27
|
+
|
|
28
|
+
- [management/metadata/metadata.proto](#management_metadata_metadata-proto)
|
|
29
|
+
- [CollectionMethod](#management-metadata-v1-CollectionMethod)
|
|
30
|
+
- [Device](#management-metadata-v1-Device)
|
|
31
|
+
- [DurationRange](#management-metadata-v1-DurationRange)
|
|
32
|
+
- [FileInfo](#management-metadata-v1-FileInfo)
|
|
33
|
+
- [Location](#management-metadata-v1-Location)
|
|
34
|
+
- [Metadata](#management-metadata-v1-Metadata)
|
|
35
|
+
- [MetadataFilter](#management-metadata-v1-MetadataFilter)
|
|
36
|
+
- [Operator](#management-metadata-v1-Operator)
|
|
37
|
+
- [RecordingInfo](#management-metadata-v1-RecordingInfo)
|
|
38
|
+
- [Resolution](#management-metadata-v1-Resolution)
|
|
39
|
+
- [Storage](#management-metadata-v1-Storage)
|
|
40
|
+
- [Task](#management-metadata-v1-Task)
|
|
41
|
+
- [TimeRange](#management-metadata-v1-TimeRange)
|
|
42
|
+
- [Topic](#management-metadata-v1-Topic)
|
|
43
|
+
|
|
44
|
+
- [DataType](#management-metadata-v1-DataType)
|
|
45
|
+
- [DeviceType](#management-metadata-v1-DeviceType)
|
|
46
|
+
- [Modality](#management-metadata-v1-Modality)
|
|
47
|
+
- [MountBodyPart](#management-metadata-v1-MountBodyPart)
|
|
48
|
+
- [StorageProvider](#management-metadata-v1-StorageProvider)
|
|
49
|
+
|
|
50
|
+
- [management/service/service.proto](#management_service_service-proto)
|
|
51
|
+
- [CountDataRequest](#management-service-v1-CountDataRequest)
|
|
52
|
+
- [CountDataResponse](#management-service-v1-CountDataResponse)
|
|
53
|
+
- [GetDataRequest](#management-service-v1-GetDataRequest)
|
|
54
|
+
- [GetDataResponse](#management-service-v1-GetDataResponse)
|
|
55
|
+
- [ListDataRequest](#management-service-v1-ListDataRequest)
|
|
56
|
+
- [ListDataResponse](#management-service-v1-ListDataResponse)
|
|
57
|
+
|
|
58
|
+
- [DataManagementService](#management-service-v1-DataManagementService)
|
|
59
|
+
|
|
60
|
+
<a name="google_protobuf_timestamp-proto"></a>
|
|
61
|
+
<p align="right"><a href="#top">Top</a></p>
|
|
62
|
+
|
|
63
|
+
## google/protobuf/timestamp.proto
|
|
64
|
+
|
|
65
|
+
<a name="google-protobuf-Timestamp"></a>
|
|
66
|
+
|
|
67
|
+
### Timestamp
|
|
68
|
+
|
|
69
|
+
| Field | Type | Label | Description |
|
|
70
|
+
| ----- | ---- | ----- | ----------- |
|
|
71
|
+
| seconds | `int64` | | |
|
|
72
|
+
| nanos | `int32` | | |
|
|
73
|
+
|
|
74
|
+
<a name="google_protobuf_duration-proto"></a>
|
|
75
|
+
<p align="right"><a href="#top">Top</a></p>
|
|
76
|
+
|
|
77
|
+
## google/protobuf/duration.proto
|
|
78
|
+
|
|
79
|
+
<a name="google-protobuf-Duration"></a>
|
|
80
|
+
|
|
81
|
+
### Duration
|
|
82
|
+
|
|
83
|
+
| Field | Type | Label | Description |
|
|
84
|
+
| ----- | ---- | ----- | ----------- |
|
|
85
|
+
| seconds | `int64` | | |
|
|
86
|
+
| nanos | `int32` | | |
|
|
87
|
+
|
|
88
|
+
<a name="management_metadata_metadata-proto"></a>
|
|
89
|
+
<p align="right"><a href="#top">Top</a></p>
|
|
90
|
+
|
|
91
|
+
## management/metadata/metadata.proto
|
|
92
|
+
|
|
93
|
+
<a name="management-metadata-v1-CollectionMethod"></a>
|
|
94
|
+
|
|
95
|
+
### CollectionMethod
|
|
96
|
+
|
|
97
|
+
| Field | Type | Label | Description |
|
|
98
|
+
| ----- | ---- | ----- | ----------- |
|
|
99
|
+
| description | `string` | | |
|
|
100
|
+
| paradigm | `string` | | |
|
|
101
|
+
|
|
102
|
+
<a name="management-metadata-v1-Device"></a>
|
|
103
|
+
|
|
104
|
+
### Device
|
|
105
|
+
|
|
106
|
+
| Field | Type | Label | Description |
|
|
107
|
+
| ----- | ---- | ----- | ----------- |
|
|
108
|
+
| model | `string` | | |
|
|
109
|
+
| type | [DeviceType](#management-metadata-v1-DeviceType) | | |
|
|
110
|
+
| firmware_version | `string` | | |
|
|
111
|
+
| fps | `float` | | |
|
|
112
|
+
| modality | [Modality](#management-metadata-v1-Modality) | | |
|
|
113
|
+
| mount_body_part | [MountBodyPart](#management-metadata-v1-MountBodyPart) | | |
|
|
114
|
+
| resolution | [Resolution](#management-metadata-v1-Resolution) | | |
|
|
115
|
+
|
|
116
|
+
<a name="management-metadata-v1-DurationRange"></a>
|
|
117
|
+
|
|
118
|
+
### DurationRange
|
|
119
|
+
|
|
120
|
+
| Field | Type | Label | Description |
|
|
121
|
+
| ----- | ---- | ----- | ----------- |
|
|
122
|
+
| min | [google.protobuf.Duration](#google-protobuf-Duration) | | |
|
|
123
|
+
| max | [google.protobuf.Duration](#google-protobuf-Duration) | | |
|
|
124
|
+
|
|
125
|
+
<a name="management-metadata-v1-FileInfo"></a>
|
|
126
|
+
|
|
127
|
+
### FileInfo
|
|
128
|
+
|
|
129
|
+
| Field | Type | Label | Description |
|
|
130
|
+
| ----- | ---- | ----- | ----------- |
|
|
131
|
+
| size_bytes | `int64` | | |
|
|
132
|
+
| topics | [Topic](#management-metadata-v1-Topic) | repeated | |
|
|
133
|
+
| checksum | `string` | | |
|
|
134
|
+
|
|
135
|
+
<a name="management-metadata-v1-Location"></a>
|
|
136
|
+
|
|
137
|
+
### Location
|
|
138
|
+
|
|
139
|
+
| Field | Type | Label | Description |
|
|
140
|
+
| ----- | ---- | ----- | ----------- |
|
|
141
|
+
| coordinate_system | `string` | | |
|
|
142
|
+
| latitude | `double` | | |
|
|
143
|
+
| longitude | `double` | | |
|
|
144
|
+
|
|
145
|
+
<a name="management-metadata-v1-Metadata"></a>
|
|
146
|
+
|
|
147
|
+
### Metadata
|
|
148
|
+
|
|
149
|
+
| Field | Type | Label | Description |
|
|
150
|
+
| ----- | ---- | ----- | ----------- |
|
|
151
|
+
| id | `string` | | |
|
|
152
|
+
| name | `string` | | |
|
|
153
|
+
| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
|
|
154
|
+
| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
|
|
155
|
+
| storages | [Storage](#management-metadata-v1-Storage) | repeated | |
|
|
156
|
+
| file_info | [FileInfo](#management-metadata-v1-FileInfo) | | |
|
|
157
|
+
| devices | [Device](#management-metadata-v1-Device) | repeated | |
|
|
158
|
+
| recording_info | [RecordingInfo](#management-metadata-v1-RecordingInfo) | | |
|
|
159
|
+
| data_type | [DataType](#management-metadata-v1-DataType) | | |
|
|
160
|
+
| optional_id | `string` | | Optional data identity, guaranteed unique when nonempty. |
|
|
161
|
+
|
|
162
|
+
<a name="management-metadata-v1-MetadataFilter"></a>
|
|
163
|
+
|
|
164
|
+
### MetadataFilter
|
|
165
|
+
|
|
166
|
+
| Field | Type | Label | Description |
|
|
167
|
+
| ----- | ---- | ----- | ----------- |
|
|
168
|
+
| name_prefix | `string` | | |
|
|
169
|
+
| data_types | [DataType](#management-metadata-v1-DataType) | repeated | |
|
|
170
|
+
| recording_started_range | [TimeRange](#management-metadata-v1-TimeRange) | | |
|
|
171
|
+
| recording_duration_range | [DurationRange](#management-metadata-v1-DurationRange) | | |
|
|
172
|
+
| task_name_prefix | `string` | | Case-sensitive literal prefix of recording_info.task.name. |
|
|
173
|
+
| data_id | `string` | | Exact metadata ID. |
|
|
174
|
+
|
|
175
|
+
<a name="management-metadata-v1-Operator"></a>
|
|
176
|
+
|
|
177
|
+
### Operator
|
|
178
|
+
|
|
179
|
+
| Field | Type | Label | Description |
|
|
180
|
+
| ----- | ---- | ----- | ----------- |
|
|
181
|
+
| id | `string` | | |
|
|
182
|
+
| arm_span | `double` | | |
|
|
183
|
+
| height | `double` | | |
|
|
184
|
+
| leg_length | `double` | | |
|
|
185
|
+
|
|
186
|
+
<a name="management-metadata-v1-RecordingInfo"></a>
|
|
187
|
+
|
|
188
|
+
### RecordingInfo
|
|
189
|
+
|
|
190
|
+
| Field | Type | Label | Description |
|
|
191
|
+
| ----- | ---- | ----- | ----------- |
|
|
192
|
+
| recording_time | [TimeRange](#management-metadata-v1-TimeRange) | | |
|
|
193
|
+
| duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |
|
|
194
|
+
| location | [Location](#management-metadata-v1-Location) | | |
|
|
195
|
+
| task | [Task](#management-metadata-v1-Task) | | |
|
|
196
|
+
| operator | [Operator](#management-metadata-v1-Operator) | | |
|
|
197
|
+
|
|
198
|
+
<a name="management-metadata-v1-Resolution"></a>
|
|
199
|
+
|
|
200
|
+
### Resolution
|
|
201
|
+
|
|
202
|
+
| Field | Type | Label | Description |
|
|
203
|
+
| ----- | ---- | ----- | ----------- |
|
|
204
|
+
| height | `uint32` | | |
|
|
205
|
+
| width | `uint32` | | |
|
|
206
|
+
|
|
207
|
+
<a name="management-metadata-v1-Storage"></a>
|
|
208
|
+
|
|
209
|
+
### Storage
|
|
210
|
+
|
|
211
|
+
| Field | Type | Label | Description |
|
|
212
|
+
| ----- | ---- | ----- | ----------- |
|
|
213
|
+
| bucket | `string` | | |
|
|
214
|
+
| object_key | `string` | | |
|
|
215
|
+
| provider | [StorageProvider](#management-metadata-v1-StorageProvider) | | Unspecified is treated as OSS for legacy records and clients. |
|
|
216
|
+
|
|
217
|
+
<a name="management-metadata-v1-Task"></a>
|
|
218
|
+
|
|
219
|
+
### Task
|
|
220
|
+
|
|
221
|
+
| Field | Type | Label | Description |
|
|
222
|
+
| ----- | ---- | ----- | ----------- |
|
|
223
|
+
| name | `string` | | |
|
|
224
|
+
| description | `string` | | |
|
|
225
|
+
| scene | `string` | | |
|
|
226
|
+
| collection_method | [CollectionMethod](#management-metadata-v1-CollectionMethod) | | |
|
|
227
|
+
|
|
228
|
+
<a name="management-metadata-v1-TimeRange"></a>
|
|
229
|
+
|
|
230
|
+
### TimeRange
|
|
231
|
+
|
|
232
|
+
| Field | Type | Label | Description |
|
|
233
|
+
| ----- | ---- | ----- | ----------- |
|
|
234
|
+
| from | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
|
|
235
|
+
| to | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
|
|
236
|
+
|
|
237
|
+
<a name="management-metadata-v1-Topic"></a>
|
|
238
|
+
|
|
239
|
+
### Topic
|
|
240
|
+
|
|
241
|
+
| Field | Type | Label | Description |
|
|
242
|
+
| ----- | ---- | ----- | ----------- |
|
|
243
|
+
| name | `string` | | |
|
|
244
|
+
| samples | `int64` | | |
|
|
245
|
+
| fps | `float` | | |
|
|
246
|
+
|
|
247
|
+
<a name="management-metadata-v1-DataType"></a>
|
|
248
|
+
|
|
249
|
+
### DataType
|
|
250
|
+
|
|
251
|
+
| Name | Number | Description |
|
|
252
|
+
| ---- | ------ | ----------- |
|
|
253
|
+
| DATA_TYPE_UNSPECIFIED | 0 | |
|
|
254
|
+
| DATA_TYPE_EGOSUITE | 1 | |
|
|
255
|
+
| DATA_TYPE_YAM | 2 | |
|
|
256
|
+
| DATA_TYPE_CURRENT_V2 | 3 | |
|
|
257
|
+
| DATA_TYPE_PICO_GLOVE | 4 | |
|
|
258
|
+
|
|
259
|
+
<a name="management-metadata-v1-DeviceType"></a>
|
|
260
|
+
|
|
261
|
+
### DeviceType
|
|
262
|
+
|
|
263
|
+
| Name | Number | Description |
|
|
264
|
+
| ---- | ------ | ----------- |
|
|
265
|
+
| DEVICE_TYPE_UNSPECIFIED | 0 | |
|
|
266
|
+
| DEVICE_TYPE_CAM | 1 | |
|
|
267
|
+
| DEVICE_TYPE_IMU | 2 | |
|
|
268
|
+
|
|
269
|
+
<a name="management-metadata-v1-Modality"></a>
|
|
270
|
+
|
|
271
|
+
### Modality
|
|
272
|
+
|
|
273
|
+
| Name | Number | Description |
|
|
274
|
+
| ---- | ------ | ----------- |
|
|
275
|
+
| MODALITY_UNSPECIFIED | 0 | |
|
|
276
|
+
| MODALITY_RGB | 1 | |
|
|
277
|
+
| MODALITY_DEPTH | 2 | |
|
|
278
|
+
|
|
279
|
+
<a name="management-metadata-v1-MountBodyPart"></a>
|
|
280
|
+
|
|
281
|
+
### MountBodyPart
|
|
282
|
+
|
|
283
|
+
| Name | Number | Description |
|
|
284
|
+
| ---- | ------ | ----------- |
|
|
285
|
+
| MOUNT_BODY_PART_UNSPECIFIED | 0 | |
|
|
286
|
+
|
|
287
|
+
<a name="management-metadata-v1-StorageProvider"></a>
|
|
288
|
+
|
|
289
|
+
### StorageProvider
|
|
290
|
+
|
|
291
|
+
| Name | Number | Description |
|
|
292
|
+
| ---- | ------ | ----------- |
|
|
293
|
+
| STORAGE_PROVIDER_UNSPECIFIED | 0 | |
|
|
294
|
+
| STORAGE_PROVIDER_OSS | 1 | |
|
|
295
|
+
| STORAGE_PROVIDER_TOS | 2 | |
|
|
296
|
+
|
|
297
|
+
<a name="management_service_service-proto"></a>
|
|
298
|
+
<p align="right"><a href="#top">Top</a></p>
|
|
299
|
+
|
|
300
|
+
## management/service/service.proto
|
|
301
|
+
|
|
302
|
+
<a name="management-service-v1-CountDataRequest"></a>
|
|
303
|
+
|
|
304
|
+
### CountDataRequest
|
|
305
|
+
|
|
306
|
+
| Field | Type | Label | Description |
|
|
307
|
+
| ----- | ---- | ----- | ----------- |
|
|
308
|
+
| filter | [management.metadata.v1.MetadataFilter](#management-metadata-v1-MetadataFilter) | | |
|
|
309
|
+
|
|
310
|
+
<a name="management-service-v1-CountDataResponse"></a>
|
|
311
|
+
|
|
312
|
+
### CountDataResponse
|
|
313
|
+
|
|
314
|
+
| Field | Type | Label | Description |
|
|
315
|
+
| ----- | ---- | ----- | ----------- |
|
|
316
|
+
| total_count | `int64` | | Exact at query time; concurrent writes may change the count. |
|
|
317
|
+
|
|
318
|
+
<a name="management-service-v1-GetDataRequest"></a>
|
|
319
|
+
|
|
320
|
+
### GetDataRequest
|
|
321
|
+
|
|
322
|
+
| Field | Type | Label | Description |
|
|
323
|
+
| ----- | ---- | ----- | ----------- |
|
|
324
|
+
| data_id | `string` | | |
|
|
325
|
+
| optional_id | `string` | | |
|
|
326
|
+
|
|
327
|
+
<a name="management-service-v1-GetDataResponse"></a>
|
|
328
|
+
|
|
329
|
+
### GetDataResponse
|
|
330
|
+
|
|
331
|
+
| Field | Type | Label | Description |
|
|
332
|
+
| ----- | ---- | ----- | ----------- |
|
|
333
|
+
| data | [management.metadata.v1.Metadata](#management-metadata-v1-Metadata) | | |
|
|
334
|
+
|
|
335
|
+
<a name="management-service-v1-ListDataRequest"></a>
|
|
336
|
+
|
|
337
|
+
### ListDataRequest
|
|
338
|
+
|
|
339
|
+
| Field | Type | Label | Description |
|
|
340
|
+
| ----- | ---- | ----- | ----------- |
|
|
341
|
+
| page_size | `int32` | | |
|
|
342
|
+
| page_token | `string` | | |
|
|
343
|
+
| filter | [management.metadata.v1.MetadataFilter](#management-metadata-v1-MetadataFilter) | | |
|
|
344
|
+
|
|
345
|
+
<a name="management-service-v1-ListDataResponse"></a>
|
|
346
|
+
|
|
347
|
+
### ListDataResponse
|
|
348
|
+
|
|
349
|
+
| Field | Type | Label | Description |
|
|
350
|
+
| ----- | ---- | ----- | ----------- |
|
|
351
|
+
| data | [management.metadata.v1.Metadata](#management-metadata-v1-Metadata) | repeated | |
|
|
352
|
+
| next_page_token | `string` | | |
|
|
353
|
+
|
|
354
|
+
<a name="management-service-v1-DataManagementService"></a>
|
|
355
|
+
|
|
356
|
+
### DataManagementService
|
|
357
|
+
|
|
358
|
+
| Method Name | Request Type | Response Type | Description |
|
|
359
|
+
| ----------- | ------------ | ------------- | ------------|
|
|
360
|
+
| ListData | [ListDataRequest](#management-service-v1-ListDataRequest) | [ListDataResponse](#management-service-v1-ListDataResponse) | |
|
|
361
|
+
| CountData | [CountDataRequest](#management-service-v1-CountDataRequest) | [CountDataResponse](#management-service-v1-CountDataResponse) | |
|
|
362
|
+
| GetData | [GetDataRequest](#management-service-v1-GetDataRequest) | [GetDataResponse](#management-service-v1-GetDataResponse) | |
|