Skip to content

Commit 39106b8

Browse files
authored
Merge branch 'main' into v1.6872.0
2 parents 1380e20 + 7a940c2 commit 39106b8

File tree

16 files changed

+2158
-304
lines changed

16 files changed

+2158
-304
lines changed

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: 38 additions & 0 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
@@ -29,6 +33,7 @@
2933
from .types import HostingDomainCustomDomain
3034
from .types import OfferOption
3135
from .types import PlatformControlPanel
36+
from .types import BackupItem
3237
from .types import HostingDomain
3338
from .types import CreateDatabaseRequestUser
3439
from .types import CreateHostingRequestDomainConfiguration
@@ -39,6 +44,8 @@
3944
from .types import HostingUser
4045
from .types import Offer
4146
from .types import Platform
47+
from .types import BackupItemGroup
48+
from .types import Backup
4249
from .types import ControlPanel
4350
from .types import DatabaseUser
4451
from .types import Database
@@ -47,6 +54,11 @@
4754
from .types import MailAccount
4855
from .types import Website
4956
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
5062
from .types import CheckUserOwnsDomainResponse
5163
from .types import ControlPanelApiListControlPanelsRequest
5264
from .types import DatabaseApiAssignDatabaseUserRequest
@@ -72,14 +84,18 @@
7284
from .types import FtpAccountApiListFtpAccountsRequest
7385
from .types import FtpAccountApiRemoveFtpAccountRequest
7486
from .types import Hosting
87+
from .types import HostingApiAddCustomDomainRequest
7588
from .types import HostingApiCreateHostingRequest
7689
from .types import HostingApiCreateSessionRequest
7790
from .types import HostingApiDeleteHostingRequest
7891
from .types import HostingApiGetHostingRequest
7992
from .types import HostingApiGetResourceSummaryRequest
8093
from .types import HostingApiListHostingsRequest
94+
from .types import HostingApiRemoveCustomDomainRequest
8195
from .types import HostingApiResetHostingPasswordRequest
8296
from .types import HostingApiUpdateHostingRequest
97+
from .types import ListBackupItemsResponse
98+
from .types import ListBackupsResponse
8399
from .types import ListControlPanelsResponse
84100
from .types import ListDatabaseUsersResponse
85101
from .types import ListDatabasesResponse
@@ -95,9 +111,12 @@
95111
from .types import OfferApiListOffersRequest
96112
from .types import ResetHostingPasswordResponse
97113
from .types import ResourceSummary
114+
from .types import RestoreBackupItemsResponse
115+
from .types import RestoreBackupResponse
98116
from .types import SearchDomainsResponse
99117
from .types import Session
100118
from .types import WebsiteApiListWebsitesRequest
119+
from .api import WebhostingV1BackupAPI
101120
from .api import WebhostingV1ControlPanelAPI
102121
from .api import WebhostingV1DatabaseAPI
103122
from .api import WebhostingV1DnsAPI
@@ -108,6 +127,9 @@
108127
from .api import WebhostingV1WebsiteAPI
109128

110129
__all__ = [
130+
"BackupItemType",
131+
"BackupStatus",
132+
"BACKUP_TRANSIENT_STATUSES",
111133
"DnsRecordStatus",
112134
"DnsRecordType",
113135
"DnsRecordsStatus",
@@ -121,6 +143,7 @@
121143
"DomainZoneOwner",
122144
"HostingStatus",
123145
"HOSTING_TRANSIENT_STATUSES",
146+
"ListBackupsRequestOrderBy",
124147
"ListDatabaseUsersRequestOrderBy",
125148
"ListDatabasesRequestOrderBy",
126149
"ListFtpAccountsRequestOrderBy",
@@ -137,6 +160,7 @@
137160
"HostingDomainCustomDomain",
138161
"OfferOption",
139162
"PlatformControlPanel",
163+
"BackupItem",
140164
"HostingDomain",
141165
"CreateDatabaseRequestUser",
142166
"CreateHostingRequestDomainConfiguration",
@@ -147,6 +171,8 @@
147171
"HostingUser",
148172
"Offer",
149173
"Platform",
174+
"BackupItemGroup",
175+
"Backup",
150176
"ControlPanel",
151177
"DatabaseUser",
152178
"Database",
@@ -155,6 +181,11 @@
155181
"MailAccount",
156182
"Website",
157183
"DomainAvailability",
184+
"BackupApiGetBackupRequest",
185+
"BackupApiListBackupItemsRequest",
186+
"BackupApiListBackupsRequest",
187+
"BackupApiRestoreBackupItemsRequest",
188+
"BackupApiRestoreBackupRequest",
158189
"CheckUserOwnsDomainResponse",
159190
"ControlPanelApiListControlPanelsRequest",
160191
"DatabaseApiAssignDatabaseUserRequest",
@@ -180,14 +211,18 @@
180211
"FtpAccountApiListFtpAccountsRequest",
181212
"FtpAccountApiRemoveFtpAccountRequest",
182213
"Hosting",
214+
"HostingApiAddCustomDomainRequest",
183215
"HostingApiCreateHostingRequest",
184216
"HostingApiCreateSessionRequest",
185217
"HostingApiDeleteHostingRequest",
186218
"HostingApiGetHostingRequest",
187219
"HostingApiGetResourceSummaryRequest",
188220
"HostingApiListHostingsRequest",
221+
"HostingApiRemoveCustomDomainRequest",
189222
"HostingApiResetHostingPasswordRequest",
190223
"HostingApiUpdateHostingRequest",
224+
"ListBackupItemsResponse",
225+
"ListBackupsResponse",
191226
"ListControlPanelsResponse",
192227
"ListDatabaseUsersResponse",
193228
"ListDatabasesResponse",
@@ -203,9 +238,12 @@
203238
"OfferApiListOffersRequest",
204239
"ResetHostingPasswordResponse",
205240
"ResourceSummary",
241+
"RestoreBackupItemsResponse",
242+
"RestoreBackupResponse",
206243
"SearchDomainsResponse",
207244
"Session",
208245
"WebsiteApiListWebsitesRequest",
246+
"WebhostingV1BackupAPI",
209247
"WebhostingV1ControlPanelAPI",
210248
"WebhostingV1DatabaseAPI",
211249
"WebhostingV1DnsAPI",

0 commit comments

Comments
 (0)