projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code review for 1844-blob-signature: documentation, slight refactoring (refs #1844)
[arvados.git]
/
services
/
api
/
app
/
models
/
keep_disk.rb
diff --git
a/services/api/app/models/keep_disk.rb
b/services/api/app/models/keep_disk.rb
index b705f0b411f9094261af037320cada133f49c87c..0998fcd84a1b5f9ba855aebbcf4440426f598487 100644
(file)
--- a/
services/api/app/models/keep_disk.rb
+++ b/
services/api/app/models/keep_disk.rb
@@
-4,10
+4,9
@@
class KeepDisk < ArvadosModel
include CommonApiTemplate
before_validation :ensure_ping_secret
include CommonApiTemplate
before_validation :ensure_ping_secret
- api_accessible :
superuser, :extend =>
:common do |t|
+ api_accessible :
user, extend:
:common do |t|
t.add :node_uuid
t.add :filesystem_uuid
t.add :node_uuid
t.add :filesystem_uuid
- t.add :ping_secret
t.add :bytes_total
t.add :bytes_free
t.add :is_readable
t.add :bytes_total
t.add :bytes_free
t.add :is_readable
@@
-15,6
+14,12
@@
class KeepDisk < ArvadosModel
t.add :last_read_at
t.add :last_write_at
t.add :last_ping_at
t.add :last_read_at
t.add :last_write_at
t.add :last_ping_at
+ t.add :service_host
+ t.add :service_port
+ t.add :service_ssl_flag
+ end
+ api_accessible :superuser, :extend => :user do |t|
+ t.add :ping_secret
end
def ping(o)
end
def ping(o)