module ConfigStore::NamespaceClientMethods
Public Instance Methods
create_namespace(namespace)
click to toggle source
# File lib/configstore/clients/namespace_client_methods.rb, line 14 def create_namespace(namespace) return ConfigStore::Namespace.from_api_hash(@api.create_namespace(namespace.to_api_hash)) end
delete_namespace(namespace_uuid)
click to toggle source
# File lib/configstore/clients/namespace_client_methods.rb, line 22 def delete_namespace(namespace_uuid) return @api.delete_namespace(namespace_uuid) end
get_namespace(namespace_uuid)
click to toggle source
# File lib/configstore/clients/namespace_client_methods.rb, line 10 def get_namespace(namespace_uuid) return ConfigStore::Namespace.from_api_hash(@api.get_namespace(namespace_uuid)) end
list_namespaces()
click to toggle source
# File lib/configstore/clients/namespace_client_methods.rb, line 4 def list_namespaces return @api.list_namespaces.map do |raw_namespace| next(ConfigStore::Namespace.from_api_hash(raw_namespace)) end end
update_namespace(namespace_uuid, namespace)
click to toggle source
# File lib/configstore/clients/namespace_client_methods.rb, line 18 def update_namespace(namespace_uuid, namespace) return ConfigStore::Namespace.from_api_hash(@api.update_namespace(namespace_uuid, namespace.to_api_hash)) end