lib/purecloudplatformclientv2/api/groups_api.rb in purecloudplatformclientv2-14.1.0 vs lib/purecloudplatformclientv2/api/groups_api.rb in purecloudplatformclientv2-15.0.0
- old
+ new
@@ -408,10 +408,11 @@
# Get a group list
#
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page_size Page size (default to 25)
# @option opts [Integer] :page_number Page number (default to 1)
+ # @option opts [Array<String>] :id id
# @option opts [String] :sort_order Ascending or descending sort order (default to ASC)
# @return [GroupEntityListing]
def get_groups(opts = {})
data, _status_code, _headers = get_groups_with_http_info(opts)
return data
@@ -420,10 +421,11 @@
# Get a group list
#
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page_size Page size
# @option opts [Integer] :page_number Page number
+ # @option opts [Array<String>] :id id
# @option opts [String] :sort_order Ascending or descending sort order
# @return [Array<(GroupEntityListing, Fixnum, Hash)>] GroupEntityListing data, response status code and response headers
def get_groups_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GroupsApi.get_groups ..."
@@ -442,10 +444,16 @@
+
+
+
+
+
+
if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
end
@@ -456,9 +464,10 @@
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
+ query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
# header parameters
header_params = {}