@@ -1729,33 +1729,35 @@ def federated_query_notices(environment_id:, collection_ids:, filter: nil, query
17291729 end
17301730
17311731 ##
1732- # @!method get_autocompletion(environment_id:, collection_id:, field: nil, prefix : nil, count: nil)
1732+ # @!method get_autocompletion(environment_id:, collection_id:, prefix:, field : nil, count: nil)
17331733 # Get Autocomplete Suggestions.
17341734 # Returns completion query suggestions for the specified prefix. /n/n
17351735 # **Important:** this method is only valid when using the Cloud Pak version of
17361736 # Discovery.
17371737 # @param environment_id [String] The ID of the environment.
17381738 # @param collection_id [String] The ID of the collection.
1739- # @param field [String] The field in the result documents that autocompletion suggestions are identified
1740- # from.
17411739 # @param prefix [String] The prefix to use for autocompletion. For example, the prefix `Ho` could
17421740 # autocomplete to `Hot`, `Housing`, or `How do I upgrade`. Possible completions are.
1741+ # @param field [String] The field in the result documents that autocompletion suggestions are identified
1742+ # from.
17431743 # @param count [Fixnum] The number of autocompletion suggestions to return.
17441744 # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
1745- def get_autocompletion ( environment_id :, collection_id :, field : nil , prefix : nil , count : nil )
1745+ def get_autocompletion ( environment_id :, collection_id :, prefix : , field : nil , count : nil )
17461746 raise ArgumentError . new ( "environment_id must be provided" ) if environment_id . nil?
17471747
17481748 raise ArgumentError . new ( "collection_id must be provided" ) if collection_id . nil?
17491749
1750+ raise ArgumentError . new ( "prefix must be provided" ) if prefix . nil?
1751+
17501752 headers = {
17511753 }
17521754 sdk_headers = Common . new . get_sdk_headers ( "discovery" , "V1" , "get_autocompletion" )
17531755 headers . merge! ( sdk_headers )
17541756
17551757 params = {
17561758 "version" => @version ,
1757- "field" => field ,
17581759 "prefix" => prefix ,
1760+ "field" => field ,
17591761 "count" => count
17601762 }
17611763
0 commit comments