Skip to content

Commit c8ada9b

Browse files
authored
fix(functions): set content length as required (#281)
1 parent fd7717c commit c8ada9b

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

scaleway-async/scaleway_async/function/v1beta1/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ async def get_function_upload_url(
836836
Get an upload URL of a function associated with the specified ID.
837837
:param region: Region to target. If none is passed will use default region from the config.
838838
:param function_id: UUID of the function to get the upload URL for.
839-
:param content_length:
839+
:param content_length: Size of the archive to upload in bytes.
840840
:return: :class:`UploadURL <UploadURL>`
841841
842842
Usage:

scaleway-async/scaleway_async/function/v1beta1/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,9 @@ class GetFunctionUploadURLRequest:
12381238
"""
12391239

12401240
content_length: int
1241+
"""
1242+
Size of the archive to upload in bytes.
1243+
"""
12411244

12421245

12431246
@dataclass

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def get_function_upload_url(
832832
Get an upload URL of a function associated with the specified ID.
833833
:param region: Region to target. If none is passed will use default region from the config.
834834
:param function_id: UUID of the function to get the upload URL for.
835-
:param content_length:
835+
:param content_length: Size of the archive to upload in bytes.
836836
:return: :class:`UploadURL <UploadURL>`
837837
838838
Usage:

scaleway/scaleway/function/v1beta1/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,9 @@ class GetFunctionUploadURLRequest:
12381238
"""
12391239

12401240
content_length: int
1241+
"""
1242+
Size of the archive to upload in bytes.
1243+
"""
12411244

12421245

12431246
@dataclass

0 commit comments

Comments
 (0)