fog-brightbox 1.0.0.rc1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +58 -2
- data/README.md +3 -4
- data/fog-brightbox.gemspec +2 -2
- data/lib/fog/brightbox.rb +4 -24
- data/lib/fog/brightbox/compute.rb +18 -33
- data/lib/fog/brightbox/compute/config.rb +1 -1
- data/lib/fog/brightbox/compute/image_selector.rb +5 -3
- data/lib/fog/brightbox/compute/resource_locking.rb +1 -1
- data/lib/fog/brightbox/compute/shared.rb +3 -3
- data/lib/fog/brightbox/models/compute/account.rb +2 -2
- data/lib/fog/brightbox/models/compute/accounts.rb +3 -3
- data/lib/fog/brightbox/models/compute/api_client.rb +3 -3
- data/lib/fog/brightbox/models/compute/api_clients.rb +3 -3
- data/lib/fog/brightbox/models/compute/application.rb +2 -2
- data/lib/fog/brightbox/models/compute/applications.rb +3 -3
- data/lib/fog/brightbox/models/compute/cloud_ip.rb +3 -3
- data/lib/fog/brightbox/models/compute/cloud_ips.rb +3 -3
- data/lib/fog/brightbox/models/compute/collaboration.rb +3 -3
- data/lib/fog/brightbox/models/compute/collaborations.rb +5 -5
- data/lib/fog/brightbox/models/compute/database_server.rb +6 -3
- data/lib/fog/brightbox/models/compute/database_servers.rb +3 -3
- data/lib/fog/brightbox/models/compute/database_snapshot.rb +3 -3
- data/lib/fog/brightbox/models/compute/database_snapshots.rb +3 -3
- data/lib/fog/brightbox/models/compute/database_type.rb +2 -2
- data/lib/fog/brightbox/models/compute/database_types.rb +3 -3
- data/lib/fog/brightbox/models/compute/event.rb +2 -2
- data/lib/fog/brightbox/models/compute/events.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_policies.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_policy.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_rule.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_rules.rb +3 -3
- data/lib/fog/brightbox/models/compute/flavor.rb +2 -2
- data/lib/fog/brightbox/models/compute/flavors.rb +3 -3
- data/lib/fog/brightbox/models/compute/image.rb +3 -3
- data/lib/fog/brightbox/models/compute/images.rb +3 -3
- data/lib/fog/brightbox/models/compute/load_balancer.rb +6 -3
- data/lib/fog/brightbox/models/compute/load_balancers.rb +3 -3
- data/lib/fog/brightbox/models/compute/server.rb +6 -3
- data/lib/fog/brightbox/models/compute/server_group.rb +3 -3
- data/lib/fog/brightbox/models/compute/server_groups.rb +3 -3
- data/lib/fog/brightbox/models/compute/servers.rb +4 -4
- data/lib/fog/brightbox/models/compute/user.rb +2 -2
- data/lib/fog/brightbox/models/compute/user_collaboration.rb +3 -3
- data/lib/fog/brightbox/models/compute/user_collaborations.rb +4 -4
- data/lib/fog/brightbox/models/compute/users.rb +3 -3
- data/lib/fog/brightbox/models/compute/zone.rb +2 -2
- data/lib/fog/brightbox/models/compute/zones.rb +3 -3
- data/lib/fog/brightbox/models/storage/directories.rb +4 -4
- data/lib/fog/brightbox/models/storage/directory.rb +3 -3
- data/lib/fog/brightbox/models/storage/file.rb +2 -2
- data/lib/fog/brightbox/models/storage/files.rb +6 -6
- data/lib/fog/brightbox/requests/compute/accept_user_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_application.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_image.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/delete_api_client.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_application.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_cloud_ip.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_collaboration.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_database_server.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_database_snapshot.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_firewall_policy.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_firewall_rule.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_image.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_load_balancer.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_server.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_server_group.rb +2 -10
- data/lib/fog/brightbox/requests/compute/delete_user_collaboration.rb +2 -10
- data/lib/fog/brightbox/requests/compute/get_account.rb +6 -15
- data/lib/fog/brightbox/requests/compute/get_api_client.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_application.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_authenticated_user.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_database_snapshot.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_database_type.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_image.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_interface.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_scoped_account.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_server_type.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_user.rb +6 -15
- data/lib/fog/brightbox/requests/compute/get_user_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/get_zone.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_accounts.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_api_clients.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_applications.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_collaborations.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_database_servers.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_database_snapshots.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_database_types.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_events.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_images.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_server_groups.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_server_types.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_servers.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_user_collaborations.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_users.rb +2 -2
- data/lib/fog/brightbox/requests/compute/list_zones.rb +2 -2
- data/lib/fog/brightbox/requests/compute/lock_resource_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/lock_resource_database_snapshot.rb +2 -2
- data/lib/fog/brightbox/requests/compute/lock_resource_image.rb +2 -2
- data/lib/fog/brightbox/requests/compute/lock_resource_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/lock_resource_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +2 -2
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reboot_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reject_user_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +2 -2
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/resend_collaboration.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +6 -15
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_scoped_account.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_password_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_application.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/shutdown_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/snapshot_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/snapshot_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/start_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/stop_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unlock_resource_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unlock_resource_database_snapshot.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unlock_resource_image.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unlock_resource_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unlock_resource_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_account.rb +15 -36
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_application.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_database_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_database_snapshot.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_firewall_policy.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_image.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_scoped_account.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_server.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +2 -2
- data/lib/fog/brightbox/requests/compute/update_user.rb +2 -2
- data/lib/fog/brightbox/requests/storage/copy_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/delete_container.rb +3 -3
- data/lib/fog/brightbox/requests/storage/delete_multiple_objects.rb +2 -2
- data/lib/fog/brightbox/requests/storage/delete_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/delete_static_large_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/get_container.rb +3 -3
- data/lib/fog/brightbox/requests/storage/get_containers.rb +2 -2
- data/lib/fog/brightbox/requests/storage/get_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/get_object_http_url.rb +2 -2
- data/lib/fog/brightbox/requests/storage/get_object_https_url.rb +2 -2
- data/lib/fog/brightbox/requests/storage/head_container.rb +3 -3
- data/lib/fog/brightbox/requests/storage/head_containers.rb +2 -2
- data/lib/fog/brightbox/requests/storage/head_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb +2 -2
- data/lib/fog/brightbox/requests/storage/put_container.rb +3 -3
- data/lib/fog/brightbox/requests/storage/put_dynamic_obj_manifest.rb +5 -5
- data/lib/fog/brightbox/requests/storage/put_object.rb +3 -3
- data/lib/fog/brightbox/requests/storage/put_object_manifest.rb +2 -2
- data/lib/fog/brightbox/requests/storage/put_static_obj_manifest.rb +4 -4
- data/lib/fog/brightbox/storage.rb +12 -5
- data/lib/fog/brightbox/storage/authentication_request.rb +1 -1
- data/lib/fog/brightbox/storage/authentication_required.rb +1 -1
- data/lib/fog/brightbox/storage/config.rb +1 -1
- data/lib/fog/brightbox/storage/connection.rb +2 -2
- data/lib/fog/brightbox/storage/management_url_unknown.rb +1 -1
- data/lib/fog/brightbox/storage/not_found.rb +8 -0
- data/lib/fog/brightbox/version.rb +1 -1
- data/spec/fog/brightbox/compute/wrapped_request_spec.rb +4 -4
- data/spec/fog/brightbox/config_spec.rb +3 -3
- data/spec/fog/brightbox/link_helper_spec.rb +1 -1
- data/spec/fog/brightbox/storage/authentication_request_spec.rb +4 -4
- data/spec/fog/brightbox/storage/connection_errors_spec.rb +1 -1
- data/spec/fog/brightbox/storage/connection_spec.rb +2 -2
- data/spec/fog/compute/brightbox/account_spec.rb +1 -1
- data/spec/fog/compute/brightbox/api_client_spec.rb +1 -1
- data/spec/fog/compute/brightbox/application_spec.rb +1 -1
- data/spec/fog/compute/brightbox/cloud_ip_spec.rb +1 -1
- data/spec/fog/compute/brightbox/collaboration_spec.rb +1 -1
- data/spec/fog/compute/brightbox/database_server_spec.rb +20 -5
- data/spec/fog/compute/brightbox/database_snapshot_spec.rb +1 -1
- data/spec/fog/compute/brightbox/database_type_spec.rb +1 -1
- data/spec/fog/compute/brightbox/event_spec.rb +1 -1
- data/spec/fog/compute/brightbox/firewall_policy_spec.rb +1 -1
- data/spec/fog/compute/brightbox/flavor_spec.rb +1 -1
- data/spec/fog/compute/brightbox/image_spec.rb +1 -1
- data/spec/fog/compute/brightbox/load_balancer_spec.rb +25 -1
- data/spec/fog/compute/brightbox/server_group_spec.rb +1 -1
- data/spec/fog/compute/brightbox/server_spec.rb +47 -5
- data/spec/fog/compute/brightbox/user_collaboration_spec.rb +1 -1
- data/spec/fog/compute/brightbox/user_spec.rb +1 -1
- data/spec/fog/compute/brightbox/zone_spec.rb +1 -1
- data/spec/fog/compute/brightbox_spec.rb +5 -5
- data/spec/fog/storage/brightbox_spec.rb +8 -8
- data/spec/model_setup.rb +1 -1
- data/tests/brightbox/compute/schema.rb +1 -1
- data/tests/brightbox/compute_tests.rb +2 -2
- data/tests/brightbox/requests/compute/api_client_tests.rb +2 -2
- data/tests/brightbox/requests/compute/application_test.rb +2 -2
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +2 -2
- data/tests/brightbox/requests/compute/collaboration_tests.rb +6 -3
- data/tests/brightbox/requests/compute/database_server_tests.rb +2 -2
- data/tests/brightbox/requests/compute/database_snapsnot_tests.rb +2 -2
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +2 -2
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +2 -2
- data/tests/brightbox/requests/compute/helper.rb +1 -1
- data/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +2 -2
- data/tests/brightbox/requests/compute/server_group_tests.rb +2 -2
- data/tests/brightbox/requests/compute/server_tests.rb +2 -2
- metadata +20 -14
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the firewall policy if not in use.
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/firewall_policies/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_firewall_policy+ instead
|
23
|
-
#
|
24
|
-
def destroy_firewall_policy(identifier)
|
25
|
-
delete_firewall_policy(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the firewall rule.
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/firewall_rules/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_firewall_rule+ instead
|
23
|
-
#
|
24
|
-
def destroy_firewall_rule(identifier)
|
25
|
-
delete_firewall_rule(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the image.
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/images/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_image+ instead
|
23
|
-
#
|
24
|
-
def destroy_image(identifier)
|
25
|
-
delete_image(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the LoadBalancer
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/load_balancers/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_load_balancer+ instead
|
23
|
-
#
|
24
|
-
def destroy_load_balancer(identifier)
|
25
|
-
delete_load_balancer(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the server and free up the resources.
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/servers/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_server+ instead
|
23
|
-
#
|
24
|
-
def destroy_server(identifier)
|
25
|
-
delete_server(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Destroy the server group if not in use.
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/server_groups/#{identifier}", [202], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_server_group+ instead
|
23
|
-
#
|
24
|
-
def destroy_server_group(identifier)
|
25
|
-
delete_server_group(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Ends an existing 'accepted' collaboration
|
6
6
|
#
|
@@ -16,14 +16,6 @@ module Fog
|
|
16
16
|
return nil if identifier.nil? || identifier == ""
|
17
17
|
wrapped_request("delete", "/1.0/user/collaborations/#{identifier}", [200], options)
|
18
18
|
end
|
19
|
-
|
20
|
-
# Old format of the delete request.
|
21
|
-
#
|
22
|
-
# @deprecated Use +#delete_user_collaboration+ instead
|
23
|
-
#
|
24
|
-
def destroy_user_collaboration(identifier)
|
25
|
-
delete_user_collaboration(identifier)
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
@@ -1,28 +1,19 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Get full details of the account.
|
6
6
|
#
|
7
|
-
# @
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
11
|
-
#
|
12
|
-
# @overload get_account()
|
13
|
-
# @deprecated Use {Fog::Compute::Brightbox::Real#get_scoped_account} instead
|
7
|
+
# @param [String] identifier Unique reference to identify the resource
|
8
|
+
# @param [Hash] options
|
9
|
+
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
14
10
|
#
|
15
11
|
# @return [Hash] if successful Hash version of JSON object
|
16
12
|
#
|
17
13
|
# @see https://api.gb1.brightbox.com/1.0/#account_get_account
|
18
14
|
#
|
19
15
|
def get_account(identifier = nil, options = {})
|
20
|
-
|
21
|
-
Fog::Logger.deprecation("get_account() without a parameter is deprecated, use get_scoped_account instead [light_black](#{caller.first})[/]")
|
22
|
-
get_scoped_account
|
23
|
-
else
|
24
|
-
wrapped_request("get", "/1.0/accounts/#{identifier}", [200], options)
|
25
|
-
end
|
16
|
+
wrapped_request("get", "/1.0/accounts/#{identifier}", [200], options)
|
26
17
|
end
|
27
18
|
end
|
28
19
|
end
|
@@ -1,28 +1,19 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Brightbox
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
# Get full details of the user.
|
6
6
|
#
|
7
|
-
# @
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
11
|
-
#
|
12
|
-
# @overload get_user()
|
13
|
-
# @deprecated Use {Fog::Compute::Brightbox::Real#get_authenticated_user} instead
|
7
|
+
# @param [String] identifier Unique reference to identify the resource
|
8
|
+
# @param [Hash] options
|
9
|
+
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
14
10
|
#
|
15
11
|
# @return [Hash] if successful Hash version of JSON object
|
16
12
|
#
|
17
13
|
# @see https://api.gb1.brightbox.com/1.0/#user_get_user
|
18
14
|
#
|
19
15
|
def get_user(identifier, options = {})
|
20
|
-
|
21
|
-
Fog::Logger.deprecation("get_user() without a parameter is deprecated, use get_authenticated_user instead [light_black](#{caller.first})[/]")
|
22
|
-
get_authenticated_user
|
23
|
-
else
|
24
|
-
wrapped_request("get", "/1.0/users/#{identifier}", [200], options)
|
25
|
-
end
|
16
|
+
wrapped_request("get", "/1.0/users/#{identifier}", [200], options)
|
26
17
|
end
|
27
18
|
end
|
28
19
|
end
|