class Morpheus::IntegrationsInterface
Public Instance Methods
Source
# File lib/morpheus/api/integrations_interface.rb, line 5 def base_path "/api/integrations" end
Source
# File lib/morpheus/api/integrations_interface.rb, line 27 def create_object(id, payload, params={}, headers={}) validate_id!(id) execute(method: :post, url: "#{base_path}/#{id}/objects", params: params, payload: payload, headers: headers) end
Source
# File lib/morpheus/api/integrations_interface.rb, line 38 def destroy_object(id, obj_id, params = {}, headers={}) validate_id!(id) validate_id!(obj_id) execute(method: :delete, url: "#{base_path}/#{id}/objects/#{obj_id}", params: params, headers: headers) end
Source
# File lib/morpheus/api/integrations_interface.rb, line 51 def get_inventory(id, inventory_id, params={}, headers={}) validate_id!(id) validate_id!(inventory_id) execute(method: :get, url: "#{base_path}/#{id}/inventory/#{inventory_id}", params: params, headers: headers) end
Source
# File lib/morpheus/api/integrations_interface.rb, line 21 def get_object(id, obj_id, params={}, headers={}) validate_id!(id) validate_id!(obj_id) execute(method: :get, url: "#{base_path}/#{id}/objects/#{obj_id}", params: params, headers: headers) end
Source
# File lib/morpheus/api/integrations_interface.rb, line 46 def list_inventory(id, params={}, headers={}) validate_id!(id) execute(method: :get, url: "#{base_path}/#{id}/inventory", params: params, headers: headers) end
Integration Inventory Item CRUD
Source
# File lib/morpheus/api/integrations_interface.rb, line 16 def list_objects(id, params={}, headers={}) validate_id!(id) execute(method: :get, url: "#{base_path}/#{id}/objects", params: params, headers: headers) end
Integration Objects CRUD
Source
# File lib/morpheus/api/integrations_interface.rb, line 9 def refresh(id, params={}, payload={}, headers={}) validate_id!(id) execute(method: :post, url: "#{base_path}/#{id}/refresh", params: params, payload: payload, headers: headers) end
Source
# File lib/morpheus/api/integrations_interface.rb, line 62 def update_inventory(id, inventory_id, payload, params={}, headers={}) validate_id!(id) validate_id!(inventory_id) execute(method: :put, url: "#{base_path}/#{id}/inventory/#{inventory_id}", params: params, payload: payload, headers: headers) end
def create_inventory(id, payload, params={}, headers={})
validate_id!(id) execute(method: :post, url: "#{base_path}/#{id}/inventory", params: params, payload: payload, headers: headers)
end
Source
# File lib/morpheus/api/integrations_interface.rb, line 32 def update_object(id, obj_id, payload, params={}, headers={}) validate_id!(id) validate_id!(obj_id) execute(method: :put, url: "#{base_path}/#{id}/objects/#{obj_id}", params: params, payload: payload, headers: headers) end