phrase 4.32.0 → 4.33.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 +8 -0
- data/Gemfile +1 -1
- data/README.md +4 -3
- data/docs/JobCreateParameters.md +4 -2
- data/docs/JobDetails.md +3 -1
- data/docs/JobTemplateCreateParameters.md +2 -0
- data/docs/JobTemplateDetails.md +3 -1
- data/docs/JobTemplateUpdateParameters.md +2 -0
- data/docs/JobUpdateParameters.md +3 -1
- data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
- data/docs/OrganizationJobTemplateDetails.md +3 -1
- data/docs/OrganizationJobTemplateUpdateParameters.md +2 -0
- data/docs/RepoSyncEvent.md +3 -1
- data/docs/RepoSyncEventUploadsInner.md +19 -0
- data/docs/TranslationsApi.md +7 -7
- data/docs/TranslationsExcludeParameters.md +2 -2
- data/docs/TranslationsIncludeParameters.md +2 -2
- data/docs/TranslationsReviewParameters.md +2 -2
- data/docs/TranslationsSearchParameters.md +2 -2
- data/docs/TranslationsUnreviewParameters.md +2 -2
- data/docs/TranslationsUnverifyParameters.md +2 -2
- data/docs/TranslationsVerifyParameters.md +2 -2
- data/lib/phrase/api/translations_api.rb +8 -8
- data/lib/phrase/models/job_create_parameters.rb +15 -5
- data/lib/phrase/models/job_details.rb +14 -4
- data/lib/phrase/models/job_template_create_parameters.rb +11 -1
- data/lib/phrase/models/job_template_details.rb +14 -4
- data/lib/phrase/models/job_template_update_parameters.rb +11 -1
- data/lib/phrase/models/job_update_parameters.rb +14 -4
- data/lib/phrase/models/organization_job_template_create_parameters.rb +11 -1
- data/lib/phrase/models/organization_job_template_details.rb +14 -4
- data/lib/phrase/models/organization_job_template_update_parameters.rb +11 -1
- data/lib/phrase/models/repo_sync_event.rb +17 -4
- data/lib/phrase/models/repo_sync_event_uploads_inner.rb +241 -0
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +1 -0
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/models/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/job_template_create_parameters_spec.rb +6 -0
- data/spec/models/job_template_details_spec.rb +6 -0
- data/spec/models/job_template_update_parameters_spec.rb +6 -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_details_spec.rb +6 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
- data/spec/models/repo_sync_event_spec.rb +6 -0
- data/spec/models/repo_sync_event_uploads_inner_spec.rb +39 -0
- metadata +272 -268
|
@@ -32,12 +32,15 @@ module Phrase
|
|
|
32
32
|
# List of target locales for the job. Mutually exclusive with `job_template_id`.
|
|
33
33
|
attr_accessor :target_locale_ids
|
|
34
34
|
|
|
35
|
-
# id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`.
|
|
35
|
+
# id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`. The calling user must have read access to the template; if the template exists but is not accessible, the request returns 404.
|
|
36
36
|
attr_accessor :job_template_id
|
|
37
37
|
|
|
38
38
|
# Automatically translate the job using machine translation.
|
|
39
39
|
attr_accessor :autotranslate
|
|
40
40
|
|
|
41
|
+
# Exclude linked child keys from the job. While enabled, linked child keys cannot be added to the job. Defaults to `false`.
|
|
42
|
+
attr_accessor :exclude_linked_child_keys
|
|
43
|
+
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
45
|
def self.attribute_map
|
|
43
46
|
{
|
|
@@ -52,7 +55,8 @@ module Phrase
|
|
|
52
55
|
:'translation_key_ids' => :'translation_key_ids',
|
|
53
56
|
:'target_locale_ids' => :'target_locale_ids',
|
|
54
57
|
:'job_template_id' => :'job_template_id',
|
|
55
|
-
:'autotranslate' => :'autotranslate'
|
|
58
|
+
:'autotranslate' => :'autotranslate',
|
|
59
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys'
|
|
56
60
|
}
|
|
57
61
|
end
|
|
58
62
|
|
|
@@ -70,7 +74,8 @@ module Phrase
|
|
|
70
74
|
:'translation_key_ids' => :'Array<String>',
|
|
71
75
|
:'target_locale_ids' => :'Array<String>',
|
|
72
76
|
:'job_template_id' => :'String',
|
|
73
|
-
:'autotranslate' => :'Boolean'
|
|
77
|
+
:'autotranslate' => :'Boolean',
|
|
78
|
+
:'exclude_linked_child_keys' => :'Boolean'
|
|
74
79
|
}
|
|
75
80
|
end
|
|
76
81
|
|
|
@@ -149,6 +154,10 @@ module Phrase
|
|
|
149
154
|
if attributes.key?(:'autotranslate')
|
|
150
155
|
self.autotranslate = attributes[:'autotranslate']
|
|
151
156
|
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
159
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
160
|
+
end
|
|
152
161
|
end
|
|
153
162
|
|
|
154
163
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -185,7 +194,8 @@ module Phrase
|
|
|
185
194
|
translation_key_ids == o.translation_key_ids &&
|
|
186
195
|
target_locale_ids == o.target_locale_ids &&
|
|
187
196
|
job_template_id == o.job_template_id &&
|
|
188
|
-
autotranslate == o.autotranslate
|
|
197
|
+
autotranslate == o.autotranslate &&
|
|
198
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
189
199
|
end
|
|
190
200
|
|
|
191
201
|
# @see the `==` method
|
|
@@ -197,7 +207,7 @@ module Phrase
|
|
|
197
207
|
# Calculates hash code according to all attributes.
|
|
198
208
|
# @return [Integer] Hash code
|
|
199
209
|
def hash
|
|
200
|
-
[branch, name, source_locale_id, briefing, due_date, review_due_date, ticket_url, tags, translation_key_ids, target_locale_ids, job_template_id, autotranslate].hash
|
|
210
|
+
[branch, name, source_locale_id, briefing, due_date, review_due_date, ticket_url, tags, translation_key_ids, target_locale_ids, job_template_id, autotranslate, exclude_linked_child_keys].hash
|
|
201
211
|
end
|
|
202
212
|
|
|
203
213
|
# Builds the object from hash
|
|
@@ -49,6 +49,9 @@ module Phrase
|
|
|
49
49
|
# `true` if the job has been locked by the project's job-locking workflow (translations attached to the job are read-only until the job advances).
|
|
50
50
|
attr_accessor :locked
|
|
51
51
|
|
|
52
|
+
# `true` if linked child keys are excluded from this job. While enabled, linked child keys cannot be added to the job.
|
|
53
|
+
attr_accessor :exclude_linked_child_keys
|
|
54
|
+
|
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
56
|
def self.attribute_map
|
|
54
57
|
{
|
|
@@ -72,7 +75,8 @@ module Phrase
|
|
|
72
75
|
:'locales' => :'locales',
|
|
73
76
|
:'keys' => :'keys',
|
|
74
77
|
:'annotations' => :'annotations',
|
|
75
|
-
:'locked' => :'locked'
|
|
78
|
+
:'locked' => :'locked',
|
|
79
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys'
|
|
76
80
|
}
|
|
77
81
|
end
|
|
78
82
|
|
|
@@ -99,7 +103,8 @@ module Phrase
|
|
|
99
103
|
:'locales' => :'Array<LocalePreview>',
|
|
100
104
|
:'keys' => :'Array<KeyPreview>',
|
|
101
105
|
:'annotations' => :'Array<JobAnnotationShort>',
|
|
102
|
-
:'locked' => :'Boolean'
|
|
106
|
+
:'locked' => :'Boolean',
|
|
107
|
+
:'exclude_linked_child_keys' => :'Boolean'
|
|
103
108
|
}
|
|
104
109
|
end
|
|
105
110
|
|
|
@@ -224,6 +229,10 @@ module Phrase
|
|
|
224
229
|
if attributes.key?(:'locked')
|
|
225
230
|
self.locked = attributes[:'locked']
|
|
226
231
|
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
234
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
235
|
+
end
|
|
227
236
|
end
|
|
228
237
|
|
|
229
238
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -264,7 +273,8 @@ module Phrase
|
|
|
264
273
|
locales == o.locales &&
|
|
265
274
|
keys == o.keys &&
|
|
266
275
|
annotations == o.annotations &&
|
|
267
|
-
locked == o.locked
|
|
276
|
+
locked == o.locked &&
|
|
277
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
268
278
|
end
|
|
269
279
|
|
|
270
280
|
# @see the `==` method
|
|
@@ -276,7 +286,7 @@ module Phrase
|
|
|
276
286
|
# Calculates hash code according to all attributes.
|
|
277
287
|
# @return [Integer] Hash code
|
|
278
288
|
def hash
|
|
279
|
-
[id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, automation_id, job_template_id, review_due_date, owner, job_tag_name, source_translations_updated_at, source_locale, locales, keys, annotations, locked].hash
|
|
289
|
+
[id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, automation_id, job_template_id, review_due_date, owner, job_tag_name, source_translations_updated_at, source_locale, locales, keys, annotations, locked, exclude_linked_child_keys].hash
|
|
280
290
|
end
|
|
281
291
|
|
|
282
292
|
# Builds the object from hash
|
|
@@ -14,6 +14,9 @@ module Phrase
|
|
|
14
14
|
# Automatically translate the job using machine translation.
|
|
15
15
|
attr_accessor :autotranslate
|
|
16
16
|
|
|
17
|
+
# Exclude linked child keys from jobs created from this template. Defaults to `false`.
|
|
18
|
+
attr_accessor :exclude_linked_child_keys
|
|
19
|
+
|
|
17
20
|
# The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
|
|
18
21
|
attr_accessor :source_locale_id
|
|
19
22
|
|
|
@@ -27,6 +30,7 @@ module Phrase
|
|
|
27
30
|
:'name' => :'name',
|
|
28
31
|
:'briefing' => :'briefing',
|
|
29
32
|
:'autotranslate' => :'autotranslate',
|
|
33
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys',
|
|
30
34
|
:'source_locale_id' => :'source_locale_id',
|
|
31
35
|
:'owner_id' => :'owner_id'
|
|
32
36
|
}
|
|
@@ -39,6 +43,7 @@ module Phrase
|
|
|
39
43
|
:'name' => :'String',
|
|
40
44
|
:'briefing' => :'String',
|
|
41
45
|
:'autotranslate' => :'Boolean',
|
|
46
|
+
:'exclude_linked_child_keys' => :'Boolean',
|
|
42
47
|
:'source_locale_id' => :'String',
|
|
43
48
|
:'owner_id' => :'String'
|
|
44
49
|
}
|
|
@@ -81,6 +86,10 @@ module Phrase
|
|
|
81
86
|
self.autotranslate = attributes[:'autotranslate']
|
|
82
87
|
end
|
|
83
88
|
|
|
89
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
90
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
91
|
+
end
|
|
92
|
+
|
|
84
93
|
if attributes.key?(:'source_locale_id')
|
|
85
94
|
self.source_locale_id = attributes[:'source_locale_id']
|
|
86
95
|
end
|
|
@@ -117,6 +126,7 @@ module Phrase
|
|
|
117
126
|
name == o.name &&
|
|
118
127
|
briefing == o.briefing &&
|
|
119
128
|
autotranslate == o.autotranslate &&
|
|
129
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys &&
|
|
120
130
|
source_locale_id == o.source_locale_id &&
|
|
121
131
|
owner_id == o.owner_id
|
|
122
132
|
end
|
|
@@ -130,7 +140,7 @@ module Phrase
|
|
|
130
140
|
# Calculates hash code according to all attributes.
|
|
131
141
|
# @return [Integer] Hash code
|
|
132
142
|
def hash
|
|
133
|
-
[branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
|
|
143
|
+
[branch, name, briefing, autotranslate, exclude_linked_child_keys, source_locale_id, owner_id].hash
|
|
134
144
|
end
|
|
135
145
|
|
|
136
146
|
# Builds the object from hash
|
|
@@ -25,6 +25,9 @@ module Phrase
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :locales
|
|
27
27
|
|
|
28
|
+
# `true` if jobs created from this template exclude linked child keys.
|
|
29
|
+
attr_accessor :exclude_linked_child_keys
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
@@ -38,7 +41,8 @@ module Phrase
|
|
|
38
41
|
:'updated_at' => :'updated_at',
|
|
39
42
|
:'owner' => :'owner',
|
|
40
43
|
:'creator' => :'creator',
|
|
41
|
-
:'locales' => :'locales'
|
|
44
|
+
:'locales' => :'locales',
|
|
45
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
44
48
|
|
|
@@ -55,7 +59,8 @@ module Phrase
|
|
|
55
59
|
:'updated_at' => :'DateTime',
|
|
56
60
|
:'owner' => :'UserPreview',
|
|
57
61
|
:'creator' => :'UserPreview',
|
|
58
|
-
:'locales' => :'Array<LocalePreview>'
|
|
62
|
+
:'locales' => :'Array<LocalePreview>',
|
|
63
|
+
:'exclude_linked_child_keys' => :'Boolean'
|
|
59
64
|
}
|
|
60
65
|
end
|
|
61
66
|
|
|
@@ -132,6 +137,10 @@ module Phrase
|
|
|
132
137
|
self.locales = value
|
|
133
138
|
end
|
|
134
139
|
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
142
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
143
|
+
end
|
|
135
144
|
end
|
|
136
145
|
|
|
137
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -162,7 +171,8 @@ module Phrase
|
|
|
162
171
|
updated_at == o.updated_at &&
|
|
163
172
|
owner == o.owner &&
|
|
164
173
|
creator == o.creator &&
|
|
165
|
-
locales == o.locales
|
|
174
|
+
locales == o.locales &&
|
|
175
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
166
176
|
end
|
|
167
177
|
|
|
168
178
|
# @see the `==` method
|
|
@@ -174,7 +184,7 @@ module Phrase
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[id, name, briefing, project, branch, autotranslate_enabled, created_at, updated_at, owner, creator, locales].hash
|
|
187
|
+
[id, name, briefing, project, branch, autotranslate_enabled, created_at, updated_at, owner, creator, locales, exclude_linked_child_keys].hash
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|
|
@@ -14,6 +14,9 @@ module Phrase
|
|
|
14
14
|
# Automatically translate the job using machine translation.
|
|
15
15
|
attr_accessor :autotranslate
|
|
16
16
|
|
|
17
|
+
# Exclude linked child keys from jobs created from this template.
|
|
18
|
+
attr_accessor :exclude_linked_child_keys
|
|
19
|
+
|
|
17
20
|
# The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
|
|
18
21
|
attr_accessor :source_locale_id
|
|
19
22
|
|
|
@@ -27,6 +30,7 @@ module Phrase
|
|
|
27
30
|
:'name' => :'name',
|
|
28
31
|
:'briefing' => :'briefing',
|
|
29
32
|
:'autotranslate' => :'autotranslate',
|
|
33
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys',
|
|
30
34
|
:'source_locale_id' => :'source_locale_id',
|
|
31
35
|
:'owner_id' => :'owner_id'
|
|
32
36
|
}
|
|
@@ -39,6 +43,7 @@ module Phrase
|
|
|
39
43
|
:'name' => :'String',
|
|
40
44
|
:'briefing' => :'String',
|
|
41
45
|
:'autotranslate' => :'Boolean',
|
|
46
|
+
:'exclude_linked_child_keys' => :'Boolean',
|
|
42
47
|
:'source_locale_id' => :'String',
|
|
43
48
|
:'owner_id' => :'String'
|
|
44
49
|
}
|
|
@@ -82,6 +87,10 @@ module Phrase
|
|
|
82
87
|
self.autotranslate = attributes[:'autotranslate']
|
|
83
88
|
end
|
|
84
89
|
|
|
90
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
91
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
92
|
+
end
|
|
93
|
+
|
|
85
94
|
if attributes.key?(:'source_locale_id')
|
|
86
95
|
self.source_locale_id = attributes[:'source_locale_id']
|
|
87
96
|
end
|
|
@@ -118,6 +127,7 @@ module Phrase
|
|
|
118
127
|
name == o.name &&
|
|
119
128
|
briefing == o.briefing &&
|
|
120
129
|
autotranslate == o.autotranslate &&
|
|
130
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys &&
|
|
121
131
|
source_locale_id == o.source_locale_id &&
|
|
122
132
|
owner_id == o.owner_id
|
|
123
133
|
end
|
|
@@ -131,7 +141,7 @@ module Phrase
|
|
|
131
141
|
# Calculates hash code according to all attributes.
|
|
132
142
|
# @return [Integer] Hash code
|
|
133
143
|
def hash
|
|
134
|
-
[branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
|
|
144
|
+
[branch, name, briefing, autotranslate, exclude_linked_child_keys, source_locale_id, owner_id].hash
|
|
135
145
|
end
|
|
136
146
|
|
|
137
147
|
# Builds the object from hash
|
|
@@ -23,6 +23,9 @@ module Phrase
|
|
|
23
23
|
# Automatically translate the job using machine translation
|
|
24
24
|
attr_accessor :autotranslate
|
|
25
25
|
|
|
26
|
+
# Exclude linked child keys from the job. When set to `true`, linked child keys already in the job are removed and none can be added while the option is enabled.
|
|
27
|
+
attr_accessor :exclude_linked_child_keys
|
|
28
|
+
|
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
30
|
def self.attribute_map
|
|
28
31
|
{
|
|
@@ -32,7 +35,8 @@ module Phrase
|
|
|
32
35
|
:'review_due_date' => :'review_due_date',
|
|
33
36
|
:'ticket_url' => :'ticket_url',
|
|
34
37
|
:'target_locale_ids' => :'target_locale_ids',
|
|
35
|
-
:'autotranslate' => :'autotranslate'
|
|
38
|
+
:'autotranslate' => :'autotranslate',
|
|
39
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -45,7 +49,8 @@ module Phrase
|
|
|
45
49
|
:'review_due_date' => :'DateTime',
|
|
46
50
|
:'ticket_url' => :'String',
|
|
47
51
|
:'target_locale_ids' => :'Array<String>',
|
|
48
|
-
:'autotranslate' => :'Boolean'
|
|
52
|
+
:'autotranslate' => :'Boolean',
|
|
53
|
+
:'exclude_linked_child_keys' => :'Boolean'
|
|
49
54
|
}
|
|
50
55
|
end
|
|
51
56
|
|
|
@@ -102,6 +107,10 @@ module Phrase
|
|
|
102
107
|
if attributes.key?(:'autotranslate')
|
|
103
108
|
self.autotranslate = attributes[:'autotranslate']
|
|
104
109
|
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
112
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
113
|
+
end
|
|
105
114
|
end
|
|
106
115
|
|
|
107
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -128,7 +137,8 @@ module Phrase
|
|
|
128
137
|
review_due_date == o.review_due_date &&
|
|
129
138
|
ticket_url == o.ticket_url &&
|
|
130
139
|
target_locale_ids == o.target_locale_ids &&
|
|
131
|
-
autotranslate == o.autotranslate
|
|
140
|
+
autotranslate == o.autotranslate &&
|
|
141
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
132
142
|
end
|
|
133
143
|
|
|
134
144
|
# @see the `==` method
|
|
@@ -140,7 +150,7 @@ module Phrase
|
|
|
140
150
|
# Calculates hash code according to all attributes.
|
|
141
151
|
# @return [Integer] Hash code
|
|
142
152
|
def hash
|
|
143
|
-
[name, briefing, due_date, review_due_date, ticket_url, target_locale_ids, autotranslate].hash
|
|
153
|
+
[name, briefing, due_date, review_due_date, ticket_url, target_locale_ids, autotranslate, exclude_linked_child_keys].hash
|
|
144
154
|
end
|
|
145
155
|
|
|
146
156
|
# Builds the object from hash
|
|
@@ -11,6 +11,9 @@ module Phrase
|
|
|
11
11
|
# Automatically translate the job using machine translation.
|
|
12
12
|
attr_accessor :autotranslate
|
|
13
13
|
|
|
14
|
+
# Exclude linked child keys from jobs created from this template. Defaults to `false`.
|
|
15
|
+
attr_accessor :exclude_linked_child_keys
|
|
16
|
+
|
|
14
17
|
# Code of the account member to set as the job template owner. When omitted or blank, no owner is pre-set; the user who creates a job from this template is assigned as its owner at job-creation time.
|
|
15
18
|
attr_accessor :owner_id
|
|
16
19
|
|
|
@@ -20,6 +23,7 @@ module Phrase
|
|
|
20
23
|
:'name' => :'name',
|
|
21
24
|
:'briefing' => :'briefing',
|
|
22
25
|
:'autotranslate' => :'autotranslate',
|
|
26
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys',
|
|
23
27
|
:'owner_id' => :'owner_id'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
@@ -30,6 +34,7 @@ module Phrase
|
|
|
30
34
|
:'name' => :'String',
|
|
31
35
|
:'briefing' => :'String',
|
|
32
36
|
:'autotranslate' => :'Boolean',
|
|
37
|
+
:'exclude_linked_child_keys' => :'Boolean',
|
|
33
38
|
:'owner_id' => :'String'
|
|
34
39
|
}
|
|
35
40
|
end
|
|
@@ -67,6 +72,10 @@ module Phrase
|
|
|
67
72
|
self.autotranslate = attributes[:'autotranslate']
|
|
68
73
|
end
|
|
69
74
|
|
|
75
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
76
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
77
|
+
end
|
|
78
|
+
|
|
70
79
|
if attributes.key?(:'owner_id')
|
|
71
80
|
self.owner_id = attributes[:'owner_id']
|
|
72
81
|
end
|
|
@@ -98,6 +107,7 @@ module Phrase
|
|
|
98
107
|
name == o.name &&
|
|
99
108
|
briefing == o.briefing &&
|
|
100
109
|
autotranslate == o.autotranslate &&
|
|
110
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys &&
|
|
101
111
|
owner_id == o.owner_id
|
|
102
112
|
end
|
|
103
113
|
|
|
@@ -110,7 +120,7 @@ module Phrase
|
|
|
110
120
|
# Calculates hash code according to all attributes.
|
|
111
121
|
# @return [Integer] Hash code
|
|
112
122
|
def hash
|
|
113
|
-
[name, briefing, autotranslate, owner_id].hash
|
|
123
|
+
[name, briefing, autotranslate, exclude_linked_child_keys, owner_id].hash
|
|
114
124
|
end
|
|
115
125
|
|
|
116
126
|
# Builds the object from hash
|
|
@@ -24,6 +24,9 @@ module Phrase
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :locales
|
|
26
26
|
|
|
27
|
+
# `true` if jobs created from this template exclude linked child keys.
|
|
28
|
+
attr_accessor :exclude_linked_child_keys
|
|
29
|
+
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
31
|
def self.attribute_map
|
|
29
32
|
{
|
|
@@ -36,7 +39,8 @@ module Phrase
|
|
|
36
39
|
:'updated_at' => :'updated_at',
|
|
37
40
|
:'owner' => :'owner',
|
|
38
41
|
:'creator' => :'creator',
|
|
39
|
-
:'locales' => :'locales'
|
|
42
|
+
:'locales' => :'locales',
|
|
43
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -52,7 +56,8 @@ module Phrase
|
|
|
52
56
|
:'updated_at' => :'DateTime',
|
|
53
57
|
:'owner' => :'UserPreview',
|
|
54
58
|
:'creator' => :'UserPreview',
|
|
55
|
-
:'locales' => :'Array<LocalePreview>'
|
|
59
|
+
:'locales' => :'Array<LocalePreview>',
|
|
60
|
+
:'exclude_linked_child_keys' => :'Boolean'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -126,6 +131,10 @@ module Phrase
|
|
|
126
131
|
self.locales = value
|
|
127
132
|
end
|
|
128
133
|
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
136
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
137
|
+
end
|
|
129
138
|
end
|
|
130
139
|
|
|
131
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module Phrase
|
|
|
155
164
|
updated_at == o.updated_at &&
|
|
156
165
|
owner == o.owner &&
|
|
157
166
|
creator == o.creator &&
|
|
158
|
-
locales == o.locales
|
|
167
|
+
locales == o.locales &&
|
|
168
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module Phrase
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[id, name, briefing, autotranslate_enabled, source_locale_id, created_at, updated_at, owner, creator, locales].hash
|
|
180
|
+
[id, name, briefing, autotranslate_enabled, source_locale_id, created_at, updated_at, owner, creator, locales, exclude_linked_child_keys].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -11,6 +11,9 @@ module Phrase
|
|
|
11
11
|
# Automatically translate the job using machine translation.
|
|
12
12
|
attr_accessor :autotranslate
|
|
13
13
|
|
|
14
|
+
# Exclude linked child keys from jobs created from this template.
|
|
15
|
+
attr_accessor :exclude_linked_child_keys
|
|
16
|
+
|
|
14
17
|
# Code of the account member to set as the job template owner. Pass an empty string to clear a previously set owner; when blank, the owner is set to null and jobs created from this template will default to assigning the job creator as owner.
|
|
15
18
|
attr_accessor :owner_id
|
|
16
19
|
|
|
@@ -20,6 +23,7 @@ module Phrase
|
|
|
20
23
|
:'name' => :'name',
|
|
21
24
|
:'briefing' => :'briefing',
|
|
22
25
|
:'autotranslate' => :'autotranslate',
|
|
26
|
+
:'exclude_linked_child_keys' => :'exclude_linked_child_keys',
|
|
23
27
|
:'owner_id' => :'owner_id'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
@@ -30,6 +34,7 @@ module Phrase
|
|
|
30
34
|
:'name' => :'String',
|
|
31
35
|
:'briefing' => :'String',
|
|
32
36
|
:'autotranslate' => :'Boolean',
|
|
37
|
+
:'exclude_linked_child_keys' => :'Boolean',
|
|
33
38
|
:'owner_id' => :'String'
|
|
34
39
|
}
|
|
35
40
|
end
|
|
@@ -68,6 +73,10 @@ module Phrase
|
|
|
68
73
|
self.autotranslate = attributes[:'autotranslate']
|
|
69
74
|
end
|
|
70
75
|
|
|
76
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
77
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
78
|
+
end
|
|
79
|
+
|
|
71
80
|
if attributes.key?(:'owner_id')
|
|
72
81
|
self.owner_id = attributes[:'owner_id']
|
|
73
82
|
end
|
|
@@ -99,6 +108,7 @@ module Phrase
|
|
|
99
108
|
name == o.name &&
|
|
100
109
|
briefing == o.briefing &&
|
|
101
110
|
autotranslate == o.autotranslate &&
|
|
111
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys &&
|
|
102
112
|
owner_id == o.owner_id
|
|
103
113
|
end
|
|
104
114
|
|
|
@@ -111,7 +121,7 @@ module Phrase
|
|
|
111
121
|
# Calculates hash code according to all attributes.
|
|
112
122
|
# @return [Integer] Hash code
|
|
113
123
|
def hash
|
|
114
|
-
[name, briefing, autotranslate, owner_id].hash
|
|
124
|
+
[name, briefing, autotranslate, exclude_linked_child_keys, owner_id].hash
|
|
115
125
|
end
|
|
116
126
|
|
|
117
127
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Phrase
|
|
|
19
19
|
# List of error messages, in case of failure
|
|
20
20
|
attr_accessor :errors
|
|
21
21
|
|
|
22
|
+
# The uploads associated with this import event, or `null` if no upload batch has been created yet. Each entry identifies a single file upload by its public code (`id`) and its current public state (`state`). Present on show responses only; absent from list responses. Possible `state` values: `initialized`, `waiting_for_preview`, `processing`, `success`, `error`.
|
|
23
|
+
attr_accessor :uploads
|
|
24
|
+
|
|
22
25
|
class EnumAttributeValidator
|
|
23
26
|
attr_reader :datatype
|
|
24
27
|
attr_reader :allowable_values
|
|
@@ -50,7 +53,8 @@ module Phrase
|
|
|
50
53
|
:'status' => :'status',
|
|
51
54
|
:'pull_request_url' => :'pull_request_url',
|
|
52
55
|
:'auto_import' => :'auto_import',
|
|
53
|
-
:'errors' => :'errors'
|
|
56
|
+
:'errors' => :'errors',
|
|
57
|
+
:'uploads' => :'uploads'
|
|
54
58
|
}
|
|
55
59
|
end
|
|
56
60
|
|
|
@@ -63,13 +67,15 @@ module Phrase
|
|
|
63
67
|
:'status' => :'String',
|
|
64
68
|
:'pull_request_url' => :'String',
|
|
65
69
|
:'auto_import' => :'Boolean',
|
|
66
|
-
:'errors' => :'Array<String>'
|
|
70
|
+
:'errors' => :'Array<String>',
|
|
71
|
+
:'uploads' => :'Array<RepoSyncEventUploadsInner>'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
70
75
|
# List of attributes with nullable: true
|
|
71
76
|
def self.openapi_nullable
|
|
72
77
|
Set.new([
|
|
78
|
+
:'uploads'
|
|
73
79
|
])
|
|
74
80
|
end
|
|
75
81
|
|
|
@@ -117,6 +123,12 @@ module Phrase
|
|
|
117
123
|
self.errors = value
|
|
118
124
|
end
|
|
119
125
|
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'uploads')
|
|
128
|
+
if (value = attributes[:'uploads']).is_a?(Array)
|
|
129
|
+
self.uploads = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
120
132
|
end
|
|
121
133
|
|
|
122
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,7 +179,8 @@ module Phrase
|
|
|
167
179
|
status == o.status &&
|
|
168
180
|
pull_request_url == o.pull_request_url &&
|
|
169
181
|
auto_import == o.auto_import &&
|
|
170
|
-
errors == o.errors
|
|
182
|
+
errors == o.errors &&
|
|
183
|
+
uploads == o.uploads
|
|
171
184
|
end
|
|
172
185
|
|
|
173
186
|
# @see the `==` method
|
|
@@ -179,7 +192,7 @@ module Phrase
|
|
|
179
192
|
# Calculates hash code according to all attributes.
|
|
180
193
|
# @return [Integer] Hash code
|
|
181
194
|
def hash
|
|
182
|
-
[id, type, created_at, status, pull_request_url, auto_import, errors].hash
|
|
195
|
+
[id, type, created_at, status, pull_request_url, auto_import, errors, uploads].hash
|
|
183
196
|
end
|
|
184
197
|
|
|
185
198
|
# Builds the object from hash
|