Class: Fog::Brightbox::Compute::Mock
- Inherits:
-
Object
- Object
- Fog::Brightbox::Compute::Mock
- Defined in:
- lib/fog/compute/brightbox.rb,
lib/fog/compute/requests/brightbox/get_user.rb,
lib/fog/compute/requests/brightbox/get_zone.rb,
lib/fog/compute/requests/brightbox/get_image.rb,
lib/fog/compute/requests/brightbox/get_server.rb,
lib/fog/compute/requests/brightbox/list_users.rb,
lib/fog/compute/requests/brightbox/list_zones.rb,
lib/fog/compute/requests/brightbox/get_account.rb,
lib/fog/compute/requests/brightbox/list_images.rb,
lib/fog/compute/requests/brightbox/stop_server.rb,
lib/fog/compute/requests/brightbox/update_user.rb,
lib/fog/compute/requests/brightbox/create_image.rb,
lib/fog/compute/requests/brightbox/get_cloud_ip.rb,
lib/fog/compute/requests/brightbox/list_servers.rb,
lib/fog/compute/requests/brightbox/map_cloud_ip.rb,
lib/fog/compute/requests/brightbox/start_server.rb,
lib/fog/compute/requests/brightbox/update_image.rb,
lib/fog/compute/requests/brightbox/create_server.rb,
lib/fog/compute/requests/brightbox/destroy_image.rb,
lib/fog/compute/requests/brightbox/get_interface.rb,
lib/fog/compute/requests/brightbox/resize_server.rb,
lib/fog/compute/requests/brightbox/update_server.rb,
lib/fog/compute/requests/brightbox/destroy_server.rb,
lib/fog/compute/requests/brightbox/get_api_client.rb,
lib/fog/compute/requests/brightbox/list_cloud_ips.rb,
lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb,
lib/fog/compute/requests/brightbox/update_account.rb,
lib/fog/compute/requests/brightbox/create_cloud_ip.rb,
lib/fog/compute/requests/brightbox/get_server_type.rb,
lib/fog/compute/requests/brightbox/shutdown_server.rb,
lib/fog/compute/requests/brightbox/snapshot_server.rb,
lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb,
lib/fog/compute/requests/brightbox/list_api_clients.rb,
lib/fog/compute/requests/brightbox/create_api_client.rb,
lib/fog/compute/requests/brightbox/get_load_balancer.rb,
lib/fog/compute/requests/brightbox/list_server_types.rb,
lib/fog/compute/requests/brightbox/update_api_client.rb,
lib/fog/compute/requests/brightbox/destroy_api_client.rb,
lib/fog/compute/requests/brightbox/list_load_balancers.rb,
lib/fog/compute/requests/brightbox/create_load_balancer.rb,
lib/fog/compute/requests/brightbox/update_load_balancer.rb,
lib/fog/compute/requests/brightbox/destroy_load_balancer.rb,
lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb,
lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb,
lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb
Instance Method Summary collapse
- #add_nodes_load_balancer(identifier, options = {}) ⇒ Object
- #create_api_client(options = {}) ⇒ Object
- #create_cloud_ip(options = {}) ⇒ Object
- #create_image(options = {}) ⇒ Object
- #create_load_balancer(options = {}) ⇒ Object
- #create_server(options = {}) ⇒ Object
- #destroy_api_client(identifier, options = {}) ⇒ Object
- #destroy_cloud_ip(identifier, options = {}) ⇒ Object
- #destroy_image(identifier, options = {}) ⇒ Object
- #destroy_load_balancer(identifier, options = {}) ⇒ Object
- #destroy_server(identifier, options = {}) ⇒ Object
- #get_account(options = {}) ⇒ Object
- #get_api_client(identifier, options = {}) ⇒ Object
- #get_cloud_ip(identifier, options = {}) ⇒ Object
- #get_image(identifier, options = {}) ⇒ Object
- #get_interface(identifier, options = {}) ⇒ Object
- #get_load_balancer(identifier, options = {}) ⇒ Object
- #get_server(identifier, options = {}) ⇒ Object
- #get_server_type(identifier, options = {}) ⇒ Object
- #get_user(identifier, options = {}) ⇒ Object
- #get_zone(identifier, options = {}) ⇒ Object
-
#initialize(options) ⇒ Mock
constructor
A new instance of Mock.
- #list_api_clients(options = {}) ⇒ Object
- #list_cloud_ips(options = {}) ⇒ Object
- #list_images(options = {}) ⇒ Object
- #list_load_balancers(options = {}) ⇒ Object
- #list_server_types(options = {}) ⇒ Object
- #list_servers(options = {}) ⇒ Object
- #list_users(options = {}) ⇒ Object
- #list_zones(options = {}) ⇒ Object
- #map_cloud_ip(identifier, options = {}) ⇒ Object
- #remove_nodes_load_balancer(identifier, options = {}) ⇒ Object
- #request(options) ⇒ Object
- #reset_ftp_password_account(options = {}) ⇒ Object
- #resize_server(identifier, options = {}) ⇒ Object
- #shutdown_server(identifier, options = {}) ⇒ Object
- #snapshot_server(identifier, options = {}) ⇒ Object
- #start_server(identifier, options = {}) ⇒ Object
- #stop_server(identifier, options = {}) ⇒ Object
- #unmap_cloud_ip(identifier, options = {}) ⇒ Object
- #update_account(options = {}) ⇒ Object
- #update_api_client(identifier, options = {}) ⇒ Object
- #update_image(identifier, options = {}) ⇒ Object
- #update_load_balancer(identifier, options = {}) ⇒ Object
- #update_server(identifier, options = {}) ⇒ Object
- #update_user(identifier, options = {}) ⇒ Object
Constructor Details
#initialize(options) ⇒ Mock
Returns a new instance of Mock.
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/fog/compute/brightbox.rb', line 76 def initialize() unless .delete(:provider) location = caller.first warning = "[yellow][WARN] Fog::Brightbox::Compute.new is deprecated, use Fog::Compute.new(:provider => 'Brightbox') instead[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) end @brightbox_client_id = [:brightbox_client_id] || Fog.credentials[:brightbox_client_id] @brightbox_secret = [:brightbox_secret] || Fog.credentials[:brightbox_secret] end |
Instance Method Details
#add_nodes_load_balancer(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb', line 21 def add_nodes_load_balancer(identifier, = {}) Fog::Mock.not_implemented end |
#create_api_client(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/create_api_client.rb', line 20 def create_api_client( = {}) Fog::Mock.not_implemented end |
#create_cloud_ip(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/create_cloud_ip.rb', line 20 def create_cloud_ip( = {}) Fog::Mock.not_implemented end |
#create_image(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/create_image.rb', line 20 def create_image( = {}) Fog::Mock.not_implemented end |
#create_load_balancer(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/create_load_balancer.rb', line 20 def create_load_balancer( = {}) Fog::Mock.not_implemented end |
#create_server(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/create_server.rb', line 20 def create_server( = {}) Fog::Mock.not_implemented end |
#destroy_api_client(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/destroy_api_client.rb', line 21 def destroy_api_client(identifier, = {}) Fog::Mock.not_implemented end |
#destroy_cloud_ip(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb', line 21 def destroy_cloud_ip(identifier, = {}) Fog::Mock.not_implemented end |
#destroy_image(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/destroy_image.rb', line 21 def destroy_image(identifier, = {}) Fog::Mock.not_implemented end |
#destroy_load_balancer(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/destroy_load_balancer.rb', line 21 def destroy_load_balancer(identifier, = {}) Fog::Mock.not_implemented end |
#destroy_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/destroy_server.rb', line 21 def destroy_server(identifier, = {}) Fog::Mock.not_implemented end |
#get_account(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/get_account.rb', line 20 def get_account( = {}) Fog::Mock.not_implemented end |
#get_api_client(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_api_client.rb', line 21 def get_api_client(identifier, = {}) Fog::Mock.not_implemented end |
#get_cloud_ip(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_cloud_ip.rb', line 21 def get_cloud_ip(identifier, = {}) Fog::Mock.not_implemented end |
#get_image(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_image.rb', line 21 def get_image(identifier, = {}) Fog::Mock.not_implemented end |
#get_interface(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_interface.rb', line 21 def get_interface(identifier, = {}) Fog::Mock.not_implemented end |
#get_load_balancer(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_load_balancer.rb', line 21 def get_load_balancer(identifier, = {}) Fog::Mock.not_implemented end |
#get_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_server.rb', line 21 def get_server(identifier, = {}) Fog::Mock.not_implemented end |
#get_server_type(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_server_type.rb', line 21 def get_server_type(identifier, = {}) Fog::Mock.not_implemented end |
#get_user(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_user.rb', line 21 def get_user(identifier, = {}) Fog::Mock.not_implemented end |
#get_zone(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/get_zone.rb', line 21 def get_zone(identifier, = {}) Fog::Mock.not_implemented end |
#list_api_clients(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_api_clients.rb', line 20 def list_api_clients( = {}) Fog::Mock.not_implemented end |
#list_cloud_ips(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_cloud_ips.rb', line 20 def list_cloud_ips( = {}) Fog::Mock.not_implemented end |
#list_images(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_images.rb', line 20 def list_images( = {}) Fog::Mock.not_implemented end |
#list_load_balancers(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_load_balancers.rb', line 20 def list_load_balancers( = {}) Fog::Mock.not_implemented end |
#list_server_types(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_server_types.rb', line 20 def list_server_types( = {}) Fog::Mock.not_implemented end |
#list_servers(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_servers.rb', line 20 def list_servers( = {}) Fog::Mock.not_implemented end |
#list_users(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_users.rb', line 20 def list_users( = {}) Fog::Mock.not_implemented end |
#list_zones(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/list_zones.rb', line 20 def list_zones( = {}) Fog::Mock.not_implemented end |
#map_cloud_ip(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/map_cloud_ip.rb', line 21 def map_cloud_ip(identifier, = {}) Fog::Mock.not_implemented end |
#remove_nodes_load_balancer(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb', line 21 def remove_nodes_load_balancer(identifier, = {}) Fog::Mock.not_implemented end |
#request(options) ⇒ Object
88 89 90 |
# File 'lib/fog/compute/brightbox.rb', line 88 def request() raise "Not implemented" end |
#reset_ftp_password_account(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb', line 20 def reset_ftp_password_account( = {}) Fog::Mock.not_implemented end |
#resize_server(identifier, options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/compute/requests/brightbox/resize_server.rb', line 20 def resize_server(identifier, = {}) Fog::Mock.not_implemented end |
#shutdown_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/shutdown_server.rb', line 21 def shutdown_server(identifier, = {}) Fog::Mock.not_implemented end |
#snapshot_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/snapshot_server.rb', line 21 def snapshot_server(identifier, = {}) Fog::Mock.not_implemented end |
#start_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/start_server.rb', line 21 def start_server(identifier, = {}) Fog::Mock.not_implemented end |
#stop_server(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/stop_server.rb', line 21 def stop_server(identifier, = {}) Fog::Mock.not_implemented end |
#unmap_cloud_ip(identifier, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb', line 21 def unmap_cloud_ip(identifier, = {}) Fog::Mock.not_implemented end |
#update_account(options = {}) ⇒ Object
21 22 23 |
# File 'lib/fog/compute/requests/brightbox/update_account.rb', line 21 def update_account( = {}) Fog::Mock.not_implemented end |
#update_api_client(identifier, options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/compute/requests/brightbox/update_api_client.rb', line 22 def update_api_client(identifier, = {}) Fog::Mock.not_implemented end |
#update_image(identifier, options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/compute/requests/brightbox/update_image.rb', line 22 def update_image(identifier, = {}) Fog::Mock.not_implemented end |
#update_load_balancer(identifier, options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/compute/requests/brightbox/update_load_balancer.rb', line 22 def update_load_balancer(identifier, = {}) Fog::Mock.not_implemented end |
#update_server(identifier, options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/compute/requests/brightbox/update_server.rb', line 22 def update_server(identifier, = {}) Fog::Mock.not_implemented end |
#update_user(identifier, options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/compute/requests/brightbox/update_user.rb', line 22 def update_user(identifier, = {}) Fog::Mock.not_implemented end |