viam-sdk 0.45.2__py3-none-win_amd64.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.

Files changed (476) hide show
  1. viam/__init__.py +71 -0
  2. viam/app/__init__.py +0 -0
  3. viam/app/_logs.py +34 -0
  4. viam/app/app_client.py +2525 -0
  5. viam/app/billing_client.py +143 -0
  6. viam/app/data_client.py +1715 -0
  7. viam/app/ml_training_client.py +251 -0
  8. viam/app/provisioning_client.py +95 -0
  9. viam/app/viam_client.py +260 -0
  10. viam/components/__init__.py +0 -0
  11. viam/components/arm/__init__.py +16 -0
  12. viam/components/arm/arm.py +223 -0
  13. viam/components/arm/client.py +124 -0
  14. viam/components/arm/service.py +123 -0
  15. viam/components/audio_input/__init__.py +18 -0
  16. viam/components/audio_input/audio_input.py +81 -0
  17. viam/components/audio_input/client.py +70 -0
  18. viam/components/audio_input/service.py +114 -0
  19. viam/components/base/__init__.py +13 -0
  20. viam/components/base/base.py +260 -0
  21. viam/components/base/client.py +153 -0
  22. viam/components/base/service.py +138 -0
  23. viam/components/board/__init__.py +9 -0
  24. viam/components/board/board.py +414 -0
  25. viam/components/board/client.py +241 -0
  26. viam/components/board/service.py +223 -0
  27. viam/components/button/__init__.py +10 -0
  28. viam/components/button/button.py +41 -0
  29. viam/components/button/client.py +52 -0
  30. viam/components/button/service.py +46 -0
  31. viam/components/camera/__init__.py +22 -0
  32. viam/components/camera/camera.py +138 -0
  33. viam/components/camera/client.py +98 -0
  34. viam/components/camera/service.py +105 -0
  35. viam/components/component_base.py +65 -0
  36. viam/components/encoder/__init__.py +18 -0
  37. viam/components/encoder/client.py +83 -0
  38. viam/components/encoder/encoder.py +118 -0
  39. viam/components/encoder/service.py +72 -0
  40. viam/components/gantry/__init__.py +11 -0
  41. viam/components/gantry/client.py +115 -0
  42. viam/components/gantry/gantry.py +156 -0
  43. viam/components/gantry/service.py +113 -0
  44. viam/components/generic/__init__.py +18 -0
  45. viam/components/generic/client.py +62 -0
  46. viam/components/generic/generic.py +76 -0
  47. viam/components/generic/service.py +40 -0
  48. viam/components/gripper/__init__.py +11 -0
  49. viam/components/gripper/client.py +85 -0
  50. viam/components/gripper/gripper.py +114 -0
  51. viam/components/gripper/service.py +81 -0
  52. viam/components/input/__init__.py +15 -0
  53. viam/components/input/client.py +194 -0
  54. viam/components/input/input.py +297 -0
  55. viam/components/input/service.py +175 -0
  56. viam/components/motor/__init__.py +11 -0
  57. viam/components/motor/client.py +168 -0
  58. viam/components/motor/motor.py +301 -0
  59. viam/components/motor/service.py +150 -0
  60. viam/components/movement_sensor/__init__.py +21 -0
  61. viam/components/movement_sensor/client.py +161 -0
  62. viam/components/movement_sensor/movement_sensor.py +253 -0
  63. viam/components/movement_sensor/service.py +146 -0
  64. viam/components/pose_tracker/__init__.py +17 -0
  65. viam/components/pose_tracker/client.py +50 -0
  66. viam/components/pose_tracker/pose_tracker.py +40 -0
  67. viam/components/pose_tracker/service.py +45 -0
  68. viam/components/power_sensor/__init__.py +17 -0
  69. viam/components/power_sensor/client.py +86 -0
  70. viam/components/power_sensor/power_sensor.py +104 -0
  71. viam/components/power_sensor/service.py +72 -0
  72. viam/components/sensor/__init__.py +18 -0
  73. viam/components/sensor/client.py +49 -0
  74. viam/components/sensor/sensor.py +48 -0
  75. viam/components/sensor/service.py +51 -0
  76. viam/components/servo/__init__.py +11 -0
  77. viam/components/servo/client.py +86 -0
  78. viam/components/servo/service.py +80 -0
  79. viam/components/servo/servo.py +114 -0
  80. viam/components/switch/__init__.py +10 -0
  81. viam/components/switch/client.py +83 -0
  82. viam/components/switch/service.py +72 -0
  83. viam/components/switch/switch.py +95 -0
  84. viam/errors.py +105 -0
  85. viam/gen/__init__.py +0 -0
  86. viam/gen/app/__init__.py +0 -0
  87. viam/gen/app/agent/__init__.py +0 -0
  88. viam/gen/app/agent/v1/__init__.py +0 -0
  89. viam/gen/app/agent/v1/agent_grpc.py +29 -0
  90. viam/gen/app/agent/v1/agent_pb2.py +47 -0
  91. viam/gen/app/agent/v1/agent_pb2.pyi +280 -0
  92. viam/gen/app/cloudslam/__init__.py +0 -0
  93. viam/gen/app/cloudslam/v1/__init__.py +0 -0
  94. viam/gen/app/cloudslam/v1/cloud_slam_grpc.py +70 -0
  95. viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +54 -0
  96. viam/gen/app/cloudslam/v1/cloud_slam_pb2.pyi +384 -0
  97. viam/gen/app/data/__init__.py +0 -0
  98. viam/gen/app/data/v1/__init__.py +0 -0
  99. viam/gen/app/data/v1/data_grpc.py +206 -0
  100. viam/gen/app/data/v1/data_pb2.py +178 -0
  101. viam/gen/app/data/v1/data_pb2.pyi +1485 -0
  102. viam/gen/app/datapipelines/__init__.py +0 -0
  103. viam/gen/app/datapipelines/v1/__init__.py +0 -0
  104. viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
  105. viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +56 -0
  106. viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +370 -0
  107. viam/gen/app/dataset/__init__.py +0 -0
  108. viam/gen/app/dataset/v1/__init__.py +0 -0
  109. viam/gen/app/dataset/v1/dataset_grpc.py +60 -0
  110. viam/gen/app/dataset/v1/dataset_pb2.py +40 -0
  111. viam/gen/app/dataset/v1/dataset_pb2.pyi +179 -0
  112. viam/gen/app/datasync/__init__.py +0 -0
  113. viam/gen/app/datasync/v1/__init__.py +0 -0
  114. viam/gen/app/datasync/v1/data_sync_grpc.py +47 -0
  115. viam/gen/app/datasync/v1/data_sync_pb2.py +70 -0
  116. viam/gen/app/datasync/v1/data_sync_pb2.pyi +425 -0
  117. viam/gen/app/mlinference/__init__.py +0 -0
  118. viam/gen/app/mlinference/v1/__init__.py +0 -0
  119. viam/gen/app/mlinference/v1/ml_inference_grpc.py +28 -0
  120. viam/gen/app/mlinference/v1/ml_inference_pb2.py +23 -0
  121. viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +63 -0
  122. viam/gen/app/mltraining/__init__.py +0 -0
  123. viam/gen/app/mltraining/v1/__init__.py +0 -0
  124. viam/gen/app/mltraining/v1/ml_training_grpc.py +78 -0
  125. viam/gen/app/mltraining/v1/ml_training_pb2.py +124 -0
  126. viam/gen/app/mltraining/v1/ml_training_pb2.pyi +415 -0
  127. viam/gen/app/packages/__init__.py +0 -0
  128. viam/gen/app/packages/v1/__init__.py +0 -0
  129. viam/gen/app/packages/v1/packages_grpc.py +54 -0
  130. viam/gen/app/packages/v1/packages_pb2.py +52 -0
  131. viam/gen/app/packages/v1/packages_pb2.pyi +311 -0
  132. viam/gen/app/v1/__init__.py +0 -0
  133. viam/gen/app/v1/app_grpc.py +863 -0
  134. viam/gen/app/v1/app_pb2.py +649 -0
  135. viam/gen/app/v1/app_pb2.pyi +5279 -0
  136. viam/gen/app/v1/billing_grpc.py +76 -0
  137. viam/gen/app/v1/billing_pb2.py +92 -0
  138. viam/gen/app/v1/billing_pb2.pyi +463 -0
  139. viam/gen/app/v1/end_user_grpc.py +59 -0
  140. viam/gen/app/v1/end_user_pb2.py +55 -0
  141. viam/gen/app/v1/end_user_pb2.pyi +181 -0
  142. viam/gen/app/v1/robot_grpc.py +55 -0
  143. viam/gen/app/v1/robot_pb2.py +127 -0
  144. viam/gen/app/v1/robot_pb2.pyi +1202 -0
  145. viam/gen/common/__init__.py +0 -0
  146. viam/gen/common/v1/__init__.py +0 -0
  147. viam/gen/common/v1/common_grpc.py +0 -0
  148. viam/gen/common/v1/common_pb2.py +78 -0
  149. viam/gen/common/v1/common_pb2.pyi +687 -0
  150. viam/gen/component/__init__.py +0 -0
  151. viam/gen/component/arm/__init__.py +0 -0
  152. viam/gen/component/arm/v1/__init__.py +0 -0
  153. viam/gen/component/arm/v1/arm_grpc.py +102 -0
  154. viam/gen/component/arm/v1/arm_pb2.py +74 -0
  155. viam/gen/component/arm/v1/arm_pb2.pyi +344 -0
  156. viam/gen/component/audioinput/__init__.py +0 -0
  157. viam/gen/component/audioinput/v1/__init__.py +0 -0
  158. viam/gen/component/audioinput/v1/audioinput_grpc.py +63 -0
  159. viam/gen/component/audioinput/v1/audioinput_pb2.py +45 -0
  160. viam/gen/component/audioinput/v1/audioinput_pb2.pyi +179 -0
  161. viam/gen/component/base/__init__.py +0 -0
  162. viam/gen/component/base/v1/__init__.py +0 -0
  163. viam/gen/component/base/v1/base_grpc.py +94 -0
  164. viam/gen/component/base/v1/base_pb2.py +66 -0
  165. viam/gen/component/base/v1/base_pb2.pyi +258 -0
  166. viam/gen/component/board/__init__.py +0 -0
  167. viam/gen/component/board/v1/__init__.py +0 -0
  168. viam/gen/component/board/v1/board_grpc.py +127 -0
  169. viam/gen/component/board/v1/board_pb2.py +103 -0
  170. viam/gen/component/board/v1/board_pb2.pyi +496 -0
  171. viam/gen/component/button/__init__.py +0 -0
  172. viam/gen/component/button/v1/__init__.py +0 -0
  173. viam/gen/component/button/v1/button_grpc.py +38 -0
  174. viam/gen/component/button/v1/button_pb2.py +28 -0
  175. viam/gen/component/button/v1/button_pb2.pyi +39 -0
  176. viam/gen/component/camera/__init__.py +0 -0
  177. viam/gen/component/camera/v1/__init__.py +0 -0
  178. viam/gen/component/camera/v1/camera_grpc.py +79 -0
  179. viam/gen/component/camera/v1/camera_pb2.py +67 -0
  180. viam/gen/component/camera/v1/camera_pb2.pyi +373 -0
  181. viam/gen/component/encoder/__init__.py +0 -0
  182. viam/gen/component/encoder/v1/__init__.py +0 -0
  183. viam/gen/component/encoder/v1/encoder_grpc.py +62 -0
  184. viam/gen/component/encoder/v1/encoder_pb2.py +44 -0
  185. viam/gen/component/encoder/v1/encoder_pb2.pyi +147 -0
  186. viam/gen/component/gantry/__init__.py +0 -0
  187. viam/gen/component/gantry/v1/__init__.py +0 -0
  188. viam/gen/component/gantry/v1/gantry_grpc.py +86 -0
  189. viam/gen/component/gantry/v1/gantry_pb2.py +62 -0
  190. viam/gen/component/gantry/v1/gantry_pb2.pyi +239 -0
  191. viam/gen/component/generic/__init__.py +0 -0
  192. viam/gen/component/generic/v1/__init__.py +0 -0
  193. viam/gen/component/generic/v1/generic_grpc.py +37 -0
  194. viam/gen/component/generic/v1/generic_pb2.py +23 -0
  195. viam/gen/component/generic/v1/generic_pb2.pyi +6 -0
  196. viam/gen/component/gripper/__init__.py +0 -0
  197. viam/gen/component/gripper/v1/__init__.py +0 -0
  198. viam/gen/component/gripper/v1/gripper_grpc.py +70 -0
  199. viam/gen/component/gripper/v1/gripper_pb2.py +48 -0
  200. viam/gen/component/gripper/v1/gripper_pb2.pyi +137 -0
  201. viam/gen/component/inputcontroller/__init__.py +0 -0
  202. viam/gen/component/inputcontroller/v1/__init__.py +0 -0
  203. viam/gen/component/inputcontroller/v1/input_controller_grpc.py +71 -0
  204. viam/gen/component/inputcontroller/v1/input_controller_pb2.py +55 -0
  205. viam/gen/component/inputcontroller/v1/input_controller_pb2.pyi +243 -0
  206. viam/gen/component/motor/__init__.py +0 -0
  207. viam/gen/component/motor/v1/__init__.py +0 -0
  208. viam/gen/component/motor/v1/motor_grpc.py +118 -0
  209. viam/gen/component/motor/v1/motor_pb2.py +86 -0
  210. viam/gen/component/motor/v1/motor_pb2.pyi +368 -0
  211. viam/gen/component/movementsensor/__init__.py +0 -0
  212. viam/gen/component/movementsensor/v1/__init__.py +0 -0
  213. viam/gen/component/movementsensor/v1/movementsensor_grpc.py +110 -0
  214. viam/gen/component/movementsensor/v1/movementsensor_pb2.py +78 -0
  215. viam/gen/component/movementsensor/v1/movementsensor_pb2.pyi +384 -0
  216. viam/gen/component/posetracker/__init__.py +0 -0
  217. viam/gen/component/posetracker/v1/__init__.py +0 -0
  218. viam/gen/component/posetracker/v1/pose_tracker_grpc.py +46 -0
  219. viam/gen/component/posetracker/v1/pose_tracker_pb2.py +34 -0
  220. viam/gen/component/posetracker/v1/pose_tracker_pb2.pyi +79 -0
  221. viam/gen/component/powersensor/__init__.py +0 -0
  222. viam/gen/component/powersensor/v1/__init__.py +0 -0
  223. viam/gen/component/powersensor/v1/powersensor_grpc.py +62 -0
  224. viam/gen/component/powersensor/v1/powersensor_pb2.py +42 -0
  225. viam/gen/component/powersensor/v1/powersensor_pb2.pyi +124 -0
  226. viam/gen/component/sensor/__init__.py +0 -0
  227. viam/gen/component/sensor/v1/__init__.py +0 -0
  228. viam/gen/component/sensor/v1/sensor_grpc.py +45 -0
  229. viam/gen/component/sensor/v1/sensor_pb2.py +25 -0
  230. viam/gen/component/sensor/v1/sensor_pb2.pyi +6 -0
  231. viam/gen/component/servo/__init__.py +0 -0
  232. viam/gen/component/servo/v1/__init__.py +0 -0
  233. viam/gen/component/servo/v1/servo_grpc.py +70 -0
  234. viam/gen/component/servo/v1/servo_pb2.py +50 -0
  235. viam/gen/component/servo/v1/servo_pb2.pyi +150 -0
  236. viam/gen/component/switch/__init__.py +0 -0
  237. viam/gen/component/switch/v1/__init__.py +0 -0
  238. viam/gen/component/switch/v1/switch_grpc.py +54 -0
  239. viam/gen/component/switch/v1/switch_pb2.py +40 -0
  240. viam/gen/component/switch/v1/switch_pb2.pyi +109 -0
  241. viam/gen/component/testecho/__init__.py +0 -0
  242. viam/gen/component/testecho/v1/__init__.py +0 -0
  243. viam/gen/component/testecho/v1/testecho_grpc.py +52 -0
  244. viam/gen/component/testecho/v1/testecho_pb2.py +36 -0
  245. viam/gen/component/testecho/v1/testecho_pb2.pyi +114 -0
  246. viam/gen/module/__init__.py +0 -0
  247. viam/gen/module/v1/__init__.py +0 -0
  248. viam/gen/module/v1/module_grpc.py +61 -0
  249. viam/gen/module/v1/module_pb2.py +43 -0
  250. viam/gen/module/v1/module_pb2.pyi +211 -0
  251. viam/gen/proto/__init__.py +0 -0
  252. viam/gen/proto/rpc/__init__.py +0 -0
  253. viam/gen/proto/rpc/examples/__init__.py +0 -0
  254. viam/gen/proto/rpc/examples/echo/__init__.py +0 -0
  255. viam/gen/proto/rpc/examples/echo/v1/__init__.py +0 -0
  256. viam/gen/proto/rpc/examples/echo/v1/echo_grpc.py +44 -0
  257. viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +32 -0
  258. viam/gen/proto/rpc/examples/echo/v1/echo_pb2.pyi +87 -0
  259. viam/gen/proto/rpc/examples/echoresource/__init__.py +0 -0
  260. viam/gen/proto/rpc/examples/echoresource/v1/__init__.py +0 -0
  261. viam/gen/proto/rpc/examples/echoresource/v1/echoresource_grpc.py +43 -0
  262. viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +29 -0
  263. viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.pyi +93 -0
  264. viam/gen/proto/rpc/v1/__init__.py +0 -0
  265. viam/gen/proto/rpc/v1/auth_grpc.py +47 -0
  266. viam/gen/proto/rpc/v1/auth_pb2.py +34 -0
  267. viam/gen/proto/rpc/v1/auth_pb2.pyi +92 -0
  268. viam/gen/proto/rpc/webrtc/__init__.py +0 -0
  269. viam/gen/proto/rpc/webrtc/v1/__init__.py +0 -0
  270. viam/gen/proto/rpc/webrtc/v1/grpc_grpc.py +0 -0
  271. viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +43 -0
  272. viam/gen/proto/rpc/webrtc/v1/grpc_pb2.pyi +304 -0
  273. viam/gen/proto/rpc/webrtc/v1/signaling_grpc.py +54 -0
  274. viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +70 -0
  275. viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +496 -0
  276. viam/gen/provisioning/__init__.py +0 -0
  277. viam/gen/provisioning/v1/__init__.py +0 -0
  278. viam/gen/provisioning/v1/provisioning_grpc.py +51 -0
  279. viam/gen/provisioning/v1/provisioning_pb2.py +39 -0
  280. viam/gen/provisioning/v1/provisioning_pb2.pyi +188 -0
  281. viam/gen/robot/__init__.py +0 -0
  282. viam/gen/robot/v1/__init__.py +0 -0
  283. viam/gen/robot/v1/robot_grpc.py +208 -0
  284. viam/gen/robot/v1/robot_pb2.py +188 -0
  285. viam/gen/robot/v1/robot_pb2.pyi +1020 -0
  286. viam/gen/service/__init__.py +0 -0
  287. viam/gen/service/datamanager/__init__.py +0 -0
  288. viam/gen/service/datamanager/v1/__init__.py +0 -0
  289. viam/gen/service/datamanager/v1/data_manager_grpc.py +38 -0
  290. viam/gen/service/datamanager/v1/data_manager_pb2.py +28 -0
  291. viam/gen/service/datamanager/v1/data_manager_pb2.pyi +39 -0
  292. viam/gen/service/discovery/__init__.py +0 -0
  293. viam/gen/service/discovery/v1/__init__.py +0 -0
  294. viam/gen/service/discovery/v1/discovery_grpc.py +39 -0
  295. viam/gen/service/discovery/v1/discovery_pb2.py +29 -0
  296. viam/gen/service/discovery/v1/discovery_pb2.pyi +51 -0
  297. viam/gen/service/generic/__init__.py +0 -0
  298. viam/gen/service/generic/v1/__init__.py +0 -0
  299. viam/gen/service/generic/v1/generic_grpc.py +29 -0
  300. viam/gen/service/generic/v1/generic_pb2.py +21 -0
  301. viam/gen/service/generic/v1/generic_pb2.pyi +6 -0
  302. viam/gen/service/mlmodel/__init__.py +0 -0
  303. viam/gen/service/mlmodel/v1/__init__.py +0 -0
  304. viam/gen/service/mlmodel/v1/mlmodel_grpc.py +37 -0
  305. viam/gen/service/mlmodel/v1/mlmodel_pb2.py +83 -0
  306. viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi +480 -0
  307. viam/gen/service/motion/__init__.py +0 -0
  308. viam/gen/service/motion/v1/__init__.py +0 -0
  309. viam/gen/service/motion/v1/motion_grpc.py +87 -0
  310. viam/gen/service/motion/v1/motion_pb2.py +97 -0
  311. viam/gen/service/motion/v1/motion_pb2.pyi +838 -0
  312. viam/gen/service/navigation/__init__.py +0 -0
  313. viam/gen/service/navigation/v1/__init__.py +0 -0
  314. viam/gen/service/navigation/v1/navigation_grpc.py +102 -0
  315. viam/gen/service/navigation/v1/navigation_pb2.py +84 -0
  316. viam/gen/service/navigation/v1/navigation_pb2.pyi +419 -0
  317. viam/gen/service/sensors/__init__.py +0 -0
  318. viam/gen/service/sensors/v1/__init__.py +0 -0
  319. viam/gen/service/sensors/v1/sensors_grpc.py +46 -0
  320. viam/gen/service/sensors/v1/sensors_pb2.py +68 -0
  321. viam/gen/service/sensors/v1/sensors_pb2.pyi +137 -0
  322. viam/gen/service/shell/__init__.py +0 -0
  323. viam/gen/service/shell/v1/__init__.py +0 -0
  324. viam/gen/service/shell/v1/shell_grpc.py +55 -0
  325. viam/gen/service/shell/v1/shell_pb2.py +45 -0
  326. viam/gen/service/shell/v1/shell_pb2.pyi +307 -0
  327. viam/gen/service/slam/__init__.py +0 -0
  328. viam/gen/service/slam/v1/__init__.py +0 -0
  329. viam/gen/service/slam/v1/slam_grpc.py +61 -0
  330. viam/gen/service/slam/v1/slam_pb2.py +51 -0
  331. viam/gen/service/slam/v1/slam_pb2.pyi +213 -0
  332. viam/gen/service/vision/__init__.py +0 -0
  333. viam/gen/service/vision/v1/__init__.py +0 -0
  334. viam/gen/service/vision/v1/vision_grpc.py +87 -0
  335. viam/gen/service/vision/v1/vision_pb2.py +69 -0
  336. viam/gen/service/vision/v1/vision_pb2.pyi +454 -0
  337. viam/gen/stream/__init__.py +0 -0
  338. viam/gen/stream/v1/__init__.py +0 -0
  339. viam/gen/stream/v1/stream_grpc.py +59 -0
  340. viam/gen/stream/v1/stream_pb2.py +39 -0
  341. viam/gen/stream/v1/stream_pb2.pyi +161 -0
  342. viam/gen/tagger/__init__.py +0 -0
  343. viam/gen/tagger/v1/__init__.py +0 -0
  344. viam/gen/tagger/v1/tagger_grpc.py +0 -0
  345. viam/gen/tagger/v1/tagger_pb2.py +16 -0
  346. viam/gen/tagger/v1/tagger_pb2.pyi +15 -0
  347. viam/logging.py +216 -0
  348. viam/media/__init__.py +0 -0
  349. viam/media/audio.py +16 -0
  350. viam/media/utils/__init__.py +0 -0
  351. viam/media/utils/pil/__init__.py +51 -0
  352. viam/media/utils/pil/viam_rgba_plugin.py +73 -0
  353. viam/media/viam_rgba.py +10 -0
  354. viam/media/video.py +217 -0
  355. viam/module/__init__.py +5 -0
  356. viam/module/module.py +281 -0
  357. viam/module/service.py +66 -0
  358. viam/module/types.py +23 -0
  359. viam/operations.py +124 -0
  360. viam/proto/__init__.py +0 -0
  361. viam/proto/app/__init__.py +554 -0
  362. viam/proto/app/agent/__init__.py +28 -0
  363. viam/proto/app/billing.py +58 -0
  364. viam/proto/app/cloudslam/__init__.py +48 -0
  365. viam/proto/app/data/__init__.py +138 -0
  366. viam/proto/app/datapipelines/__init__.py +56 -0
  367. viam/proto/app/dataset/__init__.py +36 -0
  368. viam/proto/app/datasync/__init__.py +44 -0
  369. viam/proto/app/end_user.py +34 -0
  370. viam/proto/app/mlinference/__init__.py +15 -0
  371. viam/proto/app/mltraining/__init__.py +52 -0
  372. viam/proto/app/packages/__init__.py +38 -0
  373. viam/proto/app/robot.py +84 -0
  374. viam/proto/common/__init__.py +66 -0
  375. viam/proto/component/__init__.py +0 -0
  376. viam/proto/component/arm/__init__.py +48 -0
  377. viam/proto/component/audioinput/__init__.py +30 -0
  378. viam/proto/component/base/__init__.py +42 -0
  379. viam/proto/component/board/__init__.py +62 -0
  380. viam/proto/component/button/__init__.py +15 -0
  381. viam/proto/component/camera/__init__.py +46 -0
  382. viam/proto/component/encoder/__init__.py +28 -0
  383. viam/proto/component/gantry/__init__.py +40 -0
  384. viam/proto/component/generic/__init__.py +12 -0
  385. viam/proto/component/gripper/__init__.py +30 -0
  386. viam/proto/component/inputcontroller/__init__.py +38 -0
  387. viam/proto/component/motor/__init__.py +56 -0
  388. viam/proto/component/movementsensor/__init__.py +50 -0
  389. viam/proto/component/posetracker/__init__.py +19 -0
  390. viam/proto/component/powersensor/__init__.py +30 -0
  391. viam/proto/component/sensor/__init__.py +12 -0
  392. viam/proto/component/servo/__init__.py +32 -0
  393. viam/proto/component/switch/__init__.py +26 -0
  394. viam/proto/component/testecho/__init__.py +30 -0
  395. viam/proto/module/__init__.py +38 -0
  396. viam/proto/provisioning/__init__.py +36 -0
  397. viam/proto/robot/__init__.py +130 -0
  398. viam/proto/rpc/__init__.py +0 -0
  399. viam/proto/rpc/auth.py +34 -0
  400. viam/proto/rpc/examples/__init__.py +0 -0
  401. viam/proto/rpc/examples/echo/__init__.py +26 -0
  402. viam/proto/rpc/examples/echoresource/__init__.py +30 -0
  403. viam/proto/rpc/webrtc/__init__.py +0 -0
  404. viam/proto/rpc/webrtc/grpc.py +36 -0
  405. viam/proto/rpc/webrtc/signaling.py +58 -0
  406. viam/proto/service/__init__.py +0 -0
  407. viam/proto/service/datamanager/__init__.py +19 -0
  408. viam/proto/service/discovery/__init__.py +15 -0
  409. viam/proto/service/generic/__init__.py +12 -0
  410. viam/proto/service/mlmodel/__init__.py +54 -0
  411. viam/proto/service/motion/__init__.py +68 -0
  412. viam/proto/service/navigation/__init__.py +58 -0
  413. viam/proto/service/sensors/__init__.py +18 -0
  414. viam/proto/service/shell/__init__.py +36 -0
  415. viam/proto/service/slam/__init__.py +36 -0
  416. viam/proto/service/vision/__init__.py +46 -0
  417. viam/proto/stream/__init__.py +36 -0
  418. viam/proto/tagger/__init__.py +6 -0
  419. viam/py.typed +0 -0
  420. viam/resource/__init__.py +0 -0
  421. viam/resource/base.py +123 -0
  422. viam/resource/easy_resource.py +153 -0
  423. viam/resource/manager.py +126 -0
  424. viam/resource/registry.py +199 -0
  425. viam/resource/rpc_client_base.py +65 -0
  426. viam/resource/rpc_service_base.py +48 -0
  427. viam/resource/types.py +213 -0
  428. viam/robot/__init__.py +0 -0
  429. viam/robot/client.py +909 -0
  430. viam/robot/service.py +69 -0
  431. viam/rpc/__init__.py +0 -0
  432. viam/rpc/dial.py +420 -0
  433. viam/rpc/libviam_rust_utils.dll +0 -0
  434. viam/rpc/server.py +201 -0
  435. viam/rpc/signaling.py +29 -0
  436. viam/rpc/types.py +22 -0
  437. viam/services/__init__.py +0 -0
  438. viam/services/discovery/__init__.py +12 -0
  439. viam/services/discovery/client.py +55 -0
  440. viam/services/discovery/discovery.py +52 -0
  441. viam/services/discovery/service.py +43 -0
  442. viam/services/generic/__init__.py +18 -0
  443. viam/services/generic/client.py +58 -0
  444. viam/services/generic/generic.py +58 -0
  445. viam/services/generic/service.py +29 -0
  446. viam/services/mlmodel/__init__.py +24 -0
  447. viam/services/mlmodel/client.py +37 -0
  448. viam/services/mlmodel/mlmodel.py +78 -0
  449. viam/services/mlmodel/service.py +38 -0
  450. viam/services/mlmodel/utils.py +101 -0
  451. viam/services/motion/__init__.py +17 -0
  452. viam/services/motion/client.py +215 -0
  453. viam/services/motion/motion.py +378 -0
  454. viam/services/motion/service.py +132 -0
  455. viam/services/navigation/__init__.py +11 -0
  456. viam/services/navigation/client.py +99 -0
  457. viam/services/navigation/navigation.py +250 -0
  458. viam/services/navigation/service.py +137 -0
  459. viam/services/service_base.py +78 -0
  460. viam/services/service_client_base.py +46 -0
  461. viam/services/slam/__init__.py +17 -0
  462. viam/services/slam/client.py +62 -0
  463. viam/services/slam/service.py +75 -0
  464. viam/services/slam/slam.py +111 -0
  465. viam/services/vision/__init__.py +15 -0
  466. viam/services/vision/client.py +206 -0
  467. viam/services/vision/service.py +146 -0
  468. viam/services/vision/vision.py +315 -0
  469. viam/sessions_client.py +245 -0
  470. viam/streams.py +44 -0
  471. viam/utils.py +365 -0
  472. viam/version_metadata.py +4 -0
  473. viam_sdk-0.45.2.dist-info/METADATA +157 -0
  474. viam_sdk-0.45.2.dist-info/RECORD +476 -0
  475. viam_sdk-0.45.2.dist-info/WHEEL +4 -0
  476. viam_sdk-0.45.2.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,76 @@
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 BillingServiceBase(abc.ABC):
12
+
13
+ @abc.abstractmethod
14
+ async def GetCurrentMonthUsage(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse]') -> None:
15
+ pass
16
+
17
+ @abc.abstractmethod
18
+ async def GetOrgBillingInformation(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse]') -> None:
19
+ pass
20
+
21
+ @abc.abstractmethod
22
+ async def GetInvoicesSummary(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse]') -> None:
23
+ pass
24
+
25
+ @abc.abstractmethod
26
+ async def GetInvoicePdf(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse]') -> None:
27
+ pass
28
+
29
+ @abc.abstractmethod
30
+ async def SendPaymentRequiredEmail(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse]') -> None:
31
+ pass
32
+
33
+ @abc.abstractmethod
34
+ async def GetAvailableBillingTiers(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse]') -> None:
35
+ pass
36
+
37
+ @abc.abstractmethod
38
+ async def UpdateOrganizationBillingTier(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse]') -> None:
39
+ pass
40
+
41
+ def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
42
+ return {'/viam.app.v1.BillingService/GetCurrentMonthUsage': grpclib.const.Handler(self.GetCurrentMonthUsage, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse), '/viam.app.v1.BillingService/GetOrgBillingInformation': grpclib.const.Handler(self.GetOrgBillingInformation, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse), '/viam.app.v1.BillingService/GetInvoicesSummary': grpclib.const.Handler(self.GetInvoicesSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse), '/viam.app.v1.BillingService/GetInvoicePdf': grpclib.const.Handler(self.GetInvoicePdf, grpclib.const.Cardinality.UNARY_STREAM, app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse), '/viam.app.v1.BillingService/SendPaymentRequiredEmail': grpclib.const.Handler(self.SendPaymentRequiredEmail, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse), '/viam.app.v1.BillingService/GetAvailableBillingTiers': grpclib.const.Handler(self.GetAvailableBillingTiers, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse), '/viam.app.v1.BillingService/UpdateOrganizationBillingTier': grpclib.const.Handler(self.UpdateOrganizationBillingTier, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse)}
43
+
44
+ class UnimplementedBillingServiceBase(BillingServiceBase):
45
+
46
+ async def GetCurrentMonthUsage(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse]') -> None:
47
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
48
+
49
+ async def GetOrgBillingInformation(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse]') -> None:
50
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
51
+
52
+ async def GetInvoicesSummary(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse]') -> None:
53
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
54
+
55
+ async def GetInvoicePdf(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse]') -> None:
56
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
57
+
58
+ async def SendPaymentRequiredEmail(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse]') -> None:
59
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
60
+
61
+ async def GetAvailableBillingTiers(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse]') -> None:
62
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
63
+
64
+ async def UpdateOrganizationBillingTier(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse]') -> None:
65
+ raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
66
+
67
+ class BillingServiceStub:
68
+
69
+ def __init__(self, channel: grpclib.client.Channel) -> None:
70
+ self.GetCurrentMonthUsage = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetCurrentMonthUsage', app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse)
71
+ self.GetOrgBillingInformation = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetOrgBillingInformation', app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse)
72
+ self.GetInvoicesSummary = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetInvoicesSummary', app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse)
73
+ self.GetInvoicePdf = grpclib.client.UnaryStreamMethod(channel, '/viam.app.v1.BillingService/GetInvoicePdf', app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse)
74
+ self.SendPaymentRequiredEmail = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/SendPaymentRequiredEmail', app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse)
75
+ self.GetAvailableBillingTiers = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetAvailableBillingTiers', app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse)
76
+ self.UpdateOrganizationBillingTier = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/UpdateOrganizationBillingTier', app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse)
@@ -0,0 +1,92 @@
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/v1/billing.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
10
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14app/v1/billing.proto\x12\x0bviam.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x8e\x02\n\x0eInvoiceSummary\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x127\n\tpaid_date\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\x08paidDate"S\n\x11PaymentMethodCard\x12\x14\n\x05brand\x18\x01 \x01(\tR\x05brand\x12(\n\x10last_four_digits\x18\x02 \x01(\tR\x0elastFourDigits"4\n\x1bGetCurrentMonthUsageRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"`\n\tUsageCost\x12?\n\rresource_type\x18\x01 \x01(\x0e2\x1a.viam.app.v1.UsageCostTypeR\x0cresourceType\x12\x12\n\x04cost\x18\x02 \x01(\x01R\x04cost"\xc6\x01\n\x1aResourceUsageCostsBySource\x128\n\x0bsource_type\x18\x01 \x01(\x0e2\x17.viam.app.v1.SourceTypeR\nsourceType\x12Q\n\x14resource_usage_costs\x18\x02 \x01(\x0b2\x1f.viam.app.v1.ResourceUsageCostsR\x12resourceUsageCosts\x12\x1b\n\ttier_name\x18\x03 \x01(\tR\x08tierName"\xcf\x01\n\x12ResourceUsageCosts\x127\n\x0busage_costs\x18\x01 \x03(\x0b2\x16.viam.app.v1.UsageCostR\nusageCosts\x12\x1a\n\x08discount\x18\x02 \x01(\x01R\x08discount\x12.\n\x13total_with_discount\x18\x03 \x01(\x01R\x11totalWithDiscount\x124\n\x16total_without_discount\x18\x04 \x01(\x01R\x14totalWithoutDiscount"\xcd\x07\n\x1cGetCurrentMonthUsageResponse\x129\n\nstart_date\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartDate\x125\n\x08end_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endDate\x12k\n\x1eresource_usage_costs_by_source\x18\x0e \x03(\x0b2\'.viam.app.v1.ResourceUsageCostsBySourceR\x1aresourceUsageCostsBySource\x12\x1a\n\x08subtotal\x18\x0f \x01(\x01R\x08subtotal\x12;\n\x18cloud_storage_usage_cost\x18\x03 \x01(\x01B\x02\x18\x01R\x15cloudStorageUsageCost\x127\n\x16data_upload_usage_cost\x18\x04 \x01(\x01B\x02\x18\x01R\x13dataUploadUsageCost\x125\n\x15data_egres_usage_cost\x18\x05 \x01(\x01B\x02\x18\x01R\x12dataEgresUsageCost\x12=\n\x19remote_control_usage_cost\x18\x06 \x01(\x01B\x02\x18\x01R\x16remoteControlUsageCost\x12A\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01B\x02\x18\x01R\x18standardComputeUsageCost\x12+\n\x0fdiscount_amount\x18\x08 \x01(\x01B\x02\x18\x01R\x0ediscountAmount\x12=\n\x19total_usage_with_discount\x18\t \x01(\x01B\x02\x18\x01R\x16totalUsageWithDiscount\x12C\n\x1ctotal_usage_without_discount\x18\n \x01(\x01B\x02\x18\x01R\x19totalUsageWithoutDiscount\x127\n\x16per_machine_usage_cost\x18\x0b \x01(\x01B\x02\x18\x01R\x13perMachineUsageCost\x12Q\n$binary_data_cloud_storage_usage_cost\x18\x0c \x01(\x01B\x02\x18\x01R\x1fbinaryDataCloudStorageUsageCost\x12F\n\x1eother_cloud_storage_usage_cost\x18\r \x01(\x01B\x02\x18\x01R\x1aotherCloudStorageUsageCost"8\n\x1fGetOrgBillingInformationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xfc\x01\n GetOrgBillingInformationResponse\x122\n\x04type\x18\x01 \x01(\x0e2\x1e.viam.app.v1.PaymentMethodTypeR\x04type\x12#\n\rbilling_email\x18\x02 \x01(\tR\x0cbillingEmail\x12;\n\x06method\x18\x03 \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardH\x00R\x06method\x88\x01\x01\x12&\n\x0cbilling_tier\x18\x04 \x01(\tH\x01R\x0bbillingTier\x88\x01\x01B\t\n\x07_methodB\x0f\n\r_billing_tier"2\n\x19GetInvoicesSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x86\x01\n\x1aGetInvoicesSummaryResponse\x12/\n\x13outstanding_balance\x18\x01 \x01(\x01R\x12outstandingBalance\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"=\n\x14GetInvoicePdfRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId"-\n\x15GetInvoicePdfResponse\x12\x14\n\x05chunk\x18\x01 \x01(\x0cR\x05chunk"z\n\x1fSendPaymentRequiredEmailRequest\x12&\n\x0fcustomer_org_id\x18\x01 \x01(\tR\rcustomerOrgId\x12/\n\x14billing_owner_org_id\x18\x02 \x01(\tR\x11billingOwnerOrgId""\n SendPaymentRequiredEmailResponse"!\n\x1fGetAvailableBillingTiersRequest"8\n GetAvailableBillingTiersResponse\x12\x14\n\x05tiers\x18\x01 \x03(\tR\x05tiers"r\n$UpdateOrganizationBillingTierRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12!\n\x0cbilling_tier\x18\x02 \x01(\tR\x0bbillingTier"\'\n%UpdateOrganizationBillingTierResponse*V\n\x11PaymentMethodType\x12#\n\x1fPAYMENT_METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PAYMENT_METHOD_TYPE_CARD\x10\x01*\xf3\x07\n\rUsageCostType\x12\x1f\n\x1bUSAGE_COST_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1bUSAGE_COST_TYPE_DATA_UPLOAD\x10\x01\x1a\x02\x08\x01\x12#\n\x1bUSAGE_COST_TYPE_DATA_EGRESS\x10\x02\x1a\x02\x08\x01\x12"\n\x1eUSAGE_COST_TYPE_REMOTE_CONTROL\x10\x03\x12$\n USAGE_COST_TYPE_STANDARD_COMPUTE\x10\x04\x12%\n\x1dUSAGE_COST_TYPE_CLOUD_STORAGE\x10\x05\x1a\x02\x08\x01\x12-\n)USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE\x10\x06\x12+\n#USAGE_COST_TYPE_OTHER_CLOUD_STORAGE\x10\x07\x1a\x02\x08\x01\x12\x1f\n\x1bUSAGE_COST_TYPE_PER_MACHINE\x10\x08\x12(\n$USAGE_COST_TYPE_TRIGGER_NOTIFICATION\x10\t\x12.\n*USAGE_COST_TYPE_TABULAR_DATA_CLOUD_STORAGE\x10\n\x120\n,USAGE_COST_TYPE_CONFIG_HISTORY_CLOUD_STORAGE\x10\x0b\x12&\n"USAGE_COST_TYPE_LOGS_CLOUD_STORAGE\x10\x0c\x12/\n+USAGE_COST_TYPE_TRAINING_LOGS_CLOUD_STORAGE\x10\r\x12*\n&USAGE_COST_TYPE_PACKAGES_CLOUD_STORAGE\x10\x0e\x12&\n"USAGE_COST_TYPE_BINARY_DATA_UPLOAD\x10\x0f\x12\'\n#USAGE_COST_TYPE_TABULAR_DATA_UPLOAD\x10\x10\x12\x1f\n\x1bUSAGE_COST_TYPE_LOGS_UPLOAD\x10\x11\x12&\n"USAGE_COST_TYPE_BINARY_DATA_EGRESS\x10\x12\x12\'\n#USAGE_COST_TYPE_TABULAR_DATA_EGRESS\x10\x13\x12\x1f\n\x1bUSAGE_COST_TYPE_LOGS_EGRESS\x10\x14\x12(\n$USAGE_COST_TYPE_TRAINING_LOGS_EGRESS\x10\x15\x127\n3USAGE_COST_TYPE_TABULAR_DATA_DATABASE_CLOUD_STORAGE\x10\x16\x121\n-USAGE_COST_TYPE_TABULAR_DATA_DATABASE_COMPUTE\x10\x17*X\n\nSourceType\x12\x1b\n\x17SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSOURCE_TYPE_ORG\x10\x01\x12\x18\n\x14SOURCE_TYPE_FRAGMENT\x10\x022\xb2\x06\n\x0eBillingService\x12k\n\x14GetCurrentMonthUsage\x12(.viam.app.v1.GetCurrentMonthUsageRequest\x1a).viam.app.v1.GetCurrentMonthUsageResponse\x12w\n\x18GetOrgBillingInformation\x12,.viam.app.v1.GetOrgBillingInformationRequest\x1a-.viam.app.v1.GetOrgBillingInformationResponse\x12e\n\x12GetInvoicesSummary\x12&.viam.app.v1.GetInvoicesSummaryRequest\x1a\'.viam.app.v1.GetInvoicesSummaryResponse\x12X\n\rGetInvoicePdf\x12!.viam.app.v1.GetInvoicePdfRequest\x1a".viam.app.v1.GetInvoicePdfResponse0\x01\x12w\n\x18SendPaymentRequiredEmail\x12,.viam.app.v1.SendPaymentRequiredEmailRequest\x1a-.viam.app.v1.SendPaymentRequiredEmailResponse\x12w\n\x18GetAvailableBillingTiers\x12,.viam.app.v1.GetAvailableBillingTiersRequest\x1a-.viam.app.v1.GetAvailableBillingTiersResponse\x12\x86\x01\n\x1dUpdateOrganizationBillingTier\x121.viam.app.v1.UpdateOrganizationBillingTierRequest\x1a2.viam.app.v1.UpdateOrganizationBillingTierResponseB\x18Z\x16go.viam.com/api/app/v1b\x06proto3')
11
+ _globals = globals()
12
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
13
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.v1.billing_pb2', _globals)
14
+ if not _descriptor._USE_C_DESCRIPTORS:
15
+ _globals['DESCRIPTOR']._loaded_options = None
16
+ _globals['DESCRIPTOR']._serialized_options = b'Z\x16go.viam.com/api/app/v1'
17
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_DATA_UPLOAD']._loaded_options = None
18
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_DATA_UPLOAD']._serialized_options = b'\x08\x01'
19
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_DATA_EGRESS']._loaded_options = None
20
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_DATA_EGRESS']._serialized_options = b'\x08\x01'
21
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_CLOUD_STORAGE']._loaded_options = None
22
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_CLOUD_STORAGE']._serialized_options = b'\x08\x01'
23
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_OTHER_CLOUD_STORAGE']._loaded_options = None
24
+ _globals['_USAGECOSTTYPE'].values_by_name['USAGE_COST_TYPE_OTHER_CLOUD_STORAGE']._serialized_options = b'\x08\x01'
25
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['cloud_storage_usage_cost']._loaded_options = None
26
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['cloud_storage_usage_cost']._serialized_options = b'\x18\x01'
27
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['data_upload_usage_cost']._loaded_options = None
28
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['data_upload_usage_cost']._serialized_options = b'\x18\x01'
29
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['data_egres_usage_cost']._loaded_options = None
30
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['data_egres_usage_cost']._serialized_options = b'\x18\x01'
31
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['remote_control_usage_cost']._loaded_options = None
32
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['remote_control_usage_cost']._serialized_options = b'\x18\x01'
33
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['standard_compute_usage_cost']._loaded_options = None
34
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['standard_compute_usage_cost']._serialized_options = b'\x18\x01'
35
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['discount_amount']._loaded_options = None
36
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['discount_amount']._serialized_options = b'\x18\x01'
37
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['total_usage_with_discount']._loaded_options = None
38
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['total_usage_with_discount']._serialized_options = b'\x18\x01'
39
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['total_usage_without_discount']._loaded_options = None
40
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['total_usage_without_discount']._serialized_options = b'\x18\x01'
41
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['per_machine_usage_cost']._loaded_options = None
42
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['per_machine_usage_cost']._serialized_options = b'\x18\x01'
43
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['binary_data_cloud_storage_usage_cost']._loaded_options = None
44
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['binary_data_cloud_storage_usage_cost']._serialized_options = b'\x18\x01'
45
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['other_cloud_storage_usage_cost']._loaded_options = None
46
+ _globals['_GETCURRENTMONTHUSAGERESPONSE'].fields_by_name['other_cloud_storage_usage_cost']._serialized_options = b'\x18\x01'
47
+ _globals['_PAYMENTMETHODTYPE']._serialized_start = 2989
48
+ _globals['_PAYMENTMETHODTYPE']._serialized_end = 3075
49
+ _globals['_USAGECOSTTYPE']._serialized_start = 3078
50
+ _globals['_USAGECOSTTYPE']._serialized_end = 4089
51
+ _globals['_SOURCETYPE']._serialized_start = 4091
52
+ _globals['_SOURCETYPE']._serialized_end = 4179
53
+ _globals['_INVOICESUMMARY']._serialized_start = 71
54
+ _globals['_INVOICESUMMARY']._serialized_end = 341
55
+ _globals['_PAYMENTMETHODCARD']._serialized_start = 343
56
+ _globals['_PAYMENTMETHODCARD']._serialized_end = 426
57
+ _globals['_GETCURRENTMONTHUSAGEREQUEST']._serialized_start = 428
58
+ _globals['_GETCURRENTMONTHUSAGEREQUEST']._serialized_end = 480
59
+ _globals['_USAGECOST']._serialized_start = 482
60
+ _globals['_USAGECOST']._serialized_end = 578
61
+ _globals['_RESOURCEUSAGECOSTSBYSOURCE']._serialized_start = 581
62
+ _globals['_RESOURCEUSAGECOSTSBYSOURCE']._serialized_end = 779
63
+ _globals['_RESOURCEUSAGECOSTS']._serialized_start = 782
64
+ _globals['_RESOURCEUSAGECOSTS']._serialized_end = 989
65
+ _globals['_GETCURRENTMONTHUSAGERESPONSE']._serialized_start = 992
66
+ _globals['_GETCURRENTMONTHUSAGERESPONSE']._serialized_end = 1965
67
+ _globals['_GETORGBILLINGINFORMATIONREQUEST']._serialized_start = 1967
68
+ _globals['_GETORGBILLINGINFORMATIONREQUEST']._serialized_end = 2023
69
+ _globals['_GETORGBILLINGINFORMATIONRESPONSE']._serialized_start = 2026
70
+ _globals['_GETORGBILLINGINFORMATIONRESPONSE']._serialized_end = 2278
71
+ _globals['_GETINVOICESSUMMARYREQUEST']._serialized_start = 2280
72
+ _globals['_GETINVOICESSUMMARYREQUEST']._serialized_end = 2330
73
+ _globals['_GETINVOICESSUMMARYRESPONSE']._serialized_start = 2333
74
+ _globals['_GETINVOICESSUMMARYRESPONSE']._serialized_end = 2467
75
+ _globals['_GETINVOICEPDFREQUEST']._serialized_start = 2469
76
+ _globals['_GETINVOICEPDFREQUEST']._serialized_end = 2530
77
+ _globals['_GETINVOICEPDFRESPONSE']._serialized_start = 2532
78
+ _globals['_GETINVOICEPDFRESPONSE']._serialized_end = 2577
79
+ _globals['_SENDPAYMENTREQUIREDEMAILREQUEST']._serialized_start = 2579
80
+ _globals['_SENDPAYMENTREQUIREDEMAILREQUEST']._serialized_end = 2701
81
+ _globals['_SENDPAYMENTREQUIREDEMAILRESPONSE']._serialized_start = 2703
82
+ _globals['_SENDPAYMENTREQUIREDEMAILRESPONSE']._serialized_end = 2737
83
+ _globals['_GETAVAILABLEBILLINGTIERSREQUEST']._serialized_start = 2739
84
+ _globals['_GETAVAILABLEBILLINGTIERSREQUEST']._serialized_end = 2772
85
+ _globals['_GETAVAILABLEBILLINGTIERSRESPONSE']._serialized_start = 2774
86
+ _globals['_GETAVAILABLEBILLINGTIERSRESPONSE']._serialized_end = 2830
87
+ _globals['_UPDATEORGANIZATIONBILLINGTIERREQUEST']._serialized_start = 2832
88
+ _globals['_UPDATEORGANIZATIONBILLINGTIERREQUEST']._serialized_end = 2946
89
+ _globals['_UPDATEORGANIZATIONBILLINGTIERRESPONSE']._serialized_start = 2948
90
+ _globals['_UPDATEORGANIZATIONBILLINGTIERRESPONSE']._serialized_end = 2987
91
+ _globals['_BILLINGSERVICE']._serialized_start = 4182
92
+ _globals['_BILLINGSERVICE']._serialized_end = 5000
@@ -0,0 +1,463 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import collections.abc
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.internal.containers
9
+ import google.protobuf.internal.enum_type_wrapper
10
+ import google.protobuf.message
11
+ import google.protobuf.timestamp_pb2
12
+ import sys
13
+ import typing
14
+ if sys.version_info >= (3, 10):
15
+ import typing as typing_extensions
16
+ else:
17
+ import typing_extensions
18
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
19
+
20
+ class _PaymentMethodType:
21
+ ValueType = typing.NewType('ValueType', builtins.int)
22
+ V: typing_extensions.TypeAlias = ValueType
23
+
24
+ class _PaymentMethodTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PaymentMethodType.ValueType], builtins.type):
25
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
26
+ PAYMENT_METHOD_TYPE_UNSPECIFIED: _PaymentMethodType.ValueType
27
+ PAYMENT_METHOD_TYPE_CARD: _PaymentMethodType.ValueType
28
+
29
+ class PaymentMethodType(_PaymentMethodType, metaclass=_PaymentMethodTypeEnumTypeWrapper):
30
+ ...
31
+ PAYMENT_METHOD_TYPE_UNSPECIFIED: PaymentMethodType.ValueType
32
+ PAYMENT_METHOD_TYPE_CARD: PaymentMethodType.ValueType
33
+ global___PaymentMethodType = PaymentMethodType
34
+
35
+ class _UsageCostType:
36
+ ValueType = typing.NewType('ValueType', builtins.int)
37
+ V: typing_extensions.TypeAlias = ValueType
38
+
39
+ class _UsageCostTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UsageCostType.ValueType], builtins.type):
40
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
41
+ USAGE_COST_TYPE_UNSPECIFIED: _UsageCostType.ValueType
42
+ USAGE_COST_TYPE_DATA_UPLOAD: _UsageCostType.ValueType
43
+ USAGE_COST_TYPE_DATA_EGRESS: _UsageCostType.ValueType
44
+ USAGE_COST_TYPE_REMOTE_CONTROL: _UsageCostType.ValueType
45
+ USAGE_COST_TYPE_STANDARD_COMPUTE: _UsageCostType.ValueType
46
+ USAGE_COST_TYPE_CLOUD_STORAGE: _UsageCostType.ValueType
47
+ USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE: _UsageCostType.ValueType
48
+ USAGE_COST_TYPE_OTHER_CLOUD_STORAGE: _UsageCostType.ValueType
49
+ USAGE_COST_TYPE_PER_MACHINE: _UsageCostType.ValueType
50
+ USAGE_COST_TYPE_TRIGGER_NOTIFICATION: _UsageCostType.ValueType
51
+ USAGE_COST_TYPE_TABULAR_DATA_CLOUD_STORAGE: _UsageCostType.ValueType
52
+ USAGE_COST_TYPE_CONFIG_HISTORY_CLOUD_STORAGE: _UsageCostType.ValueType
53
+ USAGE_COST_TYPE_LOGS_CLOUD_STORAGE: _UsageCostType.ValueType
54
+ USAGE_COST_TYPE_TRAINING_LOGS_CLOUD_STORAGE: _UsageCostType.ValueType
55
+ USAGE_COST_TYPE_PACKAGES_CLOUD_STORAGE: _UsageCostType.ValueType
56
+ USAGE_COST_TYPE_BINARY_DATA_UPLOAD: _UsageCostType.ValueType
57
+ USAGE_COST_TYPE_TABULAR_DATA_UPLOAD: _UsageCostType.ValueType
58
+ USAGE_COST_TYPE_LOGS_UPLOAD: _UsageCostType.ValueType
59
+ USAGE_COST_TYPE_BINARY_DATA_EGRESS: _UsageCostType.ValueType
60
+ USAGE_COST_TYPE_TABULAR_DATA_EGRESS: _UsageCostType.ValueType
61
+ USAGE_COST_TYPE_LOGS_EGRESS: _UsageCostType.ValueType
62
+ USAGE_COST_TYPE_TRAINING_LOGS_EGRESS: _UsageCostType.ValueType
63
+ USAGE_COST_TYPE_TABULAR_DATA_DATABASE_CLOUD_STORAGE: _UsageCostType.ValueType
64
+ USAGE_COST_TYPE_TABULAR_DATA_DATABASE_COMPUTE: _UsageCostType.ValueType
65
+
66
+ class UsageCostType(_UsageCostType, metaclass=_UsageCostTypeEnumTypeWrapper):
67
+ ...
68
+ USAGE_COST_TYPE_UNSPECIFIED: UsageCostType.ValueType
69
+ USAGE_COST_TYPE_DATA_UPLOAD: UsageCostType.ValueType
70
+ USAGE_COST_TYPE_DATA_EGRESS: UsageCostType.ValueType
71
+ USAGE_COST_TYPE_REMOTE_CONTROL: UsageCostType.ValueType
72
+ USAGE_COST_TYPE_STANDARD_COMPUTE: UsageCostType.ValueType
73
+ USAGE_COST_TYPE_CLOUD_STORAGE: UsageCostType.ValueType
74
+ USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE: UsageCostType.ValueType
75
+ USAGE_COST_TYPE_OTHER_CLOUD_STORAGE: UsageCostType.ValueType
76
+ USAGE_COST_TYPE_PER_MACHINE: UsageCostType.ValueType
77
+ USAGE_COST_TYPE_TRIGGER_NOTIFICATION: UsageCostType.ValueType
78
+ USAGE_COST_TYPE_TABULAR_DATA_CLOUD_STORAGE: UsageCostType.ValueType
79
+ USAGE_COST_TYPE_CONFIG_HISTORY_CLOUD_STORAGE: UsageCostType.ValueType
80
+ USAGE_COST_TYPE_LOGS_CLOUD_STORAGE: UsageCostType.ValueType
81
+ USAGE_COST_TYPE_TRAINING_LOGS_CLOUD_STORAGE: UsageCostType.ValueType
82
+ USAGE_COST_TYPE_PACKAGES_CLOUD_STORAGE: UsageCostType.ValueType
83
+ USAGE_COST_TYPE_BINARY_DATA_UPLOAD: UsageCostType.ValueType
84
+ USAGE_COST_TYPE_TABULAR_DATA_UPLOAD: UsageCostType.ValueType
85
+ USAGE_COST_TYPE_LOGS_UPLOAD: UsageCostType.ValueType
86
+ USAGE_COST_TYPE_BINARY_DATA_EGRESS: UsageCostType.ValueType
87
+ USAGE_COST_TYPE_TABULAR_DATA_EGRESS: UsageCostType.ValueType
88
+ USAGE_COST_TYPE_LOGS_EGRESS: UsageCostType.ValueType
89
+ USAGE_COST_TYPE_TRAINING_LOGS_EGRESS: UsageCostType.ValueType
90
+ USAGE_COST_TYPE_TABULAR_DATA_DATABASE_CLOUD_STORAGE: UsageCostType.ValueType
91
+ USAGE_COST_TYPE_TABULAR_DATA_DATABASE_COMPUTE: UsageCostType.ValueType
92
+ global___UsageCostType = UsageCostType
93
+
94
+ class _SourceType:
95
+ ValueType = typing.NewType('ValueType', builtins.int)
96
+ V: typing_extensions.TypeAlias = ValueType
97
+
98
+ class _SourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SourceType.ValueType], builtins.type):
99
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
100
+ SOURCE_TYPE_UNSPECIFIED: _SourceType.ValueType
101
+ SOURCE_TYPE_ORG: _SourceType.ValueType
102
+ SOURCE_TYPE_FRAGMENT: _SourceType.ValueType
103
+
104
+ class SourceType(_SourceType, metaclass=_SourceTypeEnumTypeWrapper):
105
+ ...
106
+ SOURCE_TYPE_UNSPECIFIED: SourceType.ValueType
107
+ SOURCE_TYPE_ORG: SourceType.ValueType
108
+ SOURCE_TYPE_FRAGMENT: SourceType.ValueType
109
+ global___SourceType = SourceType
110
+
111
+ @typing.final
112
+ class InvoiceSummary(google.protobuf.message.Message):
113
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
114
+ ID_FIELD_NUMBER: builtins.int
115
+ INVOICE_DATE_FIELD_NUMBER: builtins.int
116
+ INVOICE_AMOUNT_FIELD_NUMBER: builtins.int
117
+ STATUS_FIELD_NUMBER: builtins.int
118
+ DUE_DATE_FIELD_NUMBER: builtins.int
119
+ PAID_DATE_FIELD_NUMBER: builtins.int
120
+ id: builtins.str
121
+ invoice_amount: builtins.float
122
+ status: builtins.str
123
+
124
+ @property
125
+ def invoice_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
126
+ ...
127
+
128
+ @property
129
+ def due_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
130
+ ...
131
+
132
+ @property
133
+ def paid_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
134
+ ...
135
+
136
+ def __init__(self, *, id: builtins.str=..., invoice_date: google.protobuf.timestamp_pb2.Timestamp | None=..., invoice_amount: builtins.float=..., status: builtins.str=..., due_date: google.protobuf.timestamp_pb2.Timestamp | None=..., paid_date: google.protobuf.timestamp_pb2.Timestamp | None=...) -> None:
137
+ ...
138
+
139
+ def HasField(self, field_name: typing.Literal['due_date', b'due_date', 'invoice_date', b'invoice_date', 'paid_date', b'paid_date']) -> builtins.bool:
140
+ ...
141
+
142
+ def ClearField(self, field_name: typing.Literal['due_date', b'due_date', 'id', b'id', 'invoice_amount', b'invoice_amount', 'invoice_date', b'invoice_date', 'paid_date', b'paid_date', 'status', b'status']) -> None:
143
+ ...
144
+ global___InvoiceSummary = InvoiceSummary
145
+
146
+ @typing.final
147
+ class PaymentMethodCard(google.protobuf.message.Message):
148
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
149
+ BRAND_FIELD_NUMBER: builtins.int
150
+ LAST_FOUR_DIGITS_FIELD_NUMBER: builtins.int
151
+ brand: builtins.str
152
+ last_four_digits: builtins.str
153
+
154
+ def __init__(self, *, brand: builtins.str=..., last_four_digits: builtins.str=...) -> None:
155
+ ...
156
+
157
+ def ClearField(self, field_name: typing.Literal['brand', b'brand', 'last_four_digits', b'last_four_digits']) -> None:
158
+ ...
159
+ global___PaymentMethodCard = PaymentMethodCard
160
+
161
+ @typing.final
162
+ class GetCurrentMonthUsageRequest(google.protobuf.message.Message):
163
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
164
+ ORG_ID_FIELD_NUMBER: builtins.int
165
+ org_id: builtins.str
166
+
167
+ def __init__(self, *, org_id: builtins.str=...) -> None:
168
+ ...
169
+
170
+ def ClearField(self, field_name: typing.Literal['org_id', b'org_id']) -> None:
171
+ ...
172
+ global___GetCurrentMonthUsageRequest = GetCurrentMonthUsageRequest
173
+
174
+ @typing.final
175
+ class UsageCost(google.protobuf.message.Message):
176
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
177
+ RESOURCE_TYPE_FIELD_NUMBER: builtins.int
178
+ COST_FIELD_NUMBER: builtins.int
179
+ resource_type: global___UsageCostType.ValueType
180
+ cost: builtins.float
181
+
182
+ def __init__(self, *, resource_type: global___UsageCostType.ValueType=..., cost: builtins.float=...) -> None:
183
+ ...
184
+
185
+ def ClearField(self, field_name: typing.Literal['cost', b'cost', 'resource_type', b'resource_type']) -> None:
186
+ ...
187
+ global___UsageCost = UsageCost
188
+
189
+ @typing.final
190
+ class ResourceUsageCostsBySource(google.protobuf.message.Message):
191
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
192
+ SOURCE_TYPE_FIELD_NUMBER: builtins.int
193
+ RESOURCE_USAGE_COSTS_FIELD_NUMBER: builtins.int
194
+ TIER_NAME_FIELD_NUMBER: builtins.int
195
+ source_type: global___SourceType.ValueType
196
+ tier_name: builtins.str
197
+
198
+ @property
199
+ def resource_usage_costs(self) -> global___ResourceUsageCosts:
200
+ ...
201
+
202
+ def __init__(self, *, source_type: global___SourceType.ValueType=..., resource_usage_costs: global___ResourceUsageCosts | None=..., tier_name: builtins.str=...) -> None:
203
+ ...
204
+
205
+ def HasField(self, field_name: typing.Literal['resource_usage_costs', b'resource_usage_costs']) -> builtins.bool:
206
+ ...
207
+
208
+ def ClearField(self, field_name: typing.Literal['resource_usage_costs', b'resource_usage_costs', 'source_type', b'source_type', 'tier_name', b'tier_name']) -> None:
209
+ ...
210
+ global___ResourceUsageCostsBySource = ResourceUsageCostsBySource
211
+
212
+ @typing.final
213
+ class ResourceUsageCosts(google.protobuf.message.Message):
214
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
215
+ USAGE_COSTS_FIELD_NUMBER: builtins.int
216
+ DISCOUNT_FIELD_NUMBER: builtins.int
217
+ TOTAL_WITH_DISCOUNT_FIELD_NUMBER: builtins.int
218
+ TOTAL_WITHOUT_DISCOUNT_FIELD_NUMBER: builtins.int
219
+ discount: builtins.float
220
+ total_with_discount: builtins.float
221
+ total_without_discount: builtins.float
222
+
223
+ @property
224
+ def usage_costs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UsageCost]:
225
+ ...
226
+
227
+ def __init__(self, *, usage_costs: collections.abc.Iterable[global___UsageCost] | None=..., discount: builtins.float=..., total_with_discount: builtins.float=..., total_without_discount: builtins.float=...) -> None:
228
+ ...
229
+
230
+ def ClearField(self, field_name: typing.Literal['discount', b'discount', 'total_with_discount', b'total_with_discount', 'total_without_discount', b'total_without_discount', 'usage_costs', b'usage_costs']) -> None:
231
+ ...
232
+ global___ResourceUsageCosts = ResourceUsageCosts
233
+
234
+ @typing.final
235
+ class GetCurrentMonthUsageResponse(google.protobuf.message.Message):
236
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
237
+ START_DATE_FIELD_NUMBER: builtins.int
238
+ END_DATE_FIELD_NUMBER: builtins.int
239
+ RESOURCE_USAGE_COSTS_BY_SOURCE_FIELD_NUMBER: builtins.int
240
+ SUBTOTAL_FIELD_NUMBER: builtins.int
241
+ CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER: builtins.int
242
+ DATA_UPLOAD_USAGE_COST_FIELD_NUMBER: builtins.int
243
+ DATA_EGRES_USAGE_COST_FIELD_NUMBER: builtins.int
244
+ REMOTE_CONTROL_USAGE_COST_FIELD_NUMBER: builtins.int
245
+ STANDARD_COMPUTE_USAGE_COST_FIELD_NUMBER: builtins.int
246
+ DISCOUNT_AMOUNT_FIELD_NUMBER: builtins.int
247
+ TOTAL_USAGE_WITH_DISCOUNT_FIELD_NUMBER: builtins.int
248
+ TOTAL_USAGE_WITHOUT_DISCOUNT_FIELD_NUMBER: builtins.int
249
+ PER_MACHINE_USAGE_COST_FIELD_NUMBER: builtins.int
250
+ BINARY_DATA_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER: builtins.int
251
+ OTHER_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER: builtins.int
252
+ subtotal: builtins.float
253
+ cloud_storage_usage_cost: builtins.float
254
+ 'all fields below are deprecated'
255
+ data_upload_usage_cost: builtins.float
256
+ data_egres_usage_cost: builtins.float
257
+ remote_control_usage_cost: builtins.float
258
+ standard_compute_usage_cost: builtins.float
259
+ discount_amount: builtins.float
260
+ total_usage_with_discount: builtins.float
261
+ total_usage_without_discount: builtins.float
262
+ per_machine_usage_cost: builtins.float
263
+ binary_data_cloud_storage_usage_cost: builtins.float
264
+ other_cloud_storage_usage_cost: builtins.float
265
+
266
+ @property
267
+ def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
268
+ ...
269
+
270
+ @property
271
+ def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
272
+ ...
273
+
274
+ @property
275
+ def resource_usage_costs_by_source(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceUsageCostsBySource]:
276
+ ...
277
+
278
+ def __init__(self, *, start_date: google.protobuf.timestamp_pb2.Timestamp | None=..., end_date: google.protobuf.timestamp_pb2.Timestamp | None=..., resource_usage_costs_by_source: collections.abc.Iterable[global___ResourceUsageCostsBySource] | None=..., subtotal: builtins.float=..., cloud_storage_usage_cost: builtins.float=..., data_upload_usage_cost: builtins.float=..., data_egres_usage_cost: builtins.float=..., remote_control_usage_cost: builtins.float=..., standard_compute_usage_cost: builtins.float=..., discount_amount: builtins.float=..., total_usage_with_discount: builtins.float=..., total_usage_without_discount: builtins.float=..., per_machine_usage_cost: builtins.float=..., binary_data_cloud_storage_usage_cost: builtins.float=..., other_cloud_storage_usage_cost: builtins.float=...) -> None:
279
+ ...
280
+
281
+ def HasField(self, field_name: typing.Literal['end_date', b'end_date', 'start_date', b'start_date']) -> builtins.bool:
282
+ ...
283
+
284
+ def ClearField(self, field_name: typing.Literal['binary_data_cloud_storage_usage_cost', b'binary_data_cloud_storage_usage_cost', 'cloud_storage_usage_cost', b'cloud_storage_usage_cost', 'data_egres_usage_cost', b'data_egres_usage_cost', 'data_upload_usage_cost', b'data_upload_usage_cost', 'discount_amount', b'discount_amount', 'end_date', b'end_date', 'other_cloud_storage_usage_cost', b'other_cloud_storage_usage_cost', 'per_machine_usage_cost', b'per_machine_usage_cost', 'remote_control_usage_cost', b'remote_control_usage_cost', 'resource_usage_costs_by_source', b'resource_usage_costs_by_source', 'standard_compute_usage_cost', b'standard_compute_usage_cost', 'start_date', b'start_date', 'subtotal', b'subtotal', 'total_usage_with_discount', b'total_usage_with_discount', 'total_usage_without_discount', b'total_usage_without_discount']) -> None:
285
+ ...
286
+ global___GetCurrentMonthUsageResponse = GetCurrentMonthUsageResponse
287
+
288
+ @typing.final
289
+ class GetOrgBillingInformationRequest(google.protobuf.message.Message):
290
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
291
+ ORG_ID_FIELD_NUMBER: builtins.int
292
+ org_id: builtins.str
293
+
294
+ def __init__(self, *, org_id: builtins.str=...) -> None:
295
+ ...
296
+
297
+ def ClearField(self, field_name: typing.Literal['org_id', b'org_id']) -> None:
298
+ ...
299
+ global___GetOrgBillingInformationRequest = GetOrgBillingInformationRequest
300
+
301
+ @typing.final
302
+ class GetOrgBillingInformationResponse(google.protobuf.message.Message):
303
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
304
+ TYPE_FIELD_NUMBER: builtins.int
305
+ BILLING_EMAIL_FIELD_NUMBER: builtins.int
306
+ METHOD_FIELD_NUMBER: builtins.int
307
+ BILLING_TIER_FIELD_NUMBER: builtins.int
308
+ type: global___PaymentMethodType.ValueType
309
+ billing_email: builtins.str
310
+ billing_tier: builtins.str
311
+ 'Only return billing_tier for billing dashboard admin users'
312
+
313
+ @property
314
+ def method(self) -> global___PaymentMethodCard:
315
+ """defined if type is PAYMENT_METHOD_TYPE_CARD"""
316
+
317
+ def __init__(self, *, type: global___PaymentMethodType.ValueType=..., billing_email: builtins.str=..., method: global___PaymentMethodCard | None=..., billing_tier: builtins.str | None=...) -> None:
318
+ ...
319
+
320
+ def HasField(self, field_name: typing.Literal['_billing_tier', b'_billing_tier', '_method', b'_method', 'billing_tier', b'billing_tier', 'method', b'method']) -> builtins.bool:
321
+ ...
322
+
323
+ def ClearField(self, field_name: typing.Literal['_billing_tier', b'_billing_tier', '_method', b'_method', 'billing_email', b'billing_email', 'billing_tier', b'billing_tier', 'method', b'method', 'type', b'type']) -> None:
324
+ ...
325
+
326
+ @typing.overload
327
+ def WhichOneof(self, oneof_group: typing.Literal['_billing_tier', b'_billing_tier']) -> typing.Literal['billing_tier'] | None:
328
+ ...
329
+
330
+ @typing.overload
331
+ def WhichOneof(self, oneof_group: typing.Literal['_method', b'_method']) -> typing.Literal['method'] | None:
332
+ ...
333
+ global___GetOrgBillingInformationResponse = GetOrgBillingInformationResponse
334
+
335
+ @typing.final
336
+ class GetInvoicesSummaryRequest(google.protobuf.message.Message):
337
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
338
+ ORG_ID_FIELD_NUMBER: builtins.int
339
+ org_id: builtins.str
340
+
341
+ def __init__(self, *, org_id: builtins.str=...) -> None:
342
+ ...
343
+
344
+ def ClearField(self, field_name: typing.Literal['org_id', b'org_id']) -> None:
345
+ ...
346
+ global___GetInvoicesSummaryRequest = GetInvoicesSummaryRequest
347
+
348
+ @typing.final
349
+ class GetInvoicesSummaryResponse(google.protobuf.message.Message):
350
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
351
+ OUTSTANDING_BALANCE_FIELD_NUMBER: builtins.int
352
+ INVOICES_FIELD_NUMBER: builtins.int
353
+ outstanding_balance: builtins.float
354
+ 'all unpaid balances at the end of the last billing cycle'
355
+
356
+ @property
357
+ def invoices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InvoiceSummary]:
358
+ """all previous invoices"""
359
+
360
+ def __init__(self, *, outstanding_balance: builtins.float=..., invoices: collections.abc.Iterable[global___InvoiceSummary] | None=...) -> None:
361
+ ...
362
+
363
+ def ClearField(self, field_name: typing.Literal['invoices', b'invoices', 'outstanding_balance', b'outstanding_balance']) -> None:
364
+ ...
365
+ global___GetInvoicesSummaryResponse = GetInvoicesSummaryResponse
366
+
367
+ @typing.final
368
+ class GetInvoicePdfRequest(google.protobuf.message.Message):
369
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
370
+ ID_FIELD_NUMBER: builtins.int
371
+ ORG_ID_FIELD_NUMBER: builtins.int
372
+ id: builtins.str
373
+ org_id: builtins.str
374
+
375
+ def __init__(self, *, id: builtins.str=..., org_id: builtins.str=...) -> None:
376
+ ...
377
+
378
+ def ClearField(self, field_name: typing.Literal['id', b'id', 'org_id', b'org_id']) -> None:
379
+ ...
380
+ global___GetInvoicePdfRequest = GetInvoicePdfRequest
381
+
382
+ @typing.final
383
+ class GetInvoicePdfResponse(google.protobuf.message.Message):
384
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
385
+ CHUNK_FIELD_NUMBER: builtins.int
386
+ chunk: builtins.bytes
387
+
388
+ def __init__(self, *, chunk: builtins.bytes=...) -> None:
389
+ ...
390
+
391
+ def ClearField(self, field_name: typing.Literal['chunk', b'chunk']) -> None:
392
+ ...
393
+ global___GetInvoicePdfResponse = GetInvoicePdfResponse
394
+
395
+ @typing.final
396
+ class SendPaymentRequiredEmailRequest(google.protobuf.message.Message):
397
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
398
+ CUSTOMER_ORG_ID_FIELD_NUMBER: builtins.int
399
+ BILLING_OWNER_ORG_ID_FIELD_NUMBER: builtins.int
400
+ customer_org_id: builtins.str
401
+ billing_owner_org_id: builtins.str
402
+
403
+ def __init__(self, *, customer_org_id: builtins.str=..., billing_owner_org_id: builtins.str=...) -> None:
404
+ ...
405
+
406
+ def ClearField(self, field_name: typing.Literal['billing_owner_org_id', b'billing_owner_org_id', 'customer_org_id', b'customer_org_id']) -> None:
407
+ ...
408
+ global___SendPaymentRequiredEmailRequest = SendPaymentRequiredEmailRequest
409
+
410
+ @typing.final
411
+ class SendPaymentRequiredEmailResponse(google.protobuf.message.Message):
412
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
413
+
414
+ def __init__(self) -> None:
415
+ ...
416
+ global___SendPaymentRequiredEmailResponse = SendPaymentRequiredEmailResponse
417
+
418
+ @typing.final
419
+ class GetAvailableBillingTiersRequest(google.protobuf.message.Message):
420
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
421
+
422
+ def __init__(self) -> None:
423
+ ...
424
+ global___GetAvailableBillingTiersRequest = GetAvailableBillingTiersRequest
425
+
426
+ @typing.final
427
+ class GetAvailableBillingTiersResponse(google.protobuf.message.Message):
428
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
429
+ TIERS_FIELD_NUMBER: builtins.int
430
+
431
+ @property
432
+ def tiers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
433
+ ...
434
+
435
+ def __init__(self, *, tiers: collections.abc.Iterable[builtins.str] | None=...) -> None:
436
+ ...
437
+
438
+ def ClearField(self, field_name: typing.Literal['tiers', b'tiers']) -> None:
439
+ ...
440
+ global___GetAvailableBillingTiersResponse = GetAvailableBillingTiersResponse
441
+
442
+ @typing.final
443
+ class UpdateOrganizationBillingTierRequest(google.protobuf.message.Message):
444
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
445
+ ORGANIZATION_ID_FIELD_NUMBER: builtins.int
446
+ BILLING_TIER_FIELD_NUMBER: builtins.int
447
+ organization_id: builtins.str
448
+ billing_tier: builtins.str
449
+
450
+ def __init__(self, *, organization_id: builtins.str=..., billing_tier: builtins.str=...) -> None:
451
+ ...
452
+
453
+ def ClearField(self, field_name: typing.Literal['billing_tier', b'billing_tier', 'organization_id', b'organization_id']) -> None:
454
+ ...
455
+ global___UpdateOrganizationBillingTierRequest = UpdateOrganizationBillingTierRequest
456
+
457
+ @typing.final
458
+ class UpdateOrganizationBillingTierResponse(google.protobuf.message.Message):
459
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
460
+
461
+ def __init__(self) -> None:
462
+ ...
463
+ global___UpdateOrganizationBillingTierResponse = UpdateOrganizationBillingTierResponse