Skip to content

Commit 1218ffc

Browse files
authored
feat(rdb): add instance_id to ReadReplica (#413)
1 parent a12c0b2 commit 1218ffc

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ def unmarshal_ReadReplica(data: Any) -> ReadReplica:
408408
field = data.get("id", None)
409409
args["id"] = field
410410

411+
field = data.get("instance_id", None)
412+
args["instance_id"] = field
413+
411414
field = data.get("region", None)
412415
args["region"] = field
413416

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,11 @@ class ReadReplica:
13531353
Whether the replica is in the same availability zone as the main instance nodes or not.
13541354
"""
13551355

1356+
instance_id: str
1357+
"""
1358+
UUID of the Database Instance.
1359+
"""
1360+
13561361

13571362
@dataclass
13581363
class ReadReplicaEndpointSpec:

scaleway/scaleway/rdb/v1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ def unmarshal_ReadReplica(data: Any) -> ReadReplica:
408408
field = data.get("id", None)
409409
args["id"] = field
410410

411+
field = data.get("instance_id", None)
412+
args["instance_id"] = field
413+
411414
field = data.get("region", None)
412415
args["region"] = field
413416

scaleway/scaleway/rdb/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,11 @@ class ReadReplica:
13531353
Whether the replica is in the same availability zone as the main instance nodes or not.
13541354
"""
13551355

1356+
instance_id: str
1357+
"""
1358+
UUID of the Database Instance.
1359+
"""
1360+
13561361

13571362
@dataclass
13581363
class ReadReplicaEndpointSpec:

0 commit comments

Comments
 (0)