Class: Server

Inherits:
BsaSoapBase show all
Defined in:
lib/bl_soap/server.rb

Constant Summary

Constants inherited from BsaSoapBase

BsaSoapBase::CLI_SERVICE, BsaSoapBase::CLI_WSDL, BsaSoapBase::DEFAULT_AUTH_TYPE, BsaSoapBase::HTTP_READ_TIMEOUT, BsaSoapBase::LOGIN_SERVICE, BsaSoapBase::LOGIN_WSDL, BsaSoapBase::ROLE_SERVICE, BsaSoapBase::ROLE_WSDL

Instance Method Summary collapse

Methods inherited from BsaSoapBase

#execute_cli_with_attachments, #execute_cli_with_param_list, #get_all_servers, #get_cli_return_value, #initialize, #validate_cli_option_hash_string_values, #validate_cli_options_hash, #validate_cli_result, #validate_servers

Constructor Details

This class inherits a constructor from BsaSoapBase

Instance Method Details

#find_server_objects_by_group(options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/bl_soap/server.rb', line 13

def find_server_objects_by_group(options = {})
	validate_cli_options_hash([:group_id, :recursive], options)
	string_result = execute_cli_with_param_list(self.class, "findServerObjectsByGroup",
																							 [
																									 options[:group_id],
																									 options[:recursive],
																							 ])
	string_value = get_cli_return_value(string_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#get_server_id_by_name(options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/bl_soap/server.rb', line 2

def get_server_id_by_name(options = {})
   validate_cli_options_hash([:server_name], options)
	integer_result = execute_cli_with_param_list(self.class, "getServerIdByName",
		[
			options[:server_name],
		])
	integer_value = get_cli_return_value(integer_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end