@@ -372,8 +372,8 @@ def list_tables(opts = {})
372372 # List all reference tables in this organization.
373373 #
374374 # @param opts [Hash] the optional parameters
375- # @option opts [Integer] :limit Number of tables to return.
376- # @option opts [Integer] :offset Number of tables to skip for pagination.
375+ # @option opts [Integer] :page_limit Number of tables to return.
376+ # @option opts [Integer] :page_offset Number of tables to skip for pagination.
377377 # @option opts [ReferenceTableSortType] :sort Sort field and direction. Use field name for ascending, prefix with "-" for descending.
378378 # @option opts [String] :filter_status Filter by table status.
379379 # @option opts [String] :filter_table_name_exact Filter by exact table name match.
@@ -384,14 +384,14 @@ def list_tables_with_http_info(opts = {})
384384 if @api_client . config . debugging
385385 @api_client . config . logger . debug 'Calling API: ReferenceTablesAPI.list_tables ...'
386386 end
387- if @api_client . config . client_side_validation && !opts [ :'limit ' ] . nil? && opts [ :'limit ' ] > 100
388- fail ArgumentError , 'invalid value for "opts[:"limit "]" when calling ReferenceTablesAPI.list_tables, must be smaller than or equal to 100.'
387+ if @api_client . config . client_side_validation && !opts [ :'page_limit ' ] . nil? && opts [ :'page_limit ' ] > 100
388+ fail ArgumentError , 'invalid value for "opts[:"page_limit "]" when calling ReferenceTablesAPI.list_tables, must be smaller than or equal to 100.'
389389 end
390- if @api_client . config . client_side_validation && !opts [ :'limit ' ] . nil? && opts [ :'limit ' ] < 1
391- fail ArgumentError , 'invalid value for "opts[:"limit "]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 1.'
390+ if @api_client . config . client_side_validation && !opts [ :'page_limit ' ] . nil? && opts [ :'page_limit ' ] < 1
391+ fail ArgumentError , 'invalid value for "opts[:"page_limit "]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 1.'
392392 end
393- if @api_client . config . client_side_validation && !opts [ :'offset ' ] . nil? && opts [ :'offset ' ] < 0
394- fail ArgumentError , 'invalid value for "opts[:"offset "]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 0.'
393+ if @api_client . config . client_side_validation && !opts [ :'page_offset ' ] . nil? && opts [ :'page_offset ' ] < 0
394+ fail ArgumentError , 'invalid value for "opts[:"page_offset "]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 0.'
395395 end
396396 allowable_values = [ 'updated_at' , 'table_name' , 'status' , '-updated_at' , '-table_name' , '-status' ]
397397 if @api_client . config . client_side_validation && opts [ :'sort' ] && !allowable_values . include? ( opts [ :'sort' ] )
@@ -402,8 +402,8 @@ def list_tables_with_http_info(opts = {})
402402
403403 # query parameters
404404 query_params = opts [ :query_params ] || { }
405- query_params [ :'limit' ] = opts [ :'limit ' ] if !opts [ :'limit ' ] . nil?
406- query_params [ :'offset' ] = opts [ :'offset ' ] if !opts [ :'offset ' ] . nil?
405+ query_params [ :'page[ limit] ' ] = opts [ :'page_limit ' ] if !opts [ :'page_limit ' ] . nil?
406+ query_params [ :'page[ offset] ' ] = opts [ :'page_offset ' ] if !opts [ :'page_offset ' ] . nil?
407407 query_params [ :'sort' ] = opts [ :'sort' ] if !opts [ :'sort' ] . nil?
408408 query_params [ :'filter[status]' ] = opts [ :'filter_status' ] if !opts [ :'filter_status' ] . nil?
409409 query_params [ :'filter[table_name][exact]' ] = opts [ :'filter_table_name_exact' ] if !opts [ :'filter_table_name_exact' ] . nil?
0 commit comments