phrase 4.31.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 +21 -0
- data/Gemfile +1 -1
- data/README.md +4 -3
- data/docs/CustomMetadataPropertiesUpdateParameters.md +1 -1
- data/docs/Glossary.md +2 -0
- data/docs/GlossaryTermUpdateParameters.md +1 -1
- 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 +3 -1
- data/docs/JobUpdateParameters.md +5 -3
- data/docs/KeyUpdateParameters.md +5 -5
- data/docs/LocaleUpdateParameters.md +2 -2
- data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
- data/docs/OrganizationJobTemplateDetails.md +3 -1
- data/docs/OrganizationJobTemplateUpdateParameters.md +3 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ReleaseUpdateParameters.md +3 -3
- data/docs/RepoSyncEvent.md +3 -1
- data/docs/RepoSyncEventUploadsInner.md +19 -0
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/StyleguideUpdateParameters.md +9 -9
- data/docs/TranslationUpdateParameters.md +1 -1
- 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/docs/WebhookUpdateParameters.md +1 -1
- data/lib/phrase/api/translations_api.rb +8 -8
- data/lib/phrase/models/custom_metadata_properties_update_parameters.rb +2 -1
- data/lib/phrase/models/glossary.rb +11 -1
- data/lib/phrase/models/glossary_term_update_parameters.rb +2 -1
- 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 +13 -2
- data/lib/phrase/models/job_update_parameters.rb +18 -6
- data/lib/phrase/models/key_update_parameters.rb +10 -5
- data/lib/phrase/models/locale_update_parameters.rb +4 -2
- 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 +13 -2
- data/lib/phrase/models/project_update_parameters.rb +2 -1
- data/lib/phrase/models/release_update_parameters.rb +6 -3
- 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/screenshot_update_parameters.rb +2 -1
- data/lib/phrase/models/styleguide_update_parameters.rb +18 -9
- data/lib/phrase/models/translation_update_parameters.rb +2 -1
- 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/models/webhook_update_parameters.rb +2 -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/glossary_spec.rb +6 -0
- 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 +276 -272
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# Job name
|
|
6
6
|
attr_accessor :name
|
|
7
7
|
|
|
8
|
-
# Briefing for the translators
|
|
8
|
+
# Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
9
9
|
attr_accessor :briefing
|
|
10
10
|
|
|
11
11
|
# Date the job should be finished
|
|
@@ -14,7 +14,7 @@ module Phrase
|
|
|
14
14
|
# Date the review of the job should be finished. Must not be before `due_date`.
|
|
15
15
|
attr_accessor :review_due_date
|
|
16
16
|
|
|
17
|
-
# URL to a ticket for this job (e.g. Jira, Trello)
|
|
17
|
+
# URL to a ticket for this job (e.g. Jira, Trello) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
18
18
|
attr_accessor :ticket_url
|
|
19
19
|
|
|
20
20
|
# List of target locales for the job.
|
|
@@ -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,14 +49,17 @@ 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
|
|
|
52
57
|
# List of attributes with nullable: true
|
|
53
58
|
def self.openapi_nullable
|
|
54
59
|
Set.new([
|
|
60
|
+
:'briefing',
|
|
55
61
|
:'due_date',
|
|
62
|
+
:'ticket_url',
|
|
56
63
|
])
|
|
57
64
|
end
|
|
58
65
|
|
|
@@ -100,6 +107,10 @@ module Phrase
|
|
|
100
107
|
if attributes.key?(:'autotranslate')
|
|
101
108
|
self.autotranslate = attributes[:'autotranslate']
|
|
102
109
|
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
112
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
113
|
+
end
|
|
103
114
|
end
|
|
104
115
|
|
|
105
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -126,7 +137,8 @@ module Phrase
|
|
|
126
137
|
review_due_date == o.review_due_date &&
|
|
127
138
|
ticket_url == o.ticket_url &&
|
|
128
139
|
target_locale_ids == o.target_locale_ids &&
|
|
129
|
-
autotranslate == o.autotranslate
|
|
140
|
+
autotranslate == o.autotranslate &&
|
|
141
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys
|
|
130
142
|
end
|
|
131
143
|
|
|
132
144
|
# @see the `==` method
|
|
@@ -138,7 +150,7 @@ module Phrase
|
|
|
138
150
|
# Calculates hash code according to all attributes.
|
|
139
151
|
# @return [Integer] Hash code
|
|
140
152
|
def hash
|
|
141
|
-
[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
|
|
142
154
|
end
|
|
143
155
|
|
|
144
156
|
# Builds the object from hash
|
|
@@ -8,7 +8,7 @@ module Phrase
|
|
|
8
8
|
# Key name
|
|
9
9
|
attr_accessor :name
|
|
10
10
|
|
|
11
|
-
# Key description (usually includes contextual information for translators)
|
|
11
|
+
# Key description (usually includes contextual information for translators). Send an empty string or `null` to clear the description; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
12
12
|
attr_accessor :description
|
|
13
13
|
|
|
14
14
|
# Indicates whether key supports pluralization
|
|
@@ -17,7 +17,7 @@ module Phrase
|
|
|
17
17
|
# Indicates whether key uses ordinal rules for pluralization
|
|
18
18
|
attr_accessor :use_ordinal_rules
|
|
19
19
|
|
|
20
|
-
# Plural name for the key (used in some file formats, e.g. Gettext)
|
|
20
|
+
# Plural name for the key (used in some file formats, e.g. Gettext) Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
21
21
|
attr_accessor :name_plural
|
|
22
22
|
|
|
23
23
|
# Type of the key. Can be one of the following: string, number, boolean, array, markdown.
|
|
@@ -41,13 +41,13 @@ module Phrase
|
|
|
41
41
|
# Indicates whether the key should be exported with \"xml:space=preserve\". Supported by several XML-based formats.
|
|
42
42
|
attr_accessor :xml_space_preserve
|
|
43
43
|
|
|
44
|
-
# Original file attribute. Used in some formats, e.g. XLIFF.
|
|
44
|
+
# Original file attribute. Used in some formats, e.g. XLIFF. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
45
45
|
attr_accessor :original_file
|
|
46
46
|
|
|
47
|
-
# NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
|
|
47
|
+
# NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
48
48
|
attr_accessor :localized_format_string
|
|
49
49
|
|
|
50
|
-
# NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
|
|
50
|
+
# NSStringLocalizedFormatKey attribute. Used in .stringsdict format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
51
51
|
attr_accessor :localized_format_key
|
|
52
52
|
|
|
53
53
|
# Updates/Creates custom metadata property name and value pairs to be associated with key. If you want to delete a custom metadata property, you can set its value to null. If you want to update a custom metadata property, you can set its value to the new value.
|
|
@@ -112,6 +112,11 @@ module Phrase
|
|
|
112
112
|
# List of attributes with nullable: true
|
|
113
113
|
def self.openapi_nullable
|
|
114
114
|
Set.new([
|
|
115
|
+
:'description',
|
|
116
|
+
:'name_plural',
|
|
117
|
+
:'original_file',
|
|
118
|
+
:'localized_format_string',
|
|
119
|
+
:'localized_format_key',
|
|
115
120
|
])
|
|
116
121
|
end
|
|
117
122
|
|
|
@@ -23,7 +23,7 @@ module Phrase
|
|
|
23
23
|
# Source locale. Can be the name or id of the locale. Preferred is id.
|
|
24
24
|
attr_accessor :source_locale_id
|
|
25
25
|
|
|
26
|
-
# Fallback locale for empty translations. Can be a locale name or id.
|
|
26
|
+
# Fallback locale for empty translations. Can be a locale name or id. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
27
27
|
attr_accessor :fallback_locale_id
|
|
28
28
|
|
|
29
29
|
# Indicates that new translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature.
|
|
@@ -38,7 +38,7 @@ module Phrase
|
|
|
38
38
|
# If set, translations for this locale will be fetched automatically, right after creation.
|
|
39
39
|
attr_accessor :autotranslate
|
|
40
40
|
|
|
41
|
-
# Identifier of the Language AI profile to use for this locale.
|
|
41
|
+
# Identifier of the Language AI profile to use for this locale. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
42
42
|
attr_accessor :language_ai_profile
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -82,6 +82,8 @@ module Phrase
|
|
|
82
82
|
# List of attributes with nullable: true
|
|
83
83
|
def self.openapi_nullable
|
|
84
84
|
Set.new([
|
|
85
|
+
:'fallback_locale_id',
|
|
86
|
+
:'language_ai_profile'
|
|
85
87
|
])
|
|
86
88
|
end
|
|
87
89
|
|
|
@@ -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
|
|
@@ -5,12 +5,15 @@ module Phrase
|
|
|
5
5
|
# Job template name
|
|
6
6
|
attr_accessor :name
|
|
7
7
|
|
|
8
|
-
# Briefing for the translators
|
|
8
|
+
# Briefing for the translators. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
9
9
|
attr_accessor :briefing
|
|
10
10
|
|
|
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
|
|
@@ -37,6 +42,7 @@ module Phrase
|
|
|
37
42
|
# List of attributes with nullable: true
|
|
38
43
|
def self.openapi_nullable
|
|
39
44
|
Set.new([
|
|
45
|
+
:'briefing',
|
|
40
46
|
])
|
|
41
47
|
end
|
|
42
48
|
|
|
@@ -67,6 +73,10 @@ module Phrase
|
|
|
67
73
|
self.autotranslate = attributes[:'autotranslate']
|
|
68
74
|
end
|
|
69
75
|
|
|
76
|
+
if attributes.key?(:'exclude_linked_child_keys')
|
|
77
|
+
self.exclude_linked_child_keys = attributes[:'exclude_linked_child_keys']
|
|
78
|
+
end
|
|
79
|
+
|
|
70
80
|
if attributes.key?(:'owner_id')
|
|
71
81
|
self.owner_id = attributes[:'owner_id']
|
|
72
82
|
end
|
|
@@ -98,6 +108,7 @@ module Phrase
|
|
|
98
108
|
name == o.name &&
|
|
99
109
|
briefing == o.briefing &&
|
|
100
110
|
autotranslate == o.autotranslate &&
|
|
111
|
+
exclude_linked_child_keys == o.exclude_linked_child_keys &&
|
|
101
112
|
owner_id == o.owner_id
|
|
102
113
|
end
|
|
103
114
|
|
|
@@ -110,7 +121,7 @@ module Phrase
|
|
|
110
121
|
# Calculates hash code according to all attributes.
|
|
111
122
|
# @return [Integer] Hash code
|
|
112
123
|
def hash
|
|
113
|
-
[name, briefing, autotranslate, owner_id].hash
|
|
124
|
+
[name, briefing, autotranslate, exclude_linked_child_keys, owner_id].hash
|
|
114
125
|
end
|
|
115
126
|
|
|
116
127
|
# Builds the object from hash
|
|
@@ -8,7 +8,7 @@ module Phrase
|
|
|
8
8
|
# (Optional) Name of the project
|
|
9
9
|
attr_accessor :name
|
|
10
10
|
|
|
11
|
-
# (Optional) User ID of the point of contact for the project. Pass `null` to unset.
|
|
11
|
+
# (Optional) User ID of the point of contact for the project. Pass `null` or an empty string to unset. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
12
12
|
attr_accessor :point_of_contact
|
|
13
13
|
|
|
14
14
|
# (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see [Format Guide](https://support.phrase.com/hc/en-us/sections/6111343326364) or our [Formats API Endpoint](#formats).
|
|
@@ -214,6 +214,7 @@ module Phrase
|
|
|
214
214
|
# List of attributes with nullable: true
|
|
215
215
|
def self.openapi_nullable
|
|
216
216
|
Set.new([
|
|
217
|
+
:'point_of_contact',
|
|
217
218
|
])
|
|
218
219
|
end
|
|
219
220
|
|
|
@@ -2,16 +2,16 @@ require 'date'
|
|
|
2
2
|
|
|
3
3
|
module Phrase
|
|
4
4
|
class ReleaseUpdateParameters
|
|
5
|
-
# Description of the release
|
|
5
|
+
# Description of the release. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
6
6
|
attr_accessor :description
|
|
7
7
|
|
|
8
8
|
# List of platforms the release should support.
|
|
9
9
|
attr_accessor :platforms
|
|
10
10
|
|
|
11
|
-
# Minimum version of the app that the release supports in semver format
|
|
11
|
+
# Minimum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
12
12
|
attr_accessor :app_min_version
|
|
13
13
|
|
|
14
|
-
# Maximum version of the app that the release supports in semver format
|
|
14
|
+
# Maximum version of the app that the release supports in semver format. Send an empty string or `null` to clear the value; omit the field to leave it unchanged. The Phrase CLI drops `null` values before sending, so use an empty string there.
|
|
15
15
|
attr_accessor :app_max_version
|
|
16
16
|
|
|
17
17
|
# Branch used for release
|
|
@@ -42,6 +42,9 @@ module Phrase
|
|
|
42
42
|
# List of attributes with nullable: true
|
|
43
43
|
def self.openapi_nullable
|
|
44
44
|
Set.new([
|
|
45
|
+
:'description',
|
|
46
|
+
:'app_min_version',
|
|
47
|
+
:'app_max_version',
|
|
45
48
|
])
|
|
46
49
|
end
|
|
47
50
|
|
|
@@ -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
|