Class: OneviewSDK::ImageStreamer::API300::OSVolume

Inherits:
Resource show all
Defined in:
lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb

Overview

OS Volume resource implementation for Image Streamer

Constant Summary collapse

BASE_URI =
'/rest/os-volumes'.freeze

Constants inherited from Resource

Resource::UNIQUE_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Instance Method Summary collapse

Methods inherited from Resource

#==, #[], #[]=, build_query, #create!, #each, #eql?, #exists?, find_by, from_file, get_all, #initialize, #like?, #refresh, #retrieve!, schema, #schema, #set, #set_all, #to_file

Constructor Details

This class inherits a constructor from OneviewSDK::Resource

Instance Method Details

#createObject

Method is not available

Raises:


23
24
25
# File 'lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb', line 23

def create(*)
  unavailable_method
end

#deleteObject

Method is not available

Raises:


35
36
37
# File 'lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb', line 35

def delete(*)
  unavailable_method
end

#get_details_archiveHash

Get the details of the archived OS volume with the specified attribute.

Returns:

  • (Hash)

    The details of the archived OS volume with the specified attribute


41
42
43
44
45
# File 'lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb', line 41

def get_details_archive
  ensure_client && ensure_uri
  response = @client.rest_get("#{BASE_URI}/archive/#{data['uri'].split('/').last}")
  @client.response_handler(response)
end

#updateObject

Method is not available

Raises:


29
30
31
# File 'lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb', line 29

def update(*)
  unavailable_method
end