Class: Fog::Proxmox::Network::Mock
- Inherits:
-
Object
- Object
- Fog::Proxmox::Network::Mock
- 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
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #get_network ⇒ Object
- #get_node ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #list_networks ⇒ Object
- #list_nodes ⇒ Object
- #power_node ⇒ Object
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( = {}) @proxmox_uri = URI.parse([:proxmox_url]) @proxmox_auth_method = [:proxmox_auth_method] @proxmox_tokenid = [:proxmox_tokenid] @proxmox_userid = [:proxmox_userid] @proxmox_username = [:proxmox_username] @proxmox_password = [:proxmox_password] @proxmox_token = [:proxmox_token] @proxmox_path = @proxmox_uri.path @config = end |
Instance Attribute Details
#config ⇒ Object (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_network ⇒ Object
39 |
# File 'lib/fog/proxmox/network/requests/get_network.rb', line 39 def get_network; end |
#get_node ⇒ Object
37 |
# File 'lib/fog/proxmox/network/requests/get_node.rb', line 37 def get_node; end |
#list_networks ⇒ Object
39 |
# File 'lib/fog/proxmox/network/requests/list_networks.rb', line 39 def list_networks; end |
#list_nodes ⇒ Object
38 |
# File 'lib/fog/proxmox/network/requests/list_nodes.rb', line 38 def list_nodes; end |
#power_node ⇒ Object
39 |
# File 'lib/fog/proxmox/network/requests/power_node.rb', line 39 def power_node; end |