Class: Fog::Brightbox::Compute::Mock

Inherits:
Object
  • Object
show all
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

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(options)
  unless options.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 = options[:brightbox_client_id] || Fog.credentials[:brightbox_client_id]
  @brightbox_secret = options[: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, options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  Fog::Mock.not_implemented
end

#get_account(options = {}) ⇒ Object



20
21
22
# File 'lib/fog/compute/requests/brightbox/get_account.rb', line 20

def (options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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(options = {})
  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, options = {})
  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, options = {})
  Fog::Mock.not_implemented
end

#request(options) ⇒ Object



88
89
90
# File 'lib/fog/compute/brightbox.rb', line 88

def request(options)
  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 (options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  Fog::Mock.not_implemented
end

#update_account(options = {}) ⇒ Object



21
22
23
# File 'lib/fog/compute/requests/brightbox/update_account.rb', line 21

def (options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  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, options = {})
  Fog::Mock.not_implemented
end