File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
scaleway-async/scaleway_async/webhosting/v1
scaleway/scaleway/webhosting/v1 Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,12 @@ def unmarshal_Offer(data: Any) -> Offer:
875
875
else :
876
876
args ["quota_warning" ] = OfferOptionWarning .UNKNOWN_WARNING
877
877
878
+ field = data .get ("region" , None )
879
+ if field is not None :
880
+ args ["region" ] = field
881
+ else :
882
+ args ["region" ] = None
883
+
878
884
field = data .get ("price" , None )
879
885
if field is not None :
880
886
args ["price" ] = unmarshal_Money (field )
Original file line number Diff line number Diff line change @@ -621,6 +621,11 @@ class Offer:
621
621
Defines a warning if the maximum value for an option in the offer is exceeded.
622
622
"""
623
623
624
+ region : ScwRegion
625
+ """
626
+ Region where the offer is hosted.
627
+ """
628
+
624
629
price : Optional [Money ] = None
625
630
"""
626
631
Price of the offer.
Original file line number Diff line number Diff line change @@ -875,6 +875,12 @@ def unmarshal_Offer(data: Any) -> Offer:
875
875
else :
876
876
args ["quota_warning" ] = OfferOptionWarning .UNKNOWN_WARNING
877
877
878
+ field = data .get ("region" , None )
879
+ if field is not None :
880
+ args ["region" ] = field
881
+ else :
882
+ args ["region" ] = None
883
+
878
884
field = data .get ("price" , None )
879
885
if field is not None :
880
886
args ["price" ] = unmarshal_Money (field )
Original file line number Diff line number Diff line change @@ -621,6 +621,11 @@ class Offer:
621
621
Defines a warning if the maximum value for an option in the offer is exceeded.
622
622
"""
623
623
624
+ region : ScwRegion
625
+ """
626
+ Region where the offer is hosted.
627
+ """
628
+
624
629
price : Optional [Money ] = None
625
630
"""
626
631
Price of the offer.
You can’t perform that action at this time.
0 commit comments