phrase 2.26.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +5 -5
  4. data/docs/AuthorizationCreateParameters.md +1 -1
  5. data/docs/AuthorizationsApi.md +1 -1
  6. data/docs/BlacklistedKeyCreateParameters.md +1 -1
  7. data/docs/BlacklistedKeysApi.md +1 -1
  8. data/docs/BranchCreateParameters.md +1 -1
  9. data/docs/BranchesApi.md +1 -1
  10. data/docs/DistributionCreateParameters.md +2 -2
  11. data/docs/DistributionsApi.md +1 -1
  12. data/docs/FigmaAttachmentCreateParameters.md +1 -1
  13. data/docs/FigmaAttachmentsApi.md +1 -1
  14. data/docs/GlossariesApi.md +1 -1
  15. data/docs/GlossaryCreateParameters.md +1 -1
  16. data/docs/GlossaryTermCreateParameters.md +1 -1
  17. data/docs/GlossaryTermTranslationCreateParameters.md +2 -2
  18. data/docs/GlossaryTermTranslationsApi.md +1 -1
  19. data/docs/GlossaryTermsApi.md +1 -1
  20. data/docs/ICUApi.md +4 -4
  21. data/docs/InvitationCreateParameters.md +2 -2
  22. data/docs/InvitationsApi.md +1 -1
  23. data/docs/JobCreateParameters.md +1 -1
  24. data/docs/JobsApi.md +1 -1
  25. data/docs/KeyCreateParameters.md +2 -2
  26. data/docs/KeyLink.md +7 -7
  27. data/docs/KeyLinksBatchDestroyParameters.md +3 -1
  28. data/docs/KeyUpdateParameters.md +1 -1
  29. data/docs/KeysApi.md +1 -1
  30. data/docs/LinkedKeysApi.md +4 -6
  31. data/docs/LocaleCreateParameters.md +3 -3
  32. data/docs/LocaleUpdateParameters.md +1 -1
  33. data/docs/LocalesApi.md +3 -3
  34. data/docs/OrderCreateParameters.md +4 -4
  35. data/docs/OrdersApi.md +1 -1
  36. data/docs/ProjectCreateParameters.md +2 -2
  37. data/docs/ProjectUpdateParameters.md +1 -1
  38. data/docs/ProjectsApi.md +1 -1
  39. data/docs/ScreenshotMarkerCreateParameters.md +1 -1
  40. data/docs/ScreenshotMarkersApi.md +1 -1
  41. data/docs/ScreenshotUpdateParameters.md +1 -1
  42. data/docs/SpaceCreateParameters.md +1 -1
  43. data/docs/SpacesApi.md +2 -2
  44. data/docs/SpacesProjectsCreateParameters.md +1 -1
  45. data/docs/StyleGuidesApi.md +1 -1
  46. data/docs/StyleguideCreateParameters.md +1 -1
  47. data/docs/TagCreateParameters.md +1 -1
  48. data/docs/TagsApi.md +1 -1
  49. data/docs/TeamCreateParameters.md +1 -1
  50. data/docs/TeamsApi.md +4 -4
  51. data/docs/TeamsProjectsCreateParameters.md +1 -1
  52. data/docs/TeamsSpacesCreateParameters.md +1 -1
  53. data/docs/TeamsUsersCreateParameters.md +1 -1
  54. data/docs/TranslationCreateParameters.md +1 -1
  55. data/docs/UploadsApi.md +10 -10
  56. data/docs/VariableCreateParameters.md +1 -1
  57. data/docs/VariablesApi.md +1 -1
  58. data/docs/WebhookCreateParameters.md +1 -1
  59. data/docs/WebhooksApi.md +1 -1
  60. data/lib/phrase/api/icu_api.rb +4 -4
  61. data/lib/phrase/api/linked_keys_api.rb +2 -5
  62. data/lib/phrase/api/locales_api.rb +2 -2
  63. data/lib/phrase/api/uploads_api.rb +26 -14
  64. data/lib/phrase/models/authorization_create_parameters.rb +5 -0
  65. data/lib/phrase/models/blacklisted_key_create_parameters.rb +5 -0
  66. data/lib/phrase/models/branch_create_parameters.rb +5 -0
  67. data/lib/phrase/models/distribution_create_parameters.rb +10 -0
  68. data/lib/phrase/models/figma_attachment_create_parameters.rb +5 -0
  69. data/lib/phrase/models/glossary_create_parameters.rb +5 -0
  70. data/lib/phrase/models/glossary_term_create_parameters.rb +5 -0
  71. data/lib/phrase/models/glossary_term_translation_create_parameters.rb +10 -0
  72. data/lib/phrase/models/invitation_create_parameters.rb +10 -0
  73. data/lib/phrase/models/job_create_parameters.rb +5 -0
  74. data/lib/phrase/models/key_create_parameters.rb +5 -0
  75. data/lib/phrase/models/key_link.rb +0 -35
  76. data/lib/phrase/models/key_links_batch_destroy_parameters.rb +16 -4
  77. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  78. data/lib/phrase/models/locale_update_parameters.rb +1 -1
  79. data/lib/phrase/models/order_create_parameters.rb +12 -2
  80. data/lib/phrase/models/project_create_parameters.rb +5 -0
  81. data/lib/phrase/models/screenshot_marker_create_parameters.rb +5 -0
  82. data/lib/phrase/models/space_create_parameters.rb +5 -0
  83. data/lib/phrase/models/spaces_projects_create_parameters.rb +5 -0
  84. data/lib/phrase/models/styleguide_create_parameters.rb +5 -0
  85. data/lib/phrase/models/tag_create_parameters.rb +5 -0
  86. data/lib/phrase/models/team_create_parameters.rb +5 -0
  87. data/lib/phrase/models/teams_projects_create_parameters.rb +5 -0
  88. data/lib/phrase/models/teams_spaces_create_parameters.rb +5 -0
  89. data/lib/phrase/models/teams_users_create_parameters.rb +5 -0
  90. data/lib/phrase/models/translation_create_parameters.rb +1 -1
  91. data/lib/phrase/models/variable_create_parameters.rb +5 -0
  92. data/lib/phrase/models/webhook_create_parameters.rb +5 -0
  93. data/lib/phrase/version.rb +1 -1
  94. data/spec/api/icu_api_spec.rb +2 -2
  95. data/spec/api/linked_keys_api_spec.rb +1 -2
  96. data/spec/api/locales_api_spec.rb +1 -1
  97. data/spec/api/uploads_api_spec.rb +2 -2
  98. data/spec/models/key_links_batch_destroy_parameters_spec.rb +6 -0
  99. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 533035456c9b58cd7f63959b8a0e17d7813feaf8804e9ae5cf81ee3f0a375af5
4
- data.tar.gz: '0581b5a61eedd4b514a9611dbecedb5d0db42356fcc50b54f61f451e60fa1284'
3
+ metadata.gz: 6ee59312f9329dd85344eda376dfd14c854dc35cc4dc202570422b8491dbcfd3
4
+ data.tar.gz: ee61abb9396d7c7f339d44501c4c163f6e29484930030907364f4c59fbba8758
5
5
  SHA512:
6
- metadata.gz: e23ed46b1098ec42caebd13f4cb07a62281b3556187e45ae14c7e7e01d19164296c0bb47beb0d894131d703a7e9e0eafde183d15983483c05da56816fb037a86
7
- data.tar.gz: 736cc4652b5148b32f4a2b1d0c31b701a96cee37ef2270746eadbc8bff674f4eae538104a48bcd51ae095ad2272e7354d25a7d751bbe291263b67c68551274af
6
+ metadata.gz: 0fac1bf4668800fca47cd9950d1816ceb9b26f196623f0673314bc073bca7bc923c71910144ee2983944f4421aef2e811770354df5902fe636efca8dab4e7e60
7
+ data.tar.gz: 9b97d1f7dfa45416f19cb80555226d74ae65e538231f296091b0c14b29e3cd28c359daa4d5a0ad78f6fe06e1c18b84e7d02c20eaafb2a0b62660af97e303c251
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.0.0](https://github.com/phrase/openapi/compare/ruby-v2.26.0...ruby-v3.0.0) (2024-04-23)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * add missing required params ([#571](https://github.com/phrase/openapi/issues/571))
9
+
10
+ ### Code Refactoring
11
+
12
+ * add missing required params ([#571](https://github.com/phrase/openapi/issues/571)) ([d810e9e](https://github.com/phrase/openapi/commit/d810e9ebc767e14ba9e56106de8c5774d9d6d178))
13
+
3
14
  ## [2.26.0](https://github.com/phrase/openapi/compare/ruby-v2.25.0...ruby-v2.26.0) (2024-04-22)
4
15
 
5
16
 
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: 2.26.0
10
+ - Package version: 3.0.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-2.26.0.gem
59
+ gem install ./phrase-3.0.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-2.26.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-3.0.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -210,7 +210,7 @@ Class | Method | HTTP request | Description
210
210
  *Phrase::GlossaryTermsApi* | [**glossary_term_show**](docs/GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single term
211
211
  *Phrase::GlossaryTermsApi* | [**glossary_term_update**](docs/GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a term
212
212
  *Phrase::GlossaryTermsApi* | [**glossary_terms_list**](docs/GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List terms
213
- *Phrase::ICUApi* | [**icu_skeleton**](docs/ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
213
+ *Phrase::ICUApi* | [**icu_skeleton**](docs/ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build ICU skeletons
214
214
  *Phrase::InvitationsApi* | [**invitation_create**](docs/InvitationsApi.md#invitation_create) | **POST** /accounts/{account_id}/invitations | Create a new invitation
215
215
  *Phrase::InvitationsApi* | [**invitation_delete**](docs/InvitationsApi.md#invitation_delete) | **DELETE** /accounts/{account_id}/invitations/{id} | Delete an invitation
216
216
  *Phrase::InvitationsApi* | [**invitation_resend**](docs/InvitationsApi.md#invitation_resend) | **POST** /accounts/{account_id}/invitations/{id}/resend | Resend an invitation
@@ -270,7 +270,7 @@ Class | Method | HTTP request | Description
270
270
  *Phrase::LinkedKeysApi* | [**key_links_batch_destroy**](docs/LinkedKeysApi.md#key_links_batch_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
271
271
  *Phrase::LinkedKeysApi* | [**key_links_create**](docs/LinkedKeysApi.md#key_links_create) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
272
272
  *Phrase::LinkedKeysApi* | [**key_links_destroy**](docs/LinkedKeysApi.md#key_links_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
273
- *Phrase::LinkedKeysApi* | [**key_links_index**](docs/LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
273
+ *Phrase::LinkedKeysApi* | [**key_links_index**](docs/LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
274
274
  *Phrase::LocalesApi* | [**account_locales**](docs/LocalesApi.md#account_locales) | **GET** /accounts/{id}/locales | List locales used in account
275
275
  *Phrase::LocalesApi* | [**locale_create**](docs/LocalesApi.md#locale_create) | **POST** /projects/{project_id}/locales | Create a locale
276
276
  *Phrase::LocalesApi* | [**locale_delete**](docs/LocalesApi.md#locale_delete) | **DELETE** /projects/{project_id}/locales/{id} | Delete a locale
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **note** | **String** | A note to help you remember what the access is used for. | [optional]
7
+ **note** | **String** | A note to help you remember what the access is used for. |
8
8
  **scopes** | **Array<String>** | A list of scopes that the access can be used for. | [optional]
9
9
  **expires_at** | **Time** | Expiration date for the authorization token. Null means no expiration date (default). | [optional]
10
10
 
@@ -37,7 +37,7 @@ Phrase.configure do |config|
37
37
  end
38
38
 
39
39
  api_instance = Phrase::AuthorizationsApi.new
40
- authorization_create_parameters = Phrase::AuthorizationCreateParameters.new # AuthorizationCreateParameters |
40
+ authorization_create_parameters = Phrase::AuthorizationCreateParameters.new({note: 'My Deploy Script'}) # AuthorizationCreateParameters |
41
41
  opts = {
42
42
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
43
43
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Blocked key name | [optional]
7
+ **name** | **String** | Blocked key name |
8
8
 
9
9
  ## Code Sample
10
10
 
@@ -38,7 +38,7 @@ end
38
38
 
39
39
  api_instance = Phrase::BlacklistedKeysApi.new
40
40
  project_id = 'project_id_example' # String | Project ID
41
- blacklisted_key_create_parameters = Phrase::BlacklistedKeyCreateParameters.new # BlacklistedKeyCreateParameters |
41
+ blacklisted_key_create_parameters = Phrase::BlacklistedKeyCreateParameters.new({name: 'date.formats.*'}) # BlacklistedKeyCreateParameters |
42
42
  opts = {
43
43
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
44
44
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the branch | [optional]
7
+ **name** | **String** | Name of the branch |
8
8
 
9
9
  ## Code Sample
10
10
 
data/docs/BranchesApi.md CHANGED
@@ -102,7 +102,7 @@ end
102
102
 
103
103
  api_instance = Phrase::BranchesApi.new
104
104
  project_id = 'project_id_example' # String | Project ID
105
- branch_create_parameters = Phrase::BranchCreateParameters.new # BranchCreateParameters |
105
+ branch_create_parameters = Phrase::BranchCreateParameters.new({name: 'my-branch'}) # BranchCreateParameters |
106
106
  opts = {
107
107
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
108
108
  }
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the distribution | [optional]
8
- **project_id** | **String** | Project id the distribution should be assigned to. | [optional]
7
+ **name** | **String** | Name of the distribution |
8
+ **project_id** | **String** | Project id the distribution should be assigned to. |
9
9
  **platforms** | **Array<String>** | List of platforms the distribution should support. Valid values are: * `android` * `ios` * `flutter` * `i18next` * `rails` | [optional]
10
10
  **locale_ids** | **Array<String>** | List of locale ids that will be part of distribution releases | [optional]
11
11
  **format_options** | **Hash<String, String>** | Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. | [optional]
@@ -38,7 +38,7 @@ end
38
38
 
39
39
  api_instance = Phrase::DistributionsApi.new
40
40
  account_id = 'account_id_example' # String | Account ID
41
- distribution_create_parameters = Phrase::DistributionCreateParameters.new # DistributionCreateParameters |
41
+ distribution_create_parameters = Phrase::DistributionCreateParameters.new({name: 'My Android Distribution', project_id: 'abcd1234abcd1234abcd1234'}) # DistributionCreateParameters |
42
42
  opts = {
43
43
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
44
44
  }
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **url** | **String** | Figma file url | [optional]
8
+ **url** | **String** | Figma file url |
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -38,7 +38,7 @@ end
38
38
 
39
39
  api_instance = Phrase::FigmaAttachmentsApi.new
40
40
  project_id = 'project_id_example' # String | Project ID
41
- figma_attachment_create_parameters = Phrase::FigmaAttachmentCreateParameters.new # FigmaAttachmentCreateParameters |
41
+ figma_attachment_create_parameters = Phrase::FigmaAttachmentCreateParameters.new({url: 'https://figma.com/file/xxxxx/sample'}) # FigmaAttachmentCreateParameters |
42
42
  opts = {
43
43
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
44
44
  branch: 'my-feature-branch' # String | specify the branch to use
@@ -103,7 +103,7 @@ end
103
103
 
104
104
  api_instance = Phrase::GlossariesApi.new
105
105
  account_id = 'account_id_example' # String | Account ID
106
- glossary_create_parameters = Phrase::GlossaryCreateParameters.new # GlossaryCreateParameters |
106
+ glossary_create_parameters = Phrase::GlossaryCreateParameters.new({name: 'My glossary'}) # GlossaryCreateParameters |
107
107
  opts = {
108
108
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
109
109
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the glossary | [optional]
7
+ **name** | **String** | Name of the glossary |
8
8
  **project_ids** | **String** | List of project ids the glossary should be assigned to. | [optional]
9
9
  **space_ids** | **Array<String>** | List of space ids the glossary should be assigned to. | [optional]
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **term** | **String** | Glossary term | [optional]
7
+ **term** | **String** | Glossary term |
8
8
  **description** | **String** | Description of term | [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]
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **locale_code** | **String** | Identifies the language for this translation | [optional]
8
- **content** | **String** | The content of the translation | [optional]
7
+ **locale_code** | **String** | Identifies the language for this translation |
8
+ **content** | **String** | The content of the translation |
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -38,7 +38,7 @@ api_instance = Phrase::GlossaryTermTranslationsApi.new
38
38
  account_id = 'account_id_example' # String | Account ID
39
39
  glossary_id = 'glossary_id_example' # String | Glossary ID
40
40
  term_id = 'term_id_example' # String | Term ID
41
- glossary_term_translation_create_parameters = Phrase::GlossaryTermTranslationCreateParameters.new # GlossaryTermTranslationCreateParameters |
41
+ glossary_term_translation_create_parameters = Phrase::GlossaryTermTranslationCreateParameters.new({locale_code: 'en-US', content: 'My translated term'}) # GlossaryTermTranslationCreateParameters |
42
42
  opts = {
43
43
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
44
44
  }
@@ -39,7 +39,7 @@ end
39
39
  api_instance = Phrase::GlossaryTermsApi.new
40
40
  account_id = 'account_id_example' # String | Account ID
41
41
  glossary_id = 'glossary_id_example' # String | Glossary ID
42
- glossary_term_create_parameters = Phrase::GlossaryTermCreateParameters.new # GlossaryTermCreateParameters |
42
+ glossary_term_create_parameters = Phrase::GlossaryTermCreateParameters.new({term: 'MyCompany'}) # GlossaryTermCreateParameters |
43
43
  opts = {
44
44
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
45
45
  }
data/docs/ICUApi.md CHANGED
@@ -4,7 +4,7 @@ All URIs are relative to *https://api.phrase.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**icu_skeleton**](ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
7
+ [**icu_skeleton**](ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build ICU skeletons
8
8
 
9
9
 
10
10
 
@@ -12,9 +12,9 @@ Method | HTTP request | Description
12
12
 
13
13
  > Icu icu_skeleton(icu_skeleton_parameters, opts)
14
14
 
15
- Build icu skeletons
15
+ Build ICU skeletons
16
16
 
17
- Returns icu skeletons for multiple locale codes based on a source content.
17
+ Returns ICU skeletons for multiple locale codes based on a source content.
18
18
 
19
19
  ### Example
20
20
 
@@ -39,7 +39,7 @@ opts = {
39
39
  }
40
40
 
41
41
  begin
42
- #Build icu skeletons
42
+ #Build ICU skeletons
43
43
  result = api_instance.icu_skeleton(icu_skeleton_parameters, opts)
44
44
  pp result
45
45
  rescue Phrase::ApiError => e
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **email** | **String** | The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email. | [optional]
8
- **role** | **String** | Invitiation role, can be any of Manager, Developer, Translator. | [optional]
7
+ **email** | **String** | The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email. |
8
+ **role** | **String** | Invitiation role, can be any of Manager, Developer, Translator. |
9
9
  **project_ids** | **String** | List of project ids the invited user has access to. | [optional]
10
10
  **locale_ids** | **String** | List of locale ids the invited user has access to. | [optional]
11
11
  **space_ids** | **Array<String>** | List of spaces the user is assigned to. | [optional]
@@ -40,7 +40,7 @@ end
40
40
 
41
41
  api_instance = Phrase::InvitationsApi.new
42
42
  account_id = 'account_id_example' # String | Account ID
43
- invitation_create_parameters = Phrase::InvitationCreateParameters.new # InvitationCreateParameters |
43
+ invitation_create_parameters = Phrase::InvitationCreateParameters.new({email: 'example@mail.com', role: 'Developer'}) # InvitationCreateParameters |
44
44
  opts = {
45
45
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
46
46
  }
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **name** | **String** | Job name | [optional]
8
+ **name** | **String** | Job name |
9
9
  **source_locale_id** | **String** | The API id of the source language | [optional]
10
10
  **briefing** | **String** | Briefing for the translators | [optional]
11
11
  **due_date** | **Time** | Date the job should be finished | [optional]
data/docs/JobsApi.md CHANGED
@@ -111,7 +111,7 @@ end
111
111
 
112
112
  api_instance = Phrase::JobsApi.new
113
113
  project_id = 'project_id_example' # String | Project ID
114
- job_create_parameters = Phrase::JobCreateParameters.new # JobCreateParameters |
114
+ job_create_parameters = Phrase::JobCreateParameters.new({name: 'de'}) # JobCreateParameters |
115
115
  opts = {
116
116
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
117
117
  }
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **name** | **String** | Key name | [optional]
8
+ **name** | **String** | Key name |
9
9
  **description** | **String** | Key description (usually includes contextual information for translators) | [optional]
10
10
  **plural** | **Boolean** | Indicates whether key supports pluralization | [optional]
11
11
  **name_plural** | **String** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
@@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
35
35
  data_type: number,
36
36
  tags: awesome-feature,needs-proofreading,
37
37
  max_characters_allowed: 140,
38
- screenshot: [B@2eb4a3ec,
38
+ screenshot: [B@4c57acc5,
39
39
  remove_screenshot: null,
40
40
  unformatted: null,
41
41
  default_translation_content: Default translation content,
data/docs/KeyLink.md CHANGED
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **created_at** | **Time** | The timestamp when the link was created. |
8
- **updated_at** | **Time** | The timestamp when the link was last updated. |
9
- **created_by** | [**UserPreview**](UserPreview.md) | |
10
- **updated_by** | [**UserPreview**](UserPreview.md) | |
11
- **account** | [**Account**](Account.md) | |
12
- **parent** | [**KeyPreview**](KeyPreview.md) | |
13
- **children** | [**Array<KeyPreview>**](KeyPreview.md) | The child translation keys linked to the parent. |
7
+ **created_at** | **Time** | The timestamp when the link was created. | [optional]
8
+ **updated_at** | **Time** | The timestamp when the link was last updated. | [optional]
9
+ **created_by** | [**UserPreview**](UserPreview.md) | | [optional]
10
+ **updated_by** | [**UserPreview**](UserPreview.md) | | [optional]
11
+ **account** | [**Account**](Account.md) | | [optional]
12
+ **parent** | [**KeyPreview**](KeyPreview.md) | | [optional]
13
+ **children** | [**Array<KeyPreview>**](KeyPreview.md) | The child translation keys linked to the parent. | [optional]
14
14
 
15
15
  ## Code Sample
16
16
 
@@ -5,13 +5,15 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **child_key_ids** | **Array<String>** | The IDs of the child keys to unlink from the parent key. |
8
+ **unlink_parent** | **Boolean** | Whether to unlink the parent key as well and unmark it as linked-key. | [optional] [default to false]
8
9
 
9
10
  ## Code Sample
10
11
 
11
12
  ```ruby
12
13
  require 'Phrase'
13
14
 
14
- instance = Phrase::KeyLinksBatchDestroyParameters.new(child_key_ids: ["child_key_id1","child_key_id2"])
15
+ instance = Phrase::KeyLinksBatchDestroyParameters.new(child_key_ids: ["child_key_id1","child_key_id2"],
16
+ unlink_parent: null)
15
17
  ```
16
18
 
17
19
 
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
34
34
  data_type: number,
35
35
  tags: awesome-feature,needs-proofreading,
36
36
  max_characters_allowed: 140,
37
- screenshot: [B@38e6dab2,
37
+ screenshot: [B@1d57b043,
38
38
  remove_screenshot: null,
39
39
  unformatted: null,
40
40
  xml_space_preserve: null,
data/docs/KeysApi.md CHANGED
@@ -44,7 +44,7 @@ end
44
44
 
45
45
  api_instance = Phrase::KeysApi.new
46
46
  project_id = 'project_id_example' # String | Project ID
47
- key_create_parameters = Phrase::KeyCreateParameters.new # KeyCreateParameters |
47
+ key_create_parameters = Phrase::KeyCreateParameters.new({name: 'home.index.headline'}) # KeyCreateParameters |
48
48
  opts = {
49
49
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
50
50
  }
@@ -7,7 +7,7 @@ Method | HTTP request | Description
7
7
  [**key_links_batch_destroy**](LinkedKeysApi.md#key_links_batch_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
8
8
  [**key_links_create**](LinkedKeysApi.md#key_links_create) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
9
9
  [**key_links_destroy**](LinkedKeysApi.md#key_links_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
10
- [**key_links_index**](LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
10
+ [**key_links_index**](LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
11
11
 
12
12
 
13
13
 
@@ -40,8 +40,7 @@ project_id = 'project_id_example' # String | Project ID
40
40
  id = 'id_example' # String | Parent Translation Key ID
41
41
  key_links_batch_destroy_parameters = Phrase::KeyLinksBatchDestroyParameters.new({child_key_ids: ["child_key_id1", "child_key_id2"]}) # KeyLinksBatchDestroyParameters |
42
42
  opts = {
43
- x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
44
- unlink_parent: true # Boolean | Whether to unlink the parent key as well and unmark it as linked-key.
43
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
45
44
  }
46
45
 
47
46
  begin
@@ -61,7 +60,6 @@ Name | Type | Description | Notes
61
60
  **id** | **String**| Parent Translation Key ID |
62
61
  **key_links_batch_destroy_parameters** | [**KeyLinksBatchDestroyParameters**](KeyLinksBatchDestroyParameters.md)| |
63
62
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
64
- **unlink_parent** | **Boolean**| Whether to unlink the parent key as well and unmark it as linked-key. | [optional]
65
63
 
66
64
  ### Return type
67
65
 
@@ -210,7 +208,7 @@ Response<(nil (empty response body))>
210
208
 
211
209
  > KeyLink key_links_index(project_id, id, opts)
212
210
 
213
- Retrieve all child keys linked to a specific parent key
211
+ List child keys of a parent key
214
212
 
215
213
  Returns detailed information about a parent key, including its linked child keys.
216
214
 
@@ -238,7 +236,7 @@ opts = {
238
236
  }
239
237
 
240
238
  begin
241
- #Retrieve all child keys linked to a specific parent key
239
+ #List child keys of a parent key
242
240
  result = api_instance.key_links_index(project_id, id, opts)
243
241
  pp result
244
242
  rescue Phrase::ApiError => e
@@ -5,12 +5,12 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **name** | **String** | Locale name | [optional]
9
- **code** | **String** | Locale ISO code | [optional]
8
+ **name** | **String** | Locale name |
9
+ **code** | **String** | Locale ISO code |
10
10
  **default** | **Boolean** | Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale. | [optional]
11
11
  **main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Verification System&lt;/a&gt; feature. | [optional]
12
12
  **rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
13
- **source_locale_id** | **String** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
13
+ **source_locale_id** | **String** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
14
14
  **fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
15
15
  **unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
16
16
  **unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **default** | **Boolean** | Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale. | [optional]
11
11
  **main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Verification System&lt;/a&gt; feature. | [optional]
12
12
  **rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
13
- **source_locale_id** | **String** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
13
+ **source_locale_id** | **String** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
14
14
  **fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
15
15
  **unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
16
16
  **unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
data/docs/LocalesApi.md CHANGED
@@ -105,7 +105,7 @@ end
105
105
 
106
106
  api_instance = Phrase::LocalesApi.new
107
107
  project_id = 'project_id_example' # String | Project ID
108
- locale_create_parameters = Phrase::LocaleCreateParameters.new # LocaleCreateParameters |
108
+ locale_create_parameters = Phrase::LocaleCreateParameters.new({name: 'de', code: 'de-DE'}) # LocaleCreateParameters |
109
109
  opts = {
110
110
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
111
111
  }
@@ -251,7 +251,7 @@ opts = {
251
251
  skip_unverified_translations: true, # Boolean | Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
252
252
  include_unverified_translations: true, # Boolean | if set to false unverified translations are excluded
253
253
  use_last_reviewed_version: true, # Boolean | If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
254
- fallback_locale_id: 'fallback_locale_id_example', # String | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
254
+ fallback_locale_id: 'fallback_locale_id_example', # String | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
255
255
  source_locale_id: 'source_locale_id_example', # String | Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
256
256
  custom_metadata_filters: { key: 3.56} # Object | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
257
257
  }
@@ -289,7 +289,7 @@ Name | Type | Description | Notes
289
289
  **skip_unverified_translations** | **Boolean**| Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with &lt;code&gt;include_unverified_translations&lt;/code&gt;. | [optional]
290
290
  **include_unverified_translations** | **Boolean**| if set to false unverified translations are excluded | [optional]
291
291
  **use_last_reviewed_version** | **Boolean**| If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project. | [optional]
292
- **fallback_locale_id** | **String**| If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;. | [optional]
292
+ **fallback_locale_id** | **String**| If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;. | [optional]
293
293
  **source_locale_id** | **String**| Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a &lt;code&gt;tag&lt;/code&gt; parameter indicating a specific job. | [optional]
294
294
  **custom_metadata_filters** | [**Object**](.md)| Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download. | [optional]
295
295
 
@@ -5,10 +5,10 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **name** | **String** | the name of the order, default name is: Translation order from &#39;current datetime&#39; | [optional]
9
- **lsp** | **String** | Name of the LSP that should process this order. Can be one of gengo, textmaster. | [optional]
10
- **source_locale_id** | **String** | Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id. | [optional]
11
- **target_locale_ids** | **Array&lt;String&gt;** | List of target locales you want the source content translate to. Can be the name or public id of the target locales. Preferred is the public id. | [optional]
8
+ **name** | **String** | the name of the order, default name is: Translation order from &#39;current datetime&#39; |
9
+ **lsp** | **String** | Name of the LSP that should process this order. Can be one of gengo, textmaster. |
10
+ **source_locale_id** | **String** | Source locale for the order. Can be the name or id of the source locale. Preferred is id. | [optional]
11
+ **target_locale_ids** | **Array&lt;String&gt;** | List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id. | [optional]
12
12
  **translation_type** | **String** | Name of the quality level, availability depends on the LSP. Can be one of: standard, pro (for orders processed by Gengo) and one of regular, premium, enterprise (for orders processed by TextMaster) | [optional]
13
13
  **tag** | **String** | Tag you want to order translations for. | [optional]
14
14
  **message** | **String** | Message that is displayed to the translators for description. | [optional]
data/docs/OrdersApi.md CHANGED
@@ -103,7 +103,7 @@ end
103
103
 
104
104
  api_instance = Phrase::OrdersApi.new
105
105
  project_id = 'project_id_example' # String | Project ID
106
- order_create_parameters = Phrase::OrderCreateParameters.new # OrderCreateParameters |
106
+ order_create_parameters = Phrase::OrderCreateParameters.new({name: 'Welcome message translations', lsp: 'textmaster'}) # OrderCreateParameters |
107
107
  opts = {
108
108
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
109
109
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the project | [optional]
7
+ **name** | **String** | Name of the project |
8
8
  **main_format** | **String** | 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 &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/sections/6111343326364\&quot;&gt;Format Guide&lt;/a&gt; or our &lt;a href&#x3D;\&quot;#formats\&quot;&gt;Formats API Endpoint&lt;/a&gt;. | [optional]
9
9
  **media** | **String** | (Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: &#x60;Ruby&#x60;, &#x60;JavaScript&#x60;, &#x60;AngularJS&#x60;, &#x60;React&#x60;, &#x60;iOS&#x60;, &#x60;Android&#x60;, &#x60;Python&#x60;, &#x60;PHP&#x60;, &#x60;Java&#x60;, &#x60;Go&#x60;, &#x60;Windows Phone&#x60;, &#x60;Rails&#x60;, &#x60;Node.js&#x60;, &#x60;.NET&#x60;, &#x60;Django&#x60;, &#x60;Symfony&#x60;, &#x60;Yii Framework&#x60;, &#x60;Zend Framework&#x60;, &#x60;Apple App Store Description&#x60;, &#x60;Google Play Description&#x60;, but it can also take any other value. | [optional]
10
10
  **shares_translation_memory** | **Boolean** | Indicates whether the project should share the account&#39;s translation memory | [optional]
@@ -40,7 +40,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
40
40
  main_format: yml,
41
41
  media: Python,
42
42
  shares_translation_memory: true,
43
- project_image: [B@faca8e8,
43
+ project_image: [B@f33b8fc,
44
44
  remove_project_image: null,
45
45
  account_id: abcd1234,
46
46
  point_of_contact: abcd1234,
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
41
41
  main_format: yml,
42
42
  media: Python,
43
43
  shares_translation_memory: true,
44
- project_image: [B@3b85a820,
44
+ project_image: [B@697714d8,
45
45
  remove_project_image: false,
46
46
  workflow: review,
47
47
  machine_translation_enabled: true,
data/docs/ProjectsApi.md CHANGED
@@ -37,7 +37,7 @@ Phrase.configure do |config|
37
37
  end
38
38
 
39
39
  api_instance = Phrase::ProjectsApi.new
40
- project_create_parameters = Phrase::ProjectCreateParameters.new # ProjectCreateParameters |
40
+ project_create_parameters = Phrase::ProjectCreateParameters.new({name: 'My Android Project'}) # ProjectCreateParameters |
41
41
  opts = {
42
42
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
43
43
  }
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
- **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
8
+ **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. |
9
9
  **presentation** | **String** | Presentation details of the screenshot marker in JSON format.&lt;br/&gt;&lt;br/&gt;Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (&lt;code&gt;x&lt;/code&gt;-axis and &lt;code&gt;y&lt;/code&gt;-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (&lt;code&gt;w&lt;/code&gt; and &lt;code&gt;h&lt;/code&gt; in pixels). | [optional]
10
10
 
11
11
  ## Code Sample
@@ -39,7 +39,7 @@ end
39
39
  api_instance = Phrase::ScreenshotMarkersApi.new
40
40
  project_id = 'project_id_example' # String | Project ID
41
41
  screenshot_id = 'screenshot_id_example' # String | Screenshot ID
42
- screenshot_marker_create_parameters = Phrase::ScreenshotMarkerCreateParameters.new # ScreenshotMarkerCreateParameters |
42
+ screenshot_marker_create_parameters = Phrase::ScreenshotMarkerCreateParameters.new({key_id: 'abcd1234abcd1234abcd1234abcd1234'}) # ScreenshotMarkerCreateParameters |
43
43
  opts = {
44
44
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
45
45
  }
@@ -17,7 +17,7 @@ require 'Phrase'
17
17
  instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
18
  name: A screenshot name,
19
19
  description: A screenshot description,
20
- filename: [B@44b5a87a)
20
+ filename: [B@5eb11bb7)
21
21
  ```
22
22
 
23
23
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the space | [optional]
7
+ **name** | **String** | Name of the space |
8
8
 
9
9
  ## Code Sample
10
10