Class: XClarityClient::ConfigProfileManagement

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

#activate_config_profile(id = '', endpoint_uuid = '', restart = '') ⇒ Object



13
14
15
16
17
# File 'lib/xclarity_client/services/config_profile_management.rb', line 13

def activate_config_profile(id='', endpoint_uuid='', restart='')
  postReq = JSON.generate(restart: restart, uuid: endpoint_uuid)
  response = @connection.do_post(managed_resource::BASE_URI + '/' +id, postReq)
  response
end

#delete_config_profile(id = '') ⇒ Object



25
26
27
28
# File 'lib/xclarity_client/services/config_profile_management.rb', line 25

def delete_config_profile(id='')
  response = @connection.do_delete(managed_resource::BASE_URI + '/' + id)
  response
end

#rename_config_profile(id = '', name = '') ⇒ Object



7
8
9
10
11
# File 'lib/xclarity_client/services/config_profile_management.rb', line 7

def rename_config_profile(id='', name='')
  renameReq = JSON.generate(profileName: name)
  response = @connection.do_put(managed_resource::BASE_URI + '/' +id, renameReq)
  response
end

#unassign_config_profile(id = '', force = '', powerDown = '', resetImm = '') ⇒ Object



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

def unassign_config_profile(id='', force='',powerDown='',resetImm='')
  unassignReq = JSON.generate(force: force, powerDownITE: powerDown, resetIMM: resetImm)
  response = @connection.do_post(managed_resource::BASE_URI + '/unassign/' +id, unassignReq)
  response
end