class Morpheus::LicenseInterface
Public Instance Methods
Source
# File lib/morpheus/api/license_interface.rb, line 5 def get() url = "#{@base_url}/api/license" headers = { params: {}, authorization: "Bearer #{@access_token}" } execute(method: :get, url: url, headers: headers) end
Source
# File lib/morpheus/api/license_interface.rb, line 11 def install(payload) url = "#{@base_url}/api/license" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } execute(method: :post, url: url, headers: headers, payload: payload.to_json) end
Source
# File lib/morpheus/api/license_interface.rb, line 17 def test(payload) # use /test instead, since 4.1.1 url = "#{@base_url}/api/license/decode" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } execute(method: :post, url: url, headers: headers, payload: payload.to_json) end
Source
# File lib/morpheus/api/license_interface.rb, line 24 def uninstall(params={}) url = "#{@base_url}/api/license" headers = { :params => params, :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } execute(method: :delete, url: url, headers: headers) end