Class: XClarityClient::VirtualApplianceManagement

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

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_settingsObject



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_settingsObject



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_stateObject



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_settingsObject



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

#subscriptionsObject



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