phrase 4.17.0 → 4.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +3 -3
- data/docs/JobCreateParameters.md +3 -1
- data/docs/JobTemplateCreateParameters.md +5 -1
- data/docs/JobTemplateUpdateParameters.md +5 -1
- data/docs/JobUpdateParameters.md +3 -1
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/OrganizationJobTemplateCreateParameters.md +3 -1
- data/docs/OrganizationJobTemplateUpdateParameters.md +3 -1
- data/docs/ProjectCreateParameters.md +6 -2
- data/docs/ProjectDetails.md +7 -1
- data/docs/ProjectUpdateParameters.md +6 -2
- data/docs/RepoSyncExportParameters.md +3 -1
- data/docs/RepoSyncImportParameters.md +3 -1
- data/docs/RepoSyncsApi.md +0 -2
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/Upload.md +2 -0
- data/lib/phrase/api/repo_syncs_api.rb +0 -3
- data/lib/phrase/models/job_create_parameters.rb +14 -4
- data/lib/phrase/models/job_template_create_parameters.rb +24 -4
- data/lib/phrase/models/job_template_update_parameters.rb +24 -4
- data/lib/phrase/models/job_update_parameters.rb +14 -4
- data/lib/phrase/models/organization_job_template_create_parameters.rb +14 -4
- data/lib/phrase/models/organization_job_template_update_parameters.rb +14 -4
- data/lib/phrase/models/project_create_parameters.rb +26 -4
- data/lib/phrase/models/project_details.rb +33 -4
- data/lib/phrase/models/project_update_parameters.rb +26 -4
- data/lib/phrase/models/repo_sync_export_parameters.rb +14 -4
- data/lib/phrase/models/repo_sync_import_parameters.rb +14 -4
- data/lib/phrase/models/upload.rb +10 -1
- data/lib/phrase/version.rb +1 -1
- data/spec/api/repo_syncs_api_spec.rb +0 -1
- data/spec/models/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_template_create_parameters_spec.rb +12 -0
- data/spec/models/job_template_update_parameters_spec.rb +12 -0
- data/spec/models/job_update_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
- data/spec/models/project_create_parameters_spec.rb +12 -0
- data/spec/models/project_details_spec.rb +18 -0
- data/spec/models/project_update_parameters_spec.rb +12 -0
- data/spec/models/repo_sync_export_parameters_spec.rb +6 -0
- data/spec/models/repo_sync_import_parameters_spec.rb +6 -0
- data/spec/models/upload_spec.rb +6 -0
- metadata +243 -243
|
@@ -8,11 +8,15 @@ module Phrase
|
|
|
8
8
|
# Briefing for the translators
|
|
9
9
|
attr_accessor :briefing
|
|
10
10
|
|
|
11
|
+
# Automatically translate the job using machine translation.
|
|
12
|
+
attr_accessor :autotranslate
|
|
13
|
+
|
|
11
14
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
15
|
def self.attribute_map
|
|
13
16
|
{
|
|
14
17
|
:'name' => :'name',
|
|
15
|
-
:'briefing' => :'briefing'
|
|
18
|
+
:'briefing' => :'briefing',
|
|
19
|
+
:'autotranslate' => :'autotranslate'
|
|
16
20
|
}
|
|
17
21
|
end
|
|
18
22
|
|
|
@@ -20,7 +24,8 @@ module Phrase
|
|
|
20
24
|
def self.openapi_types
|
|
21
25
|
{
|
|
22
26
|
:'name' => :'String',
|
|
23
|
-
:'briefing' => :'String'
|
|
27
|
+
:'briefing' => :'String',
|
|
28
|
+
:'autotranslate' => :'Boolean'
|
|
24
29
|
}
|
|
25
30
|
end
|
|
26
31
|
|
|
@@ -52,6 +57,10 @@ module Phrase
|
|
|
52
57
|
if attributes.key?(:'briefing')
|
|
53
58
|
self.briefing = attributes[:'briefing']
|
|
54
59
|
end
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'autotranslate')
|
|
62
|
+
self.autotranslate = attributes[:'autotranslate']
|
|
63
|
+
end
|
|
55
64
|
end
|
|
56
65
|
|
|
57
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -78,7 +87,8 @@ module Phrase
|
|
|
78
87
|
return true if self.equal?(o)
|
|
79
88
|
self.class == o.class &&
|
|
80
89
|
name == o.name &&
|
|
81
|
-
briefing == o.briefing
|
|
90
|
+
briefing == o.briefing &&
|
|
91
|
+
autotranslate == o.autotranslate
|
|
82
92
|
end
|
|
83
93
|
|
|
84
94
|
# @see the `==` method
|
|
@@ -90,7 +100,7 @@ module Phrase
|
|
|
90
100
|
# Calculates hash code according to all attributes.
|
|
91
101
|
# @return [Integer] Hash code
|
|
92
102
|
def hash
|
|
93
|
-
[name, briefing].hash
|
|
103
|
+
[name, briefing, autotranslate].hash
|
|
94
104
|
end
|
|
95
105
|
|
|
96
106
|
# Builds the object from hash
|
|
@@ -8,11 +8,15 @@ module Phrase
|
|
|
8
8
|
# Briefing for the translators
|
|
9
9
|
attr_accessor :briefing
|
|
10
10
|
|
|
11
|
+
# Automatically translate the job using machine translation.
|
|
12
|
+
attr_accessor :autotranslate
|
|
13
|
+
|
|
11
14
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
15
|
def self.attribute_map
|
|
13
16
|
{
|
|
14
17
|
:'name' => :'name',
|
|
15
|
-
:'briefing' => :'briefing'
|
|
18
|
+
:'briefing' => :'briefing',
|
|
19
|
+
:'autotranslate' => :'autotranslate'
|
|
16
20
|
}
|
|
17
21
|
end
|
|
18
22
|
|
|
@@ -20,7 +24,8 @@ module Phrase
|
|
|
20
24
|
def self.openapi_types
|
|
21
25
|
{
|
|
22
26
|
:'name' => :'String',
|
|
23
|
-
:'briefing' => :'String'
|
|
27
|
+
:'briefing' => :'String',
|
|
28
|
+
:'autotranslate' => :'Boolean'
|
|
24
29
|
}
|
|
25
30
|
end
|
|
26
31
|
|
|
@@ -52,6 +57,10 @@ module Phrase
|
|
|
52
57
|
if attributes.key?(:'briefing')
|
|
53
58
|
self.briefing = attributes[:'briefing']
|
|
54
59
|
end
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'autotranslate')
|
|
62
|
+
self.autotranslate = attributes[:'autotranslate']
|
|
63
|
+
end
|
|
55
64
|
end
|
|
56
65
|
|
|
57
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -78,7 +87,8 @@ module Phrase
|
|
|
78
87
|
return true if self.equal?(o)
|
|
79
88
|
self.class == o.class &&
|
|
80
89
|
name == o.name &&
|
|
81
|
-
briefing == o.briefing
|
|
90
|
+
briefing == o.briefing &&
|
|
91
|
+
autotranslate == o.autotranslate
|
|
82
92
|
end
|
|
83
93
|
|
|
84
94
|
# @see the `==` method
|
|
@@ -90,7 +100,7 @@ module Phrase
|
|
|
90
100
|
# Calculates hash code according to all attributes.
|
|
91
101
|
# @return [Integer] Hash code
|
|
92
102
|
def hash
|
|
93
|
-
[name, briefing].hash
|
|
103
|
+
[name, briefing, autotranslate].hash
|
|
94
104
|
end
|
|
95
105
|
|
|
96
106
|
# Builds the object from hash
|
|
@@ -71,6 +71,12 @@ module Phrase
|
|
|
71
71
|
# (Optional) Requires autotranslate_enabled to be true
|
|
72
72
|
attr_accessor :autotranslate_use_translation_memory
|
|
73
73
|
|
|
74
|
+
# (Optional) Requires autotranslate_enabled to be true
|
|
75
|
+
attr_accessor :autotranslate_overwrite_unverified_translations
|
|
76
|
+
|
|
77
|
+
# (Optional) List of placeholder styles enabled for the project.
|
|
78
|
+
attr_accessor :placeholder_styles
|
|
79
|
+
|
|
74
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
81
|
def self.attribute_map
|
|
76
82
|
{
|
|
@@ -96,7 +102,9 @@ module Phrase
|
|
|
96
102
|
:'autotranslate_check_new_locales' => :'autotranslate_check_new_locales',
|
|
97
103
|
:'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
|
|
98
104
|
:'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
|
|
99
|
-
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory'
|
|
105
|
+
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
|
|
106
|
+
:'autotranslate_overwrite_unverified_translations' => :'autotranslate_overwrite_unverified_translations',
|
|
107
|
+
:'placeholder_styles' => :'placeholder_styles'
|
|
100
108
|
}
|
|
101
109
|
end
|
|
102
110
|
|
|
@@ -125,7 +133,9 @@ module Phrase
|
|
|
125
133
|
:'autotranslate_check_new_locales' => :'Boolean',
|
|
126
134
|
:'autotranslate_mark_as_unverified' => :'Boolean',
|
|
127
135
|
:'autotranslate_use_machine_translation' => :'Boolean',
|
|
128
|
-
:'autotranslate_use_translation_memory' => :'Boolean'
|
|
136
|
+
:'autotranslate_use_translation_memory' => :'Boolean',
|
|
137
|
+
:'autotranslate_overwrite_unverified_translations' => :'Boolean',
|
|
138
|
+
:'placeholder_styles' => :'Array<String>'
|
|
129
139
|
}
|
|
130
140
|
end
|
|
131
141
|
|
|
@@ -241,6 +251,16 @@ module Phrase
|
|
|
241
251
|
if attributes.key?(:'autotranslate_use_translation_memory')
|
|
242
252
|
self.autotranslate_use_translation_memory = attributes[:'autotranslate_use_translation_memory']
|
|
243
253
|
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'autotranslate_overwrite_unverified_translations')
|
|
256
|
+
self.autotranslate_overwrite_unverified_translations = attributes[:'autotranslate_overwrite_unverified_translations']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'placeholder_styles')
|
|
260
|
+
if (value = attributes[:'placeholder_styles']).is_a?(Array)
|
|
261
|
+
self.placeholder_styles = value
|
|
262
|
+
end
|
|
263
|
+
end
|
|
244
264
|
end
|
|
245
265
|
|
|
246
266
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -288,7 +308,9 @@ module Phrase
|
|
|
288
308
|
autotranslate_check_new_locales == o.autotranslate_check_new_locales &&
|
|
289
309
|
autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
|
|
290
310
|
autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
|
|
291
|
-
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory
|
|
311
|
+
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
|
|
312
|
+
autotranslate_overwrite_unverified_translations == o.autotranslate_overwrite_unverified_translations &&
|
|
313
|
+
placeholder_styles == o.placeholder_styles
|
|
292
314
|
end
|
|
293
315
|
|
|
294
316
|
# @see the `==` method
|
|
@@ -300,7 +322,7 @@ module Phrase
|
|
|
300
322
|
# Calculates hash code according to all attributes.
|
|
301
323
|
# @return [Integer] Hash code
|
|
302
324
|
def hash
|
|
303
|
-
[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].hash
|
|
325
|
+
[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, autotranslate_overwrite_unverified_translations, placeholder_styles].hash
|
|
304
326
|
end
|
|
305
327
|
|
|
306
328
|
# Builds the object from hash
|
|
@@ -54,6 +54,12 @@ module Phrase
|
|
|
54
54
|
|
|
55
55
|
attr_accessor :default_encoding
|
|
56
56
|
|
|
57
|
+
attr_accessor :cldr_version
|
|
58
|
+
|
|
59
|
+
attr_accessor :job_locking_enabled
|
|
60
|
+
|
|
61
|
+
attr_accessor :placeholder_styles
|
|
62
|
+
|
|
57
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
64
|
def self.attribute_map
|
|
59
65
|
{
|
|
@@ -82,7 +88,10 @@ module Phrase
|
|
|
82
88
|
:'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
|
|
83
89
|
:'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
|
|
84
90
|
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
|
|
85
|
-
:'default_encoding' => :'default_encoding'
|
|
91
|
+
:'default_encoding' => :'default_encoding',
|
|
92
|
+
:'cldr_version' => :'cldr_version',
|
|
93
|
+
:'job_locking_enabled' => :'job_locking_enabled',
|
|
94
|
+
:'placeholder_styles' => :'placeholder_styles'
|
|
86
95
|
}
|
|
87
96
|
end
|
|
88
97
|
|
|
@@ -114,7 +123,10 @@ module Phrase
|
|
|
114
123
|
:'autotranslate_mark_as_unverified' => :'Boolean',
|
|
115
124
|
:'autotranslate_use_machine_translation' => :'Boolean',
|
|
116
125
|
:'autotranslate_use_translation_memory' => :'Boolean',
|
|
117
|
-
:'default_encoding' => :'String'
|
|
126
|
+
:'default_encoding' => :'String',
|
|
127
|
+
:'cldr_version' => :'String',
|
|
128
|
+
:'job_locking_enabled' => :'Boolean',
|
|
129
|
+
:'placeholder_styles' => :'Array<String>'
|
|
118
130
|
}
|
|
119
131
|
end
|
|
120
132
|
|
|
@@ -249,6 +261,20 @@ module Phrase
|
|
|
249
261
|
if attributes.key?(:'default_encoding')
|
|
250
262
|
self.default_encoding = attributes[:'default_encoding']
|
|
251
263
|
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'cldr_version')
|
|
266
|
+
self.cldr_version = attributes[:'cldr_version']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'job_locking_enabled')
|
|
270
|
+
self.job_locking_enabled = attributes[:'job_locking_enabled']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'placeholder_styles')
|
|
274
|
+
if (value = attributes[:'placeholder_styles']).is_a?(Array)
|
|
275
|
+
self.placeholder_styles = value
|
|
276
|
+
end
|
|
277
|
+
end
|
|
252
278
|
end
|
|
253
279
|
|
|
254
280
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -294,7 +320,10 @@ module Phrase
|
|
|
294
320
|
autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
|
|
295
321
|
autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
|
|
296
322
|
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
|
|
297
|
-
default_encoding == o.default_encoding
|
|
323
|
+
default_encoding == o.default_encoding &&
|
|
324
|
+
cldr_version == o.cldr_version &&
|
|
325
|
+
job_locking_enabled == o.job_locking_enabled &&
|
|
326
|
+
placeholder_styles == o.placeholder_styles
|
|
298
327
|
end
|
|
299
328
|
|
|
300
329
|
# @see the `==` method
|
|
@@ -306,7 +335,7 @@ module Phrase
|
|
|
306
335
|
# Calculates hash code according to all attributes.
|
|
307
336
|
# @return [Integer] Hash code
|
|
308
337
|
def hash
|
|
309
|
-
[id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory, machine_translation_enabled, zero_plural_form_enabled, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, enable_branching, protect_master_branch, 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, default_encoding].hash
|
|
338
|
+
[id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory, machine_translation_enabled, zero_plural_form_enabled, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, enable_branching, protect_master_branch, 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, default_encoding, cldr_version, job_locking_enabled, placeholder_styles].hash
|
|
310
339
|
end
|
|
311
340
|
|
|
312
341
|
# Builds the object from hash
|
|
@@ -68,9 +68,15 @@ module Phrase
|
|
|
68
68
|
# (Optional) Requires autotranslate_enabled to be true
|
|
69
69
|
attr_accessor :autotranslate_use_translation_memory
|
|
70
70
|
|
|
71
|
+
# (Optional) Requires autotranslate_enabled to be true
|
|
72
|
+
attr_accessor :autotranslate_overwrite_unverified_translations
|
|
73
|
+
|
|
71
74
|
# (Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the [`file_encoding`](/en/api/strings/uploads/upload-a-new-file) parameter for Uploads.
|
|
72
75
|
attr_accessor :default_encoding
|
|
73
76
|
|
|
77
|
+
# (Optional) List of placeholder styles enabled for the project.
|
|
78
|
+
attr_accessor :placeholder_styles
|
|
79
|
+
|
|
74
80
|
class EnumAttributeValidator
|
|
75
81
|
attr_reader :datatype
|
|
76
82
|
attr_reader :allowable_values
|
|
@@ -118,7 +124,9 @@ module Phrase
|
|
|
118
124
|
:'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
|
|
119
125
|
:'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
|
|
120
126
|
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
|
|
121
|
-
:'
|
|
127
|
+
:'autotranslate_overwrite_unverified_translations' => :'autotranslate_overwrite_unverified_translations',
|
|
128
|
+
:'default_encoding' => :'default_encoding',
|
|
129
|
+
:'placeholder_styles' => :'placeholder_styles'
|
|
122
130
|
}
|
|
123
131
|
end
|
|
124
132
|
|
|
@@ -147,7 +155,9 @@ module Phrase
|
|
|
147
155
|
:'autotranslate_mark_as_unverified' => :'Boolean',
|
|
148
156
|
:'autotranslate_use_machine_translation' => :'Boolean',
|
|
149
157
|
:'autotranslate_use_translation_memory' => :'Boolean',
|
|
150
|
-
:'
|
|
158
|
+
:'autotranslate_overwrite_unverified_translations' => :'Boolean',
|
|
159
|
+
:'default_encoding' => :'String',
|
|
160
|
+
:'placeholder_styles' => :'Array<String>'
|
|
151
161
|
}
|
|
152
162
|
end
|
|
153
163
|
|
|
@@ -260,9 +270,19 @@ module Phrase
|
|
|
260
270
|
self.autotranslate_use_translation_memory = attributes[:'autotranslate_use_translation_memory']
|
|
261
271
|
end
|
|
262
272
|
|
|
273
|
+
if attributes.key?(:'autotranslate_overwrite_unverified_translations')
|
|
274
|
+
self.autotranslate_overwrite_unverified_translations = attributes[:'autotranslate_overwrite_unverified_translations']
|
|
275
|
+
end
|
|
276
|
+
|
|
263
277
|
if attributes.key?(:'default_encoding')
|
|
264
278
|
self.default_encoding = attributes[:'default_encoding']
|
|
265
279
|
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'placeholder_styles')
|
|
282
|
+
if (value = attributes[:'placeholder_styles']).is_a?(Array)
|
|
283
|
+
self.placeholder_styles = value
|
|
284
|
+
end
|
|
285
|
+
end
|
|
266
286
|
end
|
|
267
287
|
|
|
268
288
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -317,7 +337,9 @@ module Phrase
|
|
|
317
337
|
autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
|
|
318
338
|
autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
|
|
319
339
|
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
|
|
320
|
-
|
|
340
|
+
autotranslate_overwrite_unverified_translations == o.autotranslate_overwrite_unverified_translations &&
|
|
341
|
+
default_encoding == o.default_encoding &&
|
|
342
|
+
placeholder_styles == o.placeholder_styles
|
|
321
343
|
end
|
|
322
344
|
|
|
323
345
|
# @see the `==` method
|
|
@@ -329,7 +351,7 @@ module Phrase
|
|
|
329
351
|
# Calculates hash code according to all attributes.
|
|
330
352
|
# @return [Integer] Hash code
|
|
331
353
|
def hash
|
|
332
|
-
[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, default_encoding].hash
|
|
354
|
+
[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, autotranslate_overwrite_unverified_translations, default_encoding, placeholder_styles].hash
|
|
333
355
|
end
|
|
334
356
|
|
|
335
357
|
# Builds the object from hash
|
|
@@ -5,17 +5,22 @@ module Phrase
|
|
|
5
5
|
# Source branch to open a pull request from
|
|
6
6
|
attr_accessor :pr_branch
|
|
7
7
|
|
|
8
|
+
# Strings branch to export from
|
|
9
|
+
attr_accessor :branch
|
|
10
|
+
|
|
8
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
9
12
|
def self.attribute_map
|
|
10
13
|
{
|
|
11
|
-
:'pr_branch' => :'pr_branch'
|
|
14
|
+
:'pr_branch' => :'pr_branch',
|
|
15
|
+
:'branch' => :'branch'
|
|
12
16
|
}
|
|
13
17
|
end
|
|
14
18
|
|
|
15
19
|
# Attribute type mapping.
|
|
16
20
|
def self.openapi_types
|
|
17
21
|
{
|
|
18
|
-
:'pr_branch' => :'String'
|
|
22
|
+
:'pr_branch' => :'String',
|
|
23
|
+
:'branch' => :'String'
|
|
19
24
|
}
|
|
20
25
|
end
|
|
21
26
|
|
|
@@ -43,6 +48,10 @@ module Phrase
|
|
|
43
48
|
if attributes.key?(:'pr_branch')
|
|
44
49
|
self.pr_branch = attributes[:'pr_branch']
|
|
45
50
|
end
|
|
51
|
+
|
|
52
|
+
if attributes.key?(:'branch')
|
|
53
|
+
self.branch = attributes[:'branch']
|
|
54
|
+
end
|
|
46
55
|
end
|
|
47
56
|
|
|
48
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -63,7 +72,8 @@ module Phrase
|
|
|
63
72
|
def ==(o)
|
|
64
73
|
return true if self.equal?(o)
|
|
65
74
|
self.class == o.class &&
|
|
66
|
-
pr_branch == o.pr_branch
|
|
75
|
+
pr_branch == o.pr_branch &&
|
|
76
|
+
branch == o.branch
|
|
67
77
|
end
|
|
68
78
|
|
|
69
79
|
# @see the `==` method
|
|
@@ -75,7 +85,7 @@ module Phrase
|
|
|
75
85
|
# Calculates hash code according to all attributes.
|
|
76
86
|
# @return [Integer] Hash code
|
|
77
87
|
def hash
|
|
78
|
-
[pr_branch].hash
|
|
88
|
+
[pr_branch, branch].hash
|
|
79
89
|
end
|
|
80
90
|
|
|
81
91
|
# Builds the object from hash
|
|
@@ -5,17 +5,22 @@ module Phrase
|
|
|
5
5
|
# Branch to import from
|
|
6
6
|
attr_accessor :repository_branch
|
|
7
7
|
|
|
8
|
+
# Strings branch to import to
|
|
9
|
+
attr_accessor :branch
|
|
10
|
+
|
|
8
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
9
12
|
def self.attribute_map
|
|
10
13
|
{
|
|
11
|
-
:'repository_branch' => :'repository_branch'
|
|
14
|
+
:'repository_branch' => :'repository_branch',
|
|
15
|
+
:'branch' => :'branch'
|
|
12
16
|
}
|
|
13
17
|
end
|
|
14
18
|
|
|
15
19
|
# Attribute type mapping.
|
|
16
20
|
def self.openapi_types
|
|
17
21
|
{
|
|
18
|
-
:'repository_branch' => :'String'
|
|
22
|
+
:'repository_branch' => :'String',
|
|
23
|
+
:'branch' => :'String'
|
|
19
24
|
}
|
|
20
25
|
end
|
|
21
26
|
|
|
@@ -43,6 +48,10 @@ module Phrase
|
|
|
43
48
|
if attributes.key?(:'repository_branch')
|
|
44
49
|
self.repository_branch = attributes[:'repository_branch']
|
|
45
50
|
end
|
|
51
|
+
|
|
52
|
+
if attributes.key?(:'branch')
|
|
53
|
+
self.branch = attributes[:'branch']
|
|
54
|
+
end
|
|
46
55
|
end
|
|
47
56
|
|
|
48
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -63,7 +72,8 @@ module Phrase
|
|
|
63
72
|
def ==(o)
|
|
64
73
|
return true if self.equal?(o)
|
|
65
74
|
self.class == o.class &&
|
|
66
|
-
repository_branch == o.repository_branch
|
|
75
|
+
repository_branch == o.repository_branch &&
|
|
76
|
+
branch == o.branch
|
|
67
77
|
end
|
|
68
78
|
|
|
69
79
|
# @see the `==` method
|
|
@@ -75,7 +85,7 @@ module Phrase
|
|
|
75
85
|
# Calculates hash code according to all attributes.
|
|
76
86
|
# @return [Integer] Hash code
|
|
77
87
|
def hash
|
|
78
|
-
[repository_branch].hash
|
|
88
|
+
[repository_branch, branch].hash
|
|
79
89
|
end
|
|
80
90
|
|
|
81
91
|
# Builds the object from hash
|
data/lib/phrase/models/upload.rb
CHANGED
|
@@ -19,6 +19,8 @@ module Phrase
|
|
|
19
19
|
# The URL to the upload in Phrase Strings app.
|
|
20
20
|
attr_accessor :url
|
|
21
21
|
|
|
22
|
+
attr_accessor :user
|
|
23
|
+
|
|
22
24
|
attr_accessor :summary
|
|
23
25
|
|
|
24
26
|
attr_accessor :created_at
|
|
@@ -35,6 +37,7 @@ module Phrase
|
|
|
35
37
|
:'tag' => :'tag',
|
|
36
38
|
:'tags' => :'tags',
|
|
37
39
|
:'url' => :'url',
|
|
40
|
+
:'user' => :'user',
|
|
38
41
|
:'summary' => :'summary',
|
|
39
42
|
:'created_at' => :'created_at',
|
|
40
43
|
:'updated_at' => :'updated_at'
|
|
@@ -51,6 +54,7 @@ module Phrase
|
|
|
51
54
|
:'tag' => :'String',
|
|
52
55
|
:'tags' => :'Array<String>',
|
|
53
56
|
:'url' => :'String',
|
|
57
|
+
:'user' => :'UserPreview',
|
|
54
58
|
:'summary' => :'UploadSummary',
|
|
55
59
|
:'created_at' => :'DateTime',
|
|
56
60
|
:'updated_at' => :'DateTime'
|
|
@@ -108,6 +112,10 @@ module Phrase
|
|
|
108
112
|
self.url = attributes[:'url']
|
|
109
113
|
end
|
|
110
114
|
|
|
115
|
+
if attributes.key?(:'user')
|
|
116
|
+
self.user = attributes[:'user']
|
|
117
|
+
end
|
|
118
|
+
|
|
111
119
|
if attributes.key?(:'summary')
|
|
112
120
|
self.summary = attributes[:'summary']
|
|
113
121
|
end
|
|
@@ -146,6 +154,7 @@ module Phrase
|
|
|
146
154
|
tag == o.tag &&
|
|
147
155
|
tags == o.tags &&
|
|
148
156
|
url == o.url &&
|
|
157
|
+
user == o.user &&
|
|
149
158
|
summary == o.summary &&
|
|
150
159
|
created_at == o.created_at &&
|
|
151
160
|
updated_at == o.updated_at
|
|
@@ -160,7 +169,7 @@ module Phrase
|
|
|
160
169
|
# Calculates hash code according to all attributes.
|
|
161
170
|
# @return [Integer] Hash code
|
|
162
171
|
def hash
|
|
163
|
-
[id, filename, format, state, tag, tags, url, summary, created_at, updated_at].hash
|
|
172
|
+
[id, filename, format, state, tag, tags, url, user, summary, created_at, updated_at].hash
|
|
164
173
|
end
|
|
165
174
|
|
|
166
175
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
|
@@ -70,7 +70,6 @@ describe 'RepoSyncsApi' do
|
|
|
70
70
|
# @param id ID
|
|
71
71
|
# @param [Hash] opts the optional parameters
|
|
72
72
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
73
|
-
# @option opts [String] :branch Branch to use
|
|
74
73
|
# @option opts [RepoSyncImportParameters] :repo_sync_import_parameters
|
|
75
74
|
# @return [RepoSyncEvent]
|
|
76
75
|
describe 'repo_sync_import test' do
|
|
@@ -38,4 +38,16 @@ describe 'JobTemplateCreateParameters' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "autotranslate"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "source_locale_id"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
41
53
|
end
|
|
@@ -38,4 +38,16 @@ describe 'JobTemplateUpdateParameters' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "autotranslate"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "source_locale_id"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
41
53
|
end
|
|
@@ -32,4 +32,10 @@ describe 'OrganizationJobTemplateCreateParameters' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
describe 'test attribute "autotranslate"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
end
|
|
@@ -32,4 +32,10 @@ describe 'OrganizationJobTemplateUpdateParameters' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
describe 'test attribute "autotranslate"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
end
|
|
@@ -158,4 +158,16 @@ describe 'ProjectCreateParameters' do
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
describe 'test attribute "autotranslate_overwrite_unverified_translations"' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
describe 'test attribute "placeholder_styles"' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
161
173
|
end
|
|
@@ -176,4 +176,22 @@ describe 'ProjectDetails' do
|
|
|
176
176
|
end
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
+
describe 'test attribute "cldr_version"' do
|
|
180
|
+
it 'should work' do
|
|
181
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
describe 'test attribute "job_locking_enabled"' do
|
|
186
|
+
it 'should work' do
|
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
describe 'test attribute "placeholder_styles"' do
|
|
192
|
+
it 'should work' do
|
|
193
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
179
197
|
end
|
|
@@ -152,6 +152,12 @@ describe 'ProjectUpdateParameters' do
|
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
describe 'test attribute "autotranslate_overwrite_unverified_translations"' do
|
|
156
|
+
it 'should work' do
|
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
155
161
|
describe 'test attribute "default_encoding"' do
|
|
156
162
|
it 'should work' do
|
|
157
163
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -162,4 +168,10 @@ describe 'ProjectUpdateParameters' do
|
|
|
162
168
|
end
|
|
163
169
|
end
|
|
164
170
|
|
|
171
|
+
describe 'test attribute "placeholder_styles"' do
|
|
172
|
+
it 'should work' do
|
|
173
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
165
177
|
end
|