class Milvus::Aliases
def alter(alias_name:, collection_name:)
-
(Hash)
- The response from the server
Parameters:
-
collection_name
(String
) -- The name of the target collection to reassign an alias to -
alias_name
(String
) -- The alias of the collection
def alter(alias_name:, collection_name:) response = client.connection.post("#{PATH}/alter") do |req| req.body = { aliasName: alias_name, collectionName: collection_name } end response.body end
def create(alias_name:, collection_name:)
-
(Hash)
- The response from the server
Parameters:
-
collection_name
(String
) -- The name of the target collection to reassign an alias to -
alias_name
(String
) -- The alias of the collection
def create(alias_name:, collection_name:) response = client.connection.post("#{PATH}/create") do |req| req.body = { aliasName: alias_name, collectionName: collection_name } end response.body end
def describe(alias_name:)
-
(Hash)
- The response from the server
Parameters:
-
alias_name
(String
) -- The name of the alias to describe
def describe(alias_name:) response = client.connection.post("#{PATH}/describe") do |req| req.body = { aliasName: alias_name } end response.body end
def drop(alias_name:)
-
(Hash)
- The response from the server
Parameters:
-
alias_name
(String
) -- The alias to drop
def drop(alias_name:) response = client.connection.post("#{PATH}/drop") do |req| req.body = { aliasName: alias_name } end response.body end
def list
-
(Hash)
- The response from the server
def list response = client.connection.post("#{PATH}/list") do |req| req.body = {} end response.body end