phrase 4.34.0 → 4.36.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +14 -3
  4. data/docs/Note.md +25 -0
  5. data/docs/ProjectDetails.md +3 -1
  6. data/docs/ProjectNoteUpdateParameters.md +19 -0
  7. data/docs/ProjectNotesApi.md +203 -0
  8. data/docs/RepoSync.md +7 -1
  9. data/docs/RepoSyncCreateParameters.md +7 -1
  10. data/docs/RepoSyncCreateParametersExportSchedule.md +27 -0
  11. data/docs/RepoSyncExportSchedule.md +23 -0
  12. data/docs/RepoSyncUpdateParameters.md +23 -0
  13. data/docs/RepoSyncUpdateParametersExportSchedule.md +27 -0
  14. data/docs/RepoSyncsApi.md +66 -0
  15. data/docs/UserShort.md +23 -0
  16. data/lib/phrase/api/project_notes_api.rb +223 -0
  17. data/lib/phrase/api/repo_syncs_api.rb +80 -0
  18. data/lib/phrase/models/note.rb +225 -0
  19. data/lib/phrase/models/project_details.rb +13 -4
  20. data/lib/phrase/models/project_note_update_parameters.rb +202 -0
  21. data/lib/phrase/models/repo_sync.rb +58 -5
  22. data/lib/phrase/models/repo_sync_create_parameters.rb +35 -4
  23. data/lib/phrase/models/repo_sync_create_parameters_export_schedule.rb +281 -0
  24. data/lib/phrase/models/repo_sync_export_schedule.rb +263 -0
  25. data/lib/phrase/models/repo_sync_update_parameters.rb +250 -0
  26. data/lib/phrase/models/repo_sync_update_parameters_export_schedule.rb +276 -0
  27. data/lib/phrase/models/user_short.rb +223 -0
  28. data/lib/phrase/version.rb +1 -1
  29. data/lib/phrase.rb +8 -0
  30. data/spec/api/project_notes_api_spec.rb +66 -0
  31. data/spec/api/repo_syncs_api_spec.rb +15 -0
  32. data/spec/models/note_spec.rb +47 -0
  33. data/spec/models/project_details_spec.rb +6 -0
  34. data/spec/models/project_note_update_parameters_spec.rb +29 -0
  35. data/spec/models/repo_sync_create_parameters_export_schedule_spec.rb +63 -0
  36. data/spec/models/repo_sync_create_parameters_spec.rb +22 -0
  37. data/spec/models/repo_sync_export_schedule_spec.rb +51 -0
  38. data/spec/models/repo_sync_spec.rb +22 -0
  39. data/spec/models/repo_sync_update_parameters_export_schedule_spec.rb +63 -0
  40. data/spec/models/repo_sync_update_parameters_spec.rb +51 -0
  41. data/spec/models/user_short_spec.rb +47 -0
  42. metadata +300 -268
@@ -0,0 +1,276 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ # Updates the schedule for automatic exports. Only applied when `export_triggers` includes `schedule`. Requires `manage_github_sync?` permission and the automatic export feature to be enabled.
5
+ class RepoSyncUpdateParametersExportSchedule
6
+ attr_accessor :frequency
7
+
8
+ attr_accessor :time
9
+
10
+ attr_accessor :time_zone
11
+
12
+ attr_accessor :days_of_week
13
+
14
+ attr_accessor :day_of_month
15
+
16
+ attr_accessor :cron_schedule
17
+
18
+ class EnumAttributeValidator
19
+ attr_reader :datatype
20
+ attr_reader :allowable_values
21
+
22
+ def initialize(datatype, allowable_values)
23
+ @allowable_values = allowable_values.map do |value|
24
+ case datatype.to_s
25
+ when /Integer/i
26
+ value.to_i
27
+ when /Float/i
28
+ value.to_f
29
+ else
30
+ value
31
+ end
32
+ end
33
+ end
34
+
35
+ def valid?(value)
36
+ !value || allowable_values.include?(value)
37
+ end
38
+ end
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'frequency' => :'frequency',
44
+ :'time' => :'time',
45
+ :'time_zone' => :'time_zone',
46
+ :'days_of_week' => :'days_of_week',
47
+ :'day_of_month' => :'day_of_month',
48
+ :'cron_schedule' => :'cron_schedule'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'frequency' => :'String',
56
+ :'time' => :'String',
57
+ :'time_zone' => :'String',
58
+ :'days_of_week' => :'String',
59
+ :'day_of_month' => :'Integer',
60
+ :'cron_schedule' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::RepoSyncUpdateParametersExportSchedule` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::RepoSyncUpdateParametersExportSchedule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'frequency')
86
+ self.frequency = attributes[:'frequency']
87
+ end
88
+
89
+ if attributes.key?(:'time')
90
+ self.time = attributes[:'time']
91
+ end
92
+
93
+ if attributes.key?(:'time_zone')
94
+ self.time_zone = attributes[:'time_zone']
95
+ end
96
+
97
+ if attributes.key?(:'days_of_week')
98
+ self.days_of_week = attributes[:'days_of_week']
99
+ end
100
+
101
+ if attributes.key?(:'day_of_month')
102
+ self.day_of_month = attributes[:'day_of_month']
103
+ end
104
+
105
+ if attributes.key?(:'cron_schedule')
106
+ self.cron_schedule = attributes[:'cron_schedule']
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ frequency_validator = EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "cron"])
121
+ return false unless frequency_validator.valid?(@frequency)
122
+ true
123
+ end
124
+
125
+ # Custom attribute writer method checking allowed values (enum).
126
+ # @param [Object] frequency Object to be assigned
127
+ def frequency=(frequency)
128
+ validator = EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "cron"])
129
+ unless validator.valid?(frequency)
130
+ fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
131
+ end
132
+ @frequency = frequency
133
+ end
134
+
135
+ # Checks equality by comparing each attribute.
136
+ # @param [Object] Object to be compared
137
+ def ==(o)
138
+ return true if self.equal?(o)
139
+ self.class == o.class &&
140
+ frequency == o.frequency &&
141
+ time == o.time &&
142
+ time_zone == o.time_zone &&
143
+ days_of_week == o.days_of_week &&
144
+ day_of_month == o.day_of_month &&
145
+ cron_schedule == o.cron_schedule
146
+ end
147
+
148
+ # @see the `==` method
149
+ # @param [Object] Object to be compared
150
+ def eql?(o)
151
+ self == o
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Integer] Hash code
156
+ def hash
157
+ [frequency, time, time_zone, days_of_week, day_of_month, cron_schedule].hash
158
+ end
159
+
160
+ # Builds the object from hash
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ # @return [Object] Returns the model itself
163
+ def self.build_from_hash(attributes)
164
+ new.build_from_hash(attributes)
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ self.class.openapi_types.each_pair do |key, type|
173
+ if type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the attribute
175
+ # is documented as an array but the input is not
176
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
177
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ end
179
+ elsif !attributes[self.class.attribute_map[key]].nil?
180
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
181
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
182
+ end
183
+
184
+ self
185
+ end
186
+
187
+ # Deserializes the data based on type
188
+ # @param string type Data type
189
+ # @param string value Value to be deserialized
190
+ # @return [Object] Deserialized data
191
+ def _deserialize(type, value)
192
+ case type.to_sym
193
+ when :DateTime
194
+ DateTime.parse(value)
195
+ when :Date
196
+ Date.parse(value)
197
+ when :Time
198
+ Time.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :Boolean
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ Phrase.const_get(type).build_from_hash(value)
227
+ end
228
+ end
229
+
230
+ # Returns the string representation of the object
231
+ # @return [String] String presentation of the object
232
+ def to_s
233
+ to_hash.to_s
234
+ end
235
+
236
+ # to_body is an alias to to_hash (backward compatibility)
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_body
239
+ to_hash
240
+ end
241
+
242
+ # Returns the object in the form of hash
243
+ # @return [Hash] Returns the object in the form of hash
244
+ def to_hash
245
+ hash = {}
246
+ self.class.attribute_map.each_pair do |attr, param|
247
+ value = self.send(attr)
248
+ if value.nil?
249
+ is_nullable = self.class.openapi_nullable.include?(attr)
250
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
251
+ end
252
+
253
+ hash[param] = _to_hash(value)
254
+ end
255
+ hash
256
+ end
257
+
258
+ # Outputs non-array value in the form of hash
259
+ # For object, use to_hash. Otherwise, just return the value
260
+ # @param [Object] value Any valid value
261
+ # @return [Hash] Returns the value in the form of hash
262
+ def _to_hash(value)
263
+ if value.is_a?(Array)
264
+ value.compact.map { |v| _to_hash(v) }
265
+ elsif value.is_a?(Hash)
266
+ {}.tap do |hash|
267
+ value.each { |k, v| hash[k] = _to_hash(v) }
268
+ end
269
+ elsif value.respond_to? :to_hash
270
+ value.to_hash
271
+ else
272
+ value
273
+ end
274
+ end
275
+ end
276
+ end
@@ -0,0 +1,223 @@
1
+ require 'date'
2
+
3
+ module Phrase
4
+ class UserShort
5
+ attr_accessor :id
6
+
7
+ attr_accessor :username
8
+
9
+ attr_accessor :name
10
+
11
+ attr_accessor :gravatar_uid
12
+
13
+ # Attribute mapping from ruby-style variable name to JSON key.
14
+ def self.attribute_map
15
+ {
16
+ :'id' => :'id',
17
+ :'username' => :'username',
18
+ :'name' => :'name',
19
+ :'gravatar_uid' => :'gravatar_uid'
20
+ }
21
+ end
22
+
23
+ # Attribute type mapping.
24
+ def self.openapi_types
25
+ {
26
+ :'id' => :'String',
27
+ :'username' => :'String',
28
+ :'name' => :'String',
29
+ :'gravatar_uid' => :'String'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::UserShort` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::UserShort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'id')
55
+ self.id = attributes[:'id']
56
+ end
57
+
58
+ if attributes.key?(:'username')
59
+ self.username = attributes[:'username']
60
+ end
61
+
62
+ if attributes.key?(:'name')
63
+ self.name = attributes[:'name']
64
+ end
65
+
66
+ if attributes.key?(:'gravatar_uid')
67
+ self.gravatar_uid = attributes[:'gravatar_uid']
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ invalid_properties = Array.new
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ id == o.id &&
90
+ username == o.username &&
91
+ name == o.name &&
92
+ gravatar_uid == o.gravatar_uid
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [id, username, name, gravatar_uid].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.openapi_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :DateTime
141
+ DateTime.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :Time
145
+ Time.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :Boolean
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ Phrase.const_get(type).build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ if value.nil?
196
+ is_nullable = self.class.openapi_nullable.include?(attr)
197
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
198
+ end
199
+
200
+ hash[param] = _to_hash(value)
201
+ end
202
+ hash
203
+ end
204
+
205
+ # Outputs non-array value in the form of hash
206
+ # For object, use to_hash. Otherwise, just return the value
207
+ # @param [Object] value Any valid value
208
+ # @return [Hash] Returns the value in the form of hash
209
+ def _to_hash(value)
210
+ if value.is_a?(Array)
211
+ value.compact.map { |v| _to_hash(v) }
212
+ elsif value.is_a?(Hash)
213
+ {}.tap do |hash|
214
+ value.each { |k, v| hash[k] = _to_hash(v) }
215
+ end
216
+ elsif value.respond_to? :to_hash
217
+ value.to_hash
218
+ else
219
+ value
220
+ end
221
+ end
222
+ end
223
+ end
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.34.0'
2
+ VERSION = '4.36.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -144,6 +144,7 @@ require 'phrase/models/member_project_detail_project_roles_inner'
144
144
  require 'phrase/models/member_spaces_inner'
145
145
  require 'phrase/models/member_update_parameters'
146
146
  require 'phrase/models/member_update_settings_parameters'
147
+ require 'phrase/models/note'
147
148
  require 'phrase/models/notification'
148
149
  require 'phrase/models/notification_group'
149
150
  require 'phrase/models/notification_group_detail'
@@ -162,6 +163,7 @@ require 'phrase/models/project_create_parameters'
162
163
  require 'phrase/models/project_details'
163
164
  require 'phrase/models/project_locales'
164
165
  require 'phrase/models/project_member'
166
+ require 'phrase/models/project_note_update_parameters'
165
167
  require 'phrase/models/project_report'
166
168
  require 'phrase/models/project_short'
167
169
  require 'phrase/models/project_update_parameters'
@@ -180,10 +182,14 @@ require 'phrase/models/release_update_parameters'
180
182
  require 'phrase/models/release_update_parameters1'
181
183
  require 'phrase/models/repo_sync'
182
184
  require 'phrase/models/repo_sync_create_parameters'
185
+ require 'phrase/models/repo_sync_create_parameters_export_schedule'
183
186
  require 'phrase/models/repo_sync_event'
184
187
  require 'phrase/models/repo_sync_event_uploads_inner'
185
188
  require 'phrase/models/repo_sync_export_parameters'
189
+ require 'phrase/models/repo_sync_export_schedule'
186
190
  require 'phrase/models/repo_sync_import_parameters'
191
+ require 'phrase/models/repo_sync_update_parameters'
192
+ require 'phrase/models/repo_sync_update_parameters_export_schedule'
187
193
  require 'phrase/models/screenshot'
188
194
  require 'phrase/models/screenshot_marker'
189
195
  require 'phrase/models/screenshot_marker_create_parameters'
@@ -246,6 +252,7 @@ require 'phrase/models/upload_batches_create_parameters'
246
252
  require 'phrase/models/upload_summary'
247
253
  require 'phrase/models/user'
248
254
  require 'phrase/models/user_preview'
255
+ require 'phrase/models/user_short'
249
256
  require 'phrase/models/variable'
250
257
  require 'phrase/models/variable_create_parameters'
251
258
  require 'phrase/models/variable_update_parameters'
@@ -295,6 +302,7 @@ require 'phrase/api/orders_api'
295
302
  require 'phrase/api/organization_job_template_locales_api'
296
303
  require 'phrase/api/organization_job_templates_api'
297
304
  require 'phrase/api/pre_translations_api'
305
+ require 'phrase/api/project_notes_api'
298
306
  require 'phrase/api/projects_api'
299
307
  require 'phrase/api/quality_performance_score_api'
300
308
  require 'phrase/api/release_triggers_api'
@@ -0,0 +1,66 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::ProjectNotesApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'ProjectNotesApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::ProjectNotesApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of ProjectNotesApi' do
18
+ it 'should create an instance of ProjectNotesApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::ProjectNotesApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for project_note_destroy
24
+ # Delete a project note
25
+ # Deletes the note associated with a project. This operation is idempotent — it succeeds silently even when no note exists. The note is resolved against the main project — branch projects delete the main project&#39;s note. Requires manage permissions on the project and the &#x60;write&#x60; OAuth scope.
26
+ # @param project_id Project ID
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
+ # @option opts [String] :branch Branch to use
30
+ # @return [nil]
31
+ describe 'project_note_destroy test' do
32
+ it 'should work' do
33
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
+ end
35
+ end
36
+
37
+ # unit tests for project_note_show
38
+ # Get a project note
39
+ # Returns the Markdown-formatted note attached to a project. The note is resolved against the main project — branch projects return the main project&#39;s note. Returns 404 when no note has been created yet. Requires the &#x60;read&#x60; OAuth scope.
40
+ # @param project_id Project ID
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
43
+ # @option opts [String] :branch Branch to use
44
+ # @return [Note]
45
+ describe 'project_note_show test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ # unit tests for project_note_update
52
+ # Create or update a project note
53
+ # Creates or updates the Markdown-formatted note for a project. If a note already exists it is updated in place; otherwise a new note is created. The note is stored on the main project — branch projects write to the main project&#39;s note. &#x60;body&#x60; is required. Requires manage permissions on the project and the &#x60;write&#x60; OAuth scope.
54
+ # @param project_id Project ID
55
+ # @param project_note_update_parameters
56
+ # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
58
+ # @option opts [String] :branch Branch to use
59
+ # @return [Note]
60
+ describe 'project_note_update test' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
+ end
64
+ end
65
+
66
+ end
@@ -121,4 +121,19 @@ describe 'RepoSyncsApi' do
121
121
  end
122
122
  end
123
123
 
124
+ # unit tests for repo_sync_update
125
+ # Update a repo sync
126
+ # Update settings for an existing Repo Sync. Sending &#x60;owner_id&#x60;, &#x60;export_triggers&#x60;, or &#x60;export_schedule&#x60; requires the caller to have &#x60;manage_github_sync?&#x60; permission on the project (returns &#x60;403&#x60; otherwise). Sending &#x60;export_triggers&#x60; or &#x60;export_schedule&#x60; when the automatic export feature is not enabled for the account returns &#x60;422&#x60;.
127
+ # @param account_id Account ID
128
+ # @param id ID
129
+ # @param repo_sync_update_parameters
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
132
+ # @return [RepoSync]
133
+ describe 'repo_sync_update test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+
124
139
  end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::Note
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'Note' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::Note.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of Note' do
19
+ it 'should create an instance of Note' do
20
+ expect(@instance).to be_instance_of(Phrase::Note)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "body"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "created_at"' 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
+
41
+ describe 'test attribute "updated_at"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -228,4 +228,10 @@ describe 'ProjectDetails' do
228
228
  end
229
229
  end
230
230
 
231
+ describe 'test attribute "note"' do
232
+ it 'should work' do
233
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
234
+ end
235
+ end
236
+
231
237
  end