Sha256: fbaf52388fa30d2c16802963953faab412f0d533f7d445eda01a11b13fa64c1a
Contents?: true
Size: 896 Bytes
Versions: 25
Compression:
Stored size: 896 Bytes
Contents
module Fog module Compute class Linode class Real def linode_disk_update(linode_id, disk_id, label, isreadonly) request( :expects => 200, :method => 'GET', :query => { :api_action => 'linode.disk.update', :linodeId => linode_id, :diskId => disk_id, :label => label, :isReadOnly => isreadonly } ) end end class Mock def linode_disk_update(linode_id, disk_id, label, isreadonly) response = Excon::Response.new response.status = 200 response.body = { "ERRORARRAY" => [], "ACTION" => "linode.disk.update", "DATA" => { "DiskID" => Fog::Mock.random_numbers(5) } } response end end end end end
Version data entries
25 entries across 23 versions & 4 rubygems