Sha256: 8cf4fab9f8d42b5e6a37123a655fa7c3776aef1a23fd362916cb64a50f4c7e3b
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
# coding: utf-8 module Fog module Volume class SakuraCloud class Real def register_note_to_disk( disk_id, notes ) body = { "Notes" => notes.map {|note| { "ID" => note }} } request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :expects => [200], :method => 'PUT', :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/disk/#{disk_id.to_s}/config", :body => Fog::JSON.encode(body) ) end end # Real class Mock def register_note_to_disk( disk_id, notes ) response = Excon::Response.new response.status = 200 response.body = { } response end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-sakuracloud-1.4.0 | lib/fog/sakuracloud/requests/volume/register_note_to_disk.rb |
fog-sakuracloud-1.3.3 | lib/fog/sakuracloud/requests/volume/register_note_to_disk.rb |