Skip to content

Commit 9c8bea9

Browse files
authored
Merge branch 'main' into v1.6876.0
2 parents b1541ea + 7a940c2 commit 9c8bea9

File tree

39 files changed

+2755
-605
lines changed

39 files changed

+2755
-605
lines changed

scaleway-async/poetry.lock

Lines changed: 69 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway-async/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ scaleway-core = "*"
2828

2929
[tool.poetry.group.dev.dependencies]
3030
scaleway-core = { path = "../scaleway-core", develop = true }
31-
ruff = ">=0.5.0,<0.12.5"
31+
ruff = ">=0.5.0,<0.12.9"
3232
mypy = "^1.5.1"
3333
ty = "^0.0.1a15"
34-
pyrefly = "^0.24.2"
34+
pyrefly = ">=0.24.2,<0.27.0"
3535

3636
[build-system]
3737
requires = ["poetry-core"]
@@ -42,6 +42,7 @@ ignore = ["E501"]
4242
select = [
4343
"ASYNC", # https://docs.astral.sh/ruff/rules/#flake8-async-async
4444
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
45+
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
4546
"ERA", # https://docs.astral.sh/ruff/rules/#eradicate-era
4647
"EXE",# https://docs.astral.sh/ruff/rules/#flake8-executable-exe
4748
"F",# https://docs.astral.sh/ruff/rules/#pyflakes-f

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
DeploymentStatus.CREATING,
1212
DeploymentStatus.DEPLOYING,
1313
DeploymentStatus.DELETING,
14+
DeploymentStatus.SCALING,
1415
]
1516
"""
1617
Lists transient statutes of the enum :class:`DeploymentStatus <DeploymentStatus>`.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DeploymentStatus(str, Enum, metaclass=StrEnumMeta):
2323
ERROR = "error"
2424
DELETING = "deleting"
2525
LOCKED = "locked"
26+
SCALING = "scaling"
2627

2728
def __str__(self) -> str:
2829
return str(self.value)

scaleway-async/scaleway_async/inference/v1beta1/content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
DeploymentStatus.CREATING,
1111
DeploymentStatus.DEPLOYING,
1212
DeploymentStatus.DELETING,
13+
DeploymentStatus.SCALING,
1314
]
1415
"""
1516
Lists transient statutes of the enum :class:`DeploymentStatus <DeploymentStatus>`.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DeploymentStatus(str, Enum, metaclass=StrEnumMeta):
2323
ERROR = "error"
2424
DELETING = "deleting"
2525
LOCKED = "locked"
26+
SCALING = "scaling"
2627

2728
def __str__(self) -> str:
2829
return str(self.value)

scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .types import PublicCatalogProductPropertiesElasticMetal
1818
from .types import PublicCatalogProductPropertiesHardware
1919
from .types import PublicCatalogProductPropertiesInstance
20+
from .types import PublicCatalogProductPropertiesObjectStorage
2021
from .types import PublicCatalogProductEnvironmentalImpactEstimation
2122
from .types import PublicCatalogProductLocality
2223
from .types import PublicCatalogProductPrice
@@ -45,6 +46,7 @@
4546
"PublicCatalogProductPropertiesElasticMetal",
4647
"PublicCatalogProductPropertiesHardware",
4748
"PublicCatalogProductPropertiesInstance",
49+
"PublicCatalogProductPropertiesObjectStorage",
4850
"PublicCatalogProductEnvironmentalImpactEstimation",
4951
"PublicCatalogProductLocality",
5052
"PublicCatalogProductPrice",

scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
PublicCatalogProductPropertiesElasticMetal,
2222
PublicCatalogProductPropertiesHardware,
2323
PublicCatalogProductPropertiesInstance,
24+
PublicCatalogProductPropertiesObjectStorage,
2425
PublicCatalogProductEnvironmentalImpactEstimation,
2526
PublicCatalogProductLocality,
2627
PublicCatalogProductPrice,
@@ -256,10 +257,14 @@ def unmarshal_PublicCatalogProductPropertiesBlockStorage(
256257
field = data.get("min_volume_size", None)
257258
if field is not None:
258259
args["min_volume_size"] = field
260+
else:
261+
args["min_volume_size"] = None
259262

260263
field = data.get("max_volume_size", None)
261264
if field is not None:
262265
args["max_volume_size"] = field
266+
else:
267+
args["max_volume_size"] = None
263268

264269
return PublicCatalogProductPropertiesBlockStorage(**args)
265270

@@ -366,6 +371,19 @@ def unmarshal_PublicCatalogProductPropertiesInstance(
366371
return PublicCatalogProductPropertiesInstance(**args)
367372

368373

374+
def unmarshal_PublicCatalogProductPropertiesObjectStorage(
375+
data: Any,
376+
) -> PublicCatalogProductPropertiesObjectStorage:
377+
if not isinstance(data, dict):
378+
raise TypeError(
379+
"Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorage' failed as data isn't a dictionary."
380+
)
381+
382+
args: Dict[str, Any] = {}
383+
384+
return PublicCatalogProductPropertiesObjectStorage(**args)
385+
386+
369387
def unmarshal_PublicCatalogProductEnvironmentalImpactEstimation(
370388
data: Any,
371389
) -> PublicCatalogProductEnvironmentalImpactEstimation:
@@ -495,6 +513,14 @@ def unmarshal_PublicCatalogProductProperties(
495513
else:
496514
args["block_storage"] = None
497515

516+
field = data.get("object_storage", None)
517+
if field is not None:
518+
args["object_storage"] = unmarshal_PublicCatalogProductPropertiesObjectStorage(
519+
field
520+
)
521+
else:
522+
args["object_storage"] = None
523+
498524
return PublicCatalogProductProperties(**args)
499525

500526

scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe
2424
ELASTIC_METAL = "elastic_metal"
2525
DEDIBOX = "dedibox"
2626
BLOCK_STORAGE = "block_storage"
27+
OBJECT_STORAGE = "object_storage"
2728

2829
def __str__(self) -> str:
2930
return str(self.value)
@@ -230,14 +231,14 @@ class PublicCatalogProductPropertiesAppleSilicon:
230231

231232
@dataclass
232233
class PublicCatalogProductPropertiesBlockStorage:
233-
min_volume_size: int
234+
min_volume_size: Optional[int]
234235
"""
235-
The minimum size of storage volume for this product in bytes.
236+
The minimum size of storage volume for this product in bytes. Deprecated.
236237
"""
237238

238-
max_volume_size: int
239+
max_volume_size: Optional[int]
239240
"""
240-
The maximum size of storage volume for this product in bytes.
241+
The maximum size of storage volume for this product in bytes. Deprecated.
241242
"""
242243

243244

@@ -303,6 +304,11 @@ class PublicCatalogProductPropertiesInstance:
303304
"""
304305

305306

307+
@dataclass
308+
class PublicCatalogProductPropertiesObjectStorage:
309+
pass
310+
311+
306312
@dataclass
307313
class PublicCatalogProductEnvironmentalImpactEstimation:
308314
kg_co2_equivalent: Optional[float]
@@ -346,6 +352,8 @@ class PublicCatalogProductProperties:
346352

347353
block_storage: Optional[PublicCatalogProductPropertiesBlockStorage]
348354

355+
object_storage: Optional[PublicCatalogProductPropertiesObjectStorage]
356+
349357

350358
@dataclass
351359
class PublicCatalogProductUnitOfMeasure:

scaleway-async/scaleway_async/webhosting/v1/__init__.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# This file was automatically generated. DO NOT EDIT.
22
# If you have any remark or suggestion do not hesitate to open an issue.
3+
from .types import BackupItemType
4+
from .types import BackupStatus
5+
from .content import BACKUP_TRANSIENT_STATUSES
36
from .types import DnsRecordStatus
47
from .types import DnsRecordType
58
from .types import DnsRecordsStatus
@@ -13,6 +16,7 @@
1316
from .types import DomainZoneOwner
1417
from .types import HostingStatus
1518
from .content import HOSTING_TRANSIENT_STATUSES
19+
from .types import ListBackupsRequestOrderBy
1620
from .types import ListDatabaseUsersRequestOrderBy
1721
from .types import ListDatabasesRequestOrderBy
1822
from .types import ListFtpAccountsRequestOrderBy
@@ -24,11 +28,14 @@
2428
from .types import OfferOptionName
2529
from .types import OfferOptionWarning
2630
from .types import PlatformPlatformGroup
31+
from .types import AutoConfigDomainDns
2732
from .types import PlatformControlPanelUrls
33+
from .types import HostingDomainCustomDomain
2834
from .types import OfferOption
2935
from .types import PlatformControlPanel
36+
from .types import BackupItem
37+
from .types import HostingDomain
3038
from .types import CreateDatabaseRequestUser
31-
from .types import AutoConfigDomainDns
3239
from .types import CreateHostingRequestDomainConfiguration
3340
from .types import OfferOptionRequest
3441
from .types import SyncDomainDnsRecordsRequestRecord
@@ -37,6 +44,8 @@
3744
from .types import HostingUser
3845
from .types import Offer
3946
from .types import Platform
47+
from .types import BackupItemGroup
48+
from .types import Backup
4049
from .types import ControlPanel
4150
from .types import DatabaseUser
4251
from .types import Database
@@ -45,6 +54,11 @@
4554
from .types import MailAccount
4655
from .types import Website
4756
from .types import DomainAvailability
57+
from .types import BackupApiGetBackupRequest
58+
from .types import BackupApiListBackupItemsRequest
59+
from .types import BackupApiListBackupsRequest
60+
from .types import BackupApiRestoreBackupItemsRequest
61+
from .types import BackupApiRestoreBackupRequest
4862
from .types import CheckUserOwnsDomainResponse
4963
from .types import ControlPanelApiListControlPanelsRequest
5064
from .types import DatabaseApiAssignDatabaseUserRequest
@@ -70,14 +84,18 @@
7084
from .types import FtpAccountApiListFtpAccountsRequest
7185
from .types import FtpAccountApiRemoveFtpAccountRequest
7286
from .types import Hosting
87+
from .types import HostingApiAddCustomDomainRequest
7388
from .types import HostingApiCreateHostingRequest
7489
from .types import HostingApiCreateSessionRequest
7590
from .types import HostingApiDeleteHostingRequest
7691
from .types import HostingApiGetHostingRequest
7792
from .types import HostingApiGetResourceSummaryRequest
7893
from .types import HostingApiListHostingsRequest
94+
from .types import HostingApiRemoveCustomDomainRequest
7995
from .types import HostingApiResetHostingPasswordRequest
8096
from .types import HostingApiUpdateHostingRequest
97+
from .types import ListBackupItemsResponse
98+
from .types import ListBackupsResponse
8199
from .types import ListControlPanelsResponse
82100
from .types import ListDatabaseUsersResponse
83101
from .types import ListDatabasesResponse
@@ -93,9 +111,12 @@
93111
from .types import OfferApiListOffersRequest
94112
from .types import ResetHostingPasswordResponse
95113
from .types import ResourceSummary
114+
from .types import RestoreBackupItemsResponse
115+
from .types import RestoreBackupResponse
96116
from .types import SearchDomainsResponse
97117
from .types import Session
98118
from .types import WebsiteApiListWebsitesRequest
119+
from .api import WebhostingV1BackupAPI
99120
from .api import WebhostingV1ControlPanelAPI
100121
from .api import WebhostingV1DatabaseAPI
101122
from .api import WebhostingV1DnsAPI
@@ -106,6 +127,9 @@
106127
from .api import WebhostingV1WebsiteAPI
107128

108129
__all__ = [
130+
"BackupItemType",
131+
"BackupStatus",
132+
"BACKUP_TRANSIENT_STATUSES",
109133
"DnsRecordStatus",
110134
"DnsRecordType",
111135
"DnsRecordsStatus",
@@ -119,6 +143,7 @@
119143
"DomainZoneOwner",
120144
"HostingStatus",
121145
"HOSTING_TRANSIENT_STATUSES",
146+
"ListBackupsRequestOrderBy",
122147
"ListDatabaseUsersRequestOrderBy",
123148
"ListDatabasesRequestOrderBy",
124149
"ListFtpAccountsRequestOrderBy",
@@ -130,11 +155,14 @@
130155
"OfferOptionName",
131156
"OfferOptionWarning",
132157
"PlatformPlatformGroup",
158+
"AutoConfigDomainDns",
133159
"PlatformControlPanelUrls",
160+
"HostingDomainCustomDomain",
134161
"OfferOption",
135162
"PlatformControlPanel",
163+
"BackupItem",
164+
"HostingDomain",
136165
"CreateDatabaseRequestUser",
137-
"AutoConfigDomainDns",
138166
"CreateHostingRequestDomainConfiguration",
139167
"OfferOptionRequest",
140168
"SyncDomainDnsRecordsRequestRecord",
@@ -143,6 +171,8 @@
143171
"HostingUser",
144172
"Offer",
145173
"Platform",
174+
"BackupItemGroup",
175+
"Backup",
146176
"ControlPanel",
147177
"DatabaseUser",
148178
"Database",
@@ -151,6 +181,11 @@
151181
"MailAccount",
152182
"Website",
153183
"DomainAvailability",
184+
"BackupApiGetBackupRequest",
185+
"BackupApiListBackupItemsRequest",
186+
"BackupApiListBackupsRequest",
187+
"BackupApiRestoreBackupItemsRequest",
188+
"BackupApiRestoreBackupRequest",
154189
"CheckUserOwnsDomainResponse",
155190
"ControlPanelApiListControlPanelsRequest",
156191
"DatabaseApiAssignDatabaseUserRequest",
@@ -176,14 +211,18 @@
176211
"FtpAccountApiListFtpAccountsRequest",
177212
"FtpAccountApiRemoveFtpAccountRequest",
178213
"Hosting",
214+
"HostingApiAddCustomDomainRequest",
179215
"HostingApiCreateHostingRequest",
180216
"HostingApiCreateSessionRequest",
181217
"HostingApiDeleteHostingRequest",
182218
"HostingApiGetHostingRequest",
183219
"HostingApiGetResourceSummaryRequest",
184220
"HostingApiListHostingsRequest",
221+
"HostingApiRemoveCustomDomainRequest",
185222
"HostingApiResetHostingPasswordRequest",
186223
"HostingApiUpdateHostingRequest",
224+
"ListBackupItemsResponse",
225+
"ListBackupsResponse",
187226
"ListControlPanelsResponse",
188227
"ListDatabaseUsersResponse",
189228
"ListDatabasesResponse",
@@ -199,9 +238,12 @@
199238
"OfferApiListOffersRequest",
200239
"ResetHostingPasswordResponse",
201240
"ResourceSummary",
241+
"RestoreBackupItemsResponse",
242+
"RestoreBackupResponse",
202243
"SearchDomainsResponse",
203244
"Session",
204245
"WebsiteApiListWebsitesRequest",
246+
"WebhostingV1BackupAPI",
205247
"WebhostingV1ControlPanelAPI",
206248
"WebhostingV1DatabaseAPI",
207249
"WebhostingV1DnsAPI",

0 commit comments

Comments
 (0)