class Daino::Clients::User
Public Instance Methods
create(name:, roles:, organization:, login:, status: "Ok")
click to toggle source
# File lib/daino/clients/user.rb, line 18 def create(name:, roles:, organization:, login:, status: "Ok") payload = { name: name, roles: roles, organization: organization, login: login, status: status } post("/api/user", payload) { |json| json } end
get_by_name(name)
click to toggle source
# File lib/daino/clients/user.rb, line 14 def get_by_name(name) get("/api/user/#{name}") { |json| json } end
list()
click to toggle source
# File lib/daino/clients/user.rb, line 6 def list get("/api/user") { |json| json } end
search(attributes)
click to toggle source
# File lib/daino/clients/user.rb, line 10 def search(attributes) post("/api/user/_search", query: attributes) { |json| json } end