Skip to content

Commit 0070085

Browse files
authored
Merge branch 'main' into v1.6286.0
2 parents e31f216 + 1cdf86a commit 0070085

File tree

10 files changed

+24
-42
lines changed

10 files changed

+24
-42
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class PipelineStatus(str, Enum, metaclass=StrEnumMeta):
183183
ERROR = "error"
184184
PENDING = "pending"
185185
WARNING = "warning"
186+
LOCKED = "locked"
186187

187188
def __str__(self) -> str:
188189
return str(self.value)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class FunctionRuntime(str, Enum, metaclass=StrEnumMeta):
9191
RUST179 = "rust179"
9292
GO123 = "go123"
9393
GO124 = "go124"
94+
PYTHON313 = "python313"
95+
RUST185 = "rust185"
96+
PHP84 = "php84"
9497

9598
def __str__(self) -> str:
9699
return str(self.value)

scaleway-async/scaleway_async/iam/v1alpha1/api.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ async def create_user(
587587
:param email: Email of the user.
588588
One-Of ('type'): at most one of 'email', 'member' could be set.
589589
:param tags: Tags associated with the user.
590-
:param member: Details of IAM member. Private Beta feature.
590+
:param member: Details of IAM member.
591591
One-Of ('type'): at most one of 'email', 'member' could be set.
592592
:return: :class:`User <User>`
593593
@@ -621,7 +621,7 @@ async def update_user_username(
621621
username: str,
622622
) -> User:
623623
"""
624-
Update an user's username. Private Beta feature.
624+
Update an user's username.
625625
:param user_id: ID of the user to update.
626626
:param username: The new username.
627627
:return: :class:`User <User>`
@@ -659,7 +659,7 @@ async def update_user_password(
659659
password: str,
660660
) -> User:
661661
"""
662-
Update an user's password. Private Beta feature.
662+
Update an user's password.
663663
:param user_id: ID of the user to update.
664664
:param password: The new password.
665665
:return: :class:`User <User>`
@@ -696,7 +696,7 @@ async def create_user_mfaotp(
696696
user_id: str,
697697
) -> MFAOTP:
698698
"""
699-
Create a MFA OTP. Private Beta feature.
699+
Create a MFA OTP.
700700
:param user_id: User ID of the MFA OTP.
701701
:return: :class:`MFAOTP <MFAOTP>`
702702
@@ -726,7 +726,7 @@ async def validate_user_mfaotp(
726726
one_time_password: str,
727727
) -> ValidateUserMFAOTPResponse:
728728
"""
729-
Validate a MFA OTP. Private Beta feature.
729+
Validate a MFA OTP.
730730
:param user_id: User ID of the MFA OTP.
731731
:param one_time_password: A password generated using the OTP.
732732
:return: :class:`ValidateUserMFAOTPResponse <ValidateUserMFAOTPResponse>`
@@ -763,7 +763,7 @@ async def delete_user_mfaotp(
763763
user_id: str,
764764
) -> None:
765765
"""
766-
Delete a MFA OTP. Private Beta feature.
766+
Delete a MFA OTP.
767767
:param user_id: User ID of the MFA OTP.
768768
769769
Usage:
@@ -791,7 +791,7 @@ async def lock_user(
791791
) -> User:
792792
"""
793793
Lock a member.
794-
Lock a member. A locked member cannot log in or use API keys until the locked status is removed. Private Beta feature.
794+
Lock a member. A locked member cannot log in or use API keys until the locked status is removed.
795795
:param user_id: ID of the user to lock.
796796
:return: :class:`User <User>`
797797
@@ -821,7 +821,6 @@ async def unlock_user(
821821
) -> User:
822822
"""
823823
Unlock a member.
824-
Unlock a member. Private Beta feature.
825824
:param user_id: ID of the user to unlock.
826825
:return: :class:`User <User>`
827826
@@ -851,7 +850,7 @@ async def list_grace_periods(
851850
) -> ListGracePeriodsResponse:
852851
"""
853852
List grace periods of a member.
854-
List the grace periods of a member. Private Beta feature.
853+
List the grace periods of a member.
855854
:param user_id: ID of the user to list grace periods for.
856855
:return: :class:`ListGracePeriodsResponse <ListGracePeriodsResponse>`
857856

scaleway-async/scaleway_async/inference/v1/marshalling.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ def unmarshal_DeploymentQuantization(data: Any) -> DeploymentQuantization:
167167

168168
args: Dict[str, Any] = {}
169169

170-
field = data.get("enabled", None)
171-
if field is not None:
172-
args["enabled"] = field
173-
174170
field = data.get("bits", None)
175171
if field is not None:
176172
args["bits"] = field
@@ -497,9 +493,6 @@ def marshal_DeploymentQuantization(
497493
) -> Dict[str, Any]:
498494
output: Dict[str, Any] = {}
499495

500-
if request.enabled is not None:
501-
output["enabled"] = request.enabled
502-
503496
if request.bits is not None:
504497
output["bits"] = request.bits
505498

scaleway-async/scaleway_async/inference/v1/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ class ModelSupportedNode:
113113

114114
@dataclass
115115
class DeploymentQuantization:
116-
enabled: bool
117-
"""
118-
Whether to enable quantization for this deployment.
119-
"""
120-
121116
bits: int
122117
"""
123118
The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.

scaleway/scaleway/edge_services/v1beta1/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class PipelineStatus(str, Enum, metaclass=StrEnumMeta):
183183
ERROR = "error"
184184
PENDING = "pending"
185185
WARNING = "warning"
186+
LOCKED = "locked"
186187

187188
def __str__(self) -> str:
188189
return str(self.value)

scaleway/scaleway/function/v1beta1/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class FunctionRuntime(str, Enum, metaclass=StrEnumMeta):
9191
RUST179 = "rust179"
9292
GO123 = "go123"
9393
GO124 = "go124"
94+
PYTHON313 = "python313"
95+
RUST185 = "rust185"
96+
PHP84 = "php84"
9497

9598
def __str__(self) -> str:
9699
return str(self.value)

scaleway/scaleway/iam/v1alpha1/api.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def create_user(
587587
:param email: Email of the user.
588588
One-Of ('type'): at most one of 'email', 'member' could be set.
589589
:param tags: Tags associated with the user.
590-
:param member: Details of IAM member. Private Beta feature.
590+
:param member: Details of IAM member.
591591
One-Of ('type'): at most one of 'email', 'member' could be set.
592592
:return: :class:`User <User>`
593593
@@ -621,7 +621,7 @@ def update_user_username(
621621
username: str,
622622
) -> User:
623623
"""
624-
Update an user's username. Private Beta feature.
624+
Update an user's username.
625625
:param user_id: ID of the user to update.
626626
:param username: The new username.
627627
:return: :class:`User <User>`
@@ -659,7 +659,7 @@ def update_user_password(
659659
password: str,
660660
) -> User:
661661
"""
662-
Update an user's password. Private Beta feature.
662+
Update an user's password.
663663
:param user_id: ID of the user to update.
664664
:param password: The new password.
665665
:return: :class:`User <User>`
@@ -696,7 +696,7 @@ def create_user_mfaotp(
696696
user_id: str,
697697
) -> MFAOTP:
698698
"""
699-
Create a MFA OTP. Private Beta feature.
699+
Create a MFA OTP.
700700
:param user_id: User ID of the MFA OTP.
701701
:return: :class:`MFAOTP <MFAOTP>`
702702
@@ -726,7 +726,7 @@ def validate_user_mfaotp(
726726
one_time_password: str,
727727
) -> ValidateUserMFAOTPResponse:
728728
"""
729-
Validate a MFA OTP. Private Beta feature.
729+
Validate a MFA OTP.
730730
:param user_id: User ID of the MFA OTP.
731731
:param one_time_password: A password generated using the OTP.
732732
:return: :class:`ValidateUserMFAOTPResponse <ValidateUserMFAOTPResponse>`
@@ -763,7 +763,7 @@ def delete_user_mfaotp(
763763
user_id: str,
764764
) -> None:
765765
"""
766-
Delete a MFA OTP. Private Beta feature.
766+
Delete a MFA OTP.
767767
:param user_id: User ID of the MFA OTP.
768768
769769
Usage:
@@ -791,7 +791,7 @@ def lock_user(
791791
) -> User:
792792
"""
793793
Lock a member.
794-
Lock a member. A locked member cannot log in or use API keys until the locked status is removed. Private Beta feature.
794+
Lock a member. A locked member cannot log in or use API keys until the locked status is removed.
795795
:param user_id: ID of the user to lock.
796796
:return: :class:`User <User>`
797797
@@ -821,7 +821,6 @@ def unlock_user(
821821
) -> User:
822822
"""
823823
Unlock a member.
824-
Unlock a member. Private Beta feature.
825824
:param user_id: ID of the user to unlock.
826825
:return: :class:`User <User>`
827826
@@ -851,7 +850,7 @@ def list_grace_periods(
851850
) -> ListGracePeriodsResponse:
852851
"""
853852
List grace periods of a member.
854-
List the grace periods of a member. Private Beta feature.
853+
List the grace periods of a member.
855854
:param user_id: ID of the user to list grace periods for.
856855
:return: :class:`ListGracePeriodsResponse <ListGracePeriodsResponse>`
857856

scaleway/scaleway/inference/v1/marshalling.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ def unmarshal_DeploymentQuantization(data: Any) -> DeploymentQuantization:
167167

168168
args: Dict[str, Any] = {}
169169

170-
field = data.get("enabled", None)
171-
if field is not None:
172-
args["enabled"] = field
173-
174170
field = data.get("bits", None)
175171
if field is not None:
176172
args["bits"] = field
@@ -497,9 +493,6 @@ def marshal_DeploymentQuantization(
497493
) -> Dict[str, Any]:
498494
output: Dict[str, Any] = {}
499495

500-
if request.enabled is not None:
501-
output["enabled"] = request.enabled
502-
503496
if request.bits is not None:
504497
output["bits"] = request.bits
505498

scaleway/scaleway/inference/v1/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ class ModelSupportedNode:
113113

114114
@dataclass
115115
class DeploymentQuantization:
116-
enabled: bool
117-
"""
118-
Whether to enable quantization for this deployment.
119-
"""
120-
121116
bits: int
122117
"""
123118
The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.

0 commit comments

Comments
 (0)