Skip to content

Commit bace2e1

Browse files
authored
Merge branch 'main' into v1.5674.0
2 parents 6cd7639 + 100860f commit bace2e1

File tree

20 files changed

+166
-100
lines changed

20 files changed

+166
-100
lines changed

scaleway-async/scaleway_async/function/v1beta1/marshalling.py

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,30 @@ def unmarshal_Function(data: Any) -> Function:
209209
else None
210210
)
211211

212+
field = data.get("timeout", None)
213+
if field is not None:
214+
args["timeout"] = field
215+
else:
216+
args["timeout"] = None
217+
218+
field = data.get("error_message", None)
219+
if field is not None:
220+
args["error_message"] = field
221+
else:
222+
args["error_message"] = None
223+
224+
field = data.get("build_message", None)
225+
if field is not None:
226+
args["build_message"] = field
227+
else:
228+
args["build_message"] = None
229+
230+
field = data.get("description", None)
231+
if field is not None:
232+
args["description"] = field
233+
else:
234+
args["description"] = None
235+
212236
field = data.get("region", None)
213237
if field is not None:
214238
args["region"] = field
@@ -225,29 +249,23 @@ def unmarshal_Function(data: Any) -> Function:
225249
if field is not None:
226250
args["sandbox"] = field
227251

228-
field = data.get("timeout", None)
252+
field = data.get("created_at", None)
229253
if field is not None:
230-
args["timeout"] = field
254+
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
231255
else:
232-
args["timeout"] = None
256+
args["created_at"] = None
233257

234-
field = data.get("error_message", None)
258+
field = data.get("updated_at", None)
235259
if field is not None:
236-
args["error_message"] = field
260+
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
237261
else:
238-
args["error_message"] = None
262+
args["updated_at"] = None
239263

240-
field = data.get("build_message", None)
264+
field = data.get("ready_at", None)
241265
if field is not None:
242-
args["build_message"] = field
266+
args["ready_at"] = parser.isoparse(field) if isinstance(field, str) else field
243267
else:
244-
args["build_message"] = None
245-
246-
field = data.get("description", None)
247-
if field is not None:
248-
args["description"] = field
249-
else:
250-
args["description"] = None
268+
args["ready_at"] = None
251269

252270
return Function(**args)
253271

scaleway-async/scaleway_async/function/v1beta1/types.py

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,26 @@ class Function:
519519
Secret environment variables of the function.
520520
"""
521521

522+
timeout: Optional[str]
523+
"""
524+
Request processing time limit for the function.
525+
"""
526+
527+
error_message: Optional[str]
528+
"""
529+
Error message if the function is in "error" state.
530+
"""
531+
532+
build_message: Optional[str]
533+
"""
534+
Description of the current build step.
535+
"""
536+
537+
description: Optional[str]
538+
"""
539+
Description of the function.
540+
"""
541+
522542
region: Region
523543
"""
524544
Region in which the function is deployed.
@@ -538,24 +558,19 @@ class Function:
538558
Execution environment of the function.
539559
"""
540560

541-
timeout: Optional[str]
561+
created_at: Optional[datetime]
542562
"""
543-
Request processing time limit for the function.
563+
Creation date of the function.
544564
"""
545565

546-
error_message: Optional[str]
566+
updated_at: Optional[datetime]
547567
"""
548-
Error message if the function is in "error" state.
568+
Last update date of the function.
549569
"""
550570

551-
build_message: Optional[str]
552-
"""
553-
Description of the current build step.
571+
ready_at: Optional[datetime]
554572
"""
555-
556-
description: Optional[str]
557-
"""
558-
Description of the function.
573+
Last date when the function was successfully deployed and set to ready.
559574
"""
560575

561576

scaleway-async/scaleway_async/inference/v1beta1/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class Model:
281281

282282
has_eula: bool
283283
"""
284-
Defines whether the model has an end user licence agreement.
284+
Defines whether the model has an end user license agreement.
285285
"""
286286

287287
region: Region
@@ -521,7 +521,7 @@ class DeleteEndpointRequest:
521521
class Eula:
522522
content: str
523523
"""
524-
Content of the end user licence agreement.
524+
Content of the end user license agreement.
525525
"""
526526

527527

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,9 +1832,9 @@ async def export_snapshot(
18321832
) -> ExportSnapshotResponse:
18331833
"""
18341834
Export a snapshot.
1835-
Export a snapshot to a specified S3 bucket in the same region.
1836-
:param bucket: S3 bucket name.
1837-
:param key: S3 object key.
1835+
Export a snapshot to a specified Object Storage bucket in the same region.
1836+
:param bucket: Object Storage bucket name.
1837+
:param key: Object key.
18381838
:param snapshot_id: Snapshot ID.
18391839
:param zone: Zone to target. If none is passed will use default zone from the config.
18401840
:return: :class:`ExportSnapshotResponse <ExportSnapshotResponse>`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,12 +2093,12 @@ class DetachServerVolumeResponse:
20932093
class ExportSnapshotRequest:
20942094
bucket: str
20952095
"""
2096-
S3 bucket name.
2096+
Object Storage bucket name.
20972097
"""
20982098

20992099
key: str
21002100
"""
2101-
S3 object key.
2101+
Object key.
21022102
"""
21032103

21042104
snapshot_id: str

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,15 +1222,15 @@ async def create_route(
12221222
<b>You need to manage the database by yourself</b>.
12231223
- REST Route.
12241224
Create a route that will call a REST API on received subscribed MQTT messages.
1225-
- S3 Routes.
1226-
Create a route that will put subscribed MQTT messages into an S3 bucket.
1225+
- Amazon S3 Routes.
1226+
Create a route that will put subscribed MQTT messages into an Object Storage bucket.
12271227
You need to create the bucket yourself and grant write access.
12281228
Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket> --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
12291229
:param hub_id: Hub ID of the route.
12301230
:param topic: Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
12311231
:param region: Region to target. If none is passed will use default region from the config.
12321232
:param name: Route name.
1233-
:param s3_config: If creating S3 Route, S3-specific configuration fields.
1233+
:param s3_config: If creating Amazon S3 Routes, Amazon S3-specific configuration fields.
12341234
One-Of ('config'): at most one of 's3_config', 'db_config', 'rest_config' could be set.
12351235
:param db_config: If creating Database Route, DB-specific configuration fields.
12361236
One-Of ('config'): at most one of 's3_config', 'db_config', 'rest_config' could be set.
@@ -1289,7 +1289,7 @@ async def update_route(
12891289
:param region: Region to target. If none is passed will use default region from the config.
12901290
:param name: Route name.
12911291
:param topic: Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
1292-
:param s3_config: When updating S3 Route, S3-specific configuration fields.
1292+
:param s3_config: When updating Amazon S3 Route, Amazon S3-specific configuration fields.
12931293
One-Of ('config'): at most one of 's3_config', 'db_config', 'rest_config' could be set.
12941294
:param db_config: When updating Database Route, DB-specific configuration fields.
12951295
One-Of ('config'): at most one of 's3_config', 'db_config', 'rest_config' could be set.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ class RouteRestConfig:
544544
class RouteS3Config:
545545
bucket_region: str
546546
"""
547-
Region of the S3 route's destination bucket (e.g., 'fr-par').
547+
Region of the Amazon S3 route's destination bucket (e.g., 'fr-par').
548548
"""
549549

550550
bucket_name: str
551551
"""
552-
Destination bucket name of the S3 route.
552+
Destination bucket name of the Amazon S3 route.
553553
"""
554554

555555
object_prefix: str
@@ -559,7 +559,7 @@ class RouteS3Config:
559559

560560
strategy: RouteS3ConfigS3Strategy
561561
"""
562-
How the S3 route's objects will be created: one per topic or one per message.
562+
How the Amazon S3 route's objects will be created: one per topic or one per message.
563563
"""
564564

565565

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ async def create_backend(
970970
:param timeout_tunnel: Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout).
971971
:param on_marked_down_action: Action to take when a backend server is marked as down.
972972
:param proxy_protocol: Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software.
973-
:param failover_host: Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
973+
:param failover_host: Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
974974
:param ssl_bridging: Defines whether to enable SSL bridging between the Load Balancer and backend servers.
975975
:param ignore_ssl_server_verify: Defines whether the server certificate verification should be ignored.
976976
:param redispatch_attempt_count: Whether to use another backend server on each attempt.
@@ -1107,7 +1107,7 @@ async def update_backend(
11071107
:param timeout_tunnel: Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout).
11081108
:param on_marked_down_action: Action to take when a backend server is marked as down.
11091109
:param proxy_protocol: Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software.
1110-
:param failover_host: Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
1110+
:param failover_host: Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
11111111
:param ssl_bridging: Defines whether to enable SSL bridging between the Load Balancer and backend servers.
11121112
:param ignore_ssl_server_verify: Defines whether the server certificate verification should be ignored.
11131113
:param redispatch_attempt_count: Whether to use another backend server on each attempt.
@@ -3995,7 +3995,7 @@ async def create_backend(
39953995
:param timeout_tunnel: Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout).
39963996
:param on_marked_down_action: Action to take when a backend server is marked as down.
39973997
:param proxy_protocol: Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software.
3998-
:param failover_host: Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
3998+
:param failover_host: Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
39993999
:param ssl_bridging: Defines whether to enable SSL bridging between the Load Balancer and backend servers.
40004000
:param ignore_ssl_server_verify: Defines whether the server certificate verification should be ignored.
40014001
:param redispatch_attempt_count: Whether to use another backend server on each attempt.
@@ -4134,7 +4134,7 @@ async def update_backend(
41344134
:param timeout_tunnel: Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout).
41354135
:param on_marked_down_action: Action to take when a backend server is marked as down.
41364136
:param proxy_protocol: Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software.
4137-
:param failover_host: Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
4137+
:param failover_host: Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
41384138
:param ssl_bridging: Defines whether to enable SSL bridging between the Load Balancer and backend servers.
41394139
:param ignore_ssl_server_verify: Defines whether the server certificate verification should be ignored.
41404140
:param redispatch_attempt_count: Whether to use another backend server on each attempt.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ class Backend:
744744

745745
failover_host: Optional[str]
746746
"""
747-
Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
747+
Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
748748
"""
749749

750750
ssl_bridging: Optional[bool]
@@ -1373,7 +1373,7 @@ class CreateBackendRequest:
13731373

13741374
failover_host: Optional[str]
13751375
"""
1376-
Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
1376+
Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
13771377
"""
13781378

13791379
ssl_bridging: Optional[bool]
@@ -2581,7 +2581,7 @@ class UpdateBackendRequest:
25812581

25822582
failover_host: Optional[str]
25832583
"""
2584-
Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
2584+
Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
25852585
"""
25862586

25872587
ssl_bridging: Optional[bool]
@@ -3017,7 +3017,7 @@ class ZonedApiCreateBackendRequest:
30173017

30183018
failover_host: Optional[str]
30193019
"""
3020-
Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
3020+
Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
30213021
"""
30223022

30233023
ssl_bridging: Optional[bool]
@@ -4079,7 +4079,7 @@ class ZonedApiUpdateBackendRequest:
40794079

40804080
failover_host: Optional[str]
40814081
"""
4082-
Scaleway S3 bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
4082+
Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud.
40834083
"""
40844084

40854085
ssl_bridging: Optional[bool]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ class InstanceLog:
841841

842842
download_url: Optional[str]
843843
"""
844-
Presigned S3 URL to download your log file.
844+
Presigned Object Storage URL to download your log file.
845845
"""
846846

847847
expires_at: Optional[datetime]

0 commit comments

Comments
 (0)