Class: Milvus::Roles
Constant Summary collapse
- PATH =
"roles"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#describe(role_name:) ⇒ Hash
This operation inserts data into a specific collection.
-
#list ⇒ Hash
Lists available roles on the server.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Milvus::Base
Instance Method Details
#describe(role_name:) ⇒ Hash
This operation inserts data into a specific collection.
22 23 24 25 26 27 28 29 30 |
# File 'lib/milvus/roles.rb', line 22 def describe(role_name:) response = client.connection.post("#{PATH}/describe") do |req| req.body = { roleName: role_name } end response.body end |
#list ⇒ Hash
Lists available roles on the server
10 11 12 13 14 15 16 |
# File 'lib/milvus/roles.rb', line 10 def list response = client.connection.post("#{PATH}/list") do |req| req.body = {} end response.body end |