Module: Smartdc::Api::Machines::Metadata
- Included in:
- Client
- Defined in:
- lib/smartdc/api/machines/metadata.rb
Instance Method Summary collapse
- #destroy_machine_metadata(machine_id, key) ⇒ Object
- #machine_metadata(machine_id, params = {}) ⇒ Object
- #update_machine_metadata(machine_id, body = {}) ⇒ Object
Instance Method Details
#destroy_machine_metadata(machine_id, key) ⇒ Object
11 12 13 |
# File 'lib/smartdc/api/machines/metadata.rb', line 11 def (machine_id, key) delete 'my/machines/' + machine_id.to_s + '/metadata/' + key.to_s end |
#machine_metadata(machine_id, params = {}) ⇒ Object
3 4 5 |
# File 'lib/smartdc/api/machines/metadata.rb', line 3 def (machine_id, params={}) get 'my/machines/' + machine_id.to_s + '/metadata', params end |
#update_machine_metadata(machine_id, body = {}) ⇒ Object
7 8 9 |
# File 'lib/smartdc/api/machines/metadata.rb', line 7 def (machine_id, body={}) post 'my/machines/' + machine_id.to_s + '/metadata', body end |