diff --git a/docs/CustomMetadataApi.md b/docs/CustomMetadataApi.md index d2feff9..c306fae 100644 --- a/docs/CustomMetadataApi.md +++ b/docs/CustomMetadataApi.md @@ -106,6 +106,7 @@ opts = { project_id: 'abcd1234cdef1234abcd1234cdef1234', # String | id of project that the properties belong to page: 1, # Integer | Page number per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default + q: 'character_name', # String | query to find a property by name sort: 'updated_at', # String | Sort criteria. Can be one of: name, data_type, created_at. order: 'desc' # String | Order direction. Can be one of: asc, desc. } @@ -130,6 +131,7 @@ Name | Type | Description | Notes **project_id** | **String**| id of project that the properties belong to | [optional] **page** | **Integer**| Page number | [optional] **per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional] + **q** | **String**| query to find a property by name | [optional] **sort** | **String**| Sort criteria. Can be one of: name, data_type, created_at. | [optional] **order** | **String**| Order direction. Can be one of: asc, desc. | [optional] diff --git a/docs/KeyCreateParameters.md b/docs/KeyCreateParameters.md index dc11fba..b57e3fa 100644 --- a/docs/KeyCreateParameters.md +++ b/docs/KeyCreateParameters.md @@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch, data_type: number, tags: awesome-feature,needs-proofreading, max_characters_allowed: 140, - screenshot: [B@276038e7, + screenshot: [B@22908698, remove_screenshot: null, unformatted: null, default_translation_content: Default translation content, diff --git a/docs/KeyUpdateParameters.md b/docs/KeyUpdateParameters.md index 8684a68..d9dab85 100644 --- a/docs/KeyUpdateParameters.md +++ b/docs/KeyUpdateParameters.md @@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch, data_type: number, tags: awesome-feature,needs-proofreading, max_characters_allowed: 140, - screenshot: [B@4be8d40e, + screenshot: [B@a638f45, remove_screenshot: null, unformatted: null, xml_space_preserve: null, diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md index 2f55e99..1ac7749 100644 --- a/docs/ProjectCreateParameters.md +++ b/docs/ProjectCreateParameters.md @@ -40,7 +40,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project, main_format: yml, media: Python, shares_translation_memory: true, - project_image: [B@596707f5, + project_image: [B@64f6964f, remove_project_image: null, account_id: abcd1234, point_of_contact: abcd1234, diff --git a/docs/ProjectUpdateParameters.md b/docs/ProjectUpdateParameters.md index df9c587..e23ea82 100644 --- a/docs/ProjectUpdateParameters.md +++ b/docs/ProjectUpdateParameters.md @@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234, main_format: yml, media: Python, shares_translation_memory: true, - project_image: [B@6ec05499, + project_image: [B@60291e59, remove_project_image: false, workflow: review, machine_translation_enabled: true, diff --git a/docs/ScreenshotUpdateParameters.md b/docs/ScreenshotUpdateParameters.md index d665c4d..49a373c 100644 --- a/docs/ScreenshotUpdateParameters.md +++ b/docs/ScreenshotUpdateParameters.md @@ -17,7 +17,7 @@ require 'Phrase' instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch, name: A screenshot name, description: A screenshot description, - filename: [B@4659d776) + filename: [B@72842269) ``` diff --git a/lib/phrase/api/custom_metadata_api.rb b/lib/phrase/api/custom_metadata_api.rb index 38a85d1..918a792 100644 --- a/lib/phrase/api/custom_metadata_api.rb +++ b/lib/phrase/api/custom_metadata_api.rb @@ -86,6 +86,7 @@ def custom_metadata_properties_delete_with_http_info(account_id, id, opts = {}) # @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] @@ -103,6 +104,7 @@ def custom_metadata_properties_list(account_id, opts = {}) # @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)>, Integer, Hash)>] Response<(Array)> data, response status code and response headers @@ -123,6 +125,7 @@ def custom_metadata_properties_list_with_http_info(account_id, opts = {}) 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? diff --git a/spec/api/custom_metadata_api_spec.rb b/spec/api/custom_metadata_api_spec.rb index b2ff0a0..53405f9 100644 --- a/spec/api/custom_metadata_api_spec.rb +++ b/spec/api/custom_metadata_api_spec.rb @@ -44,6 +44,7 @@ # @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]