Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/block/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
else:
args["public"] = False

field = data.get("kms_key_id", None)
if field is not None:
args["kms_key_id"] = field
else:
args["kms_key_id"] = None

return Snapshot(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/block/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ class Snapshot:
Last modification date of the properties of a snapshot.
"""

kms_key_id: Optional[str] = None
"""
KMS Key used for securing the parent volume's encryption.
"""


@dataclass
class VolumeType:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/block/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
else:
args["public"] = False

field = data.get("kms_key_id", None)
if field is not None:
args["kms_key_id"] = field
else:
args["kms_key_id"] = None

return Snapshot(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/block/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ class Snapshot:
Last modification date of the properties of a snapshot.
"""

kms_key_id: Optional[str] = None
"""
KMS Key used for securing the parent volume's encryption.
"""


@dataclass
class VolumeType:
Expand Down
Loading