File tree Expand file tree Collapse file tree
scaleway-async/scaleway_async/iam/v1alpha1
scaleway/scaleway/iam/v1alpha1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 SamlCertificateOrigin ,
2222 SamlCertificateType ,
2323 SamlStatus ,
24- UserStatus ,
2524 UserType ,
2625 JWT ,
2726 APIKey ,
@@ -685,13 +684,13 @@ def unmarshal_Quotum(data: Any) -> Quotum:
685684 if field is not None :
686685 args ["limit" ] = field
687686 else :
688- args ["limit" ] = 0
687+ args ["limit" ] = None
689688
690689 field = data .get ("unlimited" , None )
691690 if field is not None :
692691 args ["unlimited" ] = field
693692 else :
694- args ["unlimited" ] = False
693+ args ["unlimited" ] = None
695694
696695 return Quotum (** args )
697696
@@ -927,18 +926,6 @@ def unmarshal_User(data: Any) -> User:
927926 else :
928927 args ["type_" ] = UserType .UNKNOWN_TYPE
929928
930- field = data .get ("two_factor_enabled" , None )
931- if field is not None :
932- args ["two_factor_enabled" ] = field
933- else :
934- args ["two_factor_enabled" ] = False
935-
936- field = data .get ("status" , None )
937- if field is not None :
938- args ["status" ] = field
939- else :
940- args ["status" ] = UserStatus .UNKNOWN_STATUS
941-
942929 field = data .get ("mfa" , None )
943930 if field is not None :
944931 args ["mfa" ] = field
@@ -963,6 +950,18 @@ def unmarshal_User(data: Any) -> User:
963950 else :
964951 args ["locked" ] = False
965952
953+ field = data .get ("two_factor_enabled" , None )
954+ if field is not None :
955+ args ["two_factor_enabled" ] = field
956+ else :
957+ args ["two_factor_enabled" ] = None
958+
959+ field = data .get ("status" , None )
960+ if field is not None :
961+ args ["status" ] = field
962+ else :
963+ args ["status" ] = None
964+
966965 return User (** args )
967966
968967
Original file line number Diff line number Diff line change @@ -792,9 +792,9 @@ class Quotum:
792792 Limits per locality.
793793 """
794794
795- limit : Optional [int ] = 0
795+ limit : Optional [int ] = None
796796
797- unlimited : Optional [bool ] = False
797+ unlimited : Optional [bool ] = None
798798
799799
800800@dataclass
@@ -977,16 +977,6 @@ class User:
977977 Type of user.
978978 """
979979
980- two_factor_enabled : bool
981- """
982- Deprecated, use "mfa" instead.
983- """
984-
985- status : UserStatus
986- """
987- Status of user invitation.
988- """
989-
990980 mfa : bool
991981 """
992982 Defines whether MFA is enabled.
@@ -1022,6 +1012,16 @@ class User:
10221012 Date of the last login.
10231013 """
10241014
1015+ two_factor_enabled : Optional [bool ] = None
1016+ """
1017+ Deprecated, use "mfa" instead.
1018+ """
1019+
1020+ status : Optional [UserStatus ] = None
1021+ """
1022+ Status of user invitation.
1023+ """
1024+
10251025
10261026@dataclass
10271027class SamlServiceProvider :
Original file line number Diff line number Diff line change 2121 SamlCertificateOrigin ,
2222 SamlCertificateType ,
2323 SamlStatus ,
24- UserStatus ,
2524 UserType ,
2625 JWT ,
2726 APIKey ,
@@ -685,13 +684,13 @@ def unmarshal_Quotum(data: Any) -> Quotum:
685684 if field is not None :
686685 args ["limit" ] = field
687686 else :
688- args ["limit" ] = 0
687+ args ["limit" ] = None
689688
690689 field = data .get ("unlimited" , None )
691690 if field is not None :
692691 args ["unlimited" ] = field
693692 else :
694- args ["unlimited" ] = False
693+ args ["unlimited" ] = None
695694
696695 return Quotum (** args )
697696
@@ -927,18 +926,6 @@ def unmarshal_User(data: Any) -> User:
927926 else :
928927 args ["type_" ] = UserType .UNKNOWN_TYPE
929928
930- field = data .get ("two_factor_enabled" , None )
931- if field is not None :
932- args ["two_factor_enabled" ] = field
933- else :
934- args ["two_factor_enabled" ] = False
935-
936- field = data .get ("status" , None )
937- if field is not None :
938- args ["status" ] = field
939- else :
940- args ["status" ] = UserStatus .UNKNOWN_STATUS
941-
942929 field = data .get ("mfa" , None )
943930 if field is not None :
944931 args ["mfa" ] = field
@@ -963,6 +950,18 @@ def unmarshal_User(data: Any) -> User:
963950 else :
964951 args ["locked" ] = False
965952
953+ field = data .get ("two_factor_enabled" , None )
954+ if field is not None :
955+ args ["two_factor_enabled" ] = field
956+ else :
957+ args ["two_factor_enabled" ] = None
958+
959+ field = data .get ("status" , None )
960+ if field is not None :
961+ args ["status" ] = field
962+ else :
963+ args ["status" ] = None
964+
966965 return User (** args )
967966
968967
Original file line number Diff line number Diff line change @@ -792,9 +792,9 @@ class Quotum:
792792 Limits per locality.
793793 """
794794
795- limit : Optional [int ] = 0
795+ limit : Optional [int ] = None
796796
797- unlimited : Optional [bool ] = False
797+ unlimited : Optional [bool ] = None
798798
799799
800800@dataclass
@@ -977,16 +977,6 @@ class User:
977977 Type of user.
978978 """
979979
980- two_factor_enabled : bool
981- """
982- Deprecated, use "mfa" instead.
983- """
984-
985- status : UserStatus
986- """
987- Status of user invitation.
988- """
989-
990980 mfa : bool
991981 """
992982 Defines whether MFA is enabled.
@@ -1022,6 +1012,16 @@ class User:
10221012 Date of the last login.
10231013 """
10241014
1015+ two_factor_enabled : Optional [bool ] = None
1016+ """
1017+ Deprecated, use "mfa" instead.
1018+ """
1019+
1020+ status : Optional [UserStatus ] = None
1021+ """
1022+ Status of user invitation.
1023+ """
1024+
10251025
10261026@dataclass
10271027class SamlServiceProvider :
You can’t perform that action at this time.
0 commit comments