Class: XClarityClient::GlobalSettingManagement

Inherits:
Services::XClarityService show all
Defined in:
lib/xclarity_client/services/globalsettings_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

#set_globalsettings(opts = {}) ⇒ Object



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

def set_globalsettings(opts={})
    request_body = JSON.generate(opts)
    res = Schemas.validate_input(:set_globalsettings, request_body)
    if res[:result] == 'success'
      response = @connection.do_put("#{GlobalSetting::BASE_URI}",
                                    request_body)
    else
      res
    end
end