Skip to content

Commit 1fb03a2

Browse files
authored
chore(serverless): add description to IssueJWT (deprecated method) (#363)
1 parent c0e8afe commit 1fb03a2

File tree

7 files changed

+48
-20
lines changed

7 files changed

+48
-20
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,13 @@ async def issue_jwt(
14021402
expires_at: Optional[datetime] = None,
14031403
) -> Token:
14041404
"""
1405+
Create a JWT token.
1406+
Deprecated in favor of CreateToken.
1407+
:param region: Region to target. If none is passed will use default region from the config.
1408+
:param container_id: One-of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
1409+
:param namespace_id: One-of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
1410+
:param expires_at:
1411+
:return: :class:`Token <Token>`
14051412
:deprecated
14061413
14071414
Usage:

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ class CreateTriggerRequestMnqSqsClientConfig:
359359
Create trigger request. mnq sqs client config.
360360
"""
361361

362-
mnq_namespace_id: Optional[str]
362+
queue: str
363363
"""
364-
:deprecated
364+
Name of the SQS queue the trigger should listen to.
365365
"""
366366

367-
queue: str
367+
mnq_namespace_id: Optional[str]
368368
"""
369-
Name of the SQS queue the trigger should listen to.
369+
:deprecated
370370
"""
371371

372372
mnq_project_id: str
@@ -799,14 +799,14 @@ class TriggerMnqNatsClientConfig:
799799
Trigger. mnq nats client config.
800800
"""
801801

802-
mnq_namespace_id: Optional[str]
802+
subject: str
803803
"""
804-
:deprecated
804+
Name of the NATS subject the trigger listens to.
805805
"""
806806

807-
subject: str
807+
mnq_namespace_id: Optional[str]
808808
"""
809-
Name of the NATS subject the trigger listens to.
809+
:deprecated
810810
"""
811811

812812
mnq_nats_account_id: str

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,13 @@ async def issue_jwt(
14911491
expires_at: Optional[datetime] = None,
14921492
) -> Token:
14931493
"""
1494+
Create a JWT token.
1495+
Deprecated in favor of CreateToken.
1496+
:param region: Region to target. If none is passed will use default region from the config.
1497+
:param function_id: One-of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
1498+
:param namespace_id: One-of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
1499+
:param expires_at:
1500+
:return: :class:`Token <Token>`
14941501
:deprecated
14951502
14961503
Usage:

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -889,14 +889,14 @@ class TriggerMnqNatsClientConfig:
889889
Trigger. mnq nats client config.
890890
"""
891891

892-
subject: str
892+
mnq_namespace_id: Optional[str]
893893
"""
894-
Name of the NATS subject the trigger listens to.
894+
:deprecated
895895
"""
896896

897-
mnq_namespace_id: Optional[str]
897+
subject: str
898898
"""
899-
:deprecated
899+
Name of the NATS subject the trigger listens to.
900900
"""
901901

902902
mnq_nats_account_id: str
@@ -926,14 +926,14 @@ class TriggerMnqSqsClientConfig:
926926
Trigger. mnq sqs client config.
927927
"""
928928

929-
mnq_namespace_id: Optional[str]
929+
queue: str
930930
"""
931-
:deprecated
931+
Name of the SQS queue the trigger listens to.
932932
"""
933933

934-
queue: str
934+
mnq_namespace_id: Optional[str]
935935
"""
936-
Name of the SQS queue the trigger listens to.
936+
:deprecated
937937
"""
938938

939939
mnq_project_id: str

scaleway/scaleway/container/v1beta1/api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,13 @@ def issue_jwt(
13981398
expires_at: Optional[datetime] = None,
13991399
) -> Token:
14001400
"""
1401+
Create a JWT token.
1402+
Deprecated in favor of CreateToken.
1403+
:param region: Region to target. If none is passed will use default region from the config.
1404+
:param container_id: One-of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
1405+
:param namespace_id: One-of ('scope'): at most one of 'container_id', 'namespace_id' could be set.
1406+
:param expires_at:
1407+
:return: :class:`Token <Token>`
14011408
:deprecated
14021409
14031410
Usage:

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,13 @@ def issue_jwt(
14871487
expires_at: Optional[datetime] = None,
14881488
) -> Token:
14891489
"""
1490+
Create a JWT token.
1491+
Deprecated in favor of CreateToken.
1492+
:param region: Region to target. If none is passed will use default region from the config.
1493+
:param function_id: One-of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
1494+
:param namespace_id: One-of ('scope'): at most one of 'function_id', 'namespace_id' could be set.
1495+
:param expires_at:
1496+
:return: :class:`Token <Token>`
14901497
:deprecated
14911498
14921499
Usage:

scaleway/scaleway/function/v1beta1/types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -926,14 +926,14 @@ class TriggerMnqSqsClientConfig:
926926
Trigger. mnq sqs client config.
927927
"""
928928

929-
mnq_namespace_id: Optional[str]
929+
queue: str
930930
"""
931-
:deprecated
931+
Name of the SQS queue the trigger listens to.
932932
"""
933933

934-
queue: str
934+
mnq_namespace_id: Optional[str]
935935
"""
936-
Name of the SQS queue the trigger listens to.
936+
:deprecated
937937
"""
938938

939939
mnq_project_id: str

0 commit comments

Comments
 (0)