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
|
:email => email
|
||||||
}.delete_if { |k, v| v.nil? || v == "" }
|
}.delete_if { |k, v| v.nil? || v == "" }
|
||||||
|
|
||||||
data = connection.create_collaboration(options)
|
data = service.create_collaboration(options)
|
||||||
merge_attributes(data)
|
merge_attributes(data)
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
requires :identity
|
requires :identity
|
||||||
connection.destroy_collaboration(identity)
|
service.destroy_collaboration(identity)
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,13 @@ module Fog
|
||||||
model Fog::Compute::Brightbox::Collaboration
|
model Fog::Compute::Brightbox::Collaboration
|
||||||
|
|
||||||
def all
|
def all
|
||||||
data = connection.list_collaborations
|
data = service.list_collaborations
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
requires :identity
|
requires :identity
|
||||||
connection.destroy_collaboration(identity)
|
service.destroy_collaboration(identity)
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,7 +19,7 @@ module Fog
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
requires :identity
|
requires :identity
|
||||||
connection.destroy_user_collaboration(identity)
|
service.destroy_user_collaboration(identity)
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,13 @@ module Fog
|
||||||
model Fog::Compute::Brightbox::UserCollaboration
|
model Fog::Compute::Brightbox::UserCollaboration
|
||||||
|
|
||||||
def all
|
def all
|
||||||
data = connection.list_user_collaborations
|
data = service.list_user_collaborations
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
requires :identity
|
requires :identity
|
||||||
connection.destroy_user_collaboration(identity)
|
service.destroy_user_collaboration(identity)
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue