Class: XClarityClient::VirtualApplianceManagement
- Inherits:
-
Object
- Object
- XClarityClient::VirtualApplianceManagement
- Defined in:
- lib/xclarity_client/services/virtual_appliance_management.rb
Constant Summary collapse
- BASE_URI =
'/aicc'.freeze
- NETWORK_URI =
'/network'.freeze
- IPDISABLE_URI =
'/ipdisable'.freeze
- HOST_URI =
'/host'.freeze
- INTERFACES_URI =
'/interfaces'.freeze
- ROUTES_URI =
'/routes'.freeze
- SUBSCRIPTIONS_URI =
'/subscriptions'.freeze
Instance Method Summary collapse
- #configuration_settings ⇒ Object
- #configuration_settings= ⇒ Object
- #host_settings ⇒ Object
- #host_settings= ⇒ Object
-
#initialize(conf) ⇒ VirtualApplianceManagement
constructor
A new instance of VirtualApplianceManagement.
- #ip_enablement_state ⇒ Object
- #ip_enablement_state= ⇒ Object
- #network_interface_settings(interface) ⇒ Object
- #route_settings ⇒ Object
- #route_settings= ⇒ Object
- #subscriptions ⇒ Object
- #subscriptions= ⇒ Object
Constructor Details
#initialize(conf) ⇒ VirtualApplianceManagement
Returns a new instance of VirtualApplianceManagement.
12 13 14 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 12 def initialize(conf) @connection = XClarityClient::Connection.new(conf) end |
Instance Method Details
#configuration_settings ⇒ Object
16 17 18 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 16 def configuration_settings @connection.do_get(BASE_URI) end |
#configuration_settings= ⇒ Object
20 21 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 20 def configuration_settings=() end |
#host_settings ⇒ Object
34 35 36 37 38 39 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 34 def host_settings uri = BASE_URI+NETWORK_URI+IPDISABLE_URI $lxca_log.info "XclarityClient::VirtualApplianceManagement host_settings", "Action has been sent to #{uri}" @connection.do_get(uri) end |
#host_settings= ⇒ Object
41 42 43 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 41 def host_settings=() end |
#ip_enablement_state ⇒ Object
23 24 25 26 27 28 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 23 def ip_enablement_state uri = BASE_URI+NETWORK_URI+IPDISABLE_URI $lxca_log.info "XclarityClient::VirtualApplianceManagement ip_enablement_state", "Action has been sent to #{uri}" @connection.do_get(uri) end |
#ip_enablement_state= ⇒ Object
30 31 32 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 30 def ip_enablement_state=() end |
#network_interface_settings(interface) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 45 def network_interface_settings(interface) uri = BASE_URI+NETWORK_URI+INTERFACES_URI+"/#{interface}" $lxca_log.info "XclarityClient::VirtualApplianceManagement network_interface_settings", "Action has been sent to #{uri}" @connection.do_get(uri) end |
#route_settings ⇒ Object
56 57 58 59 60 61 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 56 def route_settings uri = BASE_URI+NETWORK_URI+ROUTES_URI $lxca_log.info "XclarityClient::VirtualApplianceManagement route_settings", "Action has been sent to #{uri}" @connection.do_get(uri) end |
#route_settings= ⇒ Object
63 64 65 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 63 def route_settings=() end |
#subscriptions ⇒ Object
67 68 69 70 71 72 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 67 def subscriptions uri = BASE_URI+SUBSCRIPTIONS_URI $lxca_log.info "XclarityClient::VirtualApplianceManagement subscriptions", "Action has been sent to #{uri}" @connection.do_get(uri) end |
#subscriptions= ⇒ Object
74 75 76 |
# File 'lib/xclarity_client/services/virtual_appliance_management.rb', line 74 def subscriptions=() end |