class Morpheus::DatastoresInterface

Public Instance Methods

base_path() click to toggle source
# File lib/morpheus/api/datastores_interface.rb, line 5
def base_path
  "/api/data-stores"
end
list(params={}) click to toggle source
# 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={}) click to toggle source
# 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