lib/phrase/api/custom_metadata_api.rb in phrase-2.22.2 vs lib/phrase/api/custom_metadata_api.rb in phrase-2.23.0

- old
+ new

@@ -84,10 +84,11 @@ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [CustomMetadataDataType] :data_type Data Type of Custom Metadata Property # @option opts [String] :project_id id of project that the properties belong to # @option opts [Integer] :page Page number # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default + # @option opts [String] :q query to find a property by name # @option opts [String] :sort Sort criteria. Can be one of: name, data_type, created_at. # @option opts [String] :order Order direction. Can be one of: asc, desc. # @return [Array<CustomMetadataProperty>] def custom_metadata_properties_list(account_id, opts = {}) data, _status_code, _headers = custom_metadata_properties_list_with_http_info(account_id, opts) @@ -101,10 +102,11 @@ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [CustomMetadataDataType] :data_type Data Type of Custom Metadata Property # @option opts [String] :project_id id of project that the properties belong to # @option opts [Integer] :page Page number # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default + # @option opts [String] :q query to find a property by name # @option opts [String] :sort Sort criteria. Can be one of: name, data_type, created_at. # @option opts [String] :order Order direction. Can be one of: asc, desc. # @return [Array<(Response<(Array<CustomMetadataProperty>)>, Integer, Hash)>] Response<(Array<CustomMetadataProperty>)> data, response status code and response headers def custom_metadata_properties_list_with_http_info(account_id, opts = {}) if @api_client.config.debugging @@ -121,9 +123,10 @@ query_params = opts[:query_params] || {} query_params[:'data_type'] = opts[:'data_type'] if !opts[:'data_type'].nil? query_params[:'project_id'] = opts[:'project_id'] if !opts[:'project_id'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil? + query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? # header parameters header_params = opts[:header_params] || {}