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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile +1 -1
  4. data/README.md +4 -3
  5. data/docs/CustomMetadataPropertiesUpdateParameters.md +1 -1
  6. data/docs/Glossary.md +2 -0
  7. data/docs/GlossaryTermUpdateParameters.md +1 -1
  8. data/docs/JobCreateParameters.md +4 -2
  9. data/docs/JobDetails.md +3 -1
  10. data/docs/JobTemplateCreateParameters.md +2 -0
  11. data/docs/JobTemplateDetails.md +3 -1
  12. data/docs/JobTemplateUpdateParameters.md +3 -1
  13. data/docs/JobUpdateParameters.md +5 -3
  14. data/docs/KeyUpdateParameters.md +5 -5
  15. data/docs/LocaleUpdateParameters.md +2 -2
  16. data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
  17. data/docs/OrganizationJobTemplateDetails.md +3 -1
  18. data/docs/OrganizationJobTemplateUpdateParameters.md +3 -1
  19. data/docs/ProjectUpdateParameters.md +1 -1
  20. data/docs/ReleaseUpdateParameters.md +3 -3
  21. data/docs/RepoSyncEvent.md +3 -1
  22. data/docs/RepoSyncEventUploadsInner.md +19 -0
  23. data/docs/ScreenshotUpdateParameters.md +1 -1
  24. data/docs/StyleguideUpdateParameters.md +9 -9
  25. data/docs/TranslationUpdateParameters.md +1 -1
  26. data/docs/TranslationsApi.md +7 -7
  27. data/docs/TranslationsExcludeParameters.md +2 -2
  28. data/docs/TranslationsIncludeParameters.md +2 -2
  29. data/docs/TranslationsReviewParameters.md +2 -2
  30. data/docs/TranslationsSearchParameters.md +2 -2
  31. data/docs/TranslationsUnreviewParameters.md +2 -2
  32. data/docs/TranslationsUnverifyParameters.md +2 -2
  33. data/docs/TranslationsVerifyParameters.md +2 -2
  34. data/docs/WebhookUpdateParameters.md +1 -1
  35. data/lib/phrase/api/translations_api.rb +8 -8
  36. data/lib/phrase/models/custom_metadata_properties_update_parameters.rb +2 -1
  37. data/lib/phrase/models/glossary.rb +11 -1
  38. data/lib/phrase/models/glossary_term_update_parameters.rb +2 -1
  39. data/lib/phrase/models/job_create_parameters.rb +15 -5
  40. data/lib/phrase/models/job_details.rb +14 -4
  41. data/lib/phrase/models/job_template_create_parameters.rb +11 -1
  42. data/lib/phrase/models/job_template_details.rb +14 -4
  43. data/lib/phrase/models/job_template_update_parameters.rb +13 -2
  44. data/lib/phrase/models/job_update_parameters.rb +18 -6
  45. data/lib/phrase/models/key_update_parameters.rb +10 -5
  46. data/lib/phrase/models/locale_update_parameters.rb +4 -2
  47. data/lib/phrase/models/organization_job_template_create_parameters.rb +11 -1
  48. data/lib/phrase/models/organization_job_template_details.rb +14 -4
  49. data/lib/phrase/models/organization_job_template_update_parameters.rb +13 -2
  50. data/lib/phrase/models/project_update_parameters.rb +2 -1
  51. data/lib/phrase/models/release_update_parameters.rb +6 -3
  52. data/lib/phrase/models/repo_sync_event.rb +17 -4
  53. data/lib/phrase/models/repo_sync_event_uploads_inner.rb +241 -0
  54. data/lib/phrase/models/screenshot_update_parameters.rb +2 -1
  55. data/lib/phrase/models/styleguide_update_parameters.rb +18 -9
  56. data/lib/phrase/models/translation_update_parameters.rb +2 -1
  57. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  58. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  59. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  60. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  61. data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
  62. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  63. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  64. data/lib/phrase/models/webhook_update_parameters.rb +2 -1
  65. data/lib/phrase/version.rb +1 -1
  66. data/lib/phrase.rb +1 -0
  67. data/spec/api/translations_api_spec.rb +4 -4
  68. data/spec/models/glossary_spec.rb +6 -0
  69. data/spec/models/job_create_parameters_spec.rb +6 -0
  70. data/spec/models/job_details_spec.rb +6 -0
  71. data/spec/models/job_template_create_parameters_spec.rb +6 -0
  72. data/spec/models/job_template_details_spec.rb +6 -0
  73. data/spec/models/job_template_update_parameters_spec.rb +6 -0
  74. data/spec/models/job_update_parameters_spec.rb +6 -0
  75. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  76. data/spec/models/organization_job_template_details_spec.rb +6 -0
  77. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  78. data/spec/models/repo_sync_event_spec.rb +6 -0
  79. data/spec/models/repo_sync_event_uploads_inner_spec.rb +39 -0
  80. metadata +276 -272
@@ -0,0 +1,241 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class RepoSyncEventUploadsInner
5
+ # The upload's public identifier (code).
6
+ attr_accessor :id
7
+
8
+ # The upload's current public state. Multiple internal processing states are collapsed to `processing`; both internal error states are collapsed to `error`.
9
+ attr_accessor :state
10
+
11
+ class EnumAttributeValidator
12
+ attr_reader :datatype
13
+ attr_reader :allowable_values
14
+
15
+ def initialize(datatype, allowable_values)
16
+ @allowable_values = allowable_values.map do |value|
17
+ case datatype.to_s
18
+ when /Integer/i
19
+ value.to_i
20
+ when /Float/i
21
+ value.to_f
22
+ else
23
+ value
24
+ end
25
+ end
26
+ end
27
+
28
+ def valid?(value)
29
+ !value || allowable_values.include?(value)
30
+ end
31
+ end
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'id' => :'id',
37
+ :'state' => :'state'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'id' => :'String',
45
+ :'state' => :'String'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::RepoSyncEventUploadsInner` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::RepoSyncEventUploadsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'id')
71
+ self.id = attributes[:'id']
72
+ end
73
+
74
+ if attributes.key?(:'state')
75
+ self.state = attributes[:'state']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ state_validator = EnumAttributeValidator.new('String', ["initialized", "waiting_for_preview", "processing", "success", "error"])
90
+ return false unless state_validator.valid?(@state)
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method checking allowed values (enum).
95
+ # @param [Object] state Object to be assigned
96
+ def state=(state)
97
+ validator = EnumAttributeValidator.new('String', ["initialized", "waiting_for_preview", "processing", "success", "error"])
98
+ unless validator.valid?(state)
99
+ fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
100
+ end
101
+ @state = state
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ id == o.id &&
110
+ state == o.state
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [id, state].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ new.build_from_hash(attributes)
130
+ end
131
+
132
+ # Builds the object from hash
133
+ # @param [Hash] attributes Model attributes in the form of hash
134
+ # @return [Object] Returns the model itself
135
+ def build_from_hash(attributes)
136
+ return nil unless attributes.is_a?(Hash)
137
+ self.class.openapi_types.each_pair do |key, type|
138
+ if type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
142
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
143
+ end
144
+ elsif !attributes[self.class.attribute_map[key]].nil?
145
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
146
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
147
+ end
148
+
149
+ self
150
+ end
151
+
152
+ # Deserializes the data based on type
153
+ # @param string type Data type
154
+ # @param string value Value to be deserialized
155
+ # @return [Object] Deserialized data
156
+ def _deserialize(type, value)
157
+ case type.to_sym
158
+ when :DateTime
159
+ DateTime.parse(value)
160
+ when :Date
161
+ Date.parse(value)
162
+ when :Time
163
+ Time.parse(value)
164
+ when :String
165
+ value.to_s
166
+ when :Integer
167
+ value.to_i
168
+ when :Float
169
+ value.to_f
170
+ when :Boolean
171
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
+ true
173
+ else
174
+ false
175
+ end
176
+ when :Object
177
+ # generic object (usually a Hash), return directly
178
+ value
179
+ when /\AArray<(?<inner_type>.+)>\z/
180
+ inner_type = Regexp.last_match[:inner_type]
181
+ value.map { |v| _deserialize(inner_type, v) }
182
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
+ k_type = Regexp.last_match[:k_type]
184
+ v_type = Regexp.last_match[:v_type]
185
+ {}.tap do |hash|
186
+ value.each do |k, v|
187
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
+ end
189
+ end
190
+ else # model
191
+ Phrase.const_get(type).build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ if value.nil?
214
+ is_nullable = self.class.openapi_nullable.include?(attr)
215
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
216
+ end
217
+
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+ end
241
+ end
@@ -8,7 +8,7 @@ module Phrase
8
8
  # Name of the screenshot
9
9
  attr_accessor :name
10
10
 
11
- # Description of the screenshot
11
+ # Description of the screenshot. 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 :description
13
13
 
14
14
  # Screenshot file
@@ -37,6 +37,7 @@ module Phrase
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'description',
40
41
  ])
41
42
  end
42
43
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # Style guide title
6
6
  attr_accessor :title
7
7
 
8
- # Audience description
8
+ # Audience description. 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 :audience
10
10
 
11
11
  # Target audience for the translations.
@@ -17,28 +17,28 @@ module Phrase
17
17
  # Vocabulary register the translations should use.
18
18
  attr_accessor :vocabulary_type
19
19
 
20
- # Description of the business
20
+ # Description of the business. 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 :business
22
22
 
23
- # Company branding to remain consistent.
23
+ # Company branding to remain consistent. 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.
24
24
  attr_accessor :company_branding
25
25
 
26
- # Formatting requirements and character limitations.
26
+ # Formatting requirements and character limitations. 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 :formatting
28
28
 
29
- # List of terms and/or phrases that need to be translated consistently.
29
+ # List of terms and/or phrases that need to be translated consistently. 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.
30
30
  attr_accessor :glossary_terms
31
31
 
32
- # Formal or informal pronouns, consistent conjugation, grammatical gender
32
+ # Formal or informal pronouns, consistent conjugation, grammatical gender. 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.
33
33
  attr_accessor :grammar_consistency
34
34
 
35
- # Can be one of: Cultural/Conversational, Literal, Neutral.
35
+ # Can be one of: Cultural/Conversational, Literal, Neutral. 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.
36
36
  attr_accessor :literal_translation
37
37
 
38
- # Tone requirement descriptions
38
+ # Tone requirement descriptions. 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.
39
39
  attr_accessor :overall_tone
40
40
 
41
- # Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency.
41
+ # Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency. 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 :samples
43
43
 
44
44
  class EnumAttributeValidator
@@ -104,6 +104,15 @@ module Phrase
104
104
  # List of attributes with nullable: true
105
105
  def self.openapi_nullable
106
106
  Set.new([
107
+ :'audience',
108
+ :'business',
109
+ :'company_branding',
110
+ :'formatting',
111
+ :'glossary_terms',
112
+ :'grammar_consistency',
113
+ :'literal_translation',
114
+ :'overall_tone',
115
+ :'samples'
107
116
  ])
108
117
  end
109
118
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Translation content
8
+ # Translation content. Send an empty string or `null` to clear the translation's content; 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 :content
10
10
 
11
11
  # Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized.
@@ -57,6 +57,7 @@ module Phrase
57
57
  # List of attributes with nullable: true
58
58
  def self.openapi_nullable
59
59
  Set.new([
60
+ :'content',
60
61
  ])
61
62
  end
62
63
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
8
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `tags:XYZ` for tags on the translation - `unverified:{true|false}` for verification status - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
8
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
8
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,7 +11,7 @@ module Phrase
11
11
  # Order direction. Can be one of: asc, desc.
12
12
  attr_accessor :order
13
13
 
14
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `tags:XYZ` for tags on the translation - `unverified:{true|false}` for verification status - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
14
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
15
15
  attr_accessor :q
16
16
 
17
17
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
8
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
8
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Sort criteria. Can be one of: key_name, created_at, updated_at.
@@ -8,7 +8,7 @@ module Phrase
8
8
  # specify the locale of the translations to be verified
9
9
  attr_accessor :locale_id
10
10
 
11
- # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
11
+ # Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of translation ids * `key.id:key_id,...` for queries on a comma-separated list of translation key ids * `key.name:key_name,...` for queries on a comma-separated list of translation key names * `locale.id:locale_id,...` for queries on a comma-separated list of locale ids * `locale.name:locale_name,...` for queries on a comma-separated list of locale names * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
12
12
  attr_accessor :q
13
13
 
14
14
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -8,7 +8,7 @@ module Phrase
8
8
  # Webhook secret used to calculate signature. If empty, the default project secret will be used.
9
9
  attr_accessor :secret
10
10
 
11
- # Webhook description
11
+ # Webhook description. 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 :description
13
13
 
14
14
  # List of event names to trigger the webhook (separated by comma)
@@ -47,6 +47,7 @@ module Phrase
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'description',
50
51
  ])
51
52
  end
52
53
 
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.31.0'
2
+ VERSION = '4.33.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -181,6 +181,7 @@ require 'phrase/models/release_update_parameters1'
181
181
  require 'phrase/models/repo_sync'
182
182
  require 'phrase/models/repo_sync_create_parameters'
183
183
  require 'phrase/models/repo_sync_event'
184
+ require 'phrase/models/repo_sync_event_uploads_inner'
184
185
  require 'phrase/models/repo_sync_export_parameters'
185
186
  require 'phrase/models/repo_sync_import_parameters'
186
187
  require 'phrase/models/screenshot'
@@ -166,7 +166,7 @@ describe 'TranslationsApi' do
166
166
  # @option opts [String] :branch specify the branch to use
167
167
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
168
168
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
169
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
169
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
170
170
  # @return [Array<Translation>]
171
171
  describe 'translations_by_key test' do
172
172
  it 'should work' do
@@ -186,7 +186,7 @@ describe 'TranslationsApi' do
186
186
  # @option opts [String] :branch specify the branch to use
187
187
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
188
188
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
189
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
189
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
190
190
  # @return [Array<Translation>]
191
191
  describe 'translations_by_locale test' do
192
192
  it 'should work' do
@@ -237,7 +237,7 @@ describe 'TranslationsApi' do
237
237
  # @option opts [String] :locale_id Filter translations to those for the given locale (locale code or id). Equivalent to calling &#x60;GET /projects/{project_id}/locales/{locale_id}/translations&#x60;.
238
238
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
239
239
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
240
- # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
240
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of translation ids * &#x60;key.id:key_id,...&#x60; for queries on a comma-separated list of translation key ids * &#x60;key.name:key_name,...&#x60; for queries on a comma-separated list of translation key names * &#x60;locale.id:locale_id,...&#x60; for queries on a comma-separated list of locale ids * &#x60;locale.name:locale_name,...&#x60; for queries on a comma-separated list of locale names * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
241
241
  # @return [Array<Translation>]
242
242
  describe 'translations_list test' do
243
243
  it 'should work' do
@@ -291,7 +291,7 @@ describe 'TranslationsApi' do
291
291
 
292
292
  # unit tests for translations_unverify_collection
293
293
  # Unverify translations by query
294
- # Mark translations matching query as unverified.
294
+ # Mark translations matching query as unverified. To unverify the translations of specific keys, filter by key id (and optionally locale) directly, for example &#x60;key.id:KEY_ID_1,KEY_ID_2 locale.id:LOCALE_ID&#x60;. There is no need to look up translation ids first.
295
295
  # @param project_id Project ID
296
296
  # @param translations_unverify_parameters
297
297
  # @param [Hash] opts the optional parameters
@@ -32,6 +32,12 @@ describe 'Glossary' do
32
32
  end
33
33
  end
34
34
 
35
+ describe 'test attribute "terms_count"' 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
  describe 'test attribute "projects"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -92,4 +92,10 @@ describe 'JobCreateParameters' do
92
92
  end
93
93
  end
94
94
 
95
+ describe 'test attribute "exclude_linked_child_keys"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
95
101
  end
@@ -146,4 +146,10 @@ describe 'JobDetails' do
146
146
  end
147
147
  end
148
148
 
149
+ describe 'test attribute "exclude_linked_child_keys"' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
149
155
  end
@@ -44,6 +44,12 @@ describe 'JobTemplateCreateParameters' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "exclude_linked_child_keys"' 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
+
47
53
  describe 'test attribute "source_locale_id"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,4 +86,10 @@ describe 'JobTemplateDetails' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "exclude_linked_child_keys"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
89
95
  end
@@ -44,6 +44,12 @@ describe 'JobTemplateUpdateParameters' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "exclude_linked_child_keys"' 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
+
47
53
  describe 'test attribute "source_locale_id"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,4 +62,10 @@ describe 'JobUpdateParameters' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "exclude_linked_child_keys"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  end
@@ -38,6 +38,12 @@ describe 'OrganizationJobTemplateCreateParameters' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "exclude_linked_child_keys"' 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
+
41
47
  describe 'test attribute "owner_id"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -80,4 +80,10 @@ describe 'OrganizationJobTemplateDetails' do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'test attribute "exclude_linked_child_keys"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
83
89
  end
@@ -38,6 +38,12 @@ describe 'OrganizationJobTemplateUpdateParameters' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "exclude_linked_child_keys"' 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
+
41
47
  describe 'test attribute "owner_id"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,4 +70,10 @@ describe 'RepoSyncEvent' do
70
70
  end
71
71
  end
72
72
 
73
+ describe 'test attribute "uploads"' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
73
79
  end