Skip to content

Commit 52acd8c

Browse files
authored
add missing metadata to app client calls (#949)
1 parent b811752 commit 52acd8c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/viam/app/app_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ async def get_organization_metadata(self, org_id: str) -> Mapping[str, Any]:
25762576
Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary
25772577
"""
25782578
request = GetOrganizationMetadataRequest(organization_id=org_id)
2579-
response: GetOrganizationMetadataResponse = await self._app_client.GetOrganizationMetadata(request)
2579+
response: GetOrganizationMetadataResponse = await self._app_client.GetOrganizationMetadata(request, metadata=self._metadata)
25802580
return struct_to_dict(response.data)
25812581

25822582
async def update_organization_metadata(self, org_id: str, metadata: Mapping[str, Any]) -> None:
@@ -2592,7 +2592,7 @@ async def update_organization_metadata(self, org_id: str, metadata: Mapping[str,
25922592
metadata (Mapping[str, Any]): The user-defined metadata to upload as a Python dictionary.
25932593
"""
25942594
request = UpdateOrganizationMetadataRequest(organization_id=org_id, data=dict_to_struct(metadata))
2595-
_: UpdateOrganizationMetadataResponse = await self._app_client.UpdateOrganizationMetadata(request)
2595+
_: UpdateOrganizationMetadataResponse = await self._app_client.UpdateOrganizationMetadata(request, metadata=self._metadata)
25962596

25972597
async def get_location_metadata(self, location_id: str) -> Mapping[str, Any]:
25982598
"""Get a location's user-defined metadata.
@@ -2609,7 +2609,7 @@ async def get_location_metadata(self, location_id: str) -> Mapping[str, Any]:
26092609
Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
26102610
"""
26112611
request = GetLocationMetadataRequest(location_id=location_id)
2612-
response: GetLocationMetadataResponse = await self._app_client.GetLocationMetadata(request)
2612+
response: GetLocationMetadataResponse = await self._app_client.GetLocationMetadata(request, metadata=self._metadata)
26132613
return struct_to_dict(response.data)
26142614

26152615
async def update_location_metadata(self, location_id: str, metadata: Mapping[str, Any]) -> None:
@@ -2625,7 +2625,7 @@ async def update_location_metadata(self, location_id: str, metadata: Mapping[str
26252625
metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
26262626
"""
26272627
request = UpdateLocationMetadataRequest(location_id=location_id, data=dict_to_struct(metadata))
2628-
_: UpdateLocationMetadataResponse = await self._app_client.UpdateLocationMetadata(request)
2628+
_: UpdateLocationMetadataResponse = await self._app_client.UpdateLocationMetadata(request, metadata=self._metadata)
26292629

26302630
async def get_robot_metadata(self, robot_id: str) -> Mapping[str, Any]:
26312631
"""Get a robot's user-defined metadata.
@@ -2642,7 +2642,7 @@ async def get_robot_metadata(self, robot_id: str) -> Mapping[str, Any]:
26422642
Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
26432643
"""
26442644
request = GetRobotMetadataRequest(id=robot_id)
2645-
response: GetRobotMetadataResponse = await self._app_client.GetRobotMetadata(request)
2645+
response: GetRobotMetadataResponse = await self._app_client.GetRobotMetadata(request, metadata=self._metadata)
26462646
return struct_to_dict(response.data)
26472647

26482648
async def update_robot_metadata(self, robot_id: str, metadata: Mapping[str, Any]) -> None:
@@ -2658,7 +2658,7 @@ async def update_robot_metadata(self, robot_id: str, metadata: Mapping[str, Any]
26582658
metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
26592659
"""
26602660
request = UpdateRobotMetadataRequest(id=robot_id, data=dict_to_struct(metadata))
2661-
_: UpdateRobotMetadataResponse = await self._app_client.UpdateRobotMetadata(request)
2661+
_: UpdateRobotMetadataResponse = await self._app_client.UpdateRobotMetadata(request, metadata=self._metadata)
26622662

26632663
async def get_robot_part_metadata(self, robot_part_id: str) -> Mapping[str, Any]:
26642664
"""Get a robot part's user-defined metadata.
@@ -2675,7 +2675,7 @@ async def get_robot_part_metadata(self, robot_part_id: str) -> Mapping[str, Any]
26752675
Mapping[str, Any]: The user-defined metadata converted from JSON to a Python dictionary.
26762676
"""
26772677
request = GetRobotPartMetadataRequest(id=robot_part_id)
2678-
response: GetRobotPartMetadataResponse = await self._app_client.GetRobotPartMetadata(request)
2678+
response: GetRobotPartMetadataResponse = await self._app_client.GetRobotPartMetadata(request, metadata=self._metadata)
26792679
return struct_to_dict(response.data)
26802680

26812681
async def update_robot_part_metadata(self, robot_part_id: str, metadata: Mapping[str, Any]) -> None:
@@ -2691,4 +2691,4 @@ async def update_robot_part_metadata(self, robot_part_id: str, metadata: Mapping
26912691
metadata (Mapping[str, Any]): The user-defined metadata converted from JSON to a Python dictionary.
26922692
"""
26932693
request = UpdateRobotPartMetadataRequest(id=robot_part_id, data=dict_to_struct(metadata))
2694-
_: UpdateRobotPartMetadataResponse = await self._app_client.UpdateRobotPartMetadata(request)
2694+
_: UpdateRobotPartMetadataResponse = await self._app_client.UpdateRobotPartMetadata(request, metadata=self._metadata)

0 commit comments

Comments
 (0)