Skip to content

Commit a31e8d3

Browse files
authored
feat(webhosting): add ipv4, ipv6 and plateform group (#383)
1 parent dd0293b commit a31e8d3

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

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

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

181+
field = data.get("ipv4", None)
182+
args["ipv4"] = field
183+
184+
field = data.get("ipv6", None)
185+
args["ipv6"] = field
186+
181187
field = data.get("offer_end_of_life", None)
182188
args["offer_end_of_life"] = field
183189

@@ -195,6 +201,9 @@ def unmarshal_Hosting(data: Any) -> Hosting:
195201
field = data.get("organization_id", None)
196202
args["organization_id"] = field
197203

204+
field = data.get("platform_group", None)
205+
args["platform_group"] = field
206+
198207
field = data.get("platform_hostname", None)
199208
args["platform_hostname"] = field
200209

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,21 @@ class Hosting:
280280
Name of the control panel.
281281
"""
282282

283+
platform_group: str
284+
"""
285+
Group of the hosting's host server/platform.
286+
"""
287+
288+
ipv4: str
289+
"""
290+
IPv4 address of the hosting's host server.
291+
"""
292+
293+
ipv6: str
294+
"""
295+
IPv6 address of the hosting's host server.
296+
"""
297+
283298
region: Region
284299
"""
285300
Region where the Web Hosting plan is hosted.

scaleway/scaleway/webhosting/v1alpha1/marshalling.py

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

181+
field = data.get("ipv4", None)
182+
args["ipv4"] = field
183+
184+
field = data.get("ipv6", None)
185+
args["ipv6"] = field
186+
181187
field = data.get("offer_end_of_life", None)
182188
args["offer_end_of_life"] = field
183189

@@ -195,6 +201,9 @@ def unmarshal_Hosting(data: Any) -> Hosting:
195201
field = data.get("organization_id", None)
196202
args["organization_id"] = field
197203

204+
field = data.get("platform_group", None)
205+
args["platform_group"] = field
206+
198207
field = data.get("platform_hostname", None)
199208
args["platform_hostname"] = field
200209

scaleway/scaleway/webhosting/v1alpha1/types.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,21 @@ class Hosting:
280280
Name of the control panel.
281281
"""
282282

283+
platform_group: str
284+
"""
285+
Group of the hosting's host server/platform.
286+
"""
287+
288+
ipv4: str
289+
"""
290+
IPv4 address of the hosting's host server.
291+
"""
292+
293+
ipv6: str
294+
"""
295+
IPv6 address of the hosting's host server.
296+
"""
297+
283298
region: Region
284299
"""
285300
Region where the Web Hosting plan is hosted.

0 commit comments

Comments
 (0)