Class: Morpheus::VdiPoolsInterface
- Inherits:
-
RestInterface
- Object
- RestInterface
- Morpheus::VdiPoolsInterface
- Defined in:
- lib/morpheus/api/vdi_pools_interface.rb
Instance Method Summary collapse
- #base_path ⇒ Object
-
#update_logo(id, logo_file) ⇒ Object
NOT json, multipart file upload.
Instance Method Details
#base_path ⇒ Object
5 6 7 |
# File 'lib/morpheus/api/vdi_pools_interface.rb', line 5 def base_path "/api/vdi-pools" end |
#update_logo(id, logo_file) ⇒ Object
NOT json, multipart file upload
10 11 12 13 14 15 16 17 |
# File 'lib/morpheus/api/vdi_pools_interface.rb', line 10 def update_logo(id, logo_file) url = "#{base_path}/#{id}/update-logo" headers = { :params => {}, :authorization => "Bearer #{@access_token}"} payload = {} payload[:logo] = logo_file payload[:multipart] = true execute(method: :post, url: url, headers: headers, payload: payload) end |