Skip to content

Commit 2d07455

Browse files
release/v0.62.0 (#1049)
Co-authored-by: njooma <njooma@users.noreply.github.com>
1 parent 75c36f4 commit 2d07455

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

src/viam/app/data_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,9 +2187,7 @@ async def create_binary_data_signed_url(
21872187
request = CreateBinaryDataSignedURLRequest(binary_data_id=binary_data_id)
21882188
if expiration_minutes is not None:
21892189
request.expiration_minutes = expiration_minutes
2190-
response: CreateBinaryDataSignedURLResponse = await self._data_client.CreateBinaryDataSignedURL(
2191-
request, metadata=self._metadata
2192-
)
2190+
response: CreateBinaryDataSignedURLResponse = await self._data_client.CreateBinaryDataSignedURL(request, metadata=self._metadata)
21932191
return response.signed_url, response.expires_at.ToDatetime()
21942192

21952193
@staticmethod

src/viam/version_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.61.0"
1+
__version__ = "0.62.0"
22

33
API_VERSION = "v0.1.495"
44
SDK_VERSION = __version__

tests/mocks/services.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,7 @@ async def DeleteIndex(self, stream: Stream[DeleteIndexRequest, DeleteIndexRespon
10981098
self.delete_index_request = request
10991099
await stream.send_message(DeleteIndexResponse())
11001100

1101-
async def CreateBinaryDataSignedURL(
1102-
self, stream: Stream[CreateBinaryDataSignedURLRequest, CreateBinaryDataSignedURLResponse]
1103-
) -> None:
1101+
async def CreateBinaryDataSignedURL(self, stream: Stream[CreateBinaryDataSignedURLRequest, CreateBinaryDataSignedURLResponse]) -> None:
11041102
from google.protobuf.timestamp_pb2 import Timestamp
11051103

11061104
request = await stream.recv_message()
@@ -1109,9 +1107,7 @@ async def CreateBinaryDataSignedURL(
11091107
self.expiration_minutes = request.expiration_minutes if request.HasField("expiration_minutes") else None
11101108
expires_at = Timestamp()
11111109
expires_at.FromDatetime(datetime(2024, 12, 25, 12, 0, 0))
1112-
await stream.send_message(
1113-
CreateBinaryDataSignedURLResponse(signed_url="https://example.com/signed-url", expires_at=expires_at)
1114-
)
1110+
await stream.send_message(CreateBinaryDataSignedURLResponse(signed_url="https://example.com/signed-url", expires_at=expires_at))
11151111

11161112

11171113
class MockDataset(DatasetServiceBase):

0 commit comments

Comments
 (0)