Class: Morpheus::StorageVolumesInterface

Inherits:
RestInterface
  • Object
show all
Defined in:
lib/morpheus/api/storage_volumes_interface.rb

Instance Method Summary collapse

Instance Method Details

#base_path ⇒ Object



5
6
7
# File 'lib/morpheus/api/storage_volumes_interface.rb', line 5

def base_path
  "/api/storage-volumes"
end

#resize(id, payload) ⇒ Object



9
10
11
12
13
14
# File 'lib/morpheus/api/storage_volumes_interface.rb', line 9

def resize(id,payload)
  url = "#{@base_url}/api/storage-volumes/#{id}/resize"
  headers = { :params => {},:authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  opts = {method: :put, url: url, headers: headers, payload: payload.to_json}
  execute(opts)
end