142
142
UnshareLocationRequest ,
143
143
UpdateFragmentRequest ,
144
144
UpdateFragmentResponse ,
145
+ UpdateLocationMetadataRequest ,
146
+ UpdateLocationMetadataResponse ,
145
147
UpdateLocationRequest ,
146
148
UpdateLocationResponse ,
147
149
UpdateModuleRequest ,
148
150
UpdateModuleResponse ,
149
151
UpdateOrganizationInviteAuthorizationsRequest ,
150
152
UpdateOrganizationInviteAuthorizationsResponse ,
153
+ UpdateOrganizationMetadataRequest ,
154
+ UpdateOrganizationMetadataResponse ,
151
155
UpdateOrganizationRequest ,
152
156
UpdateOrganizationResponse ,
153
157
UpdateRegistryItemRequest ,
158
+ UpdateRobotMetadataRequest ,
159
+ UpdateRobotMetadataResponse ,
160
+ UpdateRobotPartMetadataRequest ,
161
+ UpdateRobotPartMetadataResponse ,
154
162
UpdateRobotPartRequest ,
155
163
UpdateRobotPartResponse ,
156
164
UpdateRobotRequest ,
@@ -2550,6 +2558,21 @@ async def get_organization_metadata(self, org_id: str) -> Mapping[str, Any]:
2550
2558
response : GetOrganizationMetadataResponse = await self ._app_client .GetOrganizationMetadata (request )
2551
2559
return struct_to_dict (response .data )
2552
2560
2561
+ async def update_organization_metadata (self , org_id : str , metadata : Mapping [str , Any ]) -> None :
2562
+ """Update an organization's user-defined metadata.
2563
+
2564
+ ::
2565
+
2566
+ await cloud.update_organization_metadata(org_id="<YOUR-ORG-ID>", metadata=)
2567
+
2568
+ Args:
2569
+ organization_id (str): The ID of the organization with which to associate the user-defined metadata.
2570
+ You can obtain your organization ID from the Viam app's organization settings page.
2571
+ metadata (Mapping[str, Any]): The user-defined metadata to upload as a Python dictionary.
2572
+ """
2573
+ request = UpdateOrganizationMetadataRequest (organization_id = org_id , data = dict_to_struct (metadata ))
2574
+ _ : UpdateOrganizationMetadataResponse = await self ._app_client .UpdateOrganizationMetadata (request )
2575
+
2553
2576
async def get_location_metadata (self , location_id : str ) -> Mapping [str , Any ]:
2554
2577
"""Get a location's user-defined metadata.
2555
2578
@@ -2562,12 +2585,27 @@ async def get_location_metadata(self, location_id: str) -> Mapping[str, Any]:
2562
2585
You can obtain your location ID from the Viam app's locations page.
2563
2586
2564
2587
Returns:
2565
- Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary
2588
+ Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
2566
2589
"""
2567
2590
request = GetLocationMetadataRequest (location_id = location_id )
2568
2591
response : GetLocationMetadataResponse = await self ._app_client .GetLocationMetadata (request )
2569
2592
return struct_to_dict (response .data )
2570
2593
2594
+ async def update_location_metadata (self , location_id : str , metadata : Mapping [str , Any ]) -> None :
2595
+ """Update a location's user-defined metadata.
2596
+
2597
+ ::
2598
+
2599
+ await cloud.update_location_metadata(location_id="<YOUR-LOCATION-ID>", metadata=)
2600
+
2601
+ Args:
2602
+ location_id (str): The ID of the location with which to associate the user-defined metadata.
2603
+ You can obtain your location ID from the Viam app's locations page.
2604
+ metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
2605
+ """
2606
+ request = UpdateLocationMetadataRequest (location_id = location_id , data = dict_to_struct (metadata ))
2607
+ _ : UpdateLocationMetadataResponse = await self ._app_client .UpdateLocationMetadata (request )
2608
+
2571
2609
async def get_robot_metadata (self , robot_id : str ) -> Mapping [str , Any ]:
2572
2610
"""Get a robot's user-defined metadata.
2573
2611
@@ -2580,12 +2618,27 @@ async def get_robot_metadata(self, robot_id: str) -> Mapping[str, Any]:
2580
2618
You can obtain your robot ID from the Viam app's machine page.
2581
2619
2582
2620
Returns:
2583
- Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary
2621
+ Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
2584
2622
"""
2585
2623
request = GetRobotMetadataRequest (id = robot_id )
2586
2624
response : GetRobotMetadataResponse = await self ._app_client .GetRobotMetadata (request )
2587
2625
return struct_to_dict (response .data )
2588
2626
2627
+ async def update_robot_metadata (self , robot_id : str , metadata : Mapping [str , Any ]) -> None :
2628
+ """Update a robot's user-defined metadata.
2629
+
2630
+ ::
2631
+
2632
+ await cloud.update_robot_metadata(robot_id="<YOUR-ROBOT-ID>", metadata=)
2633
+
2634
+ Args:
2635
+ robot_id (str): The ID of the robot with which to associate the user-defined metadata.
2636
+ You can obtain your robot ID from the Viam app's machine page.
2637
+ metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
2638
+ """
2639
+ request = UpdateRobotMetadataRequest (id = robot_id , data = dict_to_struct (metadata ))
2640
+ _ : UpdateRobotMetadataResponse = await self ._app_client .UpdateRobotMetadata (request )
2641
+
2589
2642
async def get_robot_part_metadata (self , robot_part_id : str ) -> Mapping [str , Any ]:
2590
2643
"""Get a robot part's user-defined metadata.
2591
2644
@@ -2595,11 +2648,26 @@ async def get_robot_part_metadata(self, robot_part_id: str) -> Mapping[str, Any]
2595
2648
2596
2649
Args:
2597
2650
robot_part_id (str): The ID of the robot part with which the user-defined metadata is associated.
2598
- You can obtain your robot ID from the Viam app's machine page.
2651
+ You can obtain your robot part ID from the Viam app's machine page.
2599
2652
2600
2653
Returns:
2601
- Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary
2654
+ Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
2602
2655
"""
2603
2656
request = GetRobotPartMetadataRequest (id = robot_part_id )
2604
2657
response : GetRobotPartMetadataResponse = await self ._app_client .GetRobotPartMetadata (request )
2605
2658
return struct_to_dict (response .data )
2659
+
2660
+ async def update_robot_part_metadata (self , robot_part_id : str , metadata : Mapping [str , Any ]) -> None :
2661
+ """Update a robot part's user-defined metadata.
2662
+
2663
+ ::
2664
+
2665
+ await cloud.update_robot_part_metadata(robot_part_id="<YOUR-ROBOT-PART-ID>", metadata=)
2666
+
2667
+ Args:
2668
+ robot_id (str): The ID of the robot part with which to associate the user-defined metadata.
2669
+ You can obtain your robot part ID from the Viam app's machine page.
2670
+ metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
2671
+ """
2672
+ request = UpdateRobotPartMetadataRequest (id = robot_part_id , data = dict_to_struct (metadata ))
2673
+ _ : UpdateRobotPartMetadataResponse = await self ._app_client .UpdateRobotPartMetadata (request )
0 commit comments