module Gifnoc::NamespaceAPIMethods
Public Instance Methods
create_namespace(namespace_hash)
click to toggle source
# File lib/gifnoc/apis/namespace_api_methods.rb, line 16 def create_namespace(namespace_hash) options = {body: namespace_hash.to_json} options = options.merge(@options) return with_response_handling do self.class.post("/namespaces", options) end end
delete_namespace(namespace_uuid)
click to toggle source
# File lib/gifnoc/apis/namespace_api_methods.rb, line 32 def delete_namespace(namespace_uuid) return with_response_handling do self.class.delete("/namespaces/#{namespace_uuid}", @options) end end
get_namespace(namespace_uuid)
click to toggle source
# File lib/gifnoc/apis/namespace_api_methods.rb, line 10 def get_namespace(namespace_uuid) return with_response_handling do self.class.get("/namespaces/#{namespace_uuid}", @options) end end
list_namespaces()
click to toggle source
# File lib/gifnoc/apis/namespace_api_methods.rb, line 4 def list_namespaces return with_response_handling do self.class.get("/namespaces", @options) end end
update_namespace(namespace_uuid, namespace_hash)
click to toggle source
# File lib/gifnoc/apis/namespace_api_methods.rb, line 24 def update_namespace(namespace_uuid, namespace_hash) options = {body: namespace_hash.to_json} options = options.merge(@options) return with_response_handling do self.class.put("/namespaces/#{namespace_uuid}", options) end end