Class: Fog::Proxmox::Network::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/proxmox/network.rb,
lib/fog/proxmox/network/requests/get_node.rb,
lib/fog/proxmox/network/requests/list_nodes.rb,
lib/fog/proxmox/network/requests/power_node.rb,
lib/fog/proxmox/network/requests/get_network.rb,
lib/fog/proxmox/network/requests/list_networks.rb,
lib/fog/proxmox/network/requests/create_network.rb,
lib/fog/proxmox/network/requests/delete_network.rb,
lib/fog/proxmox/network/requests/update_network.rb

Overview

class Mock update_network request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



51
52
53
54
55
56
57
58
59
60
61
# File 'lib/fog/proxmox/network.rb', line 51

def initialize(options = {})
  @proxmox_uri = URI.parse(options[:proxmox_url])
  @proxmox_auth_method = options[:proxmox_auth_method]
  @proxmox_tokenid = options[:proxmox_tokenid]
  @proxmox_userid = options[:proxmox_userid]
  @proxmox_username = options[:proxmox_username]
  @proxmox_password = options[:proxmox_password]
  @proxmox_token = options[:proxmox_token]
  @proxmox_path = @proxmox_uri.path
  @config = options
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



49
50
51
# File 'lib/fog/proxmox/network.rb', line 49

def config
  @config
end

Instance Method Details

#get_networkObject



39
# File 'lib/fog/proxmox/network/requests/get_network.rb', line 39

def get_network; end

#get_nodeObject



37
# File 'lib/fog/proxmox/network/requests/get_node.rb', line 37

def get_node; end

#list_networksObject



39
# File 'lib/fog/proxmox/network/requests/list_networks.rb', line 39

def list_networks; end

#list_nodesObject



38
# File 'lib/fog/proxmox/network/requests/list_nodes.rb', line 38

def list_nodes; end

#power_nodeObject



39
# File 'lib/fog/proxmox/network/requests/power_node.rb', line 39

def power_node; end