Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/iam/v1alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,9 +107,9 @@
"PermissionSetScopeType",
"UserStatus",
"UserType",
"JWT",
"RuleSpecs",
"CreateUserRequestMember",
"JWT",
"APIKey",
"Application",
"Group",
Expand Down
78 changes: 39 additions & 39 deletions scaleway-async/scaleway_async/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""


Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/iam/v1alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,9 +107,9 @@
"PermissionSetScopeType",
"UserStatus",
"UserType",
"JWT",
"RuleSpecs",
"CreateUserRequestMember",
"JWT",
"APIKey",
"Application",
"Group",
Expand Down
78 changes: 39 additions & 39 deletions scaleway/scaleway/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""


Expand Down