viam-sdk 0.3.0__py3-none-linux_armv6l.whl → 0.66.0__py3-none-linux_armv6l.whl
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.
Potentially problematic release.
This version of viam-sdk might be problematic. Click here for more details.
- viam/__init__.py +29 -2
- viam/app/_logs.py +34 -0
- viam/app/app_client.py +2696 -0
- viam/app/billing_client.py +185 -0
- viam/app/data_client.py +2231 -0
- viam/app/ml_training_client.py +249 -0
- viam/app/provisioning_client.py +93 -0
- viam/app/viam_client.py +275 -0
- viam/components/arm/__init__.py +3 -26
- viam/components/arm/arm.py +123 -8
- viam/components/arm/client.py +37 -24
- viam/components/arm/service.py +35 -32
- viam/components/audio_in/__init__.py +24 -0
- viam/components/audio_in/audio_in.py +74 -0
- viam/components/audio_in/client.py +76 -0
- viam/components/audio_in/service.py +83 -0
- viam/components/audio_out/__init__.py +21 -0
- viam/components/audio_out/audio_out.py +72 -0
- viam/components/audio_out/client.py +67 -0
- viam/components/audio_out/service.py +63 -0
- viam/components/base/__init__.py +6 -11
- viam/components/base/base.py +134 -8
- viam/components/base/client.py +51 -23
- viam/components/base/service.py +33 -30
- viam/components/board/__init__.py +3 -12
- viam/components/board/board.py +247 -91
- viam/components/board/client.py +149 -83
- viam/components/board/service.py +63 -33
- viam/components/button/__init__.py +10 -0
- viam/components/button/button.py +41 -0
- viam/components/button/client.py +52 -0
- viam/components/button/service.py +46 -0
- viam/components/camera/__init__.py +3 -3
- viam/components/camera/camera.py +62 -27
- viam/components/camera/client.py +59 -27
- viam/components/camera/service.py +42 -65
- viam/components/component_base.py +28 -5
- viam/components/encoder/__init__.py +1 -1
- viam/components/encoder/client.py +25 -14
- viam/components/encoder/encoder.py +48 -10
- viam/components/encoder/service.py +14 -18
- viam/components/gantry/__init__.py +1 -13
- viam/components/gantry/client.py +80 -25
- viam/components/gantry/gantry.py +123 -9
- viam/components/gantry/service.py +51 -29
- viam/components/generic/__init__.py +1 -1
- viam/components/generic/client.py +21 -8
- viam/components/generic/generic.py +10 -2
- viam/components/generic/service.py +12 -7
- viam/components/gripper/__init__.py +3 -13
- viam/components/gripper/client.py +69 -21
- viam/components/gripper/gripper.py +123 -3
- viam/components/gripper/service.py +44 -22
- viam/components/input/__init__.py +1 -14
- viam/components/input/client.py +55 -23
- viam/components/input/input.py +106 -3
- viam/components/input/service.py +16 -21
- viam/components/motor/__init__.py +1 -21
- viam/components/motor/client.py +56 -33
- viam/components/motor/motor.py +127 -4
- viam/components/motor/service.py +33 -44
- viam/components/movement_sensor/__init__.py +1 -1
- viam/components/movement_sensor/client.py +102 -45
- viam/components/movement_sensor/movement_sensor.py +130 -61
- viam/components/movement_sensor/service.py +38 -41
- viam/components/pose_tracker/__init__.py +1 -1
- viam/components/pose_tracker/client.py +18 -7
- viam/components/pose_tracker/pose_tracker.py +4 -2
- viam/components/pose_tracker/service.py +12 -10
- viam/components/power_sensor/__init__.py +17 -0
- viam/components/power_sensor/client.py +86 -0
- viam/components/power_sensor/power_sensor.py +104 -0
- viam/components/power_sensor/service.py +72 -0
- viam/components/sensor/__init__.py +2 -1
- viam/components/sensor/client.py +26 -10
- viam/components/sensor/sensor.py +22 -4
- viam/components/sensor/service.py +20 -11
- viam/components/servo/__init__.py +1 -13
- viam/components/servo/client.py +47 -21
- viam/components/servo/service.py +15 -22
- viam/components/servo/servo.py +61 -2
- viam/components/switch/__init__.py +10 -0
- viam/components/switch/client.py +83 -0
- viam/components/switch/service.py +72 -0
- viam/components/switch/switch.py +98 -0
- viam/errors.py +10 -0
- viam/gen/app/agent/v1/agent_grpc.py +29 -0
- viam/gen/app/agent/v1/agent_pb2.py +47 -0
- viam/gen/app/agent/v1/agent_pb2.pyi +280 -0
- viam/gen/app/cloudslam/v1/__init__.py +0 -0
- viam/gen/app/cloudslam/v1/cloud_slam_grpc.py +70 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +54 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.pyi +384 -0
- viam/gen/app/data/v1/data_grpc.py +197 -8
- viam/gen/app/data/v1/data_pb2.py +238 -99
- viam/gen/app/data/v1/data_pb2.pyi +1222 -259
- viam/gen/app/datapipelines/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +57 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +387 -0
- viam/gen/app/dataset/__init__.py +0 -0
- viam/gen/app/dataset/v1/__init__.py +0 -0
- viam/gen/app/dataset/v1/dataset_grpc.py +68 -0
- viam/gen/app/dataset/v1/dataset_pb2.py +44 -0
- viam/gen/app/dataset/v1/dataset_pb2.pyi +214 -0
- viam/gen/app/datasync/v1/data_sync_grpc.py +21 -4
- viam/gen/app/datasync/v1/data_sync_pb2.py +62 -128
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +156 -199
- viam/gen/app/mlinference/__init__.py +0 -0
- viam/gen/app/mlinference/v1/__init__.py +0 -0
- viam/gen/app/mlinference/v1/ml_inference_grpc.py +28 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.py +23 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +63 -0
- viam/gen/app/mltraining/v1/ml_training_grpc.py +51 -3
- viam/gen/app/mltraining/v1/ml_training_pb2.py +135 -58
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +328 -39
- viam/gen/app/packages/v1/packages_grpc.py +15 -1
- viam/gen/app/packages/v1/packages_pb2.py +44 -64
- viam/gen/app/packages/v1/packages_pb2.pyi +75 -85
- viam/gen/app/v1/app_grpc.py +644 -3
- viam/gen/app/v1/app_pb2.py +695 -295
- viam/gen/app/v1/app_pb2.pyi +4488 -635
- viam/gen/app/v1/billing_grpc.py +53 -11
- viam/gen/app/v1/billing_pb2.py +94 -39
- viam/gen/app/v1/billing_pb2.pyi +391 -191
- viam/gen/app/v1/end_user_grpc.py +59 -0
- viam/gen/app/v1/end_user_pb2.py +55 -0
- viam/gen/app/v1/end_user_pb2.pyi +181 -0
- viam/gen/app/v1/robot_grpc.py +16 -1
- viam/gen/app/v1/robot_pb2.py +122 -94
- viam/gen/app/v1/robot_pb2.pyi +463 -123
- viam/gen/common/v1/common_pb2.py +87 -58
- viam/gen/common/v1/common_pb2.pyi +456 -149
- viam/gen/component/arm/v1/arm_grpc.py +58 -2
- viam/gen/component/arm/v1/arm_pb2.py +68 -51
- viam/gen/component/arm/v1/arm_pb2.pyi +108 -42
- viam/gen/component/audioin/__init__.py +0 -0
- viam/gen/component/audioin/v1/__init__.py +0 -0
- viam/gen/component/audioin/v1/audioin_grpc.py +54 -0
- viam/gen/component/audioin/v1/audioin_pb2.py +34 -0
- viam/gen/component/audioin/v1/audioin_pb2.pyi +94 -0
- viam/gen/component/audioinput/v1/audioinput_grpc.py +25 -2
- viam/gen/component/audioinput/v1/audioinput_pb2.py +36 -31
- viam/gen/component/audioinput/v1/audioinput_pb2.pyi +22 -22
- viam/gen/component/audioout/__init__.py +0 -0
- viam/gen/component/audioout/v1/__init__.py +0 -0
- viam/gen/component/audioout/v1/audioout_grpc.py +54 -0
- viam/gen/component/audioout/v1/audioout_pb2.py +32 -0
- viam/gen/component/audioout/v1/audioout_pb2.pyi +47 -0
- viam/gen/component/base/v1/base_grpc.py +42 -2
- viam/gen/component/base/v1/base_pb2.py +58 -47
- viam/gen/component/base/v1/base_pb2.pyi +65 -30
- viam/gen/component/board/v1/board_grpc.py +59 -7
- viam/gen/component/board/v1/board_pb2.py +94 -73
- viam/gen/component/board/v1/board_pb2.pyi +165 -68
- viam/gen/component/button/__init__.py +0 -0
- viam/gen/component/button/v1/__init__.py +0 -0
- viam/gen/component/button/v1/button_grpc.py +38 -0
- viam/gen/component/button/v1/button_pb2.py +28 -0
- viam/gen/component/button/v1/button_pb2.pyi +39 -0
- viam/gen/component/camera/v1/camera_grpc.py +38 -2
- viam/gen/component/camera/v1/camera_pb2.py +60 -43
- viam/gen/component/camera/v1/camera_pb2.pyi +191 -37
- viam/gen/component/encoder/v1/encoder_grpc.py +25 -2
- viam/gen/component/encoder/v1/encoder_pb2.py +36 -31
- viam/gen/component/encoder/v1/encoder_pb2.pyi +15 -15
- viam/gen/component/gantry/v1/gantry_grpc.py +47 -2
- viam/gen/component/gantry/v1/gantry_pb2.py +56 -43
- viam/gen/component/gantry/v1/gantry_pb2.pyi +67 -31
- viam/gen/component/generic/v1/generic_grpc.py +16 -2
- viam/gen/component/generic/v1/generic_pb2.py +16 -11
- viam/gen/component/gripper/v1/gripper_grpc.py +44 -2
- viam/gen/component/gripper/v1/gripper_pb2.py +48 -35
- viam/gen/component/gripper/v1/gripper_pb2.pyi +62 -24
- viam/gen/component/inputcontroller/v1/input_controller_grpc.py +28 -2
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +46 -41
- viam/gen/component/inputcontroller/v1/input_controller_pb2.pyi +32 -36
- viam/gen/component/motor/v1/motor_grpc.py +51 -2
- viam/gen/component/motor/v1/motor_pb2.py +78 -67
- viam/gen/component/motor/v1/motor_pb2.pyi +75 -46
- viam/gen/component/movementsensor/v1/movementsensor_grpc.py +48 -2
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +70 -63
- viam/gen/component/movementsensor/v1/movementsensor_pb2.pyi +84 -57
- viam/gen/component/posetracker/v1/pose_tracker_grpc.py +19 -2
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +26 -21
- viam/gen/component/posetracker/v1/pose_tracker_pb2.pyi +9 -13
- viam/gen/component/powersensor/__init__.py +0 -0
- viam/gen/component/powersensor/v1/__init__.py +0 -0
- viam/gen/component/powersensor/v1/powersensor_grpc.py +62 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.py +42 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.pyi +124 -0
- viam/gen/component/sensor/v1/sensor_grpc.py +21 -5
- viam/gen/component/sensor/v1/sensor_pb2.py +18 -22
- viam/gen/component/sensor/v1/sensor_pb2.pyi +1 -69
- viam/gen/component/servo/v1/servo_grpc.py +28 -2
- viam/gen/component/servo/v1/servo_pb2.py +42 -37
- viam/gen/component/servo/v1/servo_pb2.pyi +22 -26
- viam/gen/component/switch/__init__.py +0 -0
- viam/gen/component/switch/v1/__init__.py +0 -0
- viam/gen/component/switch/v1/switch_grpc.py +54 -0
- viam/gen/component/switch/v1/switch_pb2.py +40 -0
- viam/gen/component/switch/v1/switch_pb2.pyi +116 -0
- viam/gen/component/testecho/v1/testecho_grpc.py +15 -0
- viam/gen/component/testecho/v1/testecho_pb2.py +29 -26
- viam/gen/component/testecho/v1/testecho_pb2.pyi +16 -20
- viam/gen/module/v1/module_grpc.py +18 -0
- viam/gen/module/v1/module_pb2.py +36 -33
- viam/gen/module/v1/module_pb2.pyi +39 -34
- viam/gen/opentelemetry/__init__.py +0 -0
- viam/gen/opentelemetry/proto/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/common_grpc.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/common_pb2.py +27 -0
- viam/gen/opentelemetry/proto/common/v1/common_pb2.pyi +208 -0
- viam/gen/opentelemetry/proto/resource/__init__.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_grpc.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_pb2.py +18 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_pb2.pyi +59 -0
- viam/gen/opentelemetry/proto/trace/__init__.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_grpc.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_pb2.py +37 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_pb2.pyi +402 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_grpc.py +12 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +25 -22
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.pyi +13 -17
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_grpc.py +12 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +23 -20
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.pyi +13 -17
- viam/gen/proto/rpc/v1/auth_grpc.py +11 -0
- viam/gen/proto/rpc/v1/auth_pb2.py +27 -24
- viam/gen/proto/rpc/v1/auth_pb2.pyi +12 -16
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +35 -32
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.pyi +37 -41
- viam/gen/proto/rpc/webrtc/v1/signaling_grpc.py +15 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +62 -57
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +78 -69
- viam/gen/provisioning/__init__.py +0 -0
- viam/gen/provisioning/v1/__init__.py +0 -0
- viam/gen/provisioning/v1/provisioning_grpc.py +59 -0
- viam/gen/provisioning/v1/provisioning_pb2.py +45 -0
- viam/gen/provisioning/v1/provisioning_pb2.pyi +229 -0
- viam/gen/robot/v1/robot_grpc.py +144 -15
- viam/gen/robot/v1/robot_pb2.py +193 -119
- viam/gen/robot/v1/robot_pb2.pyi +565 -137
- viam/gen/service/datamanager/v1/data_manager_grpc.py +20 -2
- viam/gen/service/datamanager/v1/data_manager_pb2.py +27 -17
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +52 -10
- viam/gen/service/discovery/__init__.py +0 -0
- viam/gen/service/discovery/v1/__init__.py +0 -0
- viam/gen/service/discovery/v1/discovery_grpc.py +39 -0
- viam/gen/service/discovery/v1/discovery_pb2.py +29 -0
- viam/gen/service/discovery/v1/discovery_pb2.pyi +51 -0
- viam/gen/service/generic/__init__.py +0 -0
- viam/gen/service/generic/v1/__init__.py +0 -0
- viam/gen/service/generic/v1/generic_grpc.py +29 -0
- viam/gen/service/generic/v1/generic_pb2.py +21 -0
- viam/gen/service/generic/v1/generic_pb2.pyi +6 -0
- viam/gen/service/mlmodel/v1/mlmodel_grpc.py +9 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +76 -29
- viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi +307 -28
- viam/gen/service/motion/v1/motion_grpc.py +42 -4
- viam/gen/service/motion/v1/motion_pb2.py +119 -51
- viam/gen/service/motion/v1/motion_pb2.pyi +595 -120
- viam/gen/service/navigation/v1/navigation_grpc.py +49 -1
- viam/gen/service/navigation/v1/navigation_pb2.py +76 -51
- viam/gen/service/navigation/v1/navigation_pb2.pyi +188 -33
- viam/gen/service/sensors/v1/sensors_grpc.py +12 -0
- viam/gen/service/sensors/v1/sensors_pb2.py +60 -29
- viam/gen/service/sensors/v1/sensors_pb2.pyi +18 -21
- viam/gen/service/shell/v1/shell_grpc.py +27 -1
- viam/gen/service/shell/v1/shell_pb2.py +37 -15
- viam/gen/service/shell/v1/shell_pb2.pyi +260 -7
- viam/gen/service/slam/v1/slam_grpc.py +24 -2
- viam/gen/service/slam/v1/slam_pb2.py +44 -30
- viam/gen/service/slam/v1/slam_pb2.pyi +128 -27
- viam/gen/service/video/__init__.py +0 -0
- viam/gen/service/video/v1/__init__.py +0 -0
- viam/gen/service/video/v1/video_grpc.py +39 -0
- viam/gen/service/video/v1/video_pb2.py +29 -0
- viam/gen/service/video/v1/video_pb2.pyi +72 -0
- viam/gen/service/vision/v1/vision_grpc.py +39 -1
- viam/gen/service/vision/v1/vision_pb2.py +61 -45
- viam/gen/service/vision/v1/vision_pb2.pyi +180 -41
- viam/gen/service/worldstatestore/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/world_state_store_grpc.py +55 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.py +39 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.pyi +171 -0
- viam/gen/stream/__init__.py +0 -0
- viam/gen/stream/v1/__init__.py +0 -0
- viam/gen/stream/v1/stream_grpc.py +59 -0
- viam/gen/stream/v1/stream_pb2.py +39 -0
- viam/gen/stream/v1/stream_pb2.pyi +161 -0
- viam/gen/tagger/v1/tagger_pb2.py +9 -8
- viam/logging.py +160 -17
- viam/media/__init__.py +0 -9
- viam/media/audio.py +22 -10
- viam/media/utils/__init__.py +0 -0
- viam/media/utils/pil/__init__.py +55 -0
- viam/media/{viam_rgba_plugin.py → utils/pil/viam_rgba_plugin.py} +10 -16
- viam/media/viam_rgba.py +10 -0
- viam/media/video.py +197 -73
- viam/module/module.py +191 -44
- viam/module/resource_data_consumer.py +41 -0
- viam/module/service.py +9 -1
- viam/module/types.py +4 -5
- viam/operations.py +4 -3
- viam/proto/app/__init__.py +361 -5
- viam/proto/app/agent/__init__.py +28 -0
- viam/proto/app/billing.py +51 -27
- viam/proto/app/cloudslam/__init__.py +48 -0
- viam/proto/app/data/__init__.py +103 -17
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +40 -0
- viam/proto/app/datasync/__init__.py +11 -5
- viam/proto/app/end_user.py +34 -0
- viam/proto/app/mlinference/__init__.py +15 -0
- viam/proto/app/mltraining/__init__.py +25 -1
- viam/proto/app/packages/__init__.py +3 -3
- viam/proto/app/robot.py +19 -1
- viam/proto/common/__init__.py +35 -8
- viam/proto/component/arm/__init__.py +9 -1
- viam/proto/component/audioin/__init__.py +16 -0
- viam/proto/component/audioinput/__init__.py +3 -1
- viam/proto/component/audioout/__init__.py +15 -0
- viam/proto/component/base/__init__.py +7 -1
- viam/proto/component/board/__init__.py +13 -5
- viam/proto/component/button/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +9 -1
- viam/proto/component/encoder/__init__.py +3 -1
- viam/proto/component/gantry/__init__.py +7 -1
- viam/proto/component/generic/__init__.py +3 -1
- viam/proto/component/gripper/__init__.py +7 -1
- viam/proto/component/inputcontroller/__init__.py +7 -1
- viam/proto/component/motor/__init__.py +7 -1
- viam/proto/component/movementsensor/__init__.py +7 -1
- viam/proto/component/posetracker/__init__.py +7 -1
- viam/proto/component/powersensor/__init__.py +30 -0
- viam/proto/component/sensor/__init__.py +3 -4
- viam/proto/component/servo/__init__.py +3 -1
- viam/proto/component/switch/__init__.py +26 -0
- viam/proto/component/testecho/__init__.py +3 -1
- viam/proto/module/__init__.py +3 -1
- viam/proto/opentelemetry/__init__.py +0 -0
- viam/proto/opentelemetry/proto/__init__.py +0 -0
- viam/proto/opentelemetry/proto/common/__init__.py +15 -0
- viam/proto/opentelemetry/proto/resource/__init__.py +10 -0
- viam/proto/opentelemetry/proto/trace/__init__.py +15 -0
- viam/proto/provisioning/__init__.py +42 -0
- viam/proto/robot/__init__.py +57 -9
- viam/proto/rpc/auth.py +11 -1
- viam/proto/rpc/examples/echo/__init__.py +3 -1
- viam/proto/rpc/examples/echoresource/__init__.py +7 -1
- viam/proto/rpc/webrtc/grpc.py +3 -1
- viam/proto/rpc/webrtc/signaling.py +5 -1
- viam/proto/service/datamanager/__init__.py +15 -2
- viam/proto/service/discovery/__init__.py +15 -0
- viam/proto/service/generic/__init__.py +12 -0
- viam/proto/service/mlmodel/__init__.py +27 -1
- viam/proto/service/motion/__init__.py +35 -5
- viam/proto/service/navigation/__init__.py +19 -1
- viam/proto/service/sensors/__init__.py +3 -1
- viam/proto/service/shell/__init__.py +25 -2
- viam/proto/service/slam/__init__.py +13 -1
- viam/proto/service/video/__init__.py +15 -0
- viam/proto/service/vision/__init__.py +11 -1
- viam/proto/service/worldstatestore/__init__.py +32 -0
- viam/proto/stream/__init__.py +36 -0
- viam/py.typed +0 -0
- viam/resource/base.py +45 -8
- viam/resource/easy_resource.py +149 -0
- viam/resource/manager.py +35 -14
- viam/resource/registry.py +40 -52
- viam/resource/rpc_client_base.py +33 -1
- viam/resource/rpc_service_base.py +15 -8
- viam/resource/types.py +39 -26
- viam/robot/client.py +458 -91
- viam/robot/service.py +13 -107
- viam/rpc/dial.py +133 -15
- viam/rpc/libviam_rust_utils.so +0 -0
- viam/rpc/server.py +59 -15
- viam/rpc/types.py +2 -4
- viam/services/discovery/__init__.py +12 -0
- viam/services/discovery/client.py +55 -0
- viam/services/discovery/discovery.py +52 -0
- viam/services/discovery/service.py +43 -0
- viam/services/generic/__init__.py +18 -0
- viam/services/generic/client.py +58 -0
- viam/services/generic/generic.py +58 -0
- viam/services/generic/service.py +29 -0
- viam/services/mlmodel/__init__.py +15 -1
- viam/services/mlmodel/client.py +20 -15
- viam/services/mlmodel/mlmodel.py +44 -7
- viam/services/mlmodel/service.py +9 -13
- viam/services/mlmodel/utils.py +101 -0
- viam/services/motion/__init__.py +15 -3
- viam/services/motion/client.py +109 -150
- viam/services/motion/motion.py +380 -0
- viam/services/motion/service.py +132 -0
- viam/services/navigation/__init__.py +11 -0
- viam/services/navigation/client.py +99 -0
- viam/services/navigation/navigation.py +250 -0
- viam/services/navigation/service.py +137 -0
- viam/services/service_base.py +43 -4
- viam/services/service_client_base.py +4 -4
- viam/services/slam/__init__.py +4 -1
- viam/services/slam/client.py +21 -11
- viam/services/slam/service.py +16 -19
- viam/services/slam/slam.py +66 -5
- viam/services/vision/__init__.py +8 -0
- viam/services/vision/client.py +115 -111
- viam/services/vision/service.py +143 -0
- viam/services/vision/vision.py +317 -0
- viam/services/worldstatestore/__init__.py +18 -0
- viam/services/worldstatestore/client.py +94 -0
- viam/services/worldstatestore/service.py +55 -0
- viam/services/worldstatestore/worldstatestore.py +90 -0
- viam/sessions_client.py +254 -0
- viam/streams.py +44 -0
- viam/utils.py +143 -15
- viam/version_metadata.py +4 -0
- viam_sdk-0.66.0.dist-info/METADATA +157 -0
- viam_sdk-0.66.0.dist-info/RECORD +531 -0
- {viam_sdk-0.3.0.dist-info → viam_sdk-0.66.0.dist-info}/WHEEL +1 -1
- viam/components/audio_input/__init__.py +0 -18
- viam/components/audio_input/audio_input.py +0 -79
- viam/components/audio_input/client.py +0 -60
- viam/components/audio_input/service.py +0 -118
- viam/components/types.py +0 -5
- viam/gen/app/model/v1/model_grpc.py +0 -39
- viam/gen/app/model/v1/model_pb2.py +0 -71
- viam/gen/app/model/v1/model_pb2.pyi +0 -285
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_grpc.py +0 -21
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.py +0 -18
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.pyi +0 -49
- viam/media/media.py +0 -53
- viam/proto/app/model/__init__.py +0 -40
- viam/proto/rpc/examples/fileupload/__init__.py +0 -13
- viam/services/sensors/__init__.py +0 -5
- viam/services/sensors/client.py +0 -63
- viam_sdk-0.3.0.dist-info/LICENSE +0 -202
- viam_sdk-0.3.0.dist-info/METADATA +0 -122
- viam_sdk-0.3.0.dist-info/RECORD +0 -372
- /viam/{gen/app/model → app}/__init__.py +0 -0
- /viam/gen/app/{model/v1 → agent}/__init__.py +0 -0
- /viam/gen/{proto/rpc/examples/fileupload → app/agent/v1}/__init__.py +0 -0
- /viam/gen/{proto/rpc/examples/fileupload/v1 → app/cloudslam}/__init__.py +0 -0
- /LICENSE → /viam_sdk-0.66.0.dist-info/licenses/LICENSE +0 -0
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
from .... import app
|
|
9
|
+
import google.protobuf.timestamp_pb2
|
|
10
|
+
|
|
11
|
+
class DataPipelinesServiceBase(abc.ABC):
|
|
12
|
+
|
|
13
|
+
@abc.abstractmethod
|
|
14
|
+
async def GetDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse]') -> None:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
@abc.abstractmethod
|
|
18
|
+
async def ListDataPipelines(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse]') -> None:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
@abc.abstractmethod
|
|
22
|
+
async def CreateDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse]') -> None:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
@abc.abstractmethod
|
|
26
|
+
async def RenameDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse]') -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
@abc.abstractmethod
|
|
30
|
+
async def DeleteDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse]') -> None:
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
@abc.abstractmethod
|
|
34
|
+
async def EnableDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse]') -> None:
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
@abc.abstractmethod
|
|
38
|
+
async def DisableDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse]') -> None:
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
@abc.abstractmethod
|
|
42
|
+
async def ListDataPipelineRuns(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsResponse]') -> None:
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
46
|
+
return {'/viam.app.datapipelines.v1.DataPipelinesService/GetDataPipeline': grpclib.const.Handler(self.GetDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelines': grpclib.const.Handler(self.ListDataPipelines, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse), '/viam.app.datapipelines.v1.DataPipelinesService/CreateDataPipeline': grpclib.const.Handler(self.CreateDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/RenameDataPipeline': grpclib.const.Handler(self.RenameDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/DeleteDataPipeline': grpclib.const.Handler(self.DeleteDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/EnableDataPipeline': grpclib.const.Handler(self.EnableDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/DisableDataPipeline': grpclib.const.Handler(self.DisableDataPipeline, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse), '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelineRuns': grpclib.const.Handler(self.ListDataPipelineRuns, grpclib.const.Cardinality.UNARY_UNARY, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsResponse)}
|
|
47
|
+
|
|
48
|
+
class UnimplementedDataPipelinesServiceBase(DataPipelinesServiceBase):
|
|
49
|
+
|
|
50
|
+
async def GetDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse]') -> None:
|
|
51
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
52
|
+
|
|
53
|
+
async def ListDataPipelines(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse]') -> None:
|
|
54
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
55
|
+
|
|
56
|
+
async def CreateDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse]') -> None:
|
|
57
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
58
|
+
|
|
59
|
+
async def RenameDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse]') -> None:
|
|
60
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
61
|
+
|
|
62
|
+
async def DeleteDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse]') -> None:
|
|
63
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
64
|
+
|
|
65
|
+
async def EnableDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse]') -> None:
|
|
66
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
67
|
+
|
|
68
|
+
async def DisableDataPipeline(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse]') -> None:
|
|
69
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
70
|
+
|
|
71
|
+
async def ListDataPipelineRuns(self, stream: 'grpclib.server.Stream[app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsResponse]') -> None:
|
|
72
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
73
|
+
|
|
74
|
+
class DataPipelinesServiceStub:
|
|
75
|
+
|
|
76
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
77
|
+
self.GetDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/GetDataPipeline', app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.GetDataPipelineResponse)
|
|
78
|
+
self.ListDataPipelines = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelines', app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelinesResponse)
|
|
79
|
+
self.CreateDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/CreateDataPipeline', app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.CreateDataPipelineResponse)
|
|
80
|
+
self.RenameDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/RenameDataPipeline', app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.RenameDataPipelineResponse)
|
|
81
|
+
self.DeleteDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/DeleteDataPipeline', app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DeleteDataPipelineResponse)
|
|
82
|
+
self.EnableDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/EnableDataPipeline', app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.EnableDataPipelineResponse)
|
|
83
|
+
self.DisableDataPipeline = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/DisableDataPipeline', app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineRequest, app.datapipelines.v1.data_pipelines_pb2.DisableDataPipelineResponse)
|
|
84
|
+
self.ListDataPipelineRuns = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.datapipelines.v1.DataPipelinesService/ListDataPipelineRuns', app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsRequest, app.datapipelines.v1.data_pipelines_pb2.ListDataPipelineRunsResponse)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'app/datapipelines/v1/data_pipelines.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....app.data.v1 import data_pb2 as app_dot_data_dot_v1_dot_data__pb2
|
|
10
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
11
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)app/datapipelines/v1/data_pipelines.proto\x12\x19viam.app.datapipelines.v1\x1a\x16app/data/v1/data.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x93\x03\n\x0cDataPipeline\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x04 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x05 \x01(\tR\x08schedule\x12\x18\n\x07enabled\x18\x06 \x01(\x08R\x07enabled\x129\n\ncreated_on\x18\x07 \x01(\x0b2\x1a.google.protobuf.TimestampR\tcreatedOn\x129\n\nupdated_at\x18\x08 \x01(\x0b2\x1a.google.protobuf.TimestampR\tupdatedAt\x12V\n\x10data_source_type\x18\t \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x00R\x0edataSourceType\x88\x01\x01B\x13\n\x11_data_source_type"(\n\x16GetDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"g\n\x17GetDataPipelineResponse\x12L\n\rdata_pipeline\x18\x01 \x01(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\x0cdataPipeline"C\n\x18ListDataPipelinesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId"k\n\x19ListDataPipelinesResponse\x12N\n\x0edata_pipelines\x18\x01 \x03(\x0b2\'.viam.app.datapipelines.v1.DataPipelineR\rdataPipelines"\xc2\x02\n\x19CreateDataPipelineRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n\nmql_binary\x18\x03 \x03(\x0cR\tmqlBinary\x12\x1a\n\x08schedule\x18\x04 \x01(\tR\x08schedule\x12,\n\x0fenable_backfill\x18\x05 \x01(\x08H\x00R\x0eenableBackfill\x88\x01\x01\x12V\n\x10data_source_type\x18\x06 \x01(\x0e2\'.viam.app.data.v1.TabularDataSourceTypeH\x01R\x0edataSourceType\x88\x01\x01B\x12\n\x10_enable_backfillB\x13\n\x11_data_source_type",\n\x1aCreateDataPipelineResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"?\n\x19RenameDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name"\x1c\n\x1aRenameDataPipelineResponse"+\n\x19DeleteDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1c\n\x1aDeleteDataPipelineResponse"+\n\x19EnableDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1c\n\x1aEnableDataPipelineResponse",\n\x1aDisableDataPipelineRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1d\n\x1bDisableDataPipelineResponse"i\n\x1bListDataPipelineRunsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tpage_size\x18\x02 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken"\xa7\x01\n\x1cListDataPipelineRunsResponse\x12\x1f\n\x0bpipeline_id\x18\x01 \x01(\tR\npipelineId\x12>\n\x04runs\x18\x02 \x03(\x0b2*.viam.app.datapipelines.v1.DataPipelineRunR\x04runs\x12&\n\x0fnext_page_token\x18\x03 \x01(\tR\rnextPageToken"\x86\x03\n\x0fDataPipelineRun\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x129\n\nstart_time\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12B\n\x0fdata_start_time\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampR\rdataStartTime\x12>\n\rdata_end_time\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0bdataEndTime\x12H\n\x06status\x18\x06 \x01(\x0e20.viam.app.datapipelines.v1.DataPipelineRunStatusR\x06status\x12#\n\rerror_message\x18\x07 \x01(\tR\x0cerrorMessage*\xdc\x01\n\x15DataPipelineRunStatus\x12(\n$DATA_PIPELINE_RUN_STATUS_UNSPECIFIED\x10\x00\x12&\n"DATA_PIPELINE_RUN_STATUS_SCHEDULED\x10\x01\x12$\n DATA_PIPELINE_RUN_STATUS_STARTED\x10\x02\x12&\n"DATA_PIPELINE_RUN_STATUS_COMPLETED\x10\x03\x12#\n\x1fDATA_PIPELINE_RUN_STATUS_FAILED\x10\x042\xb1\x08\n\x14DataPipelinesService\x12x\n\x0fGetDataPipeline\x121.viam.app.datapipelines.v1.GetDataPipelineRequest\x1a2.viam.app.datapipelines.v1.GetDataPipelineResponse\x12~\n\x11ListDataPipelines\x123.viam.app.datapipelines.v1.ListDataPipelinesRequest\x1a4.viam.app.datapipelines.v1.ListDataPipelinesResponse\x12\x81\x01\n\x12CreateDataPipeline\x124.viam.app.datapipelines.v1.CreateDataPipelineRequest\x1a5.viam.app.datapipelines.v1.CreateDataPipelineResponse\x12\x81\x01\n\x12RenameDataPipeline\x124.viam.app.datapipelines.v1.RenameDataPipelineRequest\x1a5.viam.app.datapipelines.v1.RenameDataPipelineResponse\x12\x81\x01\n\x12DeleteDataPipeline\x124.viam.app.datapipelines.v1.DeleteDataPipelineRequest\x1a5.viam.app.datapipelines.v1.DeleteDataPipelineResponse\x12\x81\x01\n\x12EnableDataPipeline\x124.viam.app.datapipelines.v1.EnableDataPipelineRequest\x1a5.viam.app.datapipelines.v1.EnableDataPipelineResponse\x12\x84\x01\n\x13DisableDataPipeline\x125.viam.app.datapipelines.v1.DisableDataPipelineRequest\x1a6.viam.app.datapipelines.v1.DisableDataPipelineResponse\x12\x87\x01\n\x14ListDataPipelineRuns\x126.viam.app.datapipelines.v1.ListDataPipelineRunsRequest\x1a7.viam.app.datapipelines.v1.ListDataPipelineRunsResponseB&Z$go.viam.com/api/app/datapipelines/v1b\x06proto3')
|
|
12
|
+
_globals = globals()
|
|
13
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
14
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.datapipelines.v1.data_pipelines_pb2', _globals)
|
|
15
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
16
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
17
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z$go.viam.com/api/app/datapipelines/v1'
|
|
18
|
+
_globals['_DATAPIPELINERUNSTATUS']._serialized_start = 2224
|
|
19
|
+
_globals['_DATAPIPELINERUNSTATUS']._serialized_end = 2444
|
|
20
|
+
_globals['_DATAPIPELINE']._serialized_start = 130
|
|
21
|
+
_globals['_DATAPIPELINE']._serialized_end = 533
|
|
22
|
+
_globals['_GETDATAPIPELINEREQUEST']._serialized_start = 535
|
|
23
|
+
_globals['_GETDATAPIPELINEREQUEST']._serialized_end = 575
|
|
24
|
+
_globals['_GETDATAPIPELINERESPONSE']._serialized_start = 577
|
|
25
|
+
_globals['_GETDATAPIPELINERESPONSE']._serialized_end = 680
|
|
26
|
+
_globals['_LISTDATAPIPELINESREQUEST']._serialized_start = 682
|
|
27
|
+
_globals['_LISTDATAPIPELINESREQUEST']._serialized_end = 749
|
|
28
|
+
_globals['_LISTDATAPIPELINESRESPONSE']._serialized_start = 751
|
|
29
|
+
_globals['_LISTDATAPIPELINESRESPONSE']._serialized_end = 858
|
|
30
|
+
_globals['_CREATEDATAPIPELINEREQUEST']._serialized_start = 861
|
|
31
|
+
_globals['_CREATEDATAPIPELINEREQUEST']._serialized_end = 1183
|
|
32
|
+
_globals['_CREATEDATAPIPELINERESPONSE']._serialized_start = 1185
|
|
33
|
+
_globals['_CREATEDATAPIPELINERESPONSE']._serialized_end = 1229
|
|
34
|
+
_globals['_RENAMEDATAPIPELINEREQUEST']._serialized_start = 1231
|
|
35
|
+
_globals['_RENAMEDATAPIPELINEREQUEST']._serialized_end = 1294
|
|
36
|
+
_globals['_RENAMEDATAPIPELINERESPONSE']._serialized_start = 1296
|
|
37
|
+
_globals['_RENAMEDATAPIPELINERESPONSE']._serialized_end = 1324
|
|
38
|
+
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_start = 1326
|
|
39
|
+
_globals['_DELETEDATAPIPELINEREQUEST']._serialized_end = 1369
|
|
40
|
+
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_start = 1371
|
|
41
|
+
_globals['_DELETEDATAPIPELINERESPONSE']._serialized_end = 1399
|
|
42
|
+
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_start = 1401
|
|
43
|
+
_globals['_ENABLEDATAPIPELINEREQUEST']._serialized_end = 1444
|
|
44
|
+
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_start = 1446
|
|
45
|
+
_globals['_ENABLEDATAPIPELINERESPONSE']._serialized_end = 1474
|
|
46
|
+
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_start = 1476
|
|
47
|
+
_globals['_DISABLEDATAPIPELINEREQUEST']._serialized_end = 1520
|
|
48
|
+
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_start = 1522
|
|
49
|
+
_globals['_DISABLEDATAPIPELINERESPONSE']._serialized_end = 1551
|
|
50
|
+
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_start = 1553
|
|
51
|
+
_globals['_LISTDATAPIPELINERUNSREQUEST']._serialized_end = 1658
|
|
52
|
+
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_start = 1661
|
|
53
|
+
_globals['_LISTDATAPIPELINERUNSRESPONSE']._serialized_end = 1828
|
|
54
|
+
_globals['_DATAPIPELINERUN']._serialized_start = 1831
|
|
55
|
+
_globals['_DATAPIPELINERUN']._serialized_end = 2221
|
|
56
|
+
_globals['_DATAPIPELINESSERVICE']._serialized_start = 2447
|
|
57
|
+
_globals['_DATAPIPELINESSERVICE']._serialized_end = 3520
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
from .... import app
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
import typing as typing_extensions
|
|
17
|
+
else:
|
|
18
|
+
import typing_extensions
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
class _DataPipelineRunStatus:
|
|
22
|
+
ValueType = typing.NewType('ValueType', builtins.int)
|
|
23
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
24
|
+
|
|
25
|
+
class _DataPipelineRunStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataPipelineRunStatus.ValueType], builtins.type):
|
|
26
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
27
|
+
DATA_PIPELINE_RUN_STATUS_UNSPECIFIED: _DataPipelineRunStatus.ValueType
|
|
28
|
+
DATA_PIPELINE_RUN_STATUS_SCHEDULED: _DataPipelineRunStatus.ValueType
|
|
29
|
+
DATA_PIPELINE_RUN_STATUS_STARTED: _DataPipelineRunStatus.ValueType
|
|
30
|
+
DATA_PIPELINE_RUN_STATUS_COMPLETED: _DataPipelineRunStatus.ValueType
|
|
31
|
+
DATA_PIPELINE_RUN_STATUS_FAILED: _DataPipelineRunStatus.ValueType
|
|
32
|
+
|
|
33
|
+
class DataPipelineRunStatus(_DataPipelineRunStatus, metaclass=_DataPipelineRunStatusEnumTypeWrapper):
|
|
34
|
+
...
|
|
35
|
+
DATA_PIPELINE_RUN_STATUS_UNSPECIFIED: DataPipelineRunStatus.ValueType
|
|
36
|
+
DATA_PIPELINE_RUN_STATUS_SCHEDULED: DataPipelineRunStatus.ValueType
|
|
37
|
+
DATA_PIPELINE_RUN_STATUS_STARTED: DataPipelineRunStatus.ValueType
|
|
38
|
+
DATA_PIPELINE_RUN_STATUS_COMPLETED: DataPipelineRunStatus.ValueType
|
|
39
|
+
DATA_PIPELINE_RUN_STATUS_FAILED: DataPipelineRunStatus.ValueType
|
|
40
|
+
global___DataPipelineRunStatus = DataPipelineRunStatus
|
|
41
|
+
|
|
42
|
+
@typing.final
|
|
43
|
+
class DataPipeline(google.protobuf.message.Message):
|
|
44
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
45
|
+
ID_FIELD_NUMBER: builtins.int
|
|
46
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
47
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
48
|
+
MQL_BINARY_FIELD_NUMBER: builtins.int
|
|
49
|
+
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
50
|
+
ENABLED_FIELD_NUMBER: builtins.int
|
|
51
|
+
CREATED_ON_FIELD_NUMBER: builtins.int
|
|
52
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
53
|
+
DATA_SOURCE_TYPE_FIELD_NUMBER: builtins.int
|
|
54
|
+
id: builtins.str
|
|
55
|
+
organization_id: builtins.str
|
|
56
|
+
'The associated Viam organization ID.'
|
|
57
|
+
name: builtins.str
|
|
58
|
+
'A unique identifier at the org level.'
|
|
59
|
+
schedule: builtins.str
|
|
60
|
+
'A cron expression representing the expected execution schedule in UTC (note this also\n defines the input time window; an hourly schedule would process 1 hour of data at a time).\n '
|
|
61
|
+
enabled: builtins.bool
|
|
62
|
+
'Whether or not the pipeline is enabled.'
|
|
63
|
+
data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType
|
|
64
|
+
'The type of data source for the pipeline. If not specified, default is standard data storage.'
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def mql_binary(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]:
|
|
68
|
+
"""A MongoDB aggregation pipeline as a list of BSON documents, where
|
|
69
|
+
each document is one stage in the pipeline.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def created_on(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
74
|
+
"""The time the pipeline was created."""
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
78
|
+
"""The time the pipeline was last updated."""
|
|
79
|
+
|
|
80
|
+
def __init__(self, *, id: builtins.str=..., organization_id: builtins.str=..., name: builtins.str=..., mql_binary: collections.abc.Iterable[builtins.bytes] | None=..., schedule: builtins.str=..., enabled: builtins.bool=..., created_on: google.protobuf.timestamp_pb2.Timestamp | None=..., updated_at: google.protobuf.timestamp_pb2.Timestamp | None=..., data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType | None=...) -> None:
|
|
81
|
+
...
|
|
82
|
+
|
|
83
|
+
def HasField(self, field_name: typing.Literal['_data_source_type', b'_data_source_type', 'created_on', b'created_on', 'data_source_type', b'data_source_type', 'updated_at', b'updated_at']) -> builtins.bool:
|
|
84
|
+
...
|
|
85
|
+
|
|
86
|
+
def ClearField(self, field_name: typing.Literal['_data_source_type', b'_data_source_type', 'created_on', b'created_on', 'data_source_type', b'data_source_type', 'enabled', b'enabled', 'id', b'id', 'mql_binary', b'mql_binary', 'name', b'name', 'organization_id', b'organization_id', 'schedule', b'schedule', 'updated_at', b'updated_at']) -> None:
|
|
87
|
+
...
|
|
88
|
+
|
|
89
|
+
def WhichOneof(self, oneof_group: typing.Literal['_data_source_type', b'_data_source_type']) -> typing.Literal['data_source_type'] | None:
|
|
90
|
+
...
|
|
91
|
+
global___DataPipeline = DataPipeline
|
|
92
|
+
|
|
93
|
+
@typing.final
|
|
94
|
+
class GetDataPipelineRequest(google.protobuf.message.Message):
|
|
95
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
96
|
+
ID_FIELD_NUMBER: builtins.int
|
|
97
|
+
id: builtins.str
|
|
98
|
+
'The ID of the data pipeline to retrieve.'
|
|
99
|
+
|
|
100
|
+
def __init__(self, *, id: builtins.str=...) -> None:
|
|
101
|
+
...
|
|
102
|
+
|
|
103
|
+
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
|
|
104
|
+
...
|
|
105
|
+
global___GetDataPipelineRequest = GetDataPipelineRequest
|
|
106
|
+
|
|
107
|
+
@typing.final
|
|
108
|
+
class GetDataPipelineResponse(google.protobuf.message.Message):
|
|
109
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
110
|
+
DATA_PIPELINE_FIELD_NUMBER: builtins.int
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def data_pipeline(self) -> global___DataPipeline:
|
|
114
|
+
...
|
|
115
|
+
|
|
116
|
+
def __init__(self, *, data_pipeline: global___DataPipeline | None=...) -> None:
|
|
117
|
+
...
|
|
118
|
+
|
|
119
|
+
def HasField(self, field_name: typing.Literal['data_pipeline', b'data_pipeline']) -> builtins.bool:
|
|
120
|
+
...
|
|
121
|
+
|
|
122
|
+
def ClearField(self, field_name: typing.Literal['data_pipeline', b'data_pipeline']) -> None:
|
|
123
|
+
...
|
|
124
|
+
global___GetDataPipelineResponse = GetDataPipelineResponse
|
|
125
|
+
|
|
126
|
+
@typing.final
|
|
127
|
+
class ListDataPipelinesRequest(google.protobuf.message.Message):
|
|
128
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
129
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
130
|
+
organization_id: builtins.str
|
|
131
|
+
'The associated Viam organization ID.'
|
|
132
|
+
|
|
133
|
+
def __init__(self, *, organization_id: builtins.str=...) -> None:
|
|
134
|
+
...
|
|
135
|
+
|
|
136
|
+
def ClearField(self, field_name: typing.Literal['organization_id', b'organization_id']) -> None:
|
|
137
|
+
...
|
|
138
|
+
global___ListDataPipelinesRequest = ListDataPipelinesRequest
|
|
139
|
+
|
|
140
|
+
@typing.final
|
|
141
|
+
class ListDataPipelinesResponse(google.protobuf.message.Message):
|
|
142
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
143
|
+
DATA_PIPELINES_FIELD_NUMBER: builtins.int
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def data_pipelines(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataPipeline]:
|
|
147
|
+
...
|
|
148
|
+
|
|
149
|
+
def __init__(self, *, data_pipelines: collections.abc.Iterable[global___DataPipeline] | None=...) -> None:
|
|
150
|
+
...
|
|
151
|
+
|
|
152
|
+
def ClearField(self, field_name: typing.Literal['data_pipelines', b'data_pipelines']) -> None:
|
|
153
|
+
...
|
|
154
|
+
global___ListDataPipelinesResponse = ListDataPipelinesResponse
|
|
155
|
+
|
|
156
|
+
@typing.final
|
|
157
|
+
class CreateDataPipelineRequest(google.protobuf.message.Message):
|
|
158
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
159
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
160
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
161
|
+
MQL_BINARY_FIELD_NUMBER: builtins.int
|
|
162
|
+
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
163
|
+
ENABLE_BACKFILL_FIELD_NUMBER: builtins.int
|
|
164
|
+
DATA_SOURCE_TYPE_FIELD_NUMBER: builtins.int
|
|
165
|
+
organization_id: builtins.str
|
|
166
|
+
'The associated Viam organization ID.'
|
|
167
|
+
name: builtins.str
|
|
168
|
+
'A unique identifier at the org level.'
|
|
169
|
+
schedule: builtins.str
|
|
170
|
+
'A cron expression representing the expected execution schedule in UTC (note this also\n defines the input time window; an hourly schedule would process 1 hour of data at a time).\n '
|
|
171
|
+
enable_backfill: builtins.bool
|
|
172
|
+
"When true, pipeline runs will be scheduled for the organization's past data."
|
|
173
|
+
data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType
|
|
174
|
+
'The type of data source for the pipeline. If not specified, default is standard data storage.'
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def mql_binary(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]:
|
|
178
|
+
"""A MongoDB aggregation pipeline as a list of BSON documents, where
|
|
179
|
+
each document is one stage in the pipeline.
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
def __init__(self, *, organization_id: builtins.str=..., name: builtins.str=..., mql_binary: collections.abc.Iterable[builtins.bytes] | None=..., schedule: builtins.str=..., enable_backfill: builtins.bool | None=..., data_source_type: app.data.v1.data_pb2.TabularDataSourceType.ValueType | None=...) -> None:
|
|
183
|
+
...
|
|
184
|
+
|
|
185
|
+
def HasField(self, field_name: typing.Literal['_data_source_type', b'_data_source_type', '_enable_backfill', b'_enable_backfill', 'data_source_type', b'data_source_type', 'enable_backfill', b'enable_backfill']) -> builtins.bool:
|
|
186
|
+
...
|
|
187
|
+
|
|
188
|
+
def ClearField(self, field_name: typing.Literal['_data_source_type', b'_data_source_type', '_enable_backfill', b'_enable_backfill', 'data_source_type', b'data_source_type', 'enable_backfill', b'enable_backfill', 'mql_binary', b'mql_binary', 'name', b'name', 'organization_id', b'organization_id', 'schedule', b'schedule']) -> None:
|
|
189
|
+
...
|
|
190
|
+
|
|
191
|
+
@typing.overload
|
|
192
|
+
def WhichOneof(self, oneof_group: typing.Literal['_data_source_type', b'_data_source_type']) -> typing.Literal['data_source_type'] | None:
|
|
193
|
+
...
|
|
194
|
+
|
|
195
|
+
@typing.overload
|
|
196
|
+
def WhichOneof(self, oneof_group: typing.Literal['_enable_backfill', b'_enable_backfill']) -> typing.Literal['enable_backfill'] | None:
|
|
197
|
+
...
|
|
198
|
+
global___CreateDataPipelineRequest = CreateDataPipelineRequest
|
|
199
|
+
|
|
200
|
+
@typing.final
|
|
201
|
+
class CreateDataPipelineResponse(google.protobuf.message.Message):
|
|
202
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
203
|
+
ID_FIELD_NUMBER: builtins.int
|
|
204
|
+
id: builtins.str
|
|
205
|
+
'The ID of the newly created data pipeline.'
|
|
206
|
+
|
|
207
|
+
def __init__(self, *, id: builtins.str=...) -> None:
|
|
208
|
+
...
|
|
209
|
+
|
|
210
|
+
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
|
|
211
|
+
...
|
|
212
|
+
global___CreateDataPipelineResponse = CreateDataPipelineResponse
|
|
213
|
+
|
|
214
|
+
@typing.final
|
|
215
|
+
class RenameDataPipelineRequest(google.protobuf.message.Message):
|
|
216
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
217
|
+
ID_FIELD_NUMBER: builtins.int
|
|
218
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
219
|
+
id: builtins.str
|
|
220
|
+
'The ID of the data pipeline to rename.'
|
|
221
|
+
name: builtins.str
|
|
222
|
+
'A unique identifier at the organization level.'
|
|
223
|
+
|
|
224
|
+
def __init__(self, *, id: builtins.str=..., name: builtins.str=...) -> None:
|
|
225
|
+
...
|
|
226
|
+
|
|
227
|
+
def ClearField(self, field_name: typing.Literal['id', b'id', 'name', b'name']) -> None:
|
|
228
|
+
...
|
|
229
|
+
global___RenameDataPipelineRequest = RenameDataPipelineRequest
|
|
230
|
+
|
|
231
|
+
@typing.final
|
|
232
|
+
class RenameDataPipelineResponse(google.protobuf.message.Message):
|
|
233
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
234
|
+
|
|
235
|
+
def __init__(self) -> None:
|
|
236
|
+
...
|
|
237
|
+
global___RenameDataPipelineResponse = RenameDataPipelineResponse
|
|
238
|
+
|
|
239
|
+
@typing.final
|
|
240
|
+
class DeleteDataPipelineRequest(google.protobuf.message.Message):
|
|
241
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
242
|
+
ID_FIELD_NUMBER: builtins.int
|
|
243
|
+
id: builtins.str
|
|
244
|
+
'The ID of the data pipeline to delete.'
|
|
245
|
+
|
|
246
|
+
def __init__(self, *, id: builtins.str=...) -> None:
|
|
247
|
+
...
|
|
248
|
+
|
|
249
|
+
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
|
|
250
|
+
...
|
|
251
|
+
global___DeleteDataPipelineRequest = DeleteDataPipelineRequest
|
|
252
|
+
|
|
253
|
+
@typing.final
|
|
254
|
+
class DeleteDataPipelineResponse(google.protobuf.message.Message):
|
|
255
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
256
|
+
|
|
257
|
+
def __init__(self) -> None:
|
|
258
|
+
...
|
|
259
|
+
global___DeleteDataPipelineResponse = DeleteDataPipelineResponse
|
|
260
|
+
|
|
261
|
+
@typing.final
|
|
262
|
+
class EnableDataPipelineRequest(google.protobuf.message.Message):
|
|
263
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
264
|
+
ID_FIELD_NUMBER: builtins.int
|
|
265
|
+
id: builtins.str
|
|
266
|
+
'The ID of the data pipeline to enable.'
|
|
267
|
+
|
|
268
|
+
def __init__(self, *, id: builtins.str=...) -> None:
|
|
269
|
+
...
|
|
270
|
+
|
|
271
|
+
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
|
|
272
|
+
...
|
|
273
|
+
global___EnableDataPipelineRequest = EnableDataPipelineRequest
|
|
274
|
+
|
|
275
|
+
@typing.final
|
|
276
|
+
class EnableDataPipelineResponse(google.protobuf.message.Message):
|
|
277
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
278
|
+
|
|
279
|
+
def __init__(self) -> None:
|
|
280
|
+
...
|
|
281
|
+
global___EnableDataPipelineResponse = EnableDataPipelineResponse
|
|
282
|
+
|
|
283
|
+
@typing.final
|
|
284
|
+
class DisableDataPipelineRequest(google.protobuf.message.Message):
|
|
285
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
286
|
+
ID_FIELD_NUMBER: builtins.int
|
|
287
|
+
id: builtins.str
|
|
288
|
+
'The ID of the data pipeline to disable.'
|
|
289
|
+
|
|
290
|
+
def __init__(self, *, id: builtins.str=...) -> None:
|
|
291
|
+
...
|
|
292
|
+
|
|
293
|
+
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
|
|
294
|
+
...
|
|
295
|
+
global___DisableDataPipelineRequest = DisableDataPipelineRequest
|
|
296
|
+
|
|
297
|
+
@typing.final
|
|
298
|
+
class DisableDataPipelineResponse(google.protobuf.message.Message):
|
|
299
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
300
|
+
|
|
301
|
+
def __init__(self) -> None:
|
|
302
|
+
...
|
|
303
|
+
global___DisableDataPipelineResponse = DisableDataPipelineResponse
|
|
304
|
+
|
|
305
|
+
@typing.final
|
|
306
|
+
class ListDataPipelineRunsRequest(google.protobuf.message.Message):
|
|
307
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
308
|
+
ID_FIELD_NUMBER: builtins.int
|
|
309
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
310
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
311
|
+
id: builtins.str
|
|
312
|
+
'The ID of the data pipeline to list runs for.'
|
|
313
|
+
page_size: builtins.int
|
|
314
|
+
'pagination fields'
|
|
315
|
+
page_token: builtins.str
|
|
316
|
+
|
|
317
|
+
def __init__(self, *, id: builtins.str=..., page_size: builtins.int=..., page_token: builtins.str=...) -> None:
|
|
318
|
+
...
|
|
319
|
+
|
|
320
|
+
def ClearField(self, field_name: typing.Literal['id', b'id', 'page_size', b'page_size', 'page_token', b'page_token']) -> None:
|
|
321
|
+
...
|
|
322
|
+
global___ListDataPipelineRunsRequest = ListDataPipelineRunsRequest
|
|
323
|
+
|
|
324
|
+
@typing.final
|
|
325
|
+
class ListDataPipelineRunsResponse(google.protobuf.message.Message):
|
|
326
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
327
|
+
PIPELINE_ID_FIELD_NUMBER: builtins.int
|
|
328
|
+
RUNS_FIELD_NUMBER: builtins.int
|
|
329
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
330
|
+
pipeline_id: builtins.str
|
|
331
|
+
'The ID of the data pipeline the runs are for.'
|
|
332
|
+
next_page_token: builtins.str
|
|
333
|
+
'A token to retrieve the next page of results.'
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
def runs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataPipelineRun]:
|
|
337
|
+
"""The runs that were run."""
|
|
338
|
+
|
|
339
|
+
def __init__(self, *, pipeline_id: builtins.str=..., runs: collections.abc.Iterable[global___DataPipelineRun] | None=..., next_page_token: builtins.str=...) -> None:
|
|
340
|
+
...
|
|
341
|
+
|
|
342
|
+
def ClearField(self, field_name: typing.Literal['next_page_token', b'next_page_token', 'pipeline_id', b'pipeline_id', 'runs', b'runs']) -> None:
|
|
343
|
+
...
|
|
344
|
+
global___ListDataPipelineRunsResponse = ListDataPipelineRunsResponse
|
|
345
|
+
|
|
346
|
+
@typing.final
|
|
347
|
+
class DataPipelineRun(google.protobuf.message.Message):
|
|
348
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
349
|
+
ID_FIELD_NUMBER: builtins.int
|
|
350
|
+
START_TIME_FIELD_NUMBER: builtins.int
|
|
351
|
+
END_TIME_FIELD_NUMBER: builtins.int
|
|
352
|
+
DATA_START_TIME_FIELD_NUMBER: builtins.int
|
|
353
|
+
DATA_END_TIME_FIELD_NUMBER: builtins.int
|
|
354
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
355
|
+
ERROR_MESSAGE_FIELD_NUMBER: builtins.int
|
|
356
|
+
id: builtins.str
|
|
357
|
+
'The ID of the run.'
|
|
358
|
+
status: global___DataPipelineRunStatus.ValueType
|
|
359
|
+
'The status of the run.'
|
|
360
|
+
error_message: builtins.str
|
|
361
|
+
'The error message if the run failed.'
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
365
|
+
"""The time the run started."""
|
|
366
|
+
|
|
367
|
+
@property
|
|
368
|
+
def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
369
|
+
"""The time the run ended."""
|
|
370
|
+
|
|
371
|
+
@property
|
|
372
|
+
def data_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
373
|
+
"""The start time of the data that was processed in the run."""
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def data_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
377
|
+
"""The end time of the data that was processed in the run."""
|
|
378
|
+
|
|
379
|
+
def __init__(self, *, id: builtins.str=..., start_time: google.protobuf.timestamp_pb2.Timestamp | None=..., end_time: google.protobuf.timestamp_pb2.Timestamp | None=..., data_start_time: google.protobuf.timestamp_pb2.Timestamp | None=..., data_end_time: google.protobuf.timestamp_pb2.Timestamp | None=..., status: global___DataPipelineRunStatus.ValueType=..., error_message: builtins.str=...) -> None:
|
|
380
|
+
...
|
|
381
|
+
|
|
382
|
+
def HasField(self, field_name: typing.Literal['data_end_time', b'data_end_time', 'data_start_time', b'data_start_time', 'end_time', b'end_time', 'start_time', b'start_time']) -> builtins.bool:
|
|
383
|
+
...
|
|
384
|
+
|
|
385
|
+
def ClearField(self, field_name: typing.Literal['data_end_time', b'data_end_time', 'data_start_time', b'data_start_time', 'end_time', b'end_time', 'error_message', b'error_message', 'id', b'id', 'start_time', b'start_time', 'status', b'status']) -> None:
|
|
386
|
+
...
|
|
387
|
+
global___DataPipelineRun = DataPipelineRun
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
import google.protobuf.timestamp_pb2
|
|
9
|
+
from .... import app
|
|
10
|
+
|
|
11
|
+
class DatasetServiceBase(abc.ABC):
|
|
12
|
+
|
|
13
|
+
@abc.abstractmethod
|
|
14
|
+
async def CreateDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse]') -> None:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
@abc.abstractmethod
|
|
18
|
+
async def DeleteDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse]') -> None:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
@abc.abstractmethod
|
|
22
|
+
async def RenameDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse]') -> None:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
@abc.abstractmethod
|
|
26
|
+
async def ListDatasetsByOrganizationID(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse]') -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
@abc.abstractmethod
|
|
30
|
+
async def ListDatasetsByIDs(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse]') -> None:
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
@abc.abstractmethod
|
|
34
|
+
async def MergeDatasets(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse]') -> None:
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
38
|
+
return {'/viam.app.dataset.v1.DatasetService/CreateDataset': grpclib.const.Handler(self.CreateDataset, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse), '/viam.app.dataset.v1.DatasetService/DeleteDataset': grpclib.const.Handler(self.DeleteDataset, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse), '/viam.app.dataset.v1.DatasetService/RenameDataset': grpclib.const.Handler(self.RenameDataset, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse), '/viam.app.dataset.v1.DatasetService/ListDatasetsByOrganizationID': grpclib.const.Handler(self.ListDatasetsByOrganizationID, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse), '/viam.app.dataset.v1.DatasetService/ListDatasetsByIDs': grpclib.const.Handler(self.ListDatasetsByIDs, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse), '/viam.app.dataset.v1.DatasetService/MergeDatasets': grpclib.const.Handler(self.MergeDatasets, grpclib.const.Cardinality.UNARY_UNARY, app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse)}
|
|
39
|
+
|
|
40
|
+
class UnimplementedDatasetServiceBase(DatasetServiceBase):
|
|
41
|
+
|
|
42
|
+
async def CreateDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse]') -> None:
|
|
43
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
44
|
+
|
|
45
|
+
async def DeleteDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse]') -> None:
|
|
46
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
47
|
+
|
|
48
|
+
async def RenameDataset(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse]') -> None:
|
|
49
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
50
|
+
|
|
51
|
+
async def ListDatasetsByOrganizationID(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse]') -> None:
|
|
52
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
53
|
+
|
|
54
|
+
async def ListDatasetsByIDs(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse]') -> None:
|
|
55
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
56
|
+
|
|
57
|
+
async def MergeDatasets(self, stream: 'grpclib.server.Stream[app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse]') -> None:
|
|
58
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
59
|
+
|
|
60
|
+
class DatasetServiceStub:
|
|
61
|
+
|
|
62
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
63
|
+
self.CreateDataset = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/CreateDataset', app.dataset.v1.dataset_pb2.CreateDatasetRequest, app.dataset.v1.dataset_pb2.CreateDatasetResponse)
|
|
64
|
+
self.DeleteDataset = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/DeleteDataset', app.dataset.v1.dataset_pb2.DeleteDatasetRequest, app.dataset.v1.dataset_pb2.DeleteDatasetResponse)
|
|
65
|
+
self.RenameDataset = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/RenameDataset', app.dataset.v1.dataset_pb2.RenameDatasetRequest, app.dataset.v1.dataset_pb2.RenameDatasetResponse)
|
|
66
|
+
self.ListDatasetsByOrganizationID = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/ListDatasetsByOrganizationID', app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDRequest, app.dataset.v1.dataset_pb2.ListDatasetsByOrganizationIDResponse)
|
|
67
|
+
self.ListDatasetsByIDs = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/ListDatasetsByIDs', app.dataset.v1.dataset_pb2.ListDatasetsByIDsRequest, app.dataset.v1.dataset_pb2.ListDatasetsByIDsResponse)
|
|
68
|
+
self.MergeDatasets = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.dataset.v1.DatasetService/MergeDatasets', app.dataset.v1.dataset_pb2.MergeDatasetsRequest, app.dataset.v1.dataset_pb2.MergeDatasetsResponse)
|