mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Brightbox] Fixes service deprecations
This commit is contained in:
parent
45687f68c1
commit
6797582c15
4 changed files with 7 additions and 7 deletions
|
@ -25,14 +25,14 @@ module Fog
|
|||
:email => email
|
||||
}.delete_if { |k, v| v.nil? || v == "" }
|
||||
|
||||
data = connection.create_collaboration(options)
|
||||
data = service.create_collaboration(options)
|
||||
merge_attributes(data)
|
||||
true
|
||||
end
|
||||
|
||||
def destroy
|
||||
requires :identity
|
||||
connection.destroy_collaboration(identity)
|
||||
service.destroy_collaboration(identity)
|
||||
true
|
||||
end
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@ module Fog
|
|||
model Fog::Compute::Brightbox::Collaboration
|
||||
|
||||
def all
|
||||
data = connection.list_collaborations
|
||||
data = service.list_collaborations
|
||||
load(data)
|
||||
end
|
||||
|
||||
def destroy
|
||||
requires :identity
|
||||
connection.destroy_collaboration(identity)
|
||||
service.destroy_collaboration(identity)
|
||||
true
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ module Fog
|
|||
|
||||
def destroy
|
||||
requires :identity
|
||||
connection.destroy_user_collaboration(identity)
|
||||
service.destroy_user_collaboration(identity)
|
||||
true
|
||||
end
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@ module Fog
|
|||
model Fog::Compute::Brightbox::UserCollaboration
|
||||
|
||||
def all
|
||||
data = connection.list_user_collaborations
|
||||
data = service.list_user_collaborations
|
||||
load(data)
|
||||
end
|
||||
|
||||
def destroy
|
||||
requires :identity
|
||||
connection.destroy_user_collaboration(identity)
|
||||
service.destroy_user_collaboration(identity)
|
||||
true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue