phrase 2.8.3 → 2.8.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +15 -12
  4. data/docs/BitbucketSyncApi.md +2 -2
  5. data/docs/BranchesApi.md +3 -3
  6. data/docs/GitHubSyncApi.md +2 -2
  7. data/docs/GitLabSyncApi.md +2 -2
  8. data/docs/JobCommentsApi.md +6 -6
  9. data/docs/JobLocale.md +3 -1
  10. data/docs/JobLocaleUpdateParameters.md +5 -1
  11. data/docs/JobLocalesCreateParameters.md +6 -2
  12. data/docs/JobTemplateDetails.md +35 -0
  13. data/docs/JobTemplateDetails1.md +21 -0
  14. data/docs/JobTemplateLocaleUpdateParameters.md +6 -2
  15. data/docs/{JobTemplateLocale.md → JobTemplateLocales.md} +6 -4
  16. data/docs/JobTemplateLocalesApi.md +8 -8
  17. data/docs/JobTemplateLocalesCreateParameters.md +5 -1
  18. data/docs/JobTemplatesApi.md +41 -41
  19. data/docs/KeysSearchParameters.md +1 -1
  20. data/docs/LocaleTeamPreview.md +21 -0
  21. data/docs/{JobTemplateUserPreview.md → LocaleUserPreview.md} +2 -2
  22. data/docs/LocalesApi.md +8 -4
  23. data/docs/NotificationGroupDetail.md +1 -1
  24. data/docs/NotificationGroupsApi.md +4 -4
  25. data/docs/NotificationsApi.md +4 -4
  26. data/docs/Project.md +2 -0
  27. data/docs/ProjectCreateParameters.md +5 -1
  28. data/docs/ProjectDetails.md +2 -0
  29. data/docs/ProjectUpdateParameters.md +5 -1
  30. data/docs/SearchApi.md +1 -1
  31. data/docs/TranslationsApi.md +23 -19
  32. data/docs/TranslationsExcludeParameters.md +1 -1
  33. data/docs/TranslationsIncludeParameters.md +1 -1
  34. data/docs/TranslationsReviewParameters.md +1 -1
  35. data/docs/TranslationsSearchParameters.md +1 -1
  36. data/docs/TranslationsUnverifyParameters.md +1 -1
  37. data/docs/TranslationsVerifyParameters.md +1 -1
  38. data/docs/UploadsApi.md +3 -3
  39. data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
  40. data/lib/phrase/api/branches_api.rb +6 -6
  41. data/lib/phrase/api/git_hub_sync_api.rb +4 -4
  42. data/lib/phrase/api/git_lab_sync_api.rb +4 -4
  43. data/lib/phrase/api/job_comments_api.rb +9 -9
  44. data/lib/phrase/api/job_template_locales_api.rb +12 -12
  45. data/lib/phrase/api/job_templates_api.rb +72 -72
  46. data/lib/phrase/api/locales_api.rb +10 -4
  47. data/lib/phrase/api/notification_groups_api.rb +6 -6
  48. data/lib/phrase/api/notifications_api.rb +6 -6
  49. data/lib/phrase/api/search_api.rb +2 -2
  50. data/lib/phrase/api/translations_api.rb +20 -14
  51. data/lib/phrase/api/uploads_api.rb +2 -2
  52. data/lib/phrase/models/job_locale.rb +13 -2
  53. data/lib/phrase/models/job_locale_update_parameters.rb +28 -4
  54. data/lib/phrase/models/job_locales_create_parameters.rb +33 -4
  55. data/lib/phrase/models/job_template_details.rb +285 -0
  56. data/lib/phrase/models/job_template_details1.rb +214 -0
  57. data/lib/phrase/models/job_template_locale_update_parameters.rb +28 -9
  58. data/lib/phrase/models/{job_template_locale.rb → job_template_locales.rb} +18 -7
  59. data/lib/phrase/models/job_template_locales_create_parameters.rb +28 -4
  60. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  61. data/lib/phrase/models/locale_team_preview.rb +212 -0
  62. data/lib/phrase/models/{job_template_user_preview.rb → locale_user_preview.rb} +3 -3
  63. data/lib/phrase/models/notification_group_detail.rb +1 -1
  64. data/lib/phrase/models/project.rb +10 -1
  65. data/lib/phrase/models/project_create_parameters.rb +22 -2
  66. data/lib/phrase/models/project_details.rb +10 -1
  67. data/lib/phrase/models/project_update_parameters.rb +22 -2
  68. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  69. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  70. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  71. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  72. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  73. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  74. data/lib/phrase/version.rb +1 -1
  75. data/lib/phrase.rb +5 -2
  76. data/spec/api/bitbucket_sync_api_spec.rb +2 -2
  77. data/spec/api/branches_api_spec.rb +3 -3
  78. data/spec/api/git_hub_sync_api_spec.rb +2 -2
  79. data/spec/api/git_lab_sync_api_spec.rb +2 -2
  80. data/spec/api/job_comments_api_spec.rb +3 -3
  81. data/spec/api/job_template_locales_api_spec.rb +4 -4
  82. data/spec/api/job_templates_api_spec.rb +17 -17
  83. data/spec/api/locales_api_spec.rb +4 -2
  84. data/spec/api/notification_groups_api_spec.rb +2 -2
  85. data/spec/api/notifications_api_spec.rb +2 -2
  86. data/spec/api/search_api_spec.rb +1 -1
  87. data/spec/api/translations_api_spec.rb +9 -7
  88. data/spec/api/uploads_api_spec.rb +1 -1
  89. data/spec/models/job_locale_spec.rb +6 -0
  90. data/spec/models/job_locale_update_parameters_spec.rb +12 -0
  91. data/spec/models/job_locales_create_parameters_spec.rb +12 -0
  92. data/spec/models/job_template_details1_spec.rb +41 -0
  93. data/spec/models/job_template_details_spec.rb +83 -0
  94. data/spec/models/job_template_locale_update_parameters_spec.rb +12 -0
  95. data/spec/models/job_template_locales_create_parameters_spec.rb +12 -0
  96. data/spec/models/{job_template_locale_spec.rb → job_template_locales_spec.rb} +12 -6
  97. data/spec/models/locale_team_preview_spec.rb +41 -0
  98. data/spec/models/{job_template_user_preview_spec.rb → locale_user_preview_spec.rb} +6 -6
  99. data/spec/models/project_create_parameters_spec.rb +12 -0
  100. data/spec/models/project_details_spec.rb +6 -0
  101. data/spec/models/project_spec.rb +6 -0
  102. data/spec/models/project_update_parameters_spec.rb +12 -0
  103. metadata +237 -225
@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
 
3
3
  module Phrase
4
- class JobTemplateUserPreview
4
+ class LocaleUserPreview
5
5
  attr_accessor :id
6
6
 
7
7
  attr_accessor :username
@@ -40,13 +40,13 @@ module Phrase
40
40
  # @param [Hash] attributes Model attributes in the form of hash
41
41
  def initialize(attributes = {})
42
42
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::JobTemplateUserPreview` initialize method"
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::LocaleUserPreview` initialize method"
44
44
  end
45
45
 
46
46
  # check to see if the attribute exists and convert string to symbol for hash key
47
47
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
48
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::JobTemplateUserPreview`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::LocaleUserPreview`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
50
  end
51
51
  h[k.to_sym] = v
52
52
  }
@@ -34,7 +34,7 @@ module Phrase
34
34
  :'created_at' => :'DateTime',
35
35
  :'updated_at' => :'DateTime',
36
36
  :'notifications_count' => :'Integer',
37
- :'latest_notification' => :'Object'
37
+ :'latest_notification' => :'Notification'
38
38
  }
39
39
  end
40
40
 
@@ -12,6 +12,8 @@ module Phrase
12
12
 
13
13
  attr_accessor :project_image_url
14
14
 
15
+ attr_accessor :media
16
+
15
17
  attr_accessor :account
16
18
 
17
19
  attr_accessor :space
@@ -30,6 +32,7 @@ module Phrase
30
32
  :'slug' => :'slug',
31
33
  :'main_format' => :'main_format',
32
34
  :'project_image_url' => :'project_image_url',
35
+ :'media' => :'media',
33
36
  :'account' => :'account',
34
37
  :'space' => :'space',
35
38
  :'point_of_contact' => :'point_of_contact',
@@ -46,6 +49,7 @@ module Phrase
46
49
  :'slug' => :'String',
47
50
  :'main_format' => :'String',
48
51
  :'project_image_url' => :'String',
52
+ :'media' => :'String',
49
53
  :'account' => :'Account',
50
54
  :'space' => :'Space1',
51
55
  :'point_of_contact' => :'UserPreview',
@@ -95,6 +99,10 @@ module Phrase
95
99
  self.project_image_url = attributes[:'project_image_url']
96
100
  end
97
101
 
102
+ if attributes.key?(:'media')
103
+ self.media = attributes[:'media']
104
+ end
105
+
98
106
  if attributes.key?(:'account')
99
107
  self.account = attributes[:'account']
100
108
  end
@@ -139,6 +147,7 @@ module Phrase
139
147
  slug == o.slug &&
140
148
  main_format == o.main_format &&
141
149
  project_image_url == o.project_image_url &&
150
+ media == o.media &&
142
151
  account == o.account &&
143
152
  space == o.space &&
144
153
  point_of_contact == o.point_of_contact &&
@@ -155,7 +164,7 @@ module Phrase
155
164
  # Calculates hash code according to all attributes.
156
165
  # @return [Integer] Hash code
157
166
  def hash
158
- [id, name, slug, main_format, project_image_url, account, space, point_of_contact, created_at, updated_at].hash
167
+ [id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at].hash
159
168
  end
160
169
 
161
170
  # Builds the object from hash
@@ -5,9 +5,12 @@ module Phrase
5
5
  # Name of the project
6
6
  attr_accessor :name
7
7
 
8
- # 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 <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
8
+ # 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 <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
9
9
  attr_accessor :main_format
10
10
 
11
+ # (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.
12
+ attr_accessor :media
13
+
11
14
  # Indicates whether the project should share the account's translation memory
12
15
  attr_accessor :shares_translation_memory
13
16
 
@@ -20,6 +23,9 @@ module Phrase
20
23
  # Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
21
24
  attr_accessor :account_id
22
25
 
26
+ # (Optional) User ID of the point of contact for the project.
27
+ attr_accessor :point_of_contact
28
+
23
29
  # When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params.
24
30
  attr_accessor :source_project_id
25
31
 
@@ -79,10 +85,12 @@ module Phrase
79
85
  {
80
86
  :'name' => :'name',
81
87
  :'main_format' => :'main_format',
88
+ :'media' => :'media',
82
89
  :'shares_translation_memory' => :'shares_translation_memory',
83
90
  :'project_image' => :'project_image',
84
91
  :'remove_project_image' => :'remove_project_image',
85
92
  :'account_id' => :'account_id',
93
+ :'point_of_contact' => :'point_of_contact',
86
94
  :'source_project_id' => :'source_project_id',
87
95
  :'workflow' => :'workflow',
88
96
  :'machine_translation_enabled' => :'machine_translation_enabled',
@@ -109,10 +117,12 @@ module Phrase
109
117
  {
110
118
  :'name' => :'String',
111
119
  :'main_format' => :'String',
120
+ :'media' => :'String',
112
121
  :'shares_translation_memory' => :'Boolean',
113
122
  :'project_image' => :'File',
114
123
  :'remove_project_image' => :'Boolean',
115
124
  :'account_id' => :'String',
125
+ :'point_of_contact' => :'String',
116
126
  :'source_project_id' => :'String',
117
127
  :'workflow' => :'String',
118
128
  :'machine_translation_enabled' => :'Boolean',
@@ -163,6 +173,10 @@ module Phrase
163
173
  self.main_format = attributes[:'main_format']
164
174
  end
165
175
 
176
+ if attributes.key?(:'media')
177
+ self.media = attributes[:'media']
178
+ end
179
+
166
180
  if attributes.key?(:'shares_translation_memory')
167
181
  self.shares_translation_memory = attributes[:'shares_translation_memory']
168
182
  end
@@ -179,6 +193,10 @@ module Phrase
179
193
  self.account_id = attributes[:'account_id']
180
194
  end
181
195
 
196
+ if attributes.key?(:'point_of_contact')
197
+ self.point_of_contact = attributes[:'point_of_contact']
198
+ end
199
+
182
200
  if attributes.key?(:'source_project_id')
183
201
  self.source_project_id = attributes[:'source_project_id']
184
202
  end
@@ -272,10 +290,12 @@ module Phrase
272
290
  self.class == o.class &&
273
291
  name == o.name &&
274
292
  main_format == o.main_format &&
293
+ media == o.media &&
275
294
  shares_translation_memory == o.shares_translation_memory &&
276
295
  project_image == o.project_image &&
277
296
  remove_project_image == o.remove_project_image &&
278
297
  account_id == o.account_id &&
298
+ point_of_contact == o.point_of_contact &&
279
299
  source_project_id == o.source_project_id &&
280
300
  workflow == o.workflow &&
281
301
  machine_translation_enabled == o.machine_translation_enabled &&
@@ -305,7 +325,7 @@ module Phrase
305
325
  # Calculates hash code according to all attributes.
306
326
  # @return [Integer] Hash code
307
327
  def hash
308
- [name, main_format, shares_translation_memory, project_image, remove_project_image, account_id, source_project_id, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
328
+ [name, main_format, media, shares_translation_memory, project_image, remove_project_image, account_id, point_of_contact, source_project_id, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
309
329
  end
310
330
 
311
331
  # Builds the object from hash
@@ -12,6 +12,8 @@ module Phrase
12
12
 
13
13
  attr_accessor :project_image_url
14
14
 
15
+ attr_accessor :media
16
+
15
17
  attr_accessor :account
16
18
 
17
19
  attr_accessor :space
@@ -32,6 +34,7 @@ module Phrase
32
34
  :'slug' => :'slug',
33
35
  :'main_format' => :'main_format',
34
36
  :'project_image_url' => :'project_image_url',
37
+ :'media' => :'media',
35
38
  :'account' => :'account',
36
39
  :'space' => :'space',
37
40
  :'point_of_contact' => :'point_of_contact',
@@ -49,6 +52,7 @@ module Phrase
49
52
  :'slug' => :'String',
50
53
  :'main_format' => :'String',
51
54
  :'project_image_url' => :'String',
55
+ :'media' => :'String',
52
56
  :'account' => :'Account',
53
57
  :'space' => :'Space1',
54
58
  :'point_of_contact' => :'UserPreview',
@@ -107,6 +111,10 @@ module Phrase
107
111
  self.project_image_url = attributes[:'project_image_url']
108
112
  end
109
113
 
114
+ if attributes.key?(:'media')
115
+ self.media = attributes[:'media']
116
+ end
117
+
110
118
  if attributes.key?(:'account')
111
119
  self.account = attributes[:'account']
112
120
  end
@@ -155,6 +163,7 @@ module Phrase
155
163
  slug == o.slug &&
156
164
  main_format == o.main_format &&
157
165
  project_image_url == o.project_image_url &&
166
+ media == o.media &&
158
167
  account == o.account &&
159
168
  space == o.space &&
160
169
  point_of_contact == o.point_of_contact &&
@@ -172,7 +181,7 @@ module Phrase
172
181
  # Calculates hash code according to all attributes.
173
182
  # @return [Integer] Hash code
174
183
  def hash
175
- [id, name, slug, main_format, project_image_url, account, space, point_of_contact, created_at, updated_at, shares_translation_memory].hash
184
+ [id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory].hash
176
185
  end
177
186
 
178
187
  # Builds the object from hash
@@ -8,9 +8,15 @@ module Phrase
8
8
  # (Optional) Name of the project
9
9
  attr_accessor :name
10
10
 
11
- # (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 <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
11
+ # (Optional) User ID of the point of contact for the project. Pass `null` to unset.
12
+ attr_accessor :point_of_contact
13
+
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 <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
12
15
  attr_accessor :main_format
13
16
 
17
+ # (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.
18
+ attr_accessor :media
19
+
14
20
  # (Optional) Indicates whether the project should share the account's translation memory
15
21
  attr_accessor :shares_translation_memory
16
22
 
@@ -76,7 +82,9 @@ module Phrase
76
82
  {
77
83
  :'account_id' => :'account_id',
78
84
  :'name' => :'name',
85
+ :'point_of_contact' => :'point_of_contact',
79
86
  :'main_format' => :'main_format',
87
+ :'media' => :'media',
80
88
  :'shares_translation_memory' => :'shares_translation_memory',
81
89
  :'project_image' => :'project_image',
82
90
  :'remove_project_image' => :'remove_project_image',
@@ -105,7 +113,9 @@ module Phrase
105
113
  {
106
114
  :'account_id' => :'String',
107
115
  :'name' => :'String',
116
+ :'point_of_contact' => :'String',
108
117
  :'main_format' => :'String',
118
+ :'media' => :'String',
109
119
  :'shares_translation_memory' => :'Boolean',
110
120
  :'project_image' => :'File',
111
121
  :'remove_project_image' => :'Boolean',
@@ -158,10 +168,18 @@ module Phrase
158
168
  self.name = attributes[:'name']
159
169
  end
160
170
 
171
+ if attributes.key?(:'point_of_contact')
172
+ self.point_of_contact = attributes[:'point_of_contact']
173
+ end
174
+
161
175
  if attributes.key?(:'main_format')
162
176
  self.main_format = attributes[:'main_format']
163
177
  end
164
178
 
179
+ if attributes.key?(:'media')
180
+ self.media = attributes[:'media']
181
+ end
182
+
165
183
  if attributes.key?(:'shares_translation_memory')
166
184
  self.shares_translation_memory = attributes[:'shares_translation_memory']
167
185
  end
@@ -263,7 +281,9 @@ module Phrase
263
281
  self.class == o.class &&
264
282
  account_id == o.account_id &&
265
283
  name == o.name &&
284
+ point_of_contact == o.point_of_contact &&
266
285
  main_format == o.main_format &&
286
+ media == o.media &&
267
287
  shares_translation_memory == o.shares_translation_memory &&
268
288
  project_image == o.project_image &&
269
289
  remove_project_image == o.remove_project_image &&
@@ -295,7 +315,7 @@ module Phrase
295
315
  # Calculates hash code according to all attributes.
296
316
  # @return [Integer] Hash code
297
317
  def hash
298
- [account_id, name, main_format, shares_translation_memory, project_image, remove_project_image, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
318
+ [account_id, name, point_of_contact, main_format, media, shares_translation_memory, project_image, remove_project_image, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
299
319
  end
300
320
 
301
321
  # Builds the object from hash
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,7 +11,7 @@ module Phrase
11
11
  # Order direction. Can be one of: asc, desc.
12
12
  attr_accessor :order
13
13
 
14
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
14
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
15
15
  attr_accessor :q
16
16
 
17
17
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -8,7 +8,7 @@ module Phrase
8
8
  # specify the locale of the translations to be verified
9
9
  attr_accessor :locale_id
10
10
 
11
- # Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
11
+ # Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
12
12
  attr_accessor :q
13
13
 
14
14
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.8.3'
2
+ VERSION = '2.8.7'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -86,12 +86,13 @@ require 'phrase/models/job_reopen_parameters'
86
86
  require 'phrase/models/job_start_parameters'
87
87
  require 'phrase/models/job_template'
88
88
  require 'phrase/models/job_template_create_parameters'
89
- require 'phrase/models/job_template_locale'
89
+ require 'phrase/models/job_template_details'
90
+ require 'phrase/models/job_template_details1'
90
91
  require 'phrase/models/job_template_locale_update_parameters'
92
+ require 'phrase/models/job_template_locales'
91
93
  require 'phrase/models/job_template_locales_create_parameters'
92
94
  require 'phrase/models/job_template_preview'
93
95
  require 'phrase/models/job_template_update_parameters'
94
- require 'phrase/models/job_template_user_preview'
95
96
  require 'phrase/models/job_update_parameters'
96
97
  require 'phrase/models/key_create_parameters'
97
98
  require 'phrase/models/key_preview'
@@ -108,7 +109,9 @@ require 'phrase/models/locale_details1'
108
109
  require 'phrase/models/locale_preview'
109
110
  require 'phrase/models/locale_preview1'
110
111
  require 'phrase/models/locale_statistics'
112
+ require 'phrase/models/locale_team_preview'
111
113
  require 'phrase/models/locale_update_parameters'
114
+ require 'phrase/models/locale_user_preview'
112
115
  require 'phrase/models/member'
113
116
  require 'phrase/models/member_project_detail'
114
117
  require 'phrase/models/member_project_detail_project_roles'
@@ -22,7 +22,7 @@ describe 'BitbucketSyncApi' do
22
22
 
23
23
  # unit tests for bitbucket_sync_export
24
24
  # Export from Phrase Strings to Bitbucket
25
- # Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
25
+ # Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Export is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
26
26
  # @param id ID
27
27
  # @param bitbucket_sync_export_parameters
28
28
  # @param [Hash] opts the optional parameters
@@ -36,7 +36,7 @@ describe 'BitbucketSyncApi' do
36
36
 
37
37
  # unit tests for bitbucket_sync_import
38
38
  # Import to Phrase Strings from Bitbucket
39
- # Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository.
39
+ # Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Import is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
40
40
  # @param id ID
41
41
  # @param bitbucket_sync_import_parameters
42
42
  # @param [Hash] opts the optional parameters
@@ -22,7 +22,7 @@ describe 'BranchesApi' do
22
22
 
23
23
  # unit tests for branch_compare
24
24
  # Compare branches
25
- # Compare branch with main branch.
25
+ # Compare branch with main branch. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Comparing a branch may take several minutes depending on the project size.&lt;/i&gt;
26
26
  # @param project_id Project ID
27
27
  # @param name name
28
28
  # @param [Hash] opts the optional parameters
@@ -36,7 +36,7 @@ describe 'BranchesApi' do
36
36
 
37
37
  # unit tests for branch_create
38
38
  # Create a branch
39
- # Create a new branch.
39
+ # Create a new branch. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Creating a new branch may take several minutes depending on the project size.&lt;/i&gt;
40
40
  # @param project_id Project ID
41
41
  # @param branch_create_parameters
42
42
  # @param [Hash] opts the optional parameters
@@ -64,7 +64,7 @@ describe 'BranchesApi' do
64
64
 
65
65
  # unit tests for branch_merge
66
66
  # Merge a branch
67
- # Merge an existing branch.
67
+ # Merge an existing branch. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Merging a branch may take several minutes depending on diff size.&lt;/i&gt;
68
68
  # @param project_id Project ID
69
69
  # @param name name
70
70
  # @param branch_merge_parameters
@@ -22,7 +22,7 @@ describe 'GitHubSyncApi' do
22
22
 
23
23
  # unit tests for github_sync_export
24
24
  # Export from Phrase Strings to GitHub
25
- # Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
25
+ # Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Export is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
26
26
  # @param github_sync_export_parameters
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -35,7 +35,7 @@ describe 'GitHubSyncApi' do
35
35
 
36
36
  # unit tests for github_sync_import
37
37
  # Import to Phrase Strings from GitHub
38
- # Import files to Phrase Strings from your connected GitHub repository.
38
+ # Import files to Phrase Strings from your connected GitHub repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Import is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
39
39
  # @param github_sync_import_parameters
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -36,7 +36,7 @@ describe 'GitLabSyncApi' do
36
36
 
37
37
  # unit tests for gitlab_sync_export
38
38
  # Export from Phrase Strings to GitLab
39
- # Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
39
+ # Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Export is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
40
40
  # @param gitlab_sync_id Gitlab Sync ID
41
41
  # @param gitlab_sync_export_parameters
42
42
  # @param [Hash] opts the optional parameters
@@ -66,7 +66,7 @@ describe 'GitLabSyncApi' do
66
66
 
67
67
  # unit tests for gitlab_sync_import
68
68
  # Import from GitLab to Phrase
69
- # Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
69
+ # Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Import is done asynchronously and may take several seconds depending on the project size.&lt;/i&gt;
70
70
  # @param gitlab_sync_id Gitlab Sync ID
71
71
  # @param gitlab_sync_import_parameters
72
72
  # @param [Hash] opts the optional parameters
@@ -60,7 +60,7 @@ describe 'JobCommentsApi' do
60
60
  # @param [Hash] opts the optional parameters
61
61
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
62
62
  # @option opts [String] :branch specify the branch to use
63
- # @return [Object]
63
+ # @return [JobComment]
64
64
  describe 'job_comment_show test' do
65
65
  it 'should work' do
66
66
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -76,7 +76,7 @@ describe 'JobCommentsApi' do
76
76
  # @param job_comment_update_parameters
77
77
  # @param [Hash] opts the optional parameters
78
78
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
79
- # @return [Object]
79
+ # @return [JobComment]
80
80
  describe 'job_comment_update test' do
81
81
  it 'should work' do
82
82
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -91,7 +91,7 @@ describe 'JobCommentsApi' do
91
91
  # @param [Hash] opts the optional parameters
92
92
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
93
93
  # @option opts [String] :branch specify the branch to use
94
- # @return [Array<Object>]
94
+ # @return [Array<JobComment>]
95
95
  describe 'job_comments_list test' do
96
96
  it 'should work' do
97
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -45,7 +45,7 @@ describe 'JobTemplateLocalesApi' do
45
45
  # @param [Hash] opts the optional parameters
46
46
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
47
47
  # @option opts [String] :branch specify the branch to use
48
- # @return [Object]
48
+ # @return [JobTemplateLocales]
49
49
  describe 'job_template_locale_show test' do
50
50
  it 'should work' do
51
51
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -61,7 +61,7 @@ describe 'JobTemplateLocalesApi' do
61
61
  # @param job_template_locale_update_parameters
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
64
- # @return [Object]
64
+ # @return [JobTemplateLocales]
65
65
  describe 'job_template_locale_update test' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -76,7 +76,7 @@ describe 'JobTemplateLocalesApi' do
76
76
  # @param job_template_locales_create_parameters
77
77
  # @param [Hash] opts the optional parameters
78
78
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
79
- # @return [JobTemplateLocale]
79
+ # @return [JobTemplateLocales]
80
80
  describe 'job_template_locales_create test' do
81
81
  it 'should work' do
82
82
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -93,7 +93,7 @@ describe 'JobTemplateLocalesApi' do
93
93
  # @option opts [Integer] :page Page number
94
94
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
95
95
  # @option opts [String] :branch specify the branch to use
96
- # @return [Array<Object>]
96
+ # @return [Array<JobTemplateLocales>]
97
97
  describe 'job_template_locales_list test' do
98
98
  it 'should work' do
99
99
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -27,7 +27,7 @@ describe 'JobTemplatesApi' do
27
27
  # @param job_template_create_parameters
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [Object]
30
+ # @return [JobTemplateDetails]
31
31
  describe 'job_template_create test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,21 +49,6 @@ describe 'JobTemplatesApi' do
49
49
  end
50
50
  end
51
51
 
52
- # unit tests for job_template_show
53
- # Get a single job template
54
- # Get details on a single job template for a given project.
55
- # @param project_id Project ID
56
- # @param id ID
57
- # @param [Hash] opts the optional parameters
58
- # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
59
- # @option opts [String] :branch specify the branch to use
60
- # @return [Object]
61
- describe 'job_template_show test' do
62
- it 'should work' do
63
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
- end
65
- end
66
-
67
52
  # unit tests for job_template_update
68
53
  # Update a job template
69
54
  # Update an existing job template.
@@ -72,7 +57,7 @@ describe 'JobTemplatesApi' do
72
57
  # @param job_template_update_parameters
73
58
  # @param [Hash] opts the optional parameters
74
59
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
75
- # @return [Object]
60
+ # @return [JobTemplateDetails]
76
61
  describe 'job_template_update test' do
77
62
  it 'should work' do
78
63
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -95,4 +80,19 @@ describe 'JobTemplatesApi' do
95
80
  end
96
81
  end
97
82
 
83
+ # unit tests for job_templates_show
84
+ # Get a single job template
85
+ # Get details on a single job template for a given project.
86
+ # @param project_id Project ID
87
+ # @param id ID
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
90
+ # @option opts [String] :branch specify the branch to use
91
+ # @return [JobTemplateDetails]
92
+ describe 'job_templates_show test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
98
  end