From 258a1c1ad327dbc4c4f2caf60abfbb8749ac1d62 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 15 Oct 2024 15:13:03 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/iam/v1alpha1/__init__.py | 4 +- .../scaleway_async/iam/v1alpha1/types.py | 78 +++++++++---------- scaleway/scaleway/iam/v1alpha1/__init__.py | 4 +- scaleway/scaleway/iam/v1alpha1/types.py | 78 +++++++++---------- 4 files changed, 82 insertions(+), 82 deletions(-) diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/__init__.py b/scaleway-async/scaleway_async/iam/v1alpha1/__init__.py index 8684d85c1..fa5cccbeb 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/__init__.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/__init__.py @@ -16,9 +16,9 @@ from .types import PermissionSetScopeType from .types import UserStatus from .types import UserType +from .types import JWT from .types import RuleSpecs from .types import CreateUserRequestMember -from .types import JWT from .types import APIKey from .types import Application from .types import Group @@ -107,9 +107,9 @@ "PermissionSetScopeType", "UserStatus", "UserType", + "JWT", "RuleSpecs", "CreateUserRequestMember", - "JWT", "APIKey", "Application", "Group", diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/types.py b/scaleway-async/scaleway_async/iam/v1alpha1/types.py index 1a7e65e2b..7b5a9f8f5 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/types.py @@ -183,85 +183,85 @@ def __str__(self) -> str: @dataclass -class RuleSpecs: - condition: str +class JWT: + jti: str """ - Condition expression to evaluate. + JWT ID. """ - permission_set_names: Optional[List[str]] + issuer_id: str """ - Names of permission sets bound to the rule. + ID of the user who issued the JWT. """ - project_ids: Optional[List[str]] - - organization_id: Optional[str] - - -@dataclass -class CreateUserRequestMember: - email: str + audience_id: str """ - Email of the user to create. + ID of the user targeted by the JWT. """ - send_password_email: bool + ip: str """ - Whether or not to send an email containing the member's password. + IP address used during the creation of the JWT. """ - username: str + user_agent: str """ - The member's username. + User-agent used during the creation of the JWT. """ - password: str + created_at: Optional[datetime] """ - The member's password. + Creation date of the JWT. """ - -@dataclass -class JWT: - jti: str + updated_at: Optional[datetime] """ - JWT ID. + Last update date of the JWT. """ - issuer_id: str + expires_at: Optional[datetime] """ - ID of the user who issued the JWT. + Expiration date of the JWT. """ - audience_id: str + +@dataclass +class RuleSpecs: + condition: str """ - ID of the user targeted by the JWT. + Condition expression to evaluate. """ - ip: str + permission_set_names: Optional[List[str]] """ - IP address used during the creation of the JWT. + Names of permission sets bound to the rule. """ - user_agent: str + project_ids: Optional[List[str]] + + organization_id: Optional[str] + + +@dataclass +class CreateUserRequestMember: + email: str """ - User-agent used during the creation of the JWT. + Email of the user to create. """ - created_at: Optional[datetime] + send_password_email: bool """ - Creation date of the JWT. + Whether or not to send an email containing the member's password. """ - updated_at: Optional[datetime] + username: str """ - Last update date of the JWT. + The member's username. """ - expires_at: Optional[datetime] + password: str """ - Expiration date of the JWT. + The member's password. """ diff --git a/scaleway/scaleway/iam/v1alpha1/__init__.py b/scaleway/scaleway/iam/v1alpha1/__init__.py index 8684d85c1..fa5cccbeb 100644 --- a/scaleway/scaleway/iam/v1alpha1/__init__.py +++ b/scaleway/scaleway/iam/v1alpha1/__init__.py @@ -16,9 +16,9 @@ from .types import PermissionSetScopeType from .types import UserStatus from .types import UserType +from .types import JWT from .types import RuleSpecs from .types import CreateUserRequestMember -from .types import JWT from .types import APIKey from .types import Application from .types import Group @@ -107,9 +107,9 @@ "PermissionSetScopeType", "UserStatus", "UserType", + "JWT", "RuleSpecs", "CreateUserRequestMember", - "JWT", "APIKey", "Application", "Group", diff --git a/scaleway/scaleway/iam/v1alpha1/types.py b/scaleway/scaleway/iam/v1alpha1/types.py index 1a7e65e2b..7b5a9f8f5 100644 --- a/scaleway/scaleway/iam/v1alpha1/types.py +++ b/scaleway/scaleway/iam/v1alpha1/types.py @@ -183,85 +183,85 @@ def __str__(self) -> str: @dataclass -class RuleSpecs: - condition: str +class JWT: + jti: str """ - Condition expression to evaluate. + JWT ID. """ - permission_set_names: Optional[List[str]] + issuer_id: str """ - Names of permission sets bound to the rule. + ID of the user who issued the JWT. """ - project_ids: Optional[List[str]] - - organization_id: Optional[str] - - -@dataclass -class CreateUserRequestMember: - email: str + audience_id: str """ - Email of the user to create. + ID of the user targeted by the JWT. """ - send_password_email: bool + ip: str """ - Whether or not to send an email containing the member's password. + IP address used during the creation of the JWT. """ - username: str + user_agent: str """ - The member's username. + User-agent used during the creation of the JWT. """ - password: str + created_at: Optional[datetime] """ - The member's password. + Creation date of the JWT. """ - -@dataclass -class JWT: - jti: str + updated_at: Optional[datetime] """ - JWT ID. + Last update date of the JWT. """ - issuer_id: str + expires_at: Optional[datetime] """ - ID of the user who issued the JWT. + Expiration date of the JWT. """ - audience_id: str + +@dataclass +class RuleSpecs: + condition: str """ - ID of the user targeted by the JWT. + Condition expression to evaluate. """ - ip: str + permission_set_names: Optional[List[str]] """ - IP address used during the creation of the JWT. + Names of permission sets bound to the rule. """ - user_agent: str + project_ids: Optional[List[str]] + + organization_id: Optional[str] + + +@dataclass +class CreateUserRequestMember: + email: str """ - User-agent used during the creation of the JWT. + Email of the user to create. """ - created_at: Optional[datetime] + send_password_email: bool """ - Creation date of the JWT. + Whether or not to send an email containing the member's password. """ - updated_at: Optional[datetime] + username: str """ - Last update date of the JWT. + The member's username. """ - expires_at: Optional[datetime] + password: str """ - Expiration date of the JWT. + The member's password. """