Class: Morpheus::ProvisionTypesInterface
- Inherits:
-
APIClient
- Object
- APIClient
- Morpheus::ProvisionTypesInterface
- Defined in:
- lib/morpheus/api/provision_types_interface.rb
Instance Method Summary collapse
Instance Method Details
#get(options = nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/morpheus/api/provision_types_interface.rb', line 11 def get(=nil) url = "#{@base_url}/api/provision-types" headers = { params: {}, authorization: "Bearer #{@access_token}" } if .is_a?(Hash) headers[:params].merge!() elsif .is_a?(Numeric) url = "#{@base_url}/api/provision-types/#{}" elsif .is_a?(String) headers[:params]['name'] = end execute(method: :get, url: url, headers: headers) end |
#list(params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/morpheus/api/provision_types_interface.rb', line 5 def list(params={}) url = "#{@base_url}/api/provision-types" headers = { params: params, authorization: "Bearer #{@access_token}" } execute(method: :get, url: url, headers: headers) end |