phrase 2.7.0 → 2.8.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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -21
  3. data/docs/BlacklistedKeyCreateParameters.md +1 -1
  4. data/docs/BlacklistedKeyUpdateParameters.md +1 -1
  5. data/docs/BlacklistedKeysApi.md +20 -20
  6. data/docs/DistributionCreateParameters.md +2 -0
  7. data/docs/DistributionUpdateParameters.md +2 -0
  8. data/docs/GlossariesApi.md +20 -20
  9. data/docs/GlossaryTermTranslationsApi.md +12 -12
  10. data/docs/GlossaryTermsApi.md +20 -20
  11. data/docs/JobComment.md +29 -0
  12. data/docs/JobCommentCreateParameters.md +17 -0
  13. data/docs/JobCommentUpdateParameters.md +17 -0
  14. data/docs/JobCommentsApi.md +343 -0
  15. data/docs/Locale.md +2 -0
  16. data/docs/LocaleCreateParameters.md +2 -0
  17. data/docs/LocaleDetails.md +2 -0
  18. data/docs/LocaleUpdateParameters.md +2 -0
  19. data/docs/ScreenshotsApi.md +12 -6
  20. data/docs/StyleguideCreateParameters.md +1 -1
  21. data/docs/StyleguideUpdateParameters.md +1 -1
  22. data/docs/VersionsHistoryApi.md +1 -1
  23. data/docs/WebhookDeliveriesApi.md +206 -0
  24. data/docs/WebhookDelivery.md +29 -0
  25. data/lib/phrase/api/blacklisted_keys_api.rb +20 -20
  26. data/lib/phrase/api/glossaries_api.rb +20 -20
  27. data/lib/phrase/api/glossary_term_translations_api.rb +12 -12
  28. data/lib/phrase/api/glossary_terms_api.rb +20 -20
  29. data/lib/phrase/api/job_comments_api.rb +411 -0
  30. data/lib/phrase/api/screenshots_api.rb +17 -11
  31. data/lib/phrase/api/versions_history_api.rb +2 -2
  32. data/lib/phrase/api/webhook_deliveries_api.rb +241 -0
  33. data/lib/phrase/models/blacklisted_key_create_parameters.rb +1 -1
  34. data/lib/phrase/models/blacklisted_key_update_parameters.rb +1 -1
  35. data/lib/phrase/models/distribution_create_parameters.rb +11 -1
  36. data/lib/phrase/models/distribution_update_parameters.rb +11 -1
  37. data/lib/phrase/models/job_comment.rb +250 -0
  38. data/lib/phrase/models/job_comment_create_parameters.rb +195 -0
  39. data/lib/phrase/models/job_comment_update_parameters.rb +195 -0
  40. data/lib/phrase/models/locale.rb +10 -1
  41. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  42. data/lib/phrase/models/locale_details.rb +10 -1
  43. data/lib/phrase/models/locale_update_parameters.rb +11 -1
  44. data/lib/phrase/models/webhook_delivery.rb +248 -0
  45. data/lib/phrase/version.rb +1 -1
  46. data/lib/phrase.rb +6 -0
  47. data/spec/api/blacklisted_keys_api_spec.rb +10 -10
  48. data/spec/api/glossaries_api_spec.rb +10 -10
  49. data/spec/api/glossary_term_translations_api_spec.rb +6 -6
  50. data/spec/api/glossary_terms_api_spec.rb +10 -10
  51. data/spec/api/job_comments_api_spec.rb +101 -0
  52. data/spec/api/screenshots_api_spec.rb +4 -1
  53. data/spec/api/versions_history_api_spec.rb +1 -1
  54. data/spec/api/webhook_deliveries_api_spec.rb +68 -0
  55. data/spec/models/distribution_create_parameters_spec.rb +6 -0
  56. data/spec/models/distribution_update_parameters_spec.rb +6 -0
  57. data/spec/models/job_comment_create_parameters_spec.rb +29 -0
  58. data/spec/models/job_comment_spec.rb +65 -0
  59. data/spec/models/job_comment_update_parameters_spec.rb +29 -0
  60. data/spec/models/locale_create_parameters_spec.rb +6 -0
  61. data/spec/models/locale_details_spec.rb +6 -0
  62. data/spec/models/locale_spec.rb +6 -0
  63. data/spec/models/locale_update_parameters_spec.rb +6 -0
  64. data/spec/models/webhook_delivery_spec.rb +65 -0
  65. metadata +221 -197
@@ -0,0 +1,248 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class WebhookDelivery
5
+ attr_accessor :id
6
+
7
+ attr_accessor :webhook_id
8
+
9
+ attr_accessor :response_status_code
10
+
11
+ attr_accessor :delivered_at
12
+
13
+ attr_accessor :duration_ms
14
+
15
+ attr_accessor :created_at
16
+
17
+ attr_accessor :updated_at
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'id' => :'id',
23
+ :'webhook_id' => :'webhook_id',
24
+ :'response_status_code' => :'response_status_code',
25
+ :'delivered_at' => :'delivered_at',
26
+ :'duration_ms' => :'duration_ms',
27
+ :'created_at' => :'created_at',
28
+ :'updated_at' => :'updated_at'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'id' => :'String',
36
+ :'webhook_id' => :'String',
37
+ :'response_status_code' => :'Integer',
38
+ :'delivered_at' => :'DateTime',
39
+ :'duration_ms' => :'Integer',
40
+ :'created_at' => :'DateTime',
41
+ :'updated_at' => :'DateTime'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::WebhookDelivery` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::WebhookDelivery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'id')
67
+ self.id = attributes[:'id']
68
+ end
69
+
70
+ if attributes.key?(:'webhook_id')
71
+ self.webhook_id = attributes[:'webhook_id']
72
+ end
73
+
74
+ if attributes.key?(:'response_status_code')
75
+ self.response_status_code = attributes[:'response_status_code']
76
+ end
77
+
78
+ if attributes.key?(:'delivered_at')
79
+ self.delivered_at = attributes[:'delivered_at']
80
+ end
81
+
82
+ if attributes.key?(:'duration_ms')
83
+ self.duration_ms = attributes[:'duration_ms']
84
+ end
85
+
86
+ if attributes.key?(:'created_at')
87
+ self.created_at = attributes[:'created_at']
88
+ end
89
+
90
+ if attributes.key?(:'updated_at')
91
+ self.updated_at = attributes[:'updated_at']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ true
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ id == o.id &&
114
+ webhook_id == o.webhook_id &&
115
+ response_status_code == o.response_status_code &&
116
+ delivered_at == o.delivered_at &&
117
+ duration_ms == o.duration_ms &&
118
+ created_at == o.created_at &&
119
+ updated_at == o.updated_at
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [id, webhook_id, response_status_code, delivered_at, duration_ms, created_at, updated_at].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ new.build_from_hash(attributes)
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ self.class.openapi_types.each_pair do |key, type|
147
+ if type =~ /\AArray<(.*)>/i
148
+ # check to ensure the input is an array given that the attribute
149
+ # is documented as an array but the input is not
150
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
151
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
152
+ end
153
+ elsif !attributes[self.class.attribute_map[key]].nil?
154
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
155
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
156
+ end
157
+
158
+ self
159
+ end
160
+
161
+ # Deserializes the data based on type
162
+ # @param string type Data type
163
+ # @param string value Value to be deserialized
164
+ # @return [Object] Deserialized data
165
+ def _deserialize(type, value)
166
+ case type.to_sym
167
+ when :DateTime
168
+ DateTime.parse(value)
169
+ when :Date
170
+ Date.parse(value)
171
+ when :String
172
+ value.to_s
173
+ when :Integer
174
+ value.to_i
175
+ when :Float
176
+ value.to_f
177
+ when :Boolean
178
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
179
+ true
180
+ else
181
+ false
182
+ end
183
+ when :Object
184
+ # generic object (usually a Hash), return directly
185
+ value
186
+ when /\AArray<(?<inner_type>.+)>\z/
187
+ inner_type = Regexp.last_match[:inner_type]
188
+ value.map { |v| _deserialize(inner_type, v) }
189
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
190
+ k_type = Regexp.last_match[:k_type]
191
+ v_type = Regexp.last_match[:v_type]
192
+ {}.tap do |hash|
193
+ value.each do |k, v|
194
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
195
+ end
196
+ end
197
+ else # model
198
+ Phrase.const_get(type).build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.openapi_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+ end
248
+ end
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.7.0'
2
+ VERSION = '2.8.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -67,6 +67,9 @@ require 'phrase/models/invitation_create_parameters'
67
67
  require 'phrase/models/invitation_update_parameters'
68
68
  require 'phrase/models/invitation_update_settings_parameters'
69
69
  require 'phrase/models/job'
70
+ require 'phrase/models/job_comment'
71
+ require 'phrase/models/job_comment_create_parameters'
72
+ require 'phrase/models/job_comment_update_parameters'
70
73
  require 'phrase/models/job_complete_parameters'
71
74
  require 'phrase/models/job_create_parameters'
72
75
  require 'phrase/models/job_details'
@@ -196,6 +199,7 @@ require 'phrase/models/variable_create_parameters'
196
199
  require 'phrase/models/variable_update_parameters'
197
200
  require 'phrase/models/webhook'
198
201
  require 'phrase/models/webhook_create_parameters'
202
+ require 'phrase/models/webhook_delivery'
199
203
  require 'phrase/models/webhook_update_parameters'
200
204
 
201
205
  # APIs
@@ -215,6 +219,7 @@ require 'phrase/api/glossary_term_translations_api'
215
219
  require 'phrase/api/glossary_terms_api'
216
220
  require 'phrase/api/icu_api'
217
221
  require 'phrase/api/invitations_api'
222
+ require 'phrase/api/job_comments_api'
218
223
  require 'phrase/api/job_locales_api'
219
224
  require 'phrase/api/job_template_locales_api'
220
225
  require 'phrase/api/job_templates_api'
@@ -239,6 +244,7 @@ require 'phrase/api/uploads_api'
239
244
  require 'phrase/api/users_api'
240
245
  require 'phrase/api/variables_api'
241
246
  require 'phrase/api/versions_history_api'
247
+ require 'phrase/api/webhook_deliveries_api'
242
248
  require 'phrase/api/webhooks_api'
243
249
 
244
250
  module Phrase
@@ -21,8 +21,8 @@ describe 'BlacklistedKeysApi' do
21
21
  end
22
22
 
23
23
  # unit tests for blacklisted_key_create
24
- # Create a blacklisted key
25
- # Create a new rule for blacklisting keys.
24
+ # Create a blocked key
25
+ # Create a new rule for blocking keys.
26
26
  # @param project_id Project ID
27
27
  # @param blacklisted_key_create_parameters
28
28
  # @param [Hash] opts the optional parameters
@@ -35,8 +35,8 @@ describe 'BlacklistedKeysApi' do
35
35
  end
36
36
 
37
37
  # unit tests for blacklisted_key_delete
38
- # Delete a blacklisted key
39
- # Delete an existing rule for blacklisting keys.
38
+ # Delete a blocked key
39
+ # Delete an existing rule for blocking keys.
40
40
  # @param project_id Project ID
41
41
  # @param id ID
42
42
  # @param [Hash] opts the optional parameters
@@ -49,8 +49,8 @@ describe 'BlacklistedKeysApi' do
49
49
  end
50
50
 
51
51
  # unit tests for blacklisted_key_show
52
- # Get a single blacklisted key
53
- # Get details on a single rule for blacklisting keys for a given project.
52
+ # Get a single blocked key
53
+ # Get details on a single rule for blocking keys for a given project.
54
54
  # @param project_id Project ID
55
55
  # @param id ID
56
56
  # @param [Hash] opts the optional parameters
@@ -63,8 +63,8 @@ describe 'BlacklistedKeysApi' do
63
63
  end
64
64
 
65
65
  # unit tests for blacklisted_key_update
66
- # Update a blacklisted key
67
- # Update an existing rule for blacklisting keys.
66
+ # Update a blocked key
67
+ # Update an existing rule for blocking keys.
68
68
  # @param project_id Project ID
69
69
  # @param id ID
70
70
  # @param blacklisted_key_update_parameters
@@ -78,8 +78,8 @@ describe 'BlacklistedKeysApi' do
78
78
  end
79
79
 
80
80
  # unit tests for blacklisted_keys_list
81
- # List blacklisted keys
82
- # List all rules for blacklisting keys for the given project.
81
+ # List blocked keys
82
+ # List all rules for blocking keys for the given project.
83
83
  # @param project_id Project ID
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -21,8 +21,8 @@ describe 'GlossariesApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossaries_list
24
- # List glossaries
25
- # List all glossaries the current user has access to.
24
+ # List term bases
25
+ # List all term bases (previously: glossaries) the current user has access to.
26
26
  # @param account_id Account ID
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -36,8 +36,8 @@ describe 'GlossariesApi' do
36
36
  end
37
37
 
38
38
  # unit tests for glossary_create
39
- # Create a glossary
40
- # Create a new glossary.
39
+ # Create a term base
40
+ # Create a new term base (previously: glossary).
41
41
  # @param account_id Account ID
42
42
  # @param glossary_create_parameters
43
43
  # @param [Hash] opts the optional parameters
@@ -50,8 +50,8 @@ describe 'GlossariesApi' do
50
50
  end
51
51
 
52
52
  # unit tests for glossary_delete
53
- # Delete a glossary
54
- # Delete an existing glossary.
53
+ # Delete a term base
54
+ # Delete an existing term base (previously: glossary).
55
55
  # @param account_id Account ID
56
56
  # @param id ID
57
57
  # @param [Hash] opts the optional parameters
@@ -64,8 +64,8 @@ describe 'GlossariesApi' do
64
64
  end
65
65
 
66
66
  # unit tests for glossary_show
67
- # Get a single glossary
68
- # Get details on a single glossary.
67
+ # Get a single term base
68
+ # Get details on a single term base (previously: glossary).
69
69
  # @param account_id Account ID
70
70
  # @param id ID
71
71
  # @param [Hash] opts the optional parameters
@@ -78,8 +78,8 @@ describe 'GlossariesApi' do
78
78
  end
79
79
 
80
80
  # unit tests for glossary_update
81
- # Update a glossary
82
- # Update an existing glossary.
81
+ # Update a term base
82
+ # Update an existing term base (previously: glossary).
83
83
  # @param account_id Account ID
84
84
  # @param id ID
85
85
  # @param glossary_update_parameters
@@ -21,8 +21,8 @@ describe 'GlossaryTermTranslationsApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossary_term_translation_create
24
- # Create a glossary term translation
25
- # Create a new glossary term translation.
24
+ # Create a translation for a term
25
+ # Create a new translation for a term in a term base (previously: glossary).
26
26
  # @param account_id Account ID
27
27
  # @param glossary_id Glossary ID
28
28
  # @param term_id Term ID
@@ -37,8 +37,8 @@ describe 'GlossaryTermTranslationsApi' do
37
37
  end
38
38
 
39
39
  # unit tests for glossary_term_translation_delete
40
- # Delete a glossary term translation
41
- # Delete an existing glossary term translation.
40
+ # Delete a translation for a term
41
+ # Delete an existing translation of a term in a term base (previously: glossary).
42
42
  # @param account_id Account ID
43
43
  # @param glossary_id Glossary ID
44
44
  # @param term_id Term ID
@@ -53,8 +53,8 @@ describe 'GlossaryTermTranslationsApi' do
53
53
  end
54
54
 
55
55
  # unit tests for glossary_term_translation_update
56
- # Update a glossary term translation
57
- # Update an existing glossary term translation.
56
+ # Update a translation for a term
57
+ # Update an existing translation for a term in a term base (previously: glossary).
58
58
  # @param account_id Account ID
59
59
  # @param glossary_id Glossary ID
60
60
  # @param term_id Term ID
@@ -21,8 +21,8 @@ describe 'GlossaryTermsApi' do
21
21
  end
22
22
 
23
23
  # unit tests for glossary_term_create
24
- # Create a glossary term
25
- # Create a new glossary term.
24
+ # Create a term
25
+ # Create a new term in a term base (previously: glossary).
26
26
  # @param account_id Account ID
27
27
  # @param glossary_id Glossary ID
28
28
  # @param glossary_term_create_parameters
@@ -36,8 +36,8 @@ describe 'GlossaryTermsApi' do
36
36
  end
37
37
 
38
38
  # unit tests for glossary_term_delete
39
- # Delete a glossary term
40
- # Delete an existing glossary term.
39
+ # Delete a term
40
+ # Delete an existing term in a term base (previously: glossary).
41
41
  # @param account_id Account ID
42
42
  # @param glossary_id Glossary ID
43
43
  # @param id ID
@@ -51,8 +51,8 @@ describe 'GlossaryTermsApi' do
51
51
  end
52
52
 
53
53
  # unit tests for glossary_term_show
54
- # Get a single glossary term
55
- # Get details on a single glossary term.
54
+ # Get a single term
55
+ # Get details for a single term in the term base (previously: glossary).
56
56
  # @param account_id Account ID
57
57
  # @param glossary_id Glossary ID
58
58
  # @param id ID
@@ -66,8 +66,8 @@ describe 'GlossaryTermsApi' do
66
66
  end
67
67
 
68
68
  # unit tests for glossary_term_update
69
- # Update a glossary term
70
- # Update an existing glossary term.
69
+ # Update a term
70
+ # Update an existing term in a term base (previously: glossary).
71
71
  # @param account_id Account ID
72
72
  # @param glossary_id Glossary ID
73
73
  # @param id ID
@@ -82,8 +82,8 @@ describe 'GlossaryTermsApi' do
82
82
  end
83
83
 
84
84
  # unit tests for glossary_terms_list
85
- # List glossary terms
86
- # List all glossary terms the current user has access to.
85
+ # List terms
86
+ # List all terms in term bases (previously: glossary) that the current user has access to.
87
87
  # @param account_id Account ID
88
88
  # @param glossary_id Glossary ID
89
89
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,101 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::JobCommentsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'JobCommentsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::JobCommentsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of JobCommentsApi' do
18
+ it 'should create an instance of JobCommentsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::JobCommentsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for job_comment_create
24
+ # Create a job comment
25
+ # Create a new comment for a job.
26
+ # @param project_id Project ID
27
+ # @param job_id Job ID
28
+ # @param job_comment_create_parameters
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
+ # @return [JobComment]
32
+ describe 'job_comment_create test' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ # unit tests for job_comment_delete
39
+ # Delete a job comment
40
+ # Delete an existing job comment.
41
+ # @param project_id Project ID
42
+ # @param job_id Job ID
43
+ # @param id ID
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
46
+ # @option opts [String] :branch specify the branch to use
47
+ # @return [nil]
48
+ describe 'job_comment_delete test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for job_comment_show
55
+ # Get a single job comment
56
+ # Get details on a single job comment.
57
+ # @param project_id Project ID
58
+ # @param job_id Job ID
59
+ # @param id ID
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
62
+ # @option opts [String] :branch specify the branch to use
63
+ # @return [Object]
64
+ describe 'job_comment_show test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for job_comment_update
71
+ # Update a job comment
72
+ # Update an existing job comment.
73
+ # @param project_id Project ID
74
+ # @param key_id Translation Key ID
75
+ # @param id ID
76
+ # @param job_comment_update_parameters
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
79
+ # @return [Object]
80
+ describe 'job_comment_update test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ # unit tests for job_comments_list
87
+ # List job comments
88
+ # List all comments for a job.
89
+ # @param project_id Project ID
90
+ # @param job_id Job ID
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
93
+ # @option opts [String] :branch specify the branch to use
94
+ # @return [Array<Object>]
95
+ describe 'job_comments_list test' 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
+
101
+ end
@@ -24,9 +24,12 @@ describe 'ScreenshotsApi' do
24
24
  # Create a screenshot
25
25
  # Create a new screenshot.
26
26
  # @param project_id Project ID
27
- # @param screenshot_create_parameters
28
27
  # @param [Hash] opts the optional parameters
29
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
+ # @option opts [String] :branch specify the branch to use
30
+ # @option opts [String] :name Name of the screenshot
31
+ # @option opts [String] :description Description of the screenshot
32
+ # @option opts [File] :filename Screenshot file
30
33
  # @return [Screenshot]
31
34
  describe 'screenshot_create test' do
32
35
  it 'should work' do
@@ -38,7 +38,7 @@ describe 'VersionsHistoryApi' do
38
38
 
39
39
  # unit tests for versions_list
40
40
  # List all versions
41
- # List all versions for the given translation.
41
+ # List all changes done to a given translation.
42
42
  # @param project_id Project ID
43
43
  # @param translation_id Translation ID
44
44
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,68 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::WebhookDeliveriesApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'WebhookDeliveriesApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::WebhookDeliveriesApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of WebhookDeliveriesApi' do
18
+ it 'should create an instance of WebhookDeliveriesApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::WebhookDeliveriesApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for webhook_deliveries_list
24
+ # List webhook deliveries
25
+ # List all webhook deliveries for the given webhook_id.
26
+ # @param project_id Project ID
27
+ # @param webhook_id Webhook ID
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @option opts [String] :response_status_codes List of Response Status Codes
31
+ # @return [Array<WebhookDelivery>]
32
+ describe 'webhook_deliveries_list test' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ # unit tests for webhook_deliveries_redeliver
39
+ # Redeliver a single webhook delivery
40
+ # Trigger an individual webhook delivery to be redelivered.
41
+ # @param project_id Project ID
42
+ # @param webhook_id Webhook ID
43
+ # @param id ID
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
46
+ # @return [WebhookDelivery]
47
+ describe 'webhook_deliveries_redeliver test' 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
+
53
+ # unit tests for webhook_deliveries_show
54
+ # Get a single webhook delivery
55
+ # Get all information about a single webhook delivery for the given ID.
56
+ # @param project_id Project ID
57
+ # @param webhook_id Webhook ID
58
+ # @param id ID
59
+ # @param [Hash] opts the optional parameters
60
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
61
+ # @return [WebhookDelivery]
62
+ describe 'webhook_deliveries_show test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end