lib/phrase/api/projects_api.rb in phrase-2.0.0 vs lib/phrase/api/projects_api.rb in phrase-2.1.0
- old
+ new
@@ -283,10 +283,13 @@
# List all projects the current user has access to.
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
+ # @option opts [String] :account_id Filter by Account ID
+ # @option opts [String] :sort_by Sort projects. Valid options are \"name_asc\", \"name_desc\", \"updated_at_asc\", \"updated_at_desc\", \"space_asc\" and \"space_desc\".
+ # @option opts [Array<String>] :filters Filter projects. Valid options are [\"favorites\"].
# @return [Array<Project>]
def projects_list(opts = {})
data, _status_code, _headers = projects_list_with_http_info(opts)
data
end
@@ -295,10 +298,13 @@
# List all projects the current user has access to.
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
+ # @option opts [String] :account_id Filter by Account ID
+ # @option opts [String] :sort_by Sort projects. Valid options are \"name_asc\", \"name_desc\", \"updated_at_asc\", \"updated_at_desc\", \"space_asc\" and \"space_desc\".
+ # @option opts [Array<String>] :filters Filter projects. Valid options are [\"favorites\"].
# @return [Array<(Response<(Array<Project>)>, Integer, Hash)>] Response<(Array<Project>)> data, response status code and response headers
def projects_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ProjectsApi.projects_list ...'
end
@@ -307,9 +313,12 @@
# query parameters
query_params = opts[:query_params] || {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
+ query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil?
+ query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
+ query_params[:'filters'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])