phrase 4.31.0 → 4.32.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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +3 -3
  4. data/docs/CustomMetadataPropertiesUpdateParameters.md +1 -1
  5. data/docs/Glossary.md +2 -0
  6. data/docs/GlossaryTermUpdateParameters.md +1 -1
  7. data/docs/JobTemplateUpdateParameters.md +1 -1
  8. data/docs/JobUpdateParameters.md +2 -2
  9. data/docs/KeyUpdateParameters.md +5 -5
  10. data/docs/LocaleUpdateParameters.md +2 -2
  11. data/docs/OrganizationJobTemplateUpdateParameters.md +1 -1
  12. data/docs/ProjectUpdateParameters.md +1 -1
  13. data/docs/ReleaseUpdateParameters.md +3 -3
  14. data/docs/ScreenshotUpdateParameters.md +1 -1
  15. data/docs/StyleguideUpdateParameters.md +9 -9
  16. data/docs/TranslationUpdateParameters.md +1 -1
  17. data/docs/WebhookUpdateParameters.md +1 -1
  18. data/lib/phrase/models/custom_metadata_properties_update_parameters.rb +2 -1
  19. data/lib/phrase/models/glossary.rb +11 -1
  20. data/lib/phrase/models/glossary_term_update_parameters.rb +2 -1
  21. data/lib/phrase/models/job_template_update_parameters.rb +2 -1
  22. data/lib/phrase/models/job_update_parameters.rb +4 -2
  23. data/lib/phrase/models/key_update_parameters.rb +10 -5
  24. data/lib/phrase/models/locale_update_parameters.rb +4 -2
  25. data/lib/phrase/models/organization_job_template_update_parameters.rb +2 -1
  26. data/lib/phrase/models/project_update_parameters.rb +2 -1
  27. data/lib/phrase/models/release_update_parameters.rb +6 -3
  28. data/lib/phrase/models/screenshot_update_parameters.rb +2 -1
  29. data/lib/phrase/models/styleguide_update_parameters.rb +18 -9
  30. data/lib/phrase/models/translation_update_parameters.rb +2 -1
  31. data/lib/phrase/models/webhook_update_parameters.rb +2 -1
  32. data/lib/phrase/version.rb +1 -1
  33. data/spec/models/glossary_spec.rb +6 -0
  34. metadata +267 -267
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e6724c6ff679a6b5bf758aebb13329971c1314a748d5a3dd35c3a05bedd2671
4
- data.tar.gz: a8b4984f2e8d8f0267fa38d5f2dfe2e272731e95d358989acd02b0ad7e1e975c
3
+ metadata.gz: ec425011ef8d54dd03ef89b993465998a2c975808294cb13e584ebfa32458f6f
4
+ data.tar.gz: fae8e39e3e7d87b3236ab7809dd4a76482fdbc08bb660aa7abca9824388d8867
5
5
  SHA512:
6
- metadata.gz: 91ee6eed37dd400687a455c17d1adb210d78b5c2cb0fcaa45989d27761027c3af386a9775dfd4ae1985bc2707574cee70937c86252751e483e4dada3b6dd131b
7
- data.tar.gz: 05aac28e2cfd862b514ba702130ccb2b83b20e2c3aa0496690cd27f80149f0ef43946debbacbd66819e5f257784291b6512e21a60d59205d926af899c0fe091d
6
+ metadata.gz: afcbf3a53c5fa5e777ea470aae0024cf0d2a04cb7b35b545d6593e05773f04f258a9e1c74dedc04447a6332dd05b2a29be8ebdef7278ad46f6a4e445f9ee9065
7
+ data.tar.gz: ef28a1bc068d3dd168aae018fc92ddb733ba7420da1d8bb340f1bd00d860ea125a0d40aa5ddc31acda1e201b5649e2106cc7e66ae591ac63e240ad481bff6c2b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.32.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.31.0...ruby-v4.32.0) (2026-10-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** add terms_count field to glossary responses #STRINGS-3924 ([#1334](https://github.com/phrase/strings-openapi/issues/1334)) ([9eab4dc](https://github.com/phrase/strings-openapi/commit/9eab4dcc28074b581934d603ec6f653efe100d72))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **API:** make clearable string fields on update endpoints nullable #STRINGS-3652 ([#1326](https://github.com/phrase/strings-openapi/issues/1326)) ([3eb4b6f](https://github.com/phrase/strings-openapi/commit/3eb4b6fe2481f5ad199ae5e3c88eaecabc4d62da))
14
+ * **API:** make translation content and key description nullable #STRINGS-3652 ([#1325](https://github.com/phrase/strings-openapi/issues/1325)) ([2f18702](https://github.com/phrase/strings-openapi/commit/2f1870215d4c84a382ab3cfa76dd9f922dad5903))
15
+
3
16
  ## [4.31.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.30.1...ruby-v4.31.0) (2026-10-22)
4
17
 
5
18
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
7
7
  ## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.31.0
10
+ - Package version: 4.32.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
13
13
 
@@ -56,10 +56,10 @@ gem build phrase.gemspec
56
56
  Then install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./phrase-4.31.0.gem
59
+ gem install ./phrase-4.32.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.31.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.32.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | name of the property | [optional]
8
8
  **project_ids** | **Array<String>** | ids of projects that the property belongs to | [optional]
9
- **description** | **String** | description of property | [optional]
9
+ **description** | **String** | description of property. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **value_options** | **Array<String>** | value options of property (only applies to single or multi select properties) | [optional]
11
11
 
12
12
  ## Code Sample
data/docs/Glossary.md CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **String** | | [optional]
8
8
  **name** | **String** | | [optional]
9
+ **terms_count** | **Integer** | Number of terms in the glossary. | [optional]
9
10
  **projects** | [**Array<ProjectShort>**](ProjectShort.md) | | [optional]
10
11
  **spaces** | [**Array<Space>**](Space.md) | | [optional]
11
12
  **created_at** | **Time** | | [optional]
@@ -18,6 +19,7 @@ require 'phrase'
18
19
 
19
20
  instance = Phrase::Glossary.new(id: nil,
20
21
  name: nil,
22
+ terms_count: 42,
21
23
  projects: nil,
22
24
  spaces: nil,
23
25
  created_at: nil,
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **term** | **String** | Glossary term | [optional]
8
- **description** | **String** | Description of term | [optional]
8
+ **description** | **String** | Description of term. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
9
9
  **translatable** | **Boolean** | Indicates whether the term should be used for all languages or can be translated | [optional]
10
10
  **case_sensitive** | **Boolean** | Indicates whether the term is case sensitive | [optional]
11
11
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **name** | **String** | Job template name |
9
- **briefing** | **String** | Briefing for the translators | [optional]
9
+ **briefing** | **String** | Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
11
11
  **source_locale_id** | **String** | 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. | [optional]
12
12
  **owner_id** | **String** | Code of the account member to set as the job template owner. The referenced user must also be a member of the project; passing the code of an account member who is not a project member returns a 404. Pass an empty string to clear a previously set owner; when blank, jobs created from this template will default to assigning the job creator as owner. | [optional]
@@ -5,10 +5,10 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Job name | [optional]
8
- **briefing** | **String** | Briefing for the translators | [optional]
8
+ **briefing** | **String** | Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
9
9
  **due_date** | **Time** | Date the job should be finished | [optional]
10
10
  **review_due_date** | **Time** | Date the review of the job should be finished. Must not be before `due_date`. | [optional]
11
- **ticket_url** | **String** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]
11
+ **ticket_url** | **String** | URL to a ticket for this job (e.g. Jira, Trello) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
12
12
  **target_locale_ids** | **Array<String>** | List of target locales for the job. | [optional]
13
13
  **autotranslate** | **Boolean** | Automatically translate the job using machine translation | [optional]
14
14
 
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **name** | **String** | Key name | [optional]
9
- **description** | **String** | Key description (usually includes contextual information for translators) | [optional]
9
+ **description** | **String** | Key description (usually includes contextual information for translators). Send an empty string or `null` to clear the description; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **plural** | **Boolean** | Indicates whether key supports pluralization | [optional]
11
11
  **use_ordinal_rules** | **Boolean** | Indicates whether key uses ordinal rules for pluralization | [optional]
12
- **name_plural** | **String** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
12
+ **name_plural** | **String** | Plural name for the key (used in some file formats, e.g. Gettext) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
13
13
  **data_type** | **String** | Type of the key. Can be one of the following: string, number, boolean, array, markdown. | [optional]
14
14
  **tags** | **String** | List of tags separated by comma to be associated with the key. | [optional]
15
15
  **max_characters_allowed** | **Integer** | Max. number of characters translations for this key can have. | [optional]
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
17
17
  **remove_screenshot** | **Boolean** | Indicates whether the screenshot will be deleted. This parameter is deprecated. Please use the Screenshots endpoint instead. | [optional]
18
18
  **unformatted** | **Boolean** | Indicates whether the key should be exported as \"unformatted\". Supported by Android XML and other formats. | [optional]
19
19
  **xml_space_preserve** | **Boolean** | Indicates whether the key should be exported with \"xml:space=preserve\". Supported by several XML-based formats. | [optional]
20
- **original_file** | **String** | Original file attribute. Used in some formats, e.g. XLIFF. | [optional]
21
- **localized_format_string** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional]
22
- **localized_format_key** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional]
20
+ **original_file** | **String** | Original file attribute. Used in some formats, e.g. XLIFF. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
21
+ **localized_format_string** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
22
+ **localized_format_key** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
23
23
  **custom_metadata** | **Object** | Updates/Creates custom metadata property name and value pairs to be associated with key. If you want to delete a custom metadata property, you can set its value to null. If you want to update a custom metadata property, you can set its value to the new value. | [optional]
24
24
  **excluded_in_locales** | **Array<String>** | Locales for which translations of this key are excluded from exports. Pass an empty array to clear exclusions. | [optional]
25
25
  **format_value_type** | **String** | Override of the value type for the key in the export. Most useful for formats like Android XML that distinguish string vs. plural resources. | [optional]
@@ -11,12 +11,12 @@ Name | Type | Description | Notes
11
11
  **main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the [Verification System](https://support.phrase.com/hc/en-us/articles/5784094755484) feature. | [optional]
12
12
  **rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
13
13
  **source_locale_id** | **String** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
14
- **fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
14
+ **fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
15
15
  **unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature. | [optional]
16
16
  **unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature. | [optional]
17
17
  **unverify_on_source_changes** | **Boolean** | Indicates that translations for this locale should be marked as unverified when the source language has been changed. | [optional]
18
18
  **autotranslate** | **Boolean** | If set, translations for this locale will be fetched automatically, right after creation. | [optional]
19
- **language_ai_profile** | **String** | Identifier of the Language AI profile to use for this locale. | [optional]
19
+ **language_ai_profile** | **String** | Identifier of the Language AI profile to use for this locale. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
20
20
 
21
21
  ## Code Sample
22
22
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Job template name |
8
- **briefing** | **String** | Briefing for the translators | [optional]
8
+ **briefing** | **String** | Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
9
9
  **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
10
10
  **owner_id** | **String** | Code of the account member to set as the job template owner. Pass an empty string to clear a previously set owner; when blank, the owner is set to null and jobs created from this template will default to assigning the job creator as owner. | [optional]
11
11
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **account_id** | **String** | (Optional) ID of an account the requesting user belongs to. Used only to disambiguate the request context; the project itself cannot be moved between accounts through this endpoint. | [optional]
8
8
  **name** | **String** | (Optional) Name of the project | [optional]
9
- **point_of_contact** | **String** | (Optional) User ID of the point of contact for the project. Pass `null` to unset. | [optional]
9
+ **point_of_contact** | **String** | (Optional) User ID of the point of contact for the project. Pass `null` or an empty string to unset. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **main_format** | **String** | (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see [Format Guide](https://support.phrase.com/hc/en-us/sections/6111343326364) or our [Formats API Endpoint](#formats). | [optional]
11
11
  **media** | **String** | (Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value. | [optional]
12
12
  **shares_translation_memory** | **Boolean** | (Optional) Indicates whether the project should share the account's translation memory | [optional]
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **description** | **String** | Description of the release | [optional]
7
+ **description** | **String** | Description of the release. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
8
8
  **platforms** | **Array<String>** | List of platforms the release should support. | [optional]
9
- **app_min_version** | **String** | Minimum version of the app that the release supports in semver format | [optional]
10
- **app_max_version** | **String** | Maximum version of the app that the release supports in semver format | [optional]
9
+ **app_min_version** | **String** | Minimum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
+ **app_max_version** | **String** | Maximum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
11
11
  **branch** | **String** | Branch used for release | [optional]
12
12
 
13
13
  ## Code Sample
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **name** | **String** | Name of the screenshot | [optional]
9
- **description** | **String** | Description of the screenshot | [optional]
9
+ **description** | **String** | Description of the screenshot. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **filename** | **File** | Screenshot file | [optional]
11
11
 
12
12
  ## Code Sample
@@ -5,18 +5,18 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **title** | **String** | Style guide title | [optional]
8
- **audience** | **String** | Audience description | [optional]
8
+ **audience** | **String** | Audience description. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
9
9
  **target_audience** | **String** | Target audience for the translations. | [optional]
10
10
  **grammatical_person** | **String** | Preferred grammatical person. | [optional]
11
11
  **vocabulary_type** | **String** | Vocabulary register the translations should use. | [optional]
12
- **business** | **String** | Description of the business | [optional]
13
- **company_branding** | **String** | Company branding to remain consistent. | [optional]
14
- **formatting** | **String** | Formatting requirements and character limitations. | [optional]
15
- **glossary_terms** | **String** | List of terms and/or phrases that need to be translated consistently. | [optional]
16
- **grammar_consistency** | **String** | Formal or informal pronouns, consistent conjugation, grammatical gender | [optional]
17
- **literal_translation** | **String** | Can be one of: Cultural/Conversational, Literal, Neutral. | [optional]
18
- **overall_tone** | **String** | Tone requirement descriptions | [optional]
19
- **samples** | **String** | Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency. | [optional]
12
+ **business** | **String** | Description of the business. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
13
+ **company_branding** | **String** | Company branding to remain consistent. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
14
+ **formatting** | **String** | Formatting requirements and character limitations. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
15
+ **glossary_terms** | **String** | List of terms and/or phrases that need to be translated consistently. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
16
+ **grammar_consistency** | **String** | Formal or informal pronouns, consistent conjugation, grammatical gender. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
17
+ **literal_translation** | **String** | Can be one of: Cultural/Conversational, Literal, Neutral. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
18
+ **overall_tone** | **String** | Tone requirement descriptions. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
19
+ **samples** | **String** | Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
20
20
 
21
21
  ## Code Sample
22
22
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **content** | **String** | Translation content | [optional]
8
+ **content** | **String** | Translation content. Send an empty string or `null` to clear the translation's content; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
9
9
  **plural_suffix** | **String** | Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized. | [optional]
10
10
  **unverified** | **Boolean** | Indicates whether translation is unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature. | [optional]
11
11
  **excluded** | **Boolean** | Indicates whether translation is excluded. | [optional]
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **callback_url** | **String** | Callback URL to send requests to | [optional]
8
8
  **secret** | **String** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
9
- **description** | **String** | Webhook description | [optional]
9
+ **description** | **String** | Webhook description. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there. | [optional]
10
10
  **events** | **String** | List of event names to trigger the webhook (separated by comma) | [optional]
11
11
  **active** | **Boolean** | Whether webhook is active or inactive | [optional]
12
12
  **include_branches** | **Boolean** | If enabled, webhook will also be triggered for events from branches of the project specified. | [optional]
@@ -8,7 +8,7 @@ module Phrase
8
8
  # ids of projects that the property belongs to
9
9
  attr_accessor :project_ids
10
10
 
11
- # description of property
11
+ # description of property. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :description
13
13
 
14
14
  # value options of property (only applies to single or multi select properties)
@@ -37,6 +37,7 @@ module Phrase
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'description',
40
41
  ])
41
42
  end
42
43
 
@@ -6,6 +6,9 @@ module Phrase
6
6
 
7
7
  attr_accessor :name
8
8
 
9
+ # Number of terms in the glossary.
10
+ attr_accessor :terms_count
11
+
9
12
  attr_accessor :projects
10
13
 
11
14
  attr_accessor :spaces
@@ -19,6 +22,7 @@ module Phrase
19
22
  {
20
23
  :'id' => :'id',
21
24
  :'name' => :'name',
25
+ :'terms_count' => :'terms_count',
22
26
  :'projects' => :'projects',
23
27
  :'spaces' => :'spaces',
24
28
  :'created_at' => :'created_at',
@@ -31,6 +35,7 @@ module Phrase
31
35
  {
32
36
  :'id' => :'String',
33
37
  :'name' => :'String',
38
+ :'terms_count' => :'Integer',
34
39
  :'projects' => :'Array<ProjectShort>',
35
40
  :'spaces' => :'Array<Space>',
36
41
  :'created_at' => :'DateTime',
@@ -67,6 +72,10 @@ module Phrase
67
72
  self.name = attributes[:'name']
68
73
  end
69
74
 
75
+ if attributes.key?(:'terms_count')
76
+ self.terms_count = attributes[:'terms_count']
77
+ end
78
+
70
79
  if attributes.key?(:'projects')
71
80
  if (value = attributes[:'projects']).is_a?(Array)
72
81
  self.projects = value
@@ -108,6 +117,7 @@ module Phrase
108
117
  self.class == o.class &&
109
118
  id == o.id &&
110
119
  name == o.name &&
120
+ terms_count == o.terms_count &&
111
121
  projects == o.projects &&
112
122
  spaces == o.spaces &&
113
123
  created_at == o.created_at &&
@@ -123,7 +133,7 @@ module Phrase
123
133
  # Calculates hash code according to all attributes.
124
134
  # @return [Integer] Hash code
125
135
  def hash
126
- [id, name, projects, spaces, created_at, updated_at].hash
136
+ [id, name, terms_count, projects, spaces, created_at, updated_at].hash
127
137
  end
128
138
 
129
139
  # Builds the object from hash
@@ -5,7 +5,7 @@ module Phrase
5
5
  # Glossary term
6
6
  attr_accessor :term
7
7
 
8
- # Description of term
8
+ # Description of term. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
9
9
  attr_accessor :description
10
10
 
11
11
  # Indicates whether the term should be used for all languages or can be translated
@@ -37,6 +37,7 @@ module Phrase
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'description',
40
41
  ])
41
42
  end
42
43
 
@@ -8,7 +8,7 @@ module Phrase
8
8
  # Job template name
9
9
  attr_accessor :name
10
10
 
11
- # Briefing for the translators
11
+ # Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :briefing
13
13
 
14
14
  # Automatically translate the job using machine translation.
@@ -47,6 +47,7 @@ module Phrase
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'briefing',
50
51
  ])
51
52
  end
52
53
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # Job name
6
6
  attr_accessor :name
7
7
 
8
- # Briefing for the translators
8
+ # Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
9
9
  attr_accessor :briefing
10
10
 
11
11
  # Date the job should be finished
@@ -14,7 +14,7 @@ module Phrase
14
14
  # Date the review of the job should be finished. Must not be before `due_date`.
15
15
  attr_accessor :review_due_date
16
16
 
17
- # URL to a ticket for this job (e.g. Jira, Trello)
17
+ # URL to a ticket for this job (e.g. Jira, Trello) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
18
18
  attr_accessor :ticket_url
19
19
 
20
20
  # List of target locales for the job.
@@ -52,7 +52,9 @@ module Phrase
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'briefing',
55
56
  :'due_date',
57
+ :'ticket_url',
56
58
  ])
57
59
  end
58
60
 
@@ -8,7 +8,7 @@ module Phrase
8
8
  # Key name
9
9
  attr_accessor :name
10
10
 
11
- # Key description (usually includes contextual information for translators)
11
+ # Key description (usually includes contextual information for translators). Send an empty string or `null` to clear the description; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :description
13
13
 
14
14
  # Indicates whether key supports pluralization
@@ -17,7 +17,7 @@ module Phrase
17
17
  # Indicates whether key uses ordinal rules for pluralization
18
18
  attr_accessor :use_ordinal_rules
19
19
 
20
- # Plural name for the key (used in some file formats, e.g. Gettext)
20
+ # Plural name for the key (used in some file formats, e.g. Gettext) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
21
21
  attr_accessor :name_plural
22
22
 
23
23
  # Type of the key. Can be one of the following: string, number, boolean, array, markdown.
@@ -41,13 +41,13 @@ module Phrase
41
41
  # Indicates whether the key should be exported with \"xml:space=preserve\". Supported by several XML-based formats.
42
42
  attr_accessor :xml_space_preserve
43
43
 
44
- # Original file attribute. Used in some formats, e.g. XLIFF.
44
+ # Original file attribute. Used in some formats, e.g. XLIFF. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
45
45
  attr_accessor :original_file
46
46
 
47
- # NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
47
+ # NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
48
48
  attr_accessor :localized_format_string
49
49
 
50
- # NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
50
+ # NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
51
51
  attr_accessor :localized_format_key
52
52
 
53
53
  # Updates/Creates custom metadata property name and value pairs to be associated with key. If you want to delete a custom metadata property, you can set its value to null. If you want to update a custom metadata property, you can set its value to the new value.
@@ -112,6 +112,11 @@ module Phrase
112
112
  # List of attributes with nullable: true
113
113
  def self.openapi_nullable
114
114
  Set.new([
115
+ :'description',
116
+ :'name_plural',
117
+ :'original_file',
118
+ :'localized_format_string',
119
+ :'localized_format_key',
115
120
  ])
116
121
  end
117
122
 
@@ -23,7 +23,7 @@ module Phrase
23
23
  # Source locale. Can be the name or id of the locale. Preferred is id.
24
24
  attr_accessor :source_locale_id
25
25
 
26
- # Fallback locale for empty translations. Can be a locale name or id.
26
+ # Fallback locale for empty translations. Can be a locale name or id. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
27
27
  attr_accessor :fallback_locale_id
28
28
 
29
29
  # Indicates that new translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature.
@@ -38,7 +38,7 @@ module Phrase
38
38
  # If set, translations for this locale will be fetched automatically, right after creation.
39
39
  attr_accessor :autotranslate
40
40
 
41
- # Identifier of the Language AI profile to use for this locale.
41
+ # Identifier of the Language AI profile to use for this locale. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
42
42
  attr_accessor :language_ai_profile
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -82,6 +82,8 @@ module Phrase
82
82
  # List of attributes with nullable: true
83
83
  def self.openapi_nullable
84
84
  Set.new([
85
+ :'fallback_locale_id',
86
+ :'language_ai_profile'
85
87
  ])
86
88
  end
87
89
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # Job template name
6
6
  attr_accessor :name
7
7
 
8
- # Briefing for the translators
8
+ # Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
9
9
  attr_accessor :briefing
10
10
 
11
11
  # Automatically translate the job using machine translation.
@@ -37,6 +37,7 @@ module Phrase
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'briefing',
40
41
  ])
41
42
  end
42
43
 
@@ -8,7 +8,7 @@ module Phrase
8
8
  # (Optional) Name of the project
9
9
  attr_accessor :name
10
10
 
11
- # (Optional) User ID of the point of contact for the project. Pass `null` to unset.
11
+ # (Optional) User ID of the point of contact for the project. Pass `null` or an empty string to unset. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :point_of_contact
13
13
 
14
14
  # (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see [Format Guide](https://support.phrase.com/hc/en-us/sections/6111343326364) or our [Formats API Endpoint](#formats).
@@ -214,6 +214,7 @@ module Phrase
214
214
  # List of attributes with nullable: true
215
215
  def self.openapi_nullable
216
216
  Set.new([
217
+ :'point_of_contact',
217
218
  ])
218
219
  end
219
220
 
@@ -2,16 +2,16 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class ReleaseUpdateParameters
5
- # Description of the release
5
+ # Description of the release. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
6
6
  attr_accessor :description
7
7
 
8
8
  # List of platforms the release should support.
9
9
  attr_accessor :platforms
10
10
 
11
- # Minimum version of the app that the release supports in semver format
11
+ # Minimum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :app_min_version
13
13
 
14
- # Maximum version of the app that the release supports in semver format
14
+ # Maximum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
15
15
  attr_accessor :app_max_version
16
16
 
17
17
  # Branch used for release
@@ -42,6 +42,9 @@ module Phrase
42
42
  # List of attributes with nullable: true
43
43
  def self.openapi_nullable
44
44
  Set.new([
45
+ :'description',
46
+ :'app_min_version',
47
+ :'app_max_version',
45
48
  ])
46
49
  end
47
50
 
@@ -8,7 +8,7 @@ module Phrase
8
8
  # Name of the screenshot
9
9
  attr_accessor :name
10
10
 
11
- # Description of the screenshot
11
+ # Description of the screenshot. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
12
12
  attr_accessor :description
13
13
 
14
14
  # Screenshot file
@@ -37,6 +37,7 @@ module Phrase
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'description',
40
41
  ])
41
42
  end
42
43
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # Style guide title
6
6
  attr_accessor :title
7
7
 
8
- # Audience description
8
+ # Audience description. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
9
9
  attr_accessor :audience
10
10
 
11
11
  # Target audience for the translations.
@@ -17,28 +17,28 @@ module Phrase
17
17
  # Vocabulary register the translations should use.
18
18
  attr_accessor :vocabulary_type
19
19
 
20
- # Description of the business
20
+ # Description of the business. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
21
21
  attr_accessor :business
22
22
 
23
- # Company branding to remain consistent.
23
+ # Company branding to remain consistent. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
24
24
  attr_accessor :company_branding
25
25
 
26
- # Formatting requirements and character limitations.
26
+ # Formatting requirements and character limitations. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
27
27
  attr_accessor :formatting
28
28
 
29
- # List of terms and/or phrases that need to be translated consistently.
29
+ # List of terms and/or phrases that need to be translated consistently. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
30
30
  attr_accessor :glossary_terms
31
31
 
32
- # Formal or informal pronouns, consistent conjugation, grammatical gender
32
+ # Formal or informal pronouns, consistent conjugation, grammatical gender. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
33
33
  attr_accessor :grammar_consistency
34
34
 
35
- # Can be one of: Cultural/Conversational, Literal, Neutral.
35
+ # Can be one of: Cultural/Conversational, Literal, Neutral. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
36
36
  attr_accessor :literal_translation
37
37
 
38
- # Tone requirement descriptions
38
+ # Tone requirement descriptions. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
39
39
  attr_accessor :overall_tone
40
40
 
41
- # Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency.
41
+ # Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
42
42
  attr_accessor :samples
43
43
 
44
44
  class EnumAttributeValidator
@@ -104,6 +104,15 @@ module Phrase
104
104
  # List of attributes with nullable: true
105
105
  def self.openapi_nullable
106
106
  Set.new([
107
+ :'audience',
108
+ :'business',
109
+ :'company_branding',
110
+ :'formatting',
111
+ :'glossary_terms',
112
+ :'grammar_consistency',
113
+ :'literal_translation',
114
+ :'overall_tone',
115
+ :'samples'
107
116
  ])
108
117
  end
109
118