Class: XClarityClient::HostPlatformManagement
- Inherits:
-
Services::XClarityService
- Object
- Services::XClarityService
- XClarityClient::HostPlatformManagement
- Defined in:
- lib/xclarity_client/services/hostplatform_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
Constructor Details
This class inherits a constructor from XClarityClient::Services::XClarityService
Instance Method Details
#deploy_osimage(opts = []) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/xclarity_client/services/hostplatform_management.rb', line 12 def deploy_osimage(opts=[]) request_body = JSON.generate(opts) res = Schemas.validate_input(:deploy_osimage, request_body) if res[:result] == 'success' response = @connection.do_put("#{HostPlatform::BASE_URI}", request_body) else res end end |
#get_osimage_deployment_status(uuid) ⇒ Object
8 9 10 |
# File 'lib/xclarity_client/services/hostplatform_management.rb', line 8 def get_osimage_deployment_status(uuid) response = @connection.do_get("#{HostPlatform::BASE_URI}/#{uuid}") end |