class OneviewSDK::ImageStreamer::API600::OSVolume

OS Volume resource implementation for Image Streamer

Public Instance Methods

get_details_archive() click to toggle source

Get the details of the archived OS volume with the specified attribute. @return [Hash] The details of the archived OS volume with the specified attribute

# File lib/oneview-sdk/image-streamer/resource/api600/os_volume.rb, line 21
def get_details_archive
  ensure_client && ensure_uri
  path = "#{BASE_URI}/archive/#{@data['uri'].split('/').last}"
  response = @client.rest_get(path)
  @client.response_handler(response)
end
get_os_volumes_storage() click to toggle source

Retrieves the os volumes storage of the selected os volumes as per the selected attributes. @return [Hash] The readonly artifacts of the selected OS Volumes.

# File lib/oneview-sdk/image-streamer/resource/api600/os_volume.rb, line 30
def get_os_volumes_storage
  ensure_client && ensure_uri
  path = "#{BASE_URI}/#{@data['uri'].split('/').last}/storage"
  response = @client.rest_get(path, { 'Content-Type' => 'none' }, @api_version)
  @client.response_handler(response)
end