phrase 2.8.3 → 2.9.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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +31 -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/OrganizationJobTemplate.md +25 -0
  27. data/docs/OrganizationJobTemplateCreateParameters.md +19 -0
  28. data/docs/OrganizationJobTemplateDetails.md +31 -0
  29. data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +27 -0
  30. data/docs/OrganizationJobTemplateLocalesApi.md +341 -0
  31. data/docs/OrganizationJobTemplateLocalesCreateParameters.md +27 -0
  32. data/docs/OrganizationJobTemplateUpdateParameters.md +19 -0
  33. data/docs/OrganizationJobTemplatesApi.md +331 -0
  34. data/docs/Project.md +2 -0
  35. data/docs/ProjectCreateParameters.md +5 -1
  36. data/docs/ProjectDetails.md +2 -0
  37. data/docs/ProjectUpdateParameters.md +5 -1
  38. data/docs/SearchApi.md +1 -1
  39. data/docs/TranslationsApi.md +23 -19
  40. data/docs/TranslationsExcludeParameters.md +1 -1
  41. data/docs/TranslationsIncludeParameters.md +1 -1
  42. data/docs/TranslationsReviewParameters.md +1 -1
  43. data/docs/TranslationsSearchParameters.md +1 -1
  44. data/docs/TranslationsUnverifyParameters.md +1 -1
  45. data/docs/TranslationsVerifyParameters.md +1 -1
  46. data/docs/UploadsApi.md +3 -3
  47. data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
  48. data/lib/phrase/api/branches_api.rb +6 -6
  49. data/lib/phrase/api/git_hub_sync_api.rb +4 -4
  50. data/lib/phrase/api/git_lab_sync_api.rb +4 -4
  51. data/lib/phrase/api/job_comments_api.rb +9 -9
  52. data/lib/phrase/api/job_template_locales_api.rb +12 -12
  53. data/lib/phrase/api/job_templates_api.rb +72 -72
  54. data/lib/phrase/api/locales_api.rb +10 -4
  55. data/lib/phrase/api/notification_groups_api.rb +6 -6
  56. data/lib/phrase/api/notifications_api.rb +6 -6
  57. data/lib/phrase/api/organization_job_template_locales_api.rb +408 -0
  58. data/lib/phrase/api/organization_job_templates_api.rb +378 -0
  59. data/lib/phrase/api/search_api.rb +2 -2
  60. data/lib/phrase/api/translations_api.rb +20 -14
  61. data/lib/phrase/api/uploads_api.rb +2 -2
  62. data/lib/phrase/models/job_locale.rb +13 -2
  63. data/lib/phrase/models/job_locale_update_parameters.rb +28 -4
  64. data/lib/phrase/models/job_locales_create_parameters.rb +33 -4
  65. data/lib/phrase/models/job_template_details.rb +285 -0
  66. data/lib/phrase/models/job_template_details1.rb +214 -0
  67. data/lib/phrase/models/job_template_locale_update_parameters.rb +28 -9
  68. data/lib/phrase/models/{job_template_locale.rb → job_template_locales.rb} +18 -7
  69. data/lib/phrase/models/job_template_locales_create_parameters.rb +28 -4
  70. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  71. data/lib/phrase/models/locale_team_preview.rb +212 -0
  72. data/lib/phrase/models/{job_template_user_preview.rb → locale_user_preview.rb} +3 -3
  73. data/lib/phrase/models/notification_group_detail.rb +1 -1
  74. data/lib/phrase/models/organization_job_template.rb +230 -0
  75. data/lib/phrase/models/organization_job_template_create_parameters.rb +210 -0
  76. data/lib/phrase/models/organization_job_template_details.rb +267 -0
  77. data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +253 -0
  78. data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +263 -0
  79. data/lib/phrase/models/organization_job_template_update_parameters.rb +210 -0
  80. data/lib/phrase/models/project.rb +10 -1
  81. data/lib/phrase/models/project_create_parameters.rb +22 -2
  82. data/lib/phrase/models/project_details.rb +10 -1
  83. data/lib/phrase/models/project_update_parameters.rb +22 -2
  84. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  85. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  86. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  87. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  88. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  89. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  90. data/lib/phrase/version.rb +1 -1
  91. data/lib/phrase.rb +13 -2
  92. data/spec/api/bitbucket_sync_api_spec.rb +2 -2
  93. data/spec/api/branches_api_spec.rb +3 -3
  94. data/spec/api/git_hub_sync_api_spec.rb +2 -2
  95. data/spec/api/git_lab_sync_api_spec.rb +2 -2
  96. data/spec/api/job_comments_api_spec.rb +3 -3
  97. data/spec/api/job_template_locales_api_spec.rb +4 -4
  98. data/spec/api/job_templates_api_spec.rb +17 -17
  99. data/spec/api/locales_api_spec.rb +4 -2
  100. data/spec/api/notification_groups_api_spec.rb +2 -2
  101. data/spec/api/notifications_api_spec.rb +2 -2
  102. data/spec/api/organization_job_template_locales_api_spec.rb +100 -0
  103. data/spec/api/organization_job_templates_api_spec.rb +95 -0
  104. data/spec/api/search_api_spec.rb +1 -1
  105. data/spec/api/translations_api_spec.rb +9 -7
  106. data/spec/api/uploads_api_spec.rb +1 -1
  107. data/spec/models/job_locale_spec.rb +6 -0
  108. data/spec/models/job_locale_update_parameters_spec.rb +12 -0
  109. data/spec/models/job_locales_create_parameters_spec.rb +12 -0
  110. data/spec/models/job_template_details1_spec.rb +41 -0
  111. data/spec/models/job_template_details_spec.rb +83 -0
  112. data/spec/models/job_template_locale_update_parameters_spec.rb +12 -0
  113. data/spec/models/job_template_locales_create_parameters_spec.rb +12 -0
  114. data/spec/models/{job_template_locale_spec.rb → job_template_locales_spec.rb} +12 -6
  115. data/spec/models/locale_team_preview_spec.rb +41 -0
  116. data/spec/models/{job_template_user_preview_spec.rb → locale_user_preview_spec.rb} +6 -6
  117. data/spec/models/organization_job_template_create_parameters_spec.rb +35 -0
  118. data/spec/models/organization_job_template_details_spec.rb +71 -0
  119. data/spec/models/organization_job_template_locale_update_parameters_spec.rb +59 -0
  120. data/spec/models/organization_job_template_locales_create_parameters_spec.rb +59 -0
  121. data/spec/models/organization_job_template_spec.rb +53 -0
  122. data/spec/models/organization_job_template_update_parameters_spec.rb +35 -0
  123. data/spec/models/project_create_parameters_spec.rb +12 -0
  124. data/spec/models/project_details_spec.rb +6 -0
  125. data/spec/models/project_spec.rb +6 -0
  126. data/spec/models/project_update_parameters_spec.rb +12 -0
  127. metadata +269 -225
@@ -0,0 +1,378 @@
1
+ require 'cgi'
2
+
3
+ module Phrase
4
+ class OrganizationJobTemplatesApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = ApiClient.default)
8
+ @api_client = api_client
9
+ end
10
+ # Create an organization job template
11
+ # Create a new organization job template.
12
+ # @param account_id [String] Account ID
13
+ # @param organization_job_template_create_parameters [OrganizationJobTemplateCreateParameters]
14
+ # @param [Hash] opts the optional parameters
15
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
16
+ # @return [OrganizationJobTemplateDetails]
17
+ def organization_job_template_create(account_id, organization_job_template_create_parameters, opts = {})
18
+ data, _status_code, _headers = organization_job_template_create_with_http_info(account_id, organization_job_template_create_parameters, opts)
19
+ data
20
+ end
21
+
22
+ # Create an organization job template
23
+ # Create a new organization job template.
24
+ # @param account_id [String] Account ID
25
+ # @param organization_job_template_create_parameters [OrganizationJobTemplateCreateParameters]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
+ # @return [Array<(Response<(OrganizationJobTemplateDetails)>, Integer, Hash)>] Response<(OrganizationJobTemplateDetails)> data, response status code and response headers
29
+ def organization_job_template_create_with_http_info(account_id, organization_job_template_create_parameters, opts = {})
30
+ if @api_client.config.debugging
31
+ @api_client.config.logger.debug 'Calling API: OrganizationJobTemplatesApi.organization_job_template_create ...'
32
+ end
33
+ # verify the required parameter 'account_id' is set
34
+ if @api_client.config.client_side_validation && account_id.nil?
35
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrganizationJobTemplatesApi.organization_job_template_create"
36
+ end
37
+ # verify the required parameter 'organization_job_template_create_parameters' is set
38
+ if @api_client.config.client_side_validation && organization_job_template_create_parameters.nil?
39
+ fail ArgumentError, "Missing the required parameter 'organization_job_template_create_parameters' when calling OrganizationJobTemplatesApi.organization_job_template_create"
40
+ end
41
+ # resource path
42
+ local_var_path = '/accounts/{account_id}/job_templates'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
54
+
55
+ # form parameters
56
+ form_params = opts[:form_params] || {}
57
+
58
+ # http body (model)
59
+ post_body = opts[:body] || @api_client.object_to_http_body(organization_job_template_create_parameters)
60
+
61
+ # return_type
62
+ return_type = opts[:return_type] || 'OrganizationJobTemplateDetails'
63
+
64
+ # auth_names
65
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
66
+
67
+ new_options = opts.merge(
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: OrganizationJobTemplatesApi#organization_job_template_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ response = ::Phrase::Response.new(data, headers)
81
+ return response, status_code, headers
82
+ end
83
+
84
+ # Delete an organization job template
85
+ # Delete an existing organization job template.
86
+ # @param account_id [String] Account ID
87
+ # @param id [String] ID
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
90
+ # @return [nil]
91
+ def organization_job_template_delete(account_id, id, opts = {})
92
+ data, _status_code, _headers = organization_job_template_delete_with_http_info(account_id, id, opts)
93
+ data
94
+ end
95
+
96
+ # Delete an organization job template
97
+ # Delete an existing organization job template.
98
+ # @param account_id [String] Account ID
99
+ # @param id [String] ID
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
102
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
103
+ def organization_job_template_delete_with_http_info(account_id, id, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: OrganizationJobTemplatesApi.organization_job_template_delete ...'
106
+ end
107
+ # verify the required parameter 'account_id' is set
108
+ if @api_client.config.client_side_validation && account_id.nil?
109
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrganizationJobTemplatesApi.organization_job_template_delete"
110
+ end
111
+ # verify the required parameter 'id' is set
112
+ if @api_client.config.client_side_validation && id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationJobTemplatesApi.organization_job_template_delete"
114
+ end
115
+ # resource path
116
+ local_var_path = '/accounts/{account_id}/job_templates/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+
121
+ # header parameters
122
+ header_params = opts[:header_params] || {}
123
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:body]
130
+
131
+ # return_type
132
+ return_type = opts[:return_type]
133
+
134
+ # auth_names
135
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
136
+
137
+ new_options = opts.merge(
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: OrganizationJobTemplatesApi#organization_job_template_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ response = ::Phrase::Response.new(data, headers)
151
+ return response, status_code, headers
152
+ end
153
+
154
+ # Update an organization job template
155
+ # Update an existing organization job template.
156
+ # @param account_id [String] Account ID
157
+ # @param id [String] ID
158
+ # @param organization_job_template_update_parameters [OrganizationJobTemplateUpdateParameters]
159
+ # @param [Hash] opts the optional parameters
160
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
161
+ # @return [OrganizationJobTemplateDetails]
162
+ def organization_job_template_update(account_id, id, organization_job_template_update_parameters, opts = {})
163
+ data, _status_code, _headers = organization_job_template_update_with_http_info(account_id, id, organization_job_template_update_parameters, opts)
164
+ data
165
+ end
166
+
167
+ # Update an organization job template
168
+ # Update an existing organization job template.
169
+ # @param account_id [String] Account ID
170
+ # @param id [String] ID
171
+ # @param organization_job_template_update_parameters [OrganizationJobTemplateUpdateParameters]
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
174
+ # @return [Array<(Response<(OrganizationJobTemplateDetails)>, Integer, Hash)>] Response<(OrganizationJobTemplateDetails)> data, response status code and response headers
175
+ def organization_job_template_update_with_http_info(account_id, id, organization_job_template_update_parameters, opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug 'Calling API: OrganizationJobTemplatesApi.organization_job_template_update ...'
178
+ end
179
+ # verify the required parameter 'account_id' is set
180
+ if @api_client.config.client_side_validation && account_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrganizationJobTemplatesApi.organization_job_template_update"
182
+ end
183
+ # verify the required parameter 'id' is set
184
+ if @api_client.config.client_side_validation && id.nil?
185
+ fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationJobTemplatesApi.organization_job_template_update"
186
+ end
187
+ # verify the required parameter 'organization_job_template_update_parameters' is set
188
+ if @api_client.config.client_side_validation && organization_job_template_update_parameters.nil?
189
+ fail ArgumentError, "Missing the required parameter 'organization_job_template_update_parameters' when calling OrganizationJobTemplatesApi.organization_job_template_update"
190
+ end
191
+ # resource path
192
+ local_var_path = '/accounts/{account_id}/job_templates/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
193
+
194
+ # query parameters
195
+ query_params = opts[:query_params] || {}
196
+
197
+ # header parameters
198
+ header_params = opts[:header_params] || {}
199
+ # HTTP header 'Accept' (if needed)
200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
201
+ # HTTP header 'Content-Type'
202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
203
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
204
+
205
+ # form parameters
206
+ form_params = opts[:form_params] || {}
207
+
208
+ # http body (model)
209
+ post_body = opts[:body] || @api_client.object_to_http_body(organization_job_template_update_parameters)
210
+
211
+ # return_type
212
+ return_type = opts[:return_type] || 'OrganizationJobTemplateDetails'
213
+
214
+ # auth_names
215
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
216
+
217
+ new_options = opts.merge(
218
+ :header_params => header_params,
219
+ :query_params => query_params,
220
+ :form_params => form_params,
221
+ :body => post_body,
222
+ :auth_names => auth_names,
223
+ :return_type => return_type
224
+ )
225
+
226
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
227
+ if @api_client.config.debugging
228
+ @api_client.config.logger.debug "API called: OrganizationJobTemplatesApi#organization_job_template_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
+ end
230
+ response = ::Phrase::Response.new(data, headers)
231
+ return response, status_code, headers
232
+ end
233
+
234
+ # List organization job templates
235
+ # List all job templates for the given account.
236
+ # @param account_id [String] Account ID
237
+ # @param [Hash] opts the optional parameters
238
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
239
+ # @option opts [Integer] :page Page number
240
+ # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
241
+ # @return [Array<OrganizationJobTemplate>]
242
+ def organization_job_templates_list(account_id, opts = {})
243
+ data, _status_code, _headers = organization_job_templates_list_with_http_info(account_id, opts)
244
+ data
245
+ end
246
+
247
+ # List organization job templates
248
+ # List all job templates for the given account.
249
+ # @param account_id [String] Account ID
250
+ # @param [Hash] opts the optional parameters
251
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
252
+ # @option opts [Integer] :page Page number
253
+ # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
254
+ # @return [Array<(Response<(Array<OrganizationJobTemplate>)>, Integer, Hash)>] Response<(Array<OrganizationJobTemplate>)> data, response status code and response headers
255
+ def organization_job_templates_list_with_http_info(account_id, opts = {})
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug 'Calling API: OrganizationJobTemplatesApi.organization_job_templates_list ...'
258
+ end
259
+ # verify the required parameter 'account_id' is set
260
+ if @api_client.config.client_side_validation && account_id.nil?
261
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrganizationJobTemplatesApi.organization_job_templates_list"
262
+ end
263
+ # resource path
264
+ local_var_path = '/accounts/{account_id}/job_templates'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
265
+
266
+ # query parameters
267
+ query_params = opts[:query_params] || {}
268
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
269
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
270
+
271
+ # header parameters
272
+ header_params = opts[:header_params] || {}
273
+ # HTTP header 'Accept' (if needed)
274
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
275
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
276
+
277
+ # form parameters
278
+ form_params = opts[:form_params] || {}
279
+
280
+ # http body (model)
281
+ post_body = opts[:body]
282
+
283
+ # return_type
284
+ return_type = opts[:return_type] || 'Array<OrganizationJobTemplate>'
285
+
286
+ # auth_names
287
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
288
+
289
+ new_options = opts.merge(
290
+ :header_params => header_params,
291
+ :query_params => query_params,
292
+ :form_params => form_params,
293
+ :body => post_body,
294
+ :auth_names => auth_names,
295
+ :return_type => return_type
296
+ )
297
+
298
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
299
+ if @api_client.config.debugging
300
+ @api_client.config.logger.debug "API called: OrganizationJobTemplatesApi#organization_job_templates_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
+ end
302
+ response = ::Phrase::Response.new(data, headers)
303
+ return response, status_code, headers
304
+ end
305
+
306
+ # Get a single organization job template
307
+ # Get details on a single organization job template for a given account.
308
+ # @param account_id [String] Account ID
309
+ # @param id [String] ID
310
+ # @param [Hash] opts the optional parameters
311
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
312
+ # @return [OrganizationJobTemplateDetails]
313
+ def organization_job_templates_show(account_id, id, opts = {})
314
+ data, _status_code, _headers = organization_job_templates_show_with_http_info(account_id, id, opts)
315
+ data
316
+ end
317
+
318
+ # Get a single organization job template
319
+ # Get details on a single organization job template for a given account.
320
+ # @param account_id [String] Account ID
321
+ # @param id [String] ID
322
+ # @param [Hash] opts the optional parameters
323
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
324
+ # @return [Array<(Response<(OrganizationJobTemplateDetails)>, Integer, Hash)>] Response<(OrganizationJobTemplateDetails)> data, response status code and response headers
325
+ def organization_job_templates_show_with_http_info(account_id, id, opts = {})
326
+ if @api_client.config.debugging
327
+ @api_client.config.logger.debug 'Calling API: OrganizationJobTemplatesApi.organization_job_templates_show ...'
328
+ end
329
+ # verify the required parameter 'account_id' is set
330
+ if @api_client.config.client_side_validation && account_id.nil?
331
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling OrganizationJobTemplatesApi.organization_job_templates_show"
332
+ end
333
+ # verify the required parameter 'id' is set
334
+ if @api_client.config.client_side_validation && id.nil?
335
+ fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationJobTemplatesApi.organization_job_templates_show"
336
+ end
337
+ # resource path
338
+ local_var_path = '/accounts/{account_id}/job_templates/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
339
+
340
+ # query parameters
341
+ query_params = opts[:query_params] || {}
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
347
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
348
+
349
+ # form parameters
350
+ form_params = opts[:form_params] || {}
351
+
352
+ # http body (model)
353
+ post_body = opts[:body]
354
+
355
+ # return_type
356
+ return_type = opts[:return_type] || 'OrganizationJobTemplateDetails'
357
+
358
+ # auth_names
359
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
360
+
361
+ new_options = opts.merge(
362
+ :header_params => header_params,
363
+ :query_params => query_params,
364
+ :form_params => form_params,
365
+ :body => post_body,
366
+ :auth_names => auth_names,
367
+ :return_type => return_type
368
+ )
369
+
370
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
371
+ if @api_client.config.debugging
372
+ @api_client.config.logger.debug "API called: OrganizationJobTemplatesApi#organization_job_templates_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
373
+ end
374
+ response = ::Phrase::Response.new(data, headers)
375
+ return response, status_code, headers
376
+ end
377
+ end
378
+ end
@@ -8,7 +8,7 @@ module Phrase
8
8
  @api_client = api_client
9
9
  end
10
10
  # Search across projects
11
- # Search for keys and translations in all account projects
11
+ # Search for keys and translations in all account projects <br><br><i>Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.</i>
12
12
  # @param account_id [String] Account ID
13
13
  # @param search_in_account_parameters [SearchInAccountParameters]
14
14
  # @param [Hash] opts the optional parameters
@@ -20,7 +20,7 @@ module Phrase
20
20
  end
21
21
 
22
22
  # Search across projects
23
- # Search for keys and translations in all account projects
23
+ # Search for keys and translations in all account projects &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.&lt;/i&gt;
24
24
  # @param account_id [String] Account ID
25
25
  # @param search_in_account_parameters [SearchInAccountParameters]
26
26
  # @param [Hash] opts the optional parameters
@@ -161,7 +161,7 @@ module Phrase
161
161
  return response, status_code, headers
162
162
  end
163
163
 
164
- # Revoke exclusion of a translation in export
164
+ # Include a translation
165
165
  # Remove exclude from export flag from an existing translation.
166
166
  # @param project_id [String] Project ID
167
167
  # @param id [String] ID
@@ -174,7 +174,7 @@ module Phrase
174
174
  data
175
175
  end
176
176
 
177
- # Revoke exclusion of a translation in export
177
+ # Include a translation
178
178
  # Remove exclude from export flag from an existing translation.
179
179
  # @param project_id [String] Project ID
180
180
  # @param id [String] ID
@@ -737,7 +737,7 @@ module Phrase
737
737
  # @option opts [String] :branch specify the branch to use
738
738
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
739
739
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
740
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
740
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
741
741
  # @return [Array<Translation>]
742
742
  def translations_by_locale(project_id, locale_id, opts = {})
743
743
  data, _status_code, _headers = translations_by_locale_with_http_info(project_id, locale_id, opts)
@@ -755,7 +755,7 @@ module Phrase
755
755
  # @option opts [String] :branch specify the branch to use
756
756
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
757
757
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
758
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
758
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
759
759
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
760
760
  def translations_by_locale_with_http_info(project_id, locale_id, opts = {})
761
761
  if @api_client.config.debugging
@@ -816,7 +816,7 @@ module Phrase
816
816
  return response, status_code, headers
817
817
  end
818
818
 
819
- # Set exclude from export flag on translations selected by query
819
+ # Exclude translations by query
820
820
  # Exclude translations matching query from locale export.
821
821
  # @param project_id [String] Project ID
822
822
  # @param translations_exclude_parameters [TranslationsExcludeParameters]
@@ -828,7 +828,7 @@ module Phrase
828
828
  data
829
829
  end
830
830
 
831
- # Set exclude from export flag on translations selected by query
831
+ # Exclude translations by query
832
832
  # Exclude translations matching query from locale export.
833
833
  # @param project_id [String] Project ID
834
834
  # @param translations_exclude_parameters [TranslationsExcludeParameters]
@@ -890,7 +890,7 @@ module Phrase
890
890
  return response, status_code, headers
891
891
  end
892
892
 
893
- # Remove exlude from import flag from translations selected by query
893
+ # Include translations by query
894
894
  # Include translations matching query in locale export.
895
895
  # @param project_id [String] Project ID
896
896
  # @param translations_include_parameters [TranslationsIncludeParameters]
@@ -902,7 +902,7 @@ module Phrase
902
902
  data
903
903
  end
904
904
 
905
- # Remove exlude from import flag from translations selected by query
905
+ # Include translations by query
906
906
  # Include translations matching query in locale export.
907
907
  # @param project_id [String] Project ID
908
908
  # @param translations_include_parameters [TranslationsIncludeParameters]
@@ -969,12 +969,14 @@ module Phrase
969
969
  # @param project_id [String] Project ID
970
970
  # @param [Hash] opts the optional parameters
971
971
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
972
+ # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
973
+ # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
972
974
  # @option opts [Integer] :page Page number
973
975
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
974
976
  # @option opts [String] :branch specify the branch to use
975
977
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
976
978
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
977
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
979
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
978
980
  # @return [Array<Translation>]
979
981
  def translations_list(project_id, opts = {})
980
982
  data, _status_code, _headers = translations_list_with_http_info(project_id, opts)
@@ -986,12 +988,14 @@ module Phrase
986
988
  # @param project_id [String] Project ID
987
989
  # @param [Hash] opts the optional parameters
988
990
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
991
+ # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
992
+ # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
989
993
  # @option opts [Integer] :page Page number
990
994
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
991
995
  # @option opts [String] :branch specify the branch to use
992
996
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
993
997
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
994
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
998
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
995
999
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
996
1000
  def translations_list_with_http_info(project_id, opts = {})
997
1001
  if @api_client.config.debugging
@@ -1018,6 +1022,8 @@ module Phrase
1018
1022
  # HTTP header 'Accept' (if needed)
1019
1023
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1020
1024
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
1025
+ header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
1026
+ header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
1021
1027
 
1022
1028
  # form parameters
1023
1029
  form_params = opts[:form_params] || {}
@@ -1202,7 +1208,7 @@ module Phrase
1202
1208
  return response, status_code, headers
1203
1209
  end
1204
1210
 
1205
- # Mark translations selected by query as unverified
1211
+ # Unverify translations by query
1206
1212
  # Mark translations matching query as unverified.
1207
1213
  # @param project_id [String] Project ID
1208
1214
  # @param translations_unverify_parameters [TranslationsUnverifyParameters]
@@ -1214,7 +1220,7 @@ module Phrase
1214
1220
  data
1215
1221
  end
1216
1222
 
1217
- # Mark translations selected by query as unverified
1223
+ # Unverify translations by query
1218
1224
  # Mark translations matching query as unverified.
1219
1225
  # @param project_id [String] Project ID
1220
1226
  # @param translations_unverify_parameters [TranslationsUnverifyParameters]
@@ -1276,7 +1282,7 @@ module Phrase
1276
1282
  return response, status_code, headers
1277
1283
  end
1278
1284
 
1279
- # Verify translations selected by query
1285
+ # Verify translations by query
1280
1286
  # Verify translations matching query.
1281
1287
  # @param project_id [String] Project ID
1282
1288
  # @param translations_verify_parameters [TranslationsVerifyParameters]
@@ -1288,7 +1294,7 @@ module Phrase
1288
1294
  data
1289
1295
  end
1290
1296
 
1291
- # Verify translations selected by query
1297
+ # Verify translations by query
1292
1298
  # Verify translations matching query.
1293
1299
  # @param project_id [String] Project ID
1294
1300
  # @param translations_verify_parameters [TranslationsVerifyParameters]
@@ -120,7 +120,7 @@ module Phrase
120
120
  return response, status_code, headers
121
121
  end
122
122
 
123
- # View upload details
123
+ # Get a single upload
124
124
  # View details and summary for a single upload.
125
125
  # @param project_id [String] Project ID
126
126
  # @param id [String] ID
@@ -133,7 +133,7 @@ module Phrase
133
133
  data
134
134
  end
135
135
 
136
- # View upload details
136
+ # Get a single upload
137
137
  # View details and summary for a single upload.
138
138
  # @param project_id [String] Project ID
139
139
  # @param id [String] ID
@@ -10,6 +10,8 @@ module Phrase
10
10
 
11
11
  attr_accessor :users
12
12
 
13
+ attr_accessor :teams
14
+
13
15
  attr_accessor :completed
14
16
 
15
17
  attr_accessor :translation_completed_at
@@ -23,6 +25,7 @@ module Phrase
23
25
  :'job' => :'job',
24
26
  :'locale' => :'locale',
25
27
  :'users' => :'users',
28
+ :'teams' => :'teams',
26
29
  :'completed' => :'completed',
27
30
  :'translation_completed_at' => :'translation_completed_at',
28
31
  :'review_completed_at' => :'review_completed_at'
@@ -35,7 +38,8 @@ module Phrase
35
38
  :'id' => :'String',
36
39
  :'job' => :'JobPreview',
37
40
  :'locale' => :'LocalePreview',
38
- :'users' => :'Array<UserPreview>',
41
+ :'users' => :'Array<LocaleUserPreview>',
42
+ :'teams' => :'Array<LocaleTeamPreview>',
39
43
  :'completed' => :'Boolean',
40
44
  :'translation_completed_at' => :'DateTime',
41
45
  :'review_completed_at' => :'DateTime'
@@ -81,6 +85,12 @@ module Phrase
81
85
  end
82
86
  end
83
87
 
88
+ if attributes.key?(:'teams')
89
+ if (value = attributes[:'teams']).is_a?(Array)
90
+ self.teams = value
91
+ end
92
+ end
93
+
84
94
  if attributes.key?(:'completed')
85
95
  self.completed = attributes[:'completed']
86
96
  end
@@ -116,6 +126,7 @@ module Phrase
116
126
  job == o.job &&
117
127
  locale == o.locale &&
118
128
  users == o.users &&
129
+ teams == o.teams &&
119
130
  completed == o.completed &&
120
131
  translation_completed_at == o.translation_completed_at &&
121
132
  review_completed_at == o.review_completed_at
@@ -130,7 +141,7 @@ module Phrase
130
141
  # Calculates hash code according to all attributes.
131
142
  # @return [Integer] Hash code
132
143
  def hash
133
- [id, job, locale, users, completed, translation_completed_at, review_completed_at].hash
144
+ [id, job, locale, users, teams, completed, translation_completed_at, review_completed_at].hash
134
145
  end
135
146
 
136
147
  # Builds the object from hash