phrase 4.32.0 → 4.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile +1 -1
  4. data/README.md +6 -3
  5. data/docs/JobCreateParameters.md +4 -2
  6. data/docs/JobDetails.md +3 -1
  7. data/docs/JobTemplateCreateParameters.md +2 -0
  8. data/docs/JobTemplateDetails.md +3 -1
  9. data/docs/JobTemplateUpdateParameters.md +2 -0
  10. data/docs/JobUpdateParameters.md +3 -1
  11. data/docs/KeysApi.md +6 -2
  12. data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
  13. data/docs/OrganizationJobTemplateDetails.md +3 -1
  14. data/docs/OrganizationJobTemplateUpdateParameters.md +2 -0
  15. data/docs/RepoSyncEvent.md +3 -1
  16. data/docs/RepoSyncEventUploadsInner.md +19 -0
  17. data/docs/TranslationKey.md +3 -1
  18. data/docs/TranslationKeyDetails.md +2 -0
  19. data/docs/TranslationKeyLinkedKey.md +21 -0
  20. data/docs/TranslationKeyLinkedKeyParent.md +19 -0
  21. data/docs/TranslationsApi.md +7 -7
  22. data/docs/TranslationsExcludeParameters.md +2 -2
  23. data/docs/TranslationsIncludeParameters.md +2 -2
  24. data/docs/TranslationsReviewParameters.md +2 -2
  25. data/docs/TranslationsSearchParameters.md +2 -2
  26. data/docs/TranslationsUnreviewParameters.md +2 -2
  27. data/docs/TranslationsUnverifyParameters.md +2 -2
  28. data/docs/TranslationsVerifyParameters.md +2 -2
  29. data/lib/phrase/api/keys_api.rb +6 -0
  30. data/lib/phrase/api/translations_api.rb +8 -8
  31. data/lib/phrase/models/job_create_parameters.rb +15 -5
  32. data/lib/phrase/models/job_details.rb +14 -4
  33. data/lib/phrase/models/job_template_create_parameters.rb +11 -1
  34. data/lib/phrase/models/job_template_details.rb +14 -4
  35. data/lib/phrase/models/job_template_update_parameters.rb +11 -1
  36. data/lib/phrase/models/job_update_parameters.rb +14 -4
  37. data/lib/phrase/models/organization_job_template_create_parameters.rb +11 -1
  38. data/lib/phrase/models/organization_job_template_details.rb +14 -4
  39. data/lib/phrase/models/organization_job_template_update_parameters.rb +11 -1
  40. data/lib/phrase/models/repo_sync_event.rb +17 -4
  41. data/lib/phrase/models/repo_sync_event_uploads_inner.rb +241 -0
  42. data/lib/phrase/models/translation_key.rb +14 -4
  43. data/lib/phrase/models/translation_key_details.rb +11 -1
  44. data/lib/phrase/models/translation_key_linked_key.rb +253 -0
  45. data/lib/phrase/models/translation_key_linked_key_parent.rb +208 -0
  46. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  47. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  48. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  49. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  50. data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
  51. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  52. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  53. data/lib/phrase/version.rb +1 -1
  54. data/lib/phrase.rb +3 -0
  55. data/spec/api/keys_api_spec.rb +2 -0
  56. data/spec/api/translations_api_spec.rb +4 -4
  57. data/spec/models/job_create_parameters_spec.rb +6 -0
  58. data/spec/models/job_details_spec.rb +6 -0
  59. data/spec/models/job_template_create_parameters_spec.rb +6 -0
  60. data/spec/models/job_template_details_spec.rb +6 -0
  61. data/spec/models/job_template_update_parameters_spec.rb +6 -0
  62. data/spec/models/job_update_parameters_spec.rb +6 -0
  63. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  64. data/spec/models/organization_job_template_details_spec.rb +6 -0
  65. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  66. data/spec/models/repo_sync_event_spec.rb +6 -0
  67. data/spec/models/repo_sync_event_uploads_inner_spec.rb +39 -0
  68. data/spec/models/translation_key_details_spec.rb +6 -0
  69. data/spec/models/translation_key_linked_key_parent_spec.rb +35 -0
  70. data/spec/models/translation_key_linked_key_spec.rb +45 -0
  71. data/spec/models/translation_key_spec.rb +6 -0
  72. metadata +280 -268
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
8
+ **q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples). | [optional]
9
9
  **sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
10
10
  **order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
11
11
 
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  require 'phrase'
16
16
 
17
17
  instance = Phrase::TranslationsUnverifyParameters.new(branch: 'my-feature-branch',
18
- q: 'PhraseApp*%20verified:true%20tags:feature,center',
18
+ q: 'key.name:home.title,home.subtitle locale.name:de-DE tags:feature',
19
19
  sort: 'updated_at',
20
20
  order: 'desc')
21
21
  ```
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **locale_id** | **String** | specify the locale of the translations to be verified | [optional]
9
- **q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
9
+ **q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples). | [optional]
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -15,7 +15,7 @@ require 'phrase'
15
15
 
16
16
  instance = Phrase::TranslationsVerifyParameters.new(branch: 'my-feature-branch',
17
17
  locale_id: 'fc2f11dd6a658fa9652f6f0a9ebee688',
18
- q: 'PhraseApp*%20unverified:true%20tags:feature,center')
18
+ q: 'key.name:home.title,home.subtitle locale.name:de-DE tags:feature')
19
19
  ```
20
20
 
21
21
 
@@ -546,6 +546,7 @@ module Phrase
546
546
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
547
547
  # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
548
548
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
549
+ # @option opts [Boolean] :include_linked_keys When set to `true`, each key object in the response includes a `linked_key` field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent's id and name (for child keys). Keys with no active link return `linked_key: null`. Omit this parameter or set it to `false` to leave the `linked_key` field out of the response entirely.
549
550
  # @return [Array<TranslationKey>]
550
551
  def keys_list(project_id, opts = {})
551
552
  data, _status_code, _headers = keys_list_with_http_info(project_id, opts)
@@ -564,6 +565,7 @@ module Phrase
564
565
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
565
566
  # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - &#x60;ids:key_id,...&#x60; for queries on a comma-separated list of ids - &#x60;name:key_name&#x60; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - &#x60;tags:tag_name&#x60; to filter for keys with certain tags - &#x60;translated:{true|false}&#x60; for translation status (also requires &#x60;locale_id&#x60; to be specified) - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries - &#x60;unmentioned_in_upload:upload_id,...&#x60; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
566
567
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
568
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
567
569
  # @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
568
570
  def keys_list_with_http_info(project_id, opts = {})
569
571
  if @api_client.config.debugging
@@ -585,6 +587,7 @@ module Phrase
585
587
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
586
588
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
587
589
  query_params[:'locale_id'] = opts[:'locale_id'] if !opts[:'locale_id'].nil?
590
+ query_params[:'include_linked_keys'] = opts[:'include_linked_keys'] if !opts[:'include_linked_keys'].nil?
588
591
 
589
592
  # header parameters
590
593
  header_params = opts[:header_params] || {}
@@ -629,6 +632,7 @@ module Phrase
629
632
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
630
633
  # @option opts [Integer] :page Page number
631
634
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
635
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
632
636
  # @return [Array<TranslationKey>]
633
637
  def keys_search(project_id, keys_search_parameters, opts = {})
634
638
  data, _status_code, _headers = keys_search_with_http_info(project_id, keys_search_parameters, opts)
@@ -643,6 +647,7 @@ module Phrase
643
647
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
644
648
  # @option opts [Integer] :page Page number
645
649
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
650
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
646
651
  # @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
647
652
  def keys_search_with_http_info(project_id, keys_search_parameters, opts = {})
648
653
  if @api_client.config.debugging
@@ -663,6 +668,7 @@ module Phrase
663
668
  query_params = opts[:query_params] || {}
664
669
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
665
670
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
671
+ query_params[:'include_linked_keys'] = opts[:'include_linked_keys'] if !opts[:'include_linked_keys'].nil?
666
672
 
667
673
  # header parameters
668
674
  header_params = opts[:header_params] || {}
@@ -727,7 +727,7 @@ module Phrase
727
727
  # @option opts [String] :branch specify the branch to use
728
728
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
729
729
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
730
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
730
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
731
731
  # @return [Array<Translation>]
732
732
  def translations_by_key(project_id, key_id, opts = {})
733
733
  data, _status_code, _headers = translations_by_key_with_http_info(project_id, key_id, opts)
@@ -745,7 +745,7 @@ module Phrase
745
745
  # @option opts [String] :branch specify the branch to use
746
746
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
747
747
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
748
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
748
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
749
749
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
750
750
  def translations_by_key_with_http_info(project_id, key_id, opts = {})
751
751
  if @api_client.config.debugging
@@ -817,7 +817,7 @@ module Phrase
817
817
  # @option opts [String] :branch specify the branch to use
818
818
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
819
819
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
820
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
820
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
821
821
  # @return [Array<Translation>]
822
822
  def translations_by_locale(project_id, locale_id, opts = {})
823
823
  data, _status_code, _headers = translations_by_locale_with_http_info(project_id, locale_id, opts)
@@ -835,7 +835,7 @@ module Phrase
835
835
  # @option opts [String] :branch specify the branch to use
836
836
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
837
837
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
838
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
838
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
839
839
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
840
840
  def translations_by_locale_with_http_info(project_id, locale_id, opts = {})
841
841
  if @api_client.config.debugging
@@ -1058,7 +1058,7 @@ module Phrase
1058
1058
  # @option opts [String] :locale_id Filter translations to those for the given locale (locale code or id). Equivalent to calling &#x60;GET /projects/{project_id}/locales/{locale_id}/translations&#x60;.
1059
1059
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
1060
1060
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
1061
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1061
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1062
1062
  # @return [Array<Translation>]
1063
1063
  def translations_list(project_id, opts = {})
1064
1064
  data, _status_code, _headers = translations_list_with_http_info(project_id, opts)
@@ -1079,7 +1079,7 @@ module Phrase
1079
1079
  # @option opts [String] :locale_id Filter translations to those for the given locale (locale code or id). Equivalent to calling &#x60;GET /projects/{project_id}/locales/{locale_id}/translations&#x60;.
1080
1080
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
1081
1081
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
1082
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1082
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1083
1083
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
1084
1084
  def translations_list_with_http_info(project_id, opts = {})
1085
1085
  if @api_client.config.debugging
@@ -1369,7 +1369,7 @@ module Phrase
1369
1369
  end
1370
1370
 
1371
1371
  # Unverify translations by query
1372
- # Mark translations matching query as unverified.
1372
+ # Mark translations matching query as unverified. To unverify the translations of specific keys, filter by key id (and optionally locale) directly, for example `key.id:KEY_ID_1,KEY_ID_2 locale.id:LOCALE_ID`. There is no need to look up translation ids first.
1373
1373
  # @param project_id [String] Project ID
1374
1374
  # @param translations_unverify_parameters [TranslationsUnverifyParameters]
1375
1375
  # @param [Hash] opts the optional parameters
@@ -1381,7 +1381,7 @@ module Phrase
1381
1381
  end
1382
1382
 
1383
1383
  # Unverify translations by query
1384
- # Mark translations matching query as unverified.
1384
+ # Mark translations matching query as unverified. To unverify the translations of specific keys, filter by key id (and optionally locale) directly, for example &#x60;key.id:KEY_ID_1,KEY_ID_2 locale.id:LOCALE_ID&#x60;. There is no need to look up translation ids first.
1385
1385
  # @param project_id [String] Project ID
1386
1386
  # @param translations_unverify_parameters [TranslationsUnverifyParameters]
1387
1387
  # @param [Hash] opts the optional parameters
@@ -32,12 +32,15 @@ module Phrase
32
32
  # List of target locales for the job. Mutually exclusive with `job_template_id`.
33
33
  attr_accessor :target_locale_ids
34
34
 
35
- # id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`.
35
+ # id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`. The calling user must have read access to the template; if the template exists but is not accessible, the request returns 404.
36
36
  attr_accessor :job_template_id
37
37
 
38
38
  # Automatically translate the job using machine translation.
39
39
  attr_accessor :autotranslate
40
40
 
41
+ # Exclude linked child keys from the job. While enabled, linked child keys cannot be added to the job. Defaults to `false`.
42
+ attr_accessor :exclude_linked_child_keys
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -52,7 +55,8 @@ module Phrase
52
55
  :'translation_key_ids' => :'translation_key_ids',
53
56
  :'target_locale_ids' => :'target_locale_ids',
54
57
  :'job_template_id' => :'job_template_id',
55
- :'autotranslate' => :'autotranslate'
58
+ :'autotranslate' => :'autotranslate',
59
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys'
56
60
  }
57
61
  end
58
62
 
@@ -70,7 +74,8 @@ module Phrase
70
74
  :'translation_key_ids' => :'Array<String>',
71
75
  :'target_locale_ids' => :'Array<String>',
72
76
  :'job_template_id' => :'String',
73
- :'autotranslate' => :'Boolean'
77
+ :'autotranslate' => :'Boolean',
78
+ :'exclude_linked_child_keys' => :'Boolean'
74
79
  }
75
80
  end
76
81
 
@@ -149,6 +154,10 @@ module Phrase
149
154
  if attributes.key?(:'autotranslate')
150
155
  self.autotranslate = attributes[:'autotranslate']
151
156
  end
157
+
158
+ if attributes.key?(:'exclude_linked_child_keys')
159
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
160
+ end
152
161
  end
153
162
 
154
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -185,7 +194,8 @@ module Phrase
185
194
  translation_key_ids == o.translation_key_ids &&
186
195
  target_locale_ids == o.target_locale_ids &&
187
196
  job_template_id == o.job_template_id &&
188
- autotranslate == o.autotranslate
197
+ autotranslate == o.autotranslate &&
198
+ exclude_linked_child_keys == o.exclude_linked_child_keys
189
199
  end
190
200
 
191
201
  # @see the `==` method
@@ -197,7 +207,7 @@ module Phrase
197
207
  # Calculates hash code according to all attributes.
198
208
  # @return [Integer] Hash code
199
209
  def hash
200
- [branch, name, source_locale_id, briefing, due_date, review_due_date, ticket_url, tags, translation_key_ids, target_locale_ids, job_template_id, autotranslate].hash
210
+ [branch, name, source_locale_id, briefing, due_date, review_due_date, ticket_url, tags, translation_key_ids, target_locale_ids, job_template_id, autotranslate, exclude_linked_child_keys].hash
201
211
  end
202
212
 
203
213
  # Builds the object from hash
@@ -49,6 +49,9 @@ module Phrase
49
49
  # `true` if the job has been locked by the project's job-locking workflow (translations attached to the job are read-only until the job advances).
50
50
  attr_accessor :locked
51
51
 
52
+ # `true` if linked child keys are excluded from this job. While enabled, linked child keys cannot be added to the job.
53
+ attr_accessor :exclude_linked_child_keys
54
+
52
55
  # Attribute mapping from ruby-style variable name to JSON key.
53
56
  def self.attribute_map
54
57
  {
@@ -72,7 +75,8 @@ module Phrase
72
75
  :'locales' => :'locales',
73
76
  :'keys' => :'keys',
74
77
  :'annotations' => :'annotations',
75
- :'locked' => :'locked'
78
+ :'locked' => :'locked',
79
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys'
76
80
  }
77
81
  end
78
82
 
@@ -99,7 +103,8 @@ module Phrase
99
103
  :'locales' => :'Array<LocalePreview>',
100
104
  :'keys' => :'Array<KeyPreview>',
101
105
  :'annotations' => :'Array<JobAnnotationShort>',
102
- :'locked' => :'Boolean'
106
+ :'locked' => :'Boolean',
107
+ :'exclude_linked_child_keys' => :'Boolean'
103
108
  }
104
109
  end
105
110
 
@@ -224,6 +229,10 @@ module Phrase
224
229
  if attributes.key?(:'locked')
225
230
  self.locked = attributes[:'locked']
226
231
  end
232
+
233
+ if attributes.key?(:'exclude_linked_child_keys')
234
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
235
+ end
227
236
  end
228
237
 
229
238
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -264,7 +273,8 @@ module Phrase
264
273
  locales == o.locales &&
265
274
  keys == o.keys &&
266
275
  annotations == o.annotations &&
267
- locked == o.locked
276
+ locked == o.locked &&
277
+ exclude_linked_child_keys == o.exclude_linked_child_keys
268
278
  end
269
279
 
270
280
  # @see the `==` method
@@ -276,7 +286,7 @@ module Phrase
276
286
  # Calculates hash code according to all attributes.
277
287
  # @return [Integer] Hash code
278
288
  def hash
279
- [id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, automation_id, job_template_id, review_due_date, owner, job_tag_name, source_translations_updated_at, source_locale, locales, keys, annotations, locked].hash
289
+ [id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, automation_id, job_template_id, review_due_date, owner, job_tag_name, source_translations_updated_at, source_locale, locales, keys, annotations, locked, exclude_linked_child_keys].hash
280
290
  end
281
291
 
282
292
  # Builds the object from hash
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Automatically translate the job using machine translation.
15
15
  attr_accessor :autotranslate
16
16
 
17
+ # Exclude linked child keys from jobs created from this template. Defaults to `false`.
18
+ attr_accessor :exclude_linked_child_keys
19
+
17
20
  # The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
18
21
  attr_accessor :source_locale_id
19
22
 
@@ -27,6 +30,7 @@ module Phrase
27
30
  :'name' => :'name',
28
31
  :'briefing' => :'briefing',
29
32
  :'autotranslate' => :'autotranslate',
33
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys',
30
34
  :'source_locale_id' => :'source_locale_id',
31
35
  :'owner_id' => :'owner_id'
32
36
  }
@@ -39,6 +43,7 @@ module Phrase
39
43
  :'name' => :'String',
40
44
  :'briefing' => :'String',
41
45
  :'autotranslate' => :'Boolean',
46
+ :'exclude_linked_child_keys' => :'Boolean',
42
47
  :'source_locale_id' => :'String',
43
48
  :'owner_id' => :'String'
44
49
  }
@@ -81,6 +86,10 @@ module Phrase
81
86
  self.autotranslate = attributes[:'autotranslate']
82
87
  end
83
88
 
89
+ if attributes.key?(:'exclude_linked_child_keys')
90
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
91
+ end
92
+
84
93
  if attributes.key?(:'source_locale_id')
85
94
  self.source_locale_id = attributes[:'source_locale_id']
86
95
  end
@@ -117,6 +126,7 @@ module Phrase
117
126
  name == o.name &&
118
127
  briefing == o.briefing &&
119
128
  autotranslate == o.autotranslate &&
129
+ exclude_linked_child_keys == o.exclude_linked_child_keys &&
120
130
  source_locale_id == o.source_locale_id &&
121
131
  owner_id == o.owner_id
122
132
  end
@@ -130,7 +140,7 @@ module Phrase
130
140
  # Calculates hash code according to all attributes.
131
141
  # @return [Integer] Hash code
132
142
  def hash
133
- [branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
143
+ [branch, name, briefing, autotranslate, exclude_linked_child_keys, source_locale_id, owner_id].hash
134
144
  end
135
145
 
136
146
  # Builds the object from hash
@@ -25,6 +25,9 @@ module Phrase
25
25
 
26
26
  attr_accessor :locales
27
27
 
28
+ # `true` if jobs created from this template exclude linked child keys.
29
+ attr_accessor :exclude_linked_child_keys
30
+
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
@@ -38,7 +41,8 @@ module Phrase
38
41
  :'updated_at' => :'updated_at',
39
42
  :'owner' => :'owner',
40
43
  :'creator' => :'creator',
41
- :'locales' => :'locales'
44
+ :'locales' => :'locales',
45
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys'
42
46
  }
43
47
  end
44
48
 
@@ -55,7 +59,8 @@ module Phrase
55
59
  :'updated_at' => :'DateTime',
56
60
  :'owner' => :'UserPreview',
57
61
  :'creator' => :'UserPreview',
58
- :'locales' => :'Array<LocalePreview>'
62
+ :'locales' => :'Array<LocalePreview>',
63
+ :'exclude_linked_child_keys' => :'Boolean'
59
64
  }
60
65
  end
61
66
 
@@ -132,6 +137,10 @@ module Phrase
132
137
  self.locales = value
133
138
  end
134
139
  end
140
+
141
+ if attributes.key?(:'exclude_linked_child_keys')
142
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
143
+ end
135
144
  end
136
145
 
137
146
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,7 +171,8 @@ module Phrase
162
171
  updated_at == o.updated_at &&
163
172
  owner == o.owner &&
164
173
  creator == o.creator &&
165
- locales == o.locales
174
+ locales == o.locales &&
175
+ exclude_linked_child_keys == o.exclude_linked_child_keys
166
176
  end
167
177
 
168
178
  # @see the `==` method
@@ -174,7 +184,7 @@ module Phrase
174
184
  # Calculates hash code according to all attributes.
175
185
  # @return [Integer] Hash code
176
186
  def hash
177
- [id, name, briefing, project, branch, autotranslate_enabled, created_at, updated_at, owner, creator, locales].hash
187
+ [id, name, briefing, project, branch, autotranslate_enabled, created_at, updated_at, owner, creator, locales, exclude_linked_child_keys].hash
178
188
  end
179
189
 
180
190
  # Builds the object from hash
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Automatically translate the job using machine translation.
15
15
  attr_accessor :autotranslate
16
16
 
17
+ # Exclude linked child keys from jobs created from this template.
18
+ attr_accessor :exclude_linked_child_keys
19
+
17
20
  # The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
18
21
  attr_accessor :source_locale_id
19
22
 
@@ -27,6 +30,7 @@ module Phrase
27
30
  :'name' => :'name',
28
31
  :'briefing' => :'briefing',
29
32
  :'autotranslate' => :'autotranslate',
33
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys',
30
34
  :'source_locale_id' => :'source_locale_id',
31
35
  :'owner_id' => :'owner_id'
32
36
  }
@@ -39,6 +43,7 @@ module Phrase
39
43
  :'name' => :'String',
40
44
  :'briefing' => :'String',
41
45
  :'autotranslate' => :'Boolean',
46
+ :'exclude_linked_child_keys' => :'Boolean',
42
47
  :'source_locale_id' => :'String',
43
48
  :'owner_id' => :'String'
44
49
  }
@@ -82,6 +87,10 @@ module Phrase
82
87
  self.autotranslate = attributes[:'autotranslate']
83
88
  end
84
89
 
90
+ if attributes.key?(:'exclude_linked_child_keys')
91
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
92
+ end
93
+
85
94
  if attributes.key?(:'source_locale_id')
86
95
  self.source_locale_id = attributes[:'source_locale_id']
87
96
  end
@@ -118,6 +127,7 @@ module Phrase
118
127
  name == o.name &&
119
128
  briefing == o.briefing &&
120
129
  autotranslate == o.autotranslate &&
130
+ exclude_linked_child_keys == o.exclude_linked_child_keys &&
121
131
  source_locale_id == o.source_locale_id &&
122
132
  owner_id == o.owner_id
123
133
  end
@@ -131,7 +141,7 @@ module Phrase
131
141
  # Calculates hash code according to all attributes.
132
142
  # @return [Integer] Hash code
133
143
  def hash
134
- [branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
144
+ [branch, name, briefing, autotranslate, exclude_linked_child_keys, source_locale_id, owner_id].hash
135
145
  end
136
146
 
137
147
  # Builds the object from hash
@@ -23,6 +23,9 @@ module Phrase
23
23
  # Automatically translate the job using machine translation
24
24
  attr_accessor :autotranslate
25
25
 
26
+ # Exclude linked child keys from the job. When set to `true`, linked child keys already in the job are removed and none can be added while the option is enabled.
27
+ attr_accessor :exclude_linked_child_keys
28
+
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
@@ -32,7 +35,8 @@ module Phrase
32
35
  :'review_due_date' => :'review_due_date',
33
36
  :'ticket_url' => :'ticket_url',
34
37
  :'target_locale_ids' => :'target_locale_ids',
35
- :'autotranslate' => :'autotranslate'
38
+ :'autotranslate' => :'autotranslate',
39
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys'
36
40
  }
37
41
  end
38
42
 
@@ -45,7 +49,8 @@ module Phrase
45
49
  :'review_due_date' => :'DateTime',
46
50
  :'ticket_url' => :'String',
47
51
  :'target_locale_ids' => :'Array<String>',
48
- :'autotranslate' => :'Boolean'
52
+ :'autotranslate' => :'Boolean',
53
+ :'exclude_linked_child_keys' => :'Boolean'
49
54
  }
50
55
  end
51
56
 
@@ -102,6 +107,10 @@ module Phrase
102
107
  if attributes.key?(:'autotranslate')
103
108
  self.autotranslate = attributes[:'autotranslate']
104
109
  end
110
+
111
+ if attributes.key?(:'exclude_linked_child_keys')
112
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
113
+ end
105
114
  end
106
115
 
107
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +137,8 @@ module Phrase
128
137
  review_due_date == o.review_due_date &&
129
138
  ticket_url == o.ticket_url &&
130
139
  target_locale_ids == o.target_locale_ids &&
131
- autotranslate == o.autotranslate
140
+ autotranslate == o.autotranslate &&
141
+ exclude_linked_child_keys == o.exclude_linked_child_keys
132
142
  end
133
143
 
134
144
  # @see the `==` method
@@ -140,7 +150,7 @@ module Phrase
140
150
  # Calculates hash code according to all attributes.
141
151
  # @return [Integer] Hash code
142
152
  def hash
143
- [name, briefing, due_date, review_due_date, ticket_url, target_locale_ids, autotranslate].hash
153
+ [name, briefing, due_date, review_due_date, ticket_url, target_locale_ids, autotranslate, exclude_linked_child_keys].hash
144
154
  end
145
155
 
146
156
  # Builds the object from hash
@@ -11,6 +11,9 @@ module Phrase
11
11
  # Automatically translate the job using machine translation.
12
12
  attr_accessor :autotranslate
13
13
 
14
+ # Exclude linked child keys from jobs created from this template. Defaults to `false`.
15
+ attr_accessor :exclude_linked_child_keys
16
+
14
17
  # Code of the account member to set as the job template owner. When omitted or blank, no owner is pre-set; the user who creates a job from this template is assigned as its owner at job-creation time.
15
18
  attr_accessor :owner_id
16
19
 
@@ -20,6 +23,7 @@ module Phrase
20
23
  :'name' => :'name',
21
24
  :'briefing' => :'briefing',
22
25
  :'autotranslate' => :'autotranslate',
26
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys',
23
27
  :'owner_id' => :'owner_id'
24
28
  }
25
29
  end
@@ -30,6 +34,7 @@ module Phrase
30
34
  :'name' => :'String',
31
35
  :'briefing' => :'String',
32
36
  :'autotranslate' => :'Boolean',
37
+ :'exclude_linked_child_keys' => :'Boolean',
33
38
  :'owner_id' => :'String'
34
39
  }
35
40
  end
@@ -67,6 +72,10 @@ module Phrase
67
72
  self.autotranslate = attributes[:'autotranslate']
68
73
  end
69
74
 
75
+ if attributes.key?(:'exclude_linked_child_keys')
76
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
77
+ end
78
+
70
79
  if attributes.key?(:'owner_id')
71
80
  self.owner_id = attributes[:'owner_id']
72
81
  end
@@ -98,6 +107,7 @@ module Phrase
98
107
  name == o.name &&
99
108
  briefing == o.briefing &&
100
109
  autotranslate == o.autotranslate &&
110
+ exclude_linked_child_keys == o.exclude_linked_child_keys &&
101
111
  owner_id == o.owner_id
102
112
  end
103
113
 
@@ -110,7 +120,7 @@ module Phrase
110
120
  # Calculates hash code according to all attributes.
111
121
  # @return [Integer] Hash code
112
122
  def hash
113
- [name, briefing, autotranslate, owner_id].hash
123
+ [name, briefing, autotranslate, exclude_linked_child_keys, owner_id].hash
114
124
  end
115
125
 
116
126
  # Builds the object from hash
@@ -24,6 +24,9 @@ module Phrase
24
24
 
25
25
  attr_accessor :locales
26
26
 
27
+ # `true` if jobs created from this template exclude linked child keys.
28
+ attr_accessor :exclude_linked_child_keys
29
+
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
@@ -36,7 +39,8 @@ module Phrase
36
39
  :'updated_at' => :'updated_at',
37
40
  :'owner' => :'owner',
38
41
  :'creator' => :'creator',
39
- :'locales' => :'locales'
42
+ :'locales' => :'locales',
43
+ :'exclude_linked_child_keys' => :'exclude_linked_child_keys'
40
44
  }
41
45
  end
42
46
 
@@ -52,7 +56,8 @@ module Phrase
52
56
  :'updated_at' => :'DateTime',
53
57
  :'owner' => :'UserPreview',
54
58
  :'creator' => :'UserPreview',
55
- :'locales' => :'Array<LocalePreview>'
59
+ :'locales' => :'Array<LocalePreview>',
60
+ :'exclude_linked_child_keys' => :'Boolean'
56
61
  }
57
62
  end
58
63
 
@@ -126,6 +131,10 @@ module Phrase
126
131
  self.locales = value
127
132
  end
128
133
  end
134
+
135
+ if attributes.key?(:'exclude_linked_child_keys')
136
+ self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
137
+ end
129
138
  end
130
139
 
131
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +164,8 @@ module Phrase
155
164
  updated_at == o.updated_at &&
156
165
  owner == o.owner &&
157
166
  creator == o.creator &&
158
- locales == o.locales
167
+ locales == o.locales &&
168
+ exclude_linked_child_keys == o.exclude_linked_child_keys
159
169
  end
160
170
 
161
171
  # @see the `==` method
@@ -167,7 +177,7 @@ module Phrase
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [id, name, briefing, autotranslate_enabled, source_locale_id, created_at, updated_at, owner, creator, locales].hash
180
+ [id, name, briefing, autotranslate_enabled, source_locale_id, created_at, updated_at, owner, creator, locales, exclude_linked_child_keys].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash