Skip to content

Commit 99bdc48

Browse files
chore(serverless): deprecate CreateToken (scaleway#1408)
Co-authored-by: esoulard <esoulard@scaleway.com>
1 parent e9f3a58 commit 99bdc48

File tree

4 files changed

+8
-0
lines changed
  • scaleway-async/scaleway_async
  • scaleway/scaleway

4 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@ async def create_token(
14321432
) -> Token:
14331433
"""
14341434
Create a new revocable token.
1435+
Deprecated in favor of IAM authentication.
14351436
:param region: Region to target. If none is passed will use default region from the config.
14361437
:param container_id: UUID of the container to create the token for.
14371438
One-Of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
@@ -1440,6 +1441,7 @@ async def create_token(
14401441
:param description: Description of the token.
14411442
:param expires_at: Expiry date of the token.
14421443
:return: :class:`Token <Token>`
1444+
:deprecated
14431445
14441446
Usage:
14451447
::

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,7 @@ async def create_token(
14851485
) -> Token:
14861486
"""
14871487
Create a new revocable token.
1488+
Deprecated in favor of IAM authentication.
14881489
:param region: Region to target. If none is passed will use default region from the config.
14891490
:param function_id: UUID of the function to associate the token with.
14901491
One-Of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
@@ -1493,6 +1494,7 @@ async def create_token(
14931494
:param description: Description of the token.
14941495
:param expires_at: Date on which the token expires.
14951496
:return: :class:`Token <Token>`
1497+
:deprecated
14961498
14971499
Usage:
14981500
::

scaleway/scaleway/container/v1beta1/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,7 @@ def create_token(
14281428
) -> Token:
14291429
"""
14301430
Create a new revocable token.
1431+
Deprecated in favor of IAM authentication.
14311432
:param region: Region to target. If none is passed will use default region from the config.
14321433
:param container_id: UUID of the container to create the token for.
14331434
One-Of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
@@ -1436,6 +1437,7 @@ def create_token(
14361437
:param description: Description of the token.
14371438
:param expires_at: Expiry date of the token.
14381439
:return: :class:`Token <Token>`
1440+
:deprecated
14391441
14401442
Usage:
14411443
::

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ def create_token(
14811481
) -> Token:
14821482
"""
14831483
Create a new revocable token.
1484+
Deprecated in favor of IAM authentication.
14841485
:param region: Region to target. If none is passed will use default region from the config.
14851486
:param function_id: UUID of the function to associate the token with.
14861487
One-Of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
@@ -1489,6 +1490,7 @@ def create_token(
14891490
:param description: Description of the token.
14901491
:param expires_at: Date on which the token expires.
14911492
:return: :class:`Token <Token>`
1493+
:deprecated
14921494
14931495
Usage:
14941496
::

0 commit comments

Comments
 (0)