Class: XClarityClient::RemoteFileServerManagement

Inherits:
Services::XClarityService show all
Defined in:
lib/xclarity_client/services/remotefileserver_management.rb

Instance Method Summary collapse

Methods inherited from Services::XClarityService

#fetch_all, #get_headers_with_opts, #get_object, #get_object_with_id, #get_object_with_opts, #initialize

Methods included from Services::ResponseBuilderMixin

#build_response_with_resource_list

Methods included from Services::ListNameInterpreterMixin

#add_listname_on_body

Constructor Details

This class inherits a constructor from XClarityClient::Services::XClarityService

Instance Method Details

#create_remotefileserver_profile(opts) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/xclarity_client/services/remotefileserver_management.rb', line 7

def create_remotefileserver_profile(opts) 
  request_body = JSON.generate(opts)
  res = Schemas.validate_input(:create_remotefileserver_profile,
                               request_body)
  if res[:result] == 'success'
    response = @connection.do_post(RemoteFileServer::BASE_URI,
                                   request_body)
  else
    res
  end
end

#delete_remotefileserver_profile(serverId) ⇒ Object



19
20
21
22
# File 'lib/xclarity_client/services/remotefileserver_management.rb', line 19

def delete_remotefileserver_profile(serverId)
    response = @connection.do_delete("#{RemoteFileServer::BASE_URI}/"\
                                     "#{serverId}")
end

#get_remotefileserver_profile(serverId) ⇒ Object



24
25
26
27
# File 'lib/xclarity_client/services/remotefileserver_management.rb', line 24

def get_remotefileserver_profile(serverId)
    response = @connection.do_get("#{RemoteFileServer::BASE_URI}/"\
                                  "#{serverId}")
end