Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f320d055
authored
Apr 09, 2019
by
adamtorok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new fields added to Volume
parent
fcb0150a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
interface/storage/Volume.py
+18
-1
No files found.
interface/storage/Volume.py
View file @
f320d055
import
json
class
Volume
:
class
Volume
:
def
__init__
(
self
,
id
,
size
,
bootable
)
->
None
:
def
__init__
(
self
,
id
,
size
,
bootable
,
status
,
created_at
)
->
None
:
super
()
.
__init__
()
super
()
.
__init__
()
self
.
id
=
id
self
.
id
=
id
self
.
size
=
size
self
.
size
=
size
self
.
bootable
=
bootable
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__
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment