Skip to content

Commit dc66421

Browse files
authored
Apply suggestions from code review
1 parent afd3c92 commit dc66421

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/build/program/apis/robot.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,12 +898,15 @@ Returns app-related information about the robot.
898898

899899
**Returns:**
900900

901-
- [viam.proto.robot.GetCloudMetadataResponse](https://python.viam.dev/autoapi/viam/proto/robot/index.html#viam.proto.robot.GetCloudMetadataResponse): App-related metadata.
901+
- [viam.proto.robot.GetCloudMetadataResponse](https://python.viam.dev/autoapi/viam/proto/robot/index.html#viam.proto.robot.GetCloudMetadataResponse): App-related metadata containing the primary org id, location id, and robot part id for a robot running on the Viam app.
902902

903903
For more information, see the [Python SDK Docs](https://python.viam.dev/autoapi/viam/robot/client/index.html#viam.robot.client.RobotClient.get_cloud_metadata).
904904

905905
```python
906906
metadata = robot.get_cloud_metadata()
907+
print(metadata.robot_part_id)
908+
print(metadata.primary_org_id)
909+
print(metadata.location_id)
907910
```
908911

909912
{{% /tab %}}
@@ -915,12 +918,15 @@ metadata = robot.get_cloud_metadata()
915918

916919
**Returns:**
917920

918-
- None.
921+
- [cloud.Metadata](https://pkg.go.dev/go.viam.com/rdk/cloud): App-related metadata containing the primary org id, location id, and robot part id for a robot running on the Viam app.
919922

920923
For more information, see the [Go SDK Docs](https://pkg.go.dev/go.viam.com/rdk/robot#Robot).
921924

922925
```go
923926
metadata := robot.GetCloudMetadata()
927+
fmt.Println(metadata.RobotPartID)
928+
fmt.Println(metadata.PrimaryOrgID)
929+
fmt.Println(metadata.LocationID)
924930
```
925931

926932
{{% /tab %}}

0 commit comments

Comments
 (0)