Skip to content

Commit 67b546c

Browse files
authored
feat(webhosting): add end of life argument (#255)
1 parent e40a18c commit 67b546c

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

scaleway-async/scaleway_async/webhosting/v1alpha1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def unmarshal_Hosting(data: Any) -> Hosting:
150150
field = data.get("id", None)
151151
args["id"] = field
152152

153+
field = data.get("offer_end_of_life", None)
154+
args["offer_end_of_life"] = field
155+
153156
field = data.get("offer_id", None)
154157
args["offer_id"] = field
155158

@@ -225,6 +228,9 @@ def unmarshal_Offer(data: Any) -> Offer:
225228
field = data.get("billing_operation_path", None)
226229
args["billing_operation_path"] = field
227230

231+
field = data.get("end_of_life", None)
232+
args["end_of_life"] = field
233+
228234
field = data.get("id", None)
229235
args["id"] = field
230236

scaleway-async/scaleway_async/webhosting/v1alpha1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ class Hosting:
245245
Main Web Hosting cPanel username.
246246
"""
247247

248+
offer_end_of_life: bool
249+
"""
250+
Indicates if the hosting offer has reached its end of life.
251+
"""
252+
248253
region: Region
249254
"""
250255
Region where the Web Hosting plan is hosted.
@@ -362,6 +367,11 @@ class Offer:
362367
Quota warnings, if the offer is not available for the specified hosting_id.
363368
"""
364369

370+
end_of_life: bool
371+
"""
372+
Indicates if the offer has reached its end of life.
373+
"""
374+
365375

366376
@dataclass
367377
class OfferProduct:

scaleway/scaleway/webhosting/v1alpha1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def unmarshal_Hosting(data: Any) -> Hosting:
150150
field = data.get("id", None)
151151
args["id"] = field
152152

153+
field = data.get("offer_end_of_life", None)
154+
args["offer_end_of_life"] = field
155+
153156
field = data.get("offer_id", None)
154157
args["offer_id"] = field
155158

@@ -225,6 +228,9 @@ def unmarshal_Offer(data: Any) -> Offer:
225228
field = data.get("billing_operation_path", None)
226229
args["billing_operation_path"] = field
227230

231+
field = data.get("end_of_life", None)
232+
args["end_of_life"] = field
233+
228234
field = data.get("id", None)
229235
args["id"] = field
230236

scaleway/scaleway/webhosting/v1alpha1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ class Hosting:
245245
Main Web Hosting cPanel username.
246246
"""
247247

248+
offer_end_of_life: bool
249+
"""
250+
Indicates if the hosting offer has reached its end of life.
251+
"""
252+
248253
region: Region
249254
"""
250255
Region where the Web Hosting plan is hosted.
@@ -362,6 +367,11 @@ class Offer:
362367
Quota warnings, if the offer is not available for the specified hosting_id.
363368
"""
364369

370+
end_of_life: bool
371+
"""
372+
Indicates if the offer has reached its end of life.
373+
"""
374+
365375

366376
@dataclass
367377
class OfferProduct:

0 commit comments

Comments
 (0)