80
80
GetRobotPartsResponse ,
81
81
GetRobotRequest ,
82
82
GetRobotResponse ,
83
+ GetRobotMetadataRequest ,
84
+ GetRobotMetadataResponse ,
83
85
GetRoverRentalRobotsRequest ,
84
86
GetRoverRentalRobotsResponse ,
85
87
GetUserIDByEmailRequest ,
@@ -2554,7 +2556,7 @@ async def get_location_metadata(self, location_id: str) -> Mapping[str, Any]:
2554
2556
metadata = await cloud.get_location_metadata(location_id="<YOUR-LOCATION-ID>")
2555
2557
2556
2558
Args:
2557
- org_id (str): The ID of the location with which the user-defined metadata is associated.
2559
+ location_id (str): The ID of the location with which the user-defined metadata is associated.
2558
2560
You can obtain your location ID from the Viam app's locations page.
2559
2561
2560
2562
Returns:
@@ -2563,3 +2565,21 @@ async def get_location_metadata(self, location_id: str) -> Mapping[str, Any]:
2563
2565
request = GetLocationMetadataRequest (location_id = location_id )
2564
2566
response : GetLocationMetadataResponse = await self ._app_client .GetLocationMetadata (request )
2565
2567
return struct_to_dict (response .data )
2568
+
2569
+ async def get_robot_metadata (self , robot_id : str ) -> Mapping [str , Any ]:
2570
+ """Get a robot's user-defined metadata.
2571
+
2572
+ ::
2573
+
2574
+ metadata = await cloud.get_robot_metadata(robot_id="<YOUR-ROBOT-ID>")
2575
+
2576
+ Args:
2577
+ robot_id (str): The ID of the robot with which the user-defined metadata is associated.
2578
+ You can obtain your robot ID from the Viam app's machine page.
2579
+
2580
+ Returns:
2581
+ Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary
2582
+ """
2583
+ request = GetRobotMetadataRequest (id = robot_id )
2584
+ response : GetRobotMetadataResponse = await self ._app_client .GetRobotMetadata (request )
2585
+ return struct_to_dict (response .data )
0 commit comments