Sha256: 588786f72524dc9dfff53b39b6607f0843784cc77ae2d1627bd595fa7f3b14a0
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
module Smartdc::Api module Machine class Metadata attr_reader :request, :id def initialize(request, id1, id) @request = request @id1 = id1 @id = id end def create(params={}) request.post('my/machines/' + @id1.to_s + '/metadata/', params) end def read raise ArgumentError unless id request.get('my/machines/' + @id1.to_s + '/metadata/' + id.to_s) end def find(params={}) request.get('my/machines/' + @id1.to_s + '/metadata', params) end def delete request.delete('my/machines/' + @id1.to_s + '/metadata/' + id.to_s) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | lib/smartdc/api/machine/metadata.rb |