Skip to content

Commit 63b353e

Browse files
docs(function): clarify UpdateContainer and UpdateFunction behavior (#1201)
Co-authored-by: Laure-di <[email protected]>
1 parent 35ad710 commit 63b353e

File tree

2 files changed

+6
-0
lines changed
  • scaleway-async/scaleway_async/function/v1beta1
  • scaleway/scaleway/function/v1beta1

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ async def update_function(
697697
"""
698698
Update an existing function.
699699
Update the function associated with the specified ID.
700+
701+
When updating a function, the function is automatically redeployed to apply the changes.
702+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
700703
:param function_id: UUID of the function to update.
701704
:param region: Region to target. If none is passed will use default region from the config.
702705
:param environment_variables: Environment variables of the function to update.

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ def update_function(
693693
"""
694694
Update an existing function.
695695
Update the function associated with the specified ID.
696+
697+
When updating a function, the function is automatically redeployed to apply the changes.
698+
This behavior can be changed by setting the `redeploy` field to `false` in the request.
696699
:param function_id: UUID of the function to update.
697700
:param region: Region to target. If none is passed will use default region from the config.
698701
:param environment_variables: Environment variables of the function to update.

0 commit comments

Comments
 (0)