Skip to content

Commit e43e9e5

Browse files
authored
Merge branch 'main' into v1.6241.0
2 parents 7444a96 + 121fe1f commit e43e9e5

File tree

10 files changed

+48
-38
lines changed

10 files changed

+48
-38
lines changed

scaleway-async/scaleway_async/baremetal/v1/marshalling.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def unmarshal_SchemaPartition(data: Any) -> SchemaPartition:
9191
if field is not None:
9292
args["size"] = field
9393

94+
field = data.get("use_all_available_space", None)
95+
if field is not None:
96+
args["use_all_available_space"] = field
97+
9498
return SchemaPartition(**args)
9599

96100

@@ -1417,6 +1421,9 @@ def marshal_SchemaPartition(
14171421
if request.size is not None:
14181422
output["size"] = request.size
14191423

1424+
if request.use_all_available_space is not None:
1425+
output["use_all_available_space"] = request.use_all_available_space
1426+
14201427
return output
14211428

14221429

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ class SchemaPartition:
225225

226226
size: int
227227

228+
use_all_available_space: bool
229+
228230

229231
@dataclass
230232
class SchemaPool:

scaleway-async/scaleway_async/cockpit/v1/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ async def create_contact_point(
12311231
region: Optional[ScwRegion] = None,
12321232
project_id: Optional[str] = None,
12331233
email: Optional[ContactPointEmail] = None,
1234-
receive_resolved_notifications: Optional[bool] = None,
1234+
send_resolved_notifications: Optional[bool] = None,
12351235
) -> ContactPoint:
12361236
"""
12371237
Create a contact point.
@@ -1242,7 +1242,7 @@ async def create_contact_point(
12421242
:param project_id: ID of the Project to create the contact point in.
12431243
:param email: Email address of the contact point to create.
12441244
One-Of ('configuration'): at most one of 'email' could be set.
1245-
:param receive_resolved_notifications: Send an email notification when an alert is marked as resolved.
1245+
:param send_resolved_notifications: Send an email notification when an alert is marked as resolved.
12461246
:return: :class:`ContactPoint <ContactPoint>`
12471247
12481248
Usage:
@@ -1262,7 +1262,7 @@ async def create_contact_point(
12621262
RegionalApiCreateContactPointRequest(
12631263
region=region,
12641264
project_id=project_id,
1265-
receive_resolved_notifications=receive_resolved_notifications,
1265+
send_resolved_notifications=send_resolved_notifications,
12661266
email=email,
12671267
),
12681268
self.client,
@@ -1353,14 +1353,14 @@ async def update_contact_point(
13531353
region: Optional[ScwRegion] = None,
13541354
project_id: Optional[str] = None,
13551355
email: Optional[ContactPointEmail] = None,
1356-
receive_resolved_notifications: Optional[bool] = None,
1356+
send_resolved_notifications: Optional[bool] = None,
13571357
) -> ContactPoint:
13581358
"""
13591359
:param region: Region to target. If none is passed will use default region from the config.
13601360
:param project_id: ID of the Project containing the contact point to update.
13611361
:param email: Email address of the contact point to update.
13621362
One-Of ('configuration'): at most one of 'email' could be set.
1363-
:param receive_resolved_notifications: Enable or disable notifications when alert is resolved.
1363+
:param send_resolved_notifications: Enable or disable notifications when alert is resolved.
13641364
:return: :class:`ContactPoint <ContactPoint>`
13651365
13661366
Usage:
@@ -1380,7 +1380,7 @@ async def update_contact_point(
13801380
RegionalApiUpdateContactPointRequest(
13811381
region=region,
13821382
project_id=project_id,
1383-
receive_resolved_notifications=receive_resolved_notifications,
1383+
send_resolved_notifications=send_resolved_notifications,
13841384
email=email,
13851385
),
13861386
self.client,

scaleway-async/scaleway_async/cockpit/v1/marshalling.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def unmarshal_ContactPoint(data: Any) -> ContactPoint:
7777
if field is not None:
7878
args["region"] = field
7979

80-
field = data.get("receive_resolved_notifications", None)
80+
field = data.get("send_resolved_notifications", None)
8181
if field is not None:
82-
args["receive_resolved_notifications"] = field
82+
args["send_resolved_notifications"] = field
8383

8484
field = data.get("email", None)
8585
if field is not None:
@@ -792,10 +792,8 @@ def marshal_RegionalApiCreateContactPointRequest(
792792
if request.project_id is not None:
793793
output["project_id"] = request.project_id or defaults.default_project_id
794794

795-
if request.receive_resolved_notifications is not None:
796-
output["receive_resolved_notifications"] = (
797-
request.receive_resolved_notifications
798-
)
795+
if request.send_resolved_notifications is not None:
796+
output["send_resolved_notifications"] = request.send_resolved_notifications
799797

800798
return output
801799

@@ -934,10 +932,8 @@ def marshal_RegionalApiUpdateContactPointRequest(
934932
if request.project_id is not None:
935933
output["project_id"] = request.project_id or defaults.default_project_id
936934

937-
if request.receive_resolved_notifications is not None:
938-
output["receive_resolved_notifications"] = (
939-
request.receive_resolved_notifications
940-
)
935+
if request.send_resolved_notifications is not None:
936+
output["send_resolved_notifications"] = request.send_resolved_notifications
941937

942938
return output
943939

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class ContactPoint:
174174
Region.
175175
"""
176176

177-
receive_resolved_notifications: bool
177+
send_resolved_notifications: bool
178178
"""
179179
Send an email notification when an alert is marked as resolved.
180180
"""
@@ -859,7 +859,7 @@ class RegionalApiCreateContactPointRequest:
859859
ID of the Project to create the contact point in.
860860
"""
861861

862-
receive_resolved_notifications: Optional[bool]
862+
send_resolved_notifications: Optional[bool]
863863
"""
864864
Send an email notification when an alert is marked as resolved.
865865
"""
@@ -1293,7 +1293,7 @@ class RegionalApiUpdateContactPointRequest:
12931293
ID of the Project containing the contact point to update.
12941294
"""
12951295

1296-
receive_resolved_notifications: Optional[bool]
1296+
send_resolved_notifications: Optional[bool]
12971297
"""
12981298
Enable or disable notifications when alert is resolved.
12991299
"""

scaleway/scaleway/baremetal/v1/marshalling.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def unmarshal_SchemaPartition(data: Any) -> SchemaPartition:
9191
if field is not None:
9292
args["size"] = field
9393

94+
field = data.get("use_all_available_space", None)
95+
if field is not None:
96+
args["use_all_available_space"] = field
97+
9498
return SchemaPartition(**args)
9599

96100

@@ -1417,6 +1421,9 @@ def marshal_SchemaPartition(
14171421
if request.size is not None:
14181422
output["size"] = request.size
14191423

1424+
if request.use_all_available_space is not None:
1425+
output["use_all_available_space"] = request.use_all_available_space
1426+
14201427
return output
14211428

14221429

scaleway/scaleway/baremetal/v1/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ class SchemaPartition:
225225

226226
size: int
227227

228+
use_all_available_space: bool
229+
228230

229231
@dataclass
230232
class SchemaPool:

scaleway/scaleway/cockpit/v1/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def create_contact_point(
12311231
region: Optional[ScwRegion] = None,
12321232
project_id: Optional[str] = None,
12331233
email: Optional[ContactPointEmail] = None,
1234-
receive_resolved_notifications: Optional[bool] = None,
1234+
send_resolved_notifications: Optional[bool] = None,
12351235
) -> ContactPoint:
12361236
"""
12371237
Create a contact point.
@@ -1242,7 +1242,7 @@ def create_contact_point(
12421242
:param project_id: ID of the Project to create the contact point in.
12431243
:param email: Email address of the contact point to create.
12441244
One-Of ('configuration'): at most one of 'email' could be set.
1245-
:param receive_resolved_notifications: Send an email notification when an alert is marked as resolved.
1245+
:param send_resolved_notifications: Send an email notification when an alert is marked as resolved.
12461246
:return: :class:`ContactPoint <ContactPoint>`
12471247
12481248
Usage:
@@ -1262,7 +1262,7 @@ def create_contact_point(
12621262
RegionalApiCreateContactPointRequest(
12631263
region=region,
12641264
project_id=project_id,
1265-
receive_resolved_notifications=receive_resolved_notifications,
1265+
send_resolved_notifications=send_resolved_notifications,
12661266
email=email,
12671267
),
12681268
self.client,
@@ -1353,14 +1353,14 @@ def update_contact_point(
13531353
region: Optional[ScwRegion] = None,
13541354
project_id: Optional[str] = None,
13551355
email: Optional[ContactPointEmail] = None,
1356-
receive_resolved_notifications: Optional[bool] = None,
1356+
send_resolved_notifications: Optional[bool] = None,
13571357
) -> ContactPoint:
13581358
"""
13591359
:param region: Region to target. If none is passed will use default region from the config.
13601360
:param project_id: ID of the Project containing the contact point to update.
13611361
:param email: Email address of the contact point to update.
13621362
One-Of ('configuration'): at most one of 'email' could be set.
1363-
:param receive_resolved_notifications: Enable or disable notifications when alert is resolved.
1363+
:param send_resolved_notifications: Enable or disable notifications when alert is resolved.
13641364
:return: :class:`ContactPoint <ContactPoint>`
13651365
13661366
Usage:
@@ -1380,7 +1380,7 @@ def update_contact_point(
13801380
RegionalApiUpdateContactPointRequest(
13811381
region=region,
13821382
project_id=project_id,
1383-
receive_resolved_notifications=receive_resolved_notifications,
1383+
send_resolved_notifications=send_resolved_notifications,
13841384
email=email,
13851385
),
13861386
self.client,

scaleway/scaleway/cockpit/v1/marshalling.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def unmarshal_ContactPoint(data: Any) -> ContactPoint:
7777
if field is not None:
7878
args["region"] = field
7979

80-
field = data.get("receive_resolved_notifications", None)
80+
field = data.get("send_resolved_notifications", None)
8181
if field is not None:
82-
args["receive_resolved_notifications"] = field
82+
args["send_resolved_notifications"] = field
8383

8484
field = data.get("email", None)
8585
if field is not None:
@@ -792,10 +792,8 @@ def marshal_RegionalApiCreateContactPointRequest(
792792
if request.project_id is not None:
793793
output["project_id"] = request.project_id or defaults.default_project_id
794794

795-
if request.receive_resolved_notifications is not None:
796-
output["receive_resolved_notifications"] = (
797-
request.receive_resolved_notifications
798-
)
795+
if request.send_resolved_notifications is not None:
796+
output["send_resolved_notifications"] = request.send_resolved_notifications
799797

800798
return output
801799

@@ -934,10 +932,8 @@ def marshal_RegionalApiUpdateContactPointRequest(
934932
if request.project_id is not None:
935933
output["project_id"] = request.project_id or defaults.default_project_id
936934

937-
if request.receive_resolved_notifications is not None:
938-
output["receive_resolved_notifications"] = (
939-
request.receive_resolved_notifications
940-
)
935+
if request.send_resolved_notifications is not None:
936+
output["send_resolved_notifications"] = request.send_resolved_notifications
941937

942938
return output
943939

scaleway/scaleway/cockpit/v1/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class ContactPoint:
174174
Region.
175175
"""
176176

177-
receive_resolved_notifications: bool
177+
send_resolved_notifications: bool
178178
"""
179179
Send an email notification when an alert is marked as resolved.
180180
"""
@@ -859,7 +859,7 @@ class RegionalApiCreateContactPointRequest:
859859
ID of the Project to create the contact point in.
860860
"""
861861

862-
receive_resolved_notifications: Optional[bool]
862+
send_resolved_notifications: Optional[bool]
863863
"""
864864
Send an email notification when an alert is marked as resolved.
865865
"""
@@ -1293,7 +1293,7 @@ class RegionalApiUpdateContactPointRequest:
12931293
ID of the Project containing the contact point to update.
12941294
"""
12951295

1296-
receive_resolved_notifications: Optional[bool]
1296+
send_resolved_notifications: Optional[bool]
12971297
"""
12981298
Enable or disable notifications when alert is resolved.
12991299
"""

0 commit comments

Comments
 (0)