Commit f320d055 by adamtorok

new fields added to Volume

parent fcb0150a
import json
class Volume:
def __init__(self, id, size, bootable) -> None:
def __init__(self,
id,
size,
bootable,
status,
created_at
) -> None:
super().__init__()
self.id = id
self.size = size
self.bootable = bootable
self.status = status
self.created_at = created_at
def __str__(self) -> str:
return self.toJSON()
def toJSON(self):
return json.dumps(self.__dict__)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment