Class: Morpheus::DatastoresInterface
- Inherits:
-
APIClient
- Object
- APIClient
- Morpheus::DatastoresInterface
- Defined in:
- lib/morpheus/api/datastores_interface.rb
Instance Method Summary collapse
Instance Method Details
#base_path ⇒ Object
5 6 7 |
# File 'lib/morpheus/api/datastores_interface.rb', line 5 def base_path "/api/data-stores" end |
#list(params = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/morpheus/api/datastores_interface.rb', line 9 def list(params={}) url = base_path headers = { params: params, authorization: "Bearer #{@access_token}" } execute(method: :get, url: url, headers: headers) end |
#types(params = {}) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/morpheus/api/datastores_interface.rb', line 15 def types(params={}) url = "/api/data-store-types" headers = { params: params, authorization: "Bearer #{@access_token}" } opts = {method: :get, url: url, headers: headers} execute(opts) end |