class Milvus::Users
def create(user_name:, password:)
-
(Hash)
- Server response
Parameters:
-
password
(String
) -- Password for the user -
user_name
(String
) -- Username for the user
def create(user_name:, password:) response = client.connection.post("#{PATH}/create") do |req| req.body = { userName: user_name, password: password } end response.body end
def describe(user_name:)
-
(Hash)
- Server response
Parameters:
-
user_name
(String
) -- Username for the user
def describe(user_name:) response = client.connection.post("#{PATH}/describe") do |req| req.body = { userName: user_name } end response.body end
def drop(user_name:)
-
(Hash)
- Server response
Parameters:
-
user_name
(String
) -- Username for the user
def drop(user_name:) response = client.connection.post("#{PATH}/drop") do |req| req.body = { userName: user_name } end response.body end
def grant_role(user_name:, role_name:)
def grant_role(user_name:, role_name:) response = client.connection.post("#{PATH}/grant_role") do |req| req.body = { userName: user_name, roleName: role_name } end response.body end
def list
-
(Hash)
- Server response
def list response = client.connection.post("#{PATH}/list") do |req| req.body = {} end response.body end
def revoke_role(user_name:, role_name:)
def revoke_role(user_name:, role_name:) response = client.connection.post("#{PATH}/revoke_role") do |req| req.body = { userName: user_name, roleName: role_name } end response.body end
def update_password(user_name:, password:, new_password:)
def update_password(user_name:, password:, new_password:) response = client.connection.post("#{PATH}/update_password") do |req| req.body = { userName: user_name, password: password, newPassword: new_password } end response.body end