kickflow 0.1.0 → 0.2.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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +102 -100
  3. data/Rakefile +1 -1
  4. data/docs/DefaultApi.md +118 -114
  5. data/docs/FormField.md +3 -1
  6. data/docs/FormFieldDetail.md +2 -0
  7. data/docs/PatchTicketsTicketIdRequestInputsInner.md +4 -4
  8. data/docs/PatchTicketsTicketIdRequestSlipItemsInnerInputsInner.md +8 -2
  9. data/docs/PostFiles200Response.md +1 -1
  10. data/docs/PostTicketsIdCommentsRequest.md +1 -1
  11. data/docs/PostTicketsRequestInputsInner.md +4 -4
  12. data/docs/PostTicketsRequestSlipItemsInnerInputsInner.md +7 -1
  13. data/docs/PostTicketsRequestSlipItemsInnerInputsInnerTeamId.md +49 -0
  14. data/docs/PostTicketsRequestSlipItemsInnerInputsInnerTicketId.md +49 -0
  15. data/docs/PostTicketsRequestSlipItemsInnerInputsInnerUserId.md +49 -0
  16. data/docs/RouteStep.md +3 -1
  17. data/docs/Section.md +2 -0
  18. data/docs/SectionListItem.md +32 -0
  19. data/docs/SlipField.md +3 -1
  20. data/docs/SlipFieldDetail.md +2 -0
  21. data/docs/SlipItemInput.md +6 -0
  22. data/docs/SubStatus.md +1 -1
  23. data/docs/TicketWithStep.md +52 -0
  24. data/docs/TicketWorkflow.md +10 -6
  25. data/docs/UserImage.md +5 -1
  26. data/docs/Workflow.md +6 -4
  27. data/docs/WorkflowDetail.md +9 -5
  28. data/docs/WorkflowInTicket.md +10 -6
  29. data/lib/kickflow/api/_api.rb +115 -109
  30. data/lib/kickflow/configuration.rb +2 -2
  31. data/lib/kickflow/models/form_field.rb +16 -5
  32. data/lib/kickflow/models/form_field_detail.rb +12 -1
  33. data/lib/kickflow/models/patch_tickets_ticket_id_request_inputs_inner.rb +4 -4
  34. data/lib/kickflow/models/patch_tickets_ticket_id_request_slip_items_inner_inputs_inner.rb +30 -5
  35. data/lib/kickflow/models/post_files200_response.rb +1 -1
  36. data/lib/kickflow/models/post_tickets_id_comments_request.rb +1 -1
  37. data/lib/kickflow/models/post_tickets_request_inputs_inner.rb +4 -4
  38. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner.rb +29 -2
  39. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_team_id.rb +106 -0
  40. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_ticket_id.rb +106 -0
  41. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_user_id.rb +106 -0
  42. data/lib/kickflow/models/role_create_body_permission_list_inner.rb +2 -2
  43. data/lib/kickflow/models/role_detail_all_of_permission_list.rb +2 -2
  44. data/lib/kickflow/models/role_update_body_permission_list_inner.rb +2 -2
  45. data/lib/kickflow/models/route_step.rb +22 -5
  46. data/lib/kickflow/models/route_step_condition_field.rb +34 -0
  47. data/lib/kickflow/models/section.rb +51 -1
  48. data/lib/kickflow/models/section_list_item.rb +336 -0
  49. data/lib/kickflow/models/slip_field.rb +18 -7
  50. data/lib/kickflow/models/slip_field_detail.rb +14 -3
  51. data/lib/kickflow/models/slip_item_input.rb +37 -1
  52. data/lib/kickflow/models/sub_status.rb +2 -0
  53. data/lib/kickflow/models/ticket_with_step.rb +568 -0
  54. data/lib/kickflow/models/user_image.rb +29 -9
  55. data/lib/kickflow/models/workflow.rb +17 -5
  56. data/lib/kickflow/models/workflow_detail.rb +30 -6
  57. data/lib/kickflow/models/workflow_in_ticket.rb +31 -7
  58. data/lib/kickflow/version.rb +1 -1
  59. data/lib/kickflow.rb +5 -3
  60. data/manifest.scm +7 -1
  61. data/pkg/kickflow-0.1.0.gem +0 -0
  62. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_team_id_spec.rb +32 -0
  63. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_ticket_id_spec.rb +32 -0
  64. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_user_id_spec.rb +32 -0
  65. data/spec/models/section_list_item_spec.rb +82 -0
  66. data/spec/models/ticket_with_step_spec.rb +146 -0
  67. data/vendor/schema.yaml +377 -167
  68. metadata +22 -2
@@ -0,0 +1,568 @@
1
+ =begin
2
+ #kickflow REST API v1
3
+
4
+ #kickflowの開発者用REST API (v1)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.7.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Kickflow
17
+ class TicketWithStep
18
+ # UUID
19
+ attr_accessor :id
20
+
21
+ # チケット番号
22
+ attr_accessor :ticket_number
23
+
24
+ # タイトル
25
+ attr_accessor :title
26
+
27
+ # ステータス
28
+ attr_accessor :status
29
+
30
+ attr_accessor :sub_status
31
+
32
+ # 現在のステップ。0が起票者、1が最初の承認ステップ。
33
+ attr_accessor :current_step
34
+
35
+ attr_accessor :author
36
+
37
+ attr_accessor :proxy_client_user
38
+
39
+ # 作成日時
40
+ attr_accessor :created_at
41
+
42
+ # 申請日時
43
+ attr_accessor :opened_at
44
+
45
+ # 完了日時
46
+ attr_accessor :completed_at
47
+
48
+ # アーカイブ日時
49
+ attr_accessor :archived_at
50
+
51
+ # 更新日時
52
+ attr_accessor :updated_at
53
+
54
+ # チケットが全体公開の場合true
55
+ attr_accessor :public_status
56
+
57
+ # チケットの強制公開設定
58
+ attr_accessor :forced_public_type
59
+
60
+ attr_accessor :workflow
61
+
62
+ # チケットのラベルの配列
63
+ attr_accessor :labels
64
+
65
+ # ステップの配列
66
+ attr_accessor :steps
67
+
68
+ class EnumAttributeValidator
69
+ attr_reader :datatype
70
+ attr_reader :allowable_values
71
+
72
+ def initialize(datatype, allowable_values)
73
+ @allowable_values = allowable_values.map do |value|
74
+ case datatype.to_s
75
+ when /Integer/i
76
+ value.to_i
77
+ when /Float/i
78
+ value.to_f
79
+ else
80
+ value
81
+ end
82
+ end
83
+ end
84
+
85
+ def valid?(value)
86
+ !value || allowable_values.include?(value)
87
+ end
88
+ end
89
+
90
+ # Attribute mapping from ruby-style variable name to JSON key.
91
+ def self.attribute_map
92
+ {
93
+ :'id' => :'id',
94
+ :'ticket_number' => :'ticketNumber',
95
+ :'title' => :'title',
96
+ :'status' => :'status',
97
+ :'sub_status' => :'subStatus',
98
+ :'current_step' => :'currentStep',
99
+ :'author' => :'author',
100
+ :'proxy_client_user' => :'proxyClientUser',
101
+ :'created_at' => :'createdAt',
102
+ :'opened_at' => :'openedAt',
103
+ :'completed_at' => :'completedAt',
104
+ :'archived_at' => :'archivedAt',
105
+ :'updated_at' => :'updatedAt',
106
+ :'public_status' => :'publicStatus',
107
+ :'forced_public_type' => :'forcedPublicType',
108
+ :'workflow' => :'workflow',
109
+ :'labels' => :'labels',
110
+ :'steps' => :'steps'
111
+ }
112
+ end
113
+
114
+ # Returns all the JSON keys this model knows about
115
+ def self.acceptable_attributes
116
+ attribute_map.values
117
+ end
118
+
119
+ # Attribute type mapping.
120
+ def self.openapi_types
121
+ {
122
+ :'id' => :'String',
123
+ :'ticket_number' => :'String',
124
+ :'title' => :'String',
125
+ :'status' => :'String',
126
+ :'sub_status' => :'SubStatus',
127
+ :'current_step' => :'Float',
128
+ :'author' => :'User',
129
+ :'proxy_client_user' => :'User',
130
+ :'created_at' => :'Time',
131
+ :'opened_at' => :'Time',
132
+ :'completed_at' => :'Time',
133
+ :'archived_at' => :'Time',
134
+ :'updated_at' => :'Time',
135
+ :'public_status' => :'Boolean',
136
+ :'forced_public_type' => :'String',
137
+ :'workflow' => :'TicketWorkflow',
138
+ :'labels' => :'Array<Label>',
139
+ :'steps' => :'Array<TicketStep>'
140
+ }
141
+ end
142
+
143
+ # List of attributes with nullable: true
144
+ def self.openapi_nullable
145
+ Set.new([
146
+ :'title',
147
+ :'opened_at',
148
+ :'completed_at',
149
+ :'archived_at',
150
+ ])
151
+ end
152
+
153
+ # List of class defined in allOf (OpenAPI v3)
154
+ def self.openapi_all_of
155
+ [
156
+ :'Ticket'
157
+ ]
158
+ end
159
+
160
+ # Initializes the object
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ def initialize(attributes = {})
163
+ if (!attributes.is_a?(Hash))
164
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::TicketWithStep` initialize method"
165
+ end
166
+
167
+ # check to see if the attribute exists and convert string to symbol for hash key
168
+ attributes = attributes.each_with_object({}) { |(k, v), h|
169
+ if (!self.class.attribute_map.key?(k.to_sym))
170
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::TicketWithStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
171
+ end
172
+ h[k.to_sym] = v
173
+ }
174
+
175
+ if attributes.key?(:'id')
176
+ self.id = attributes[:'id']
177
+ else
178
+ self.id = nil
179
+ end
180
+
181
+ if attributes.key?(:'ticket_number')
182
+ self.ticket_number = attributes[:'ticket_number']
183
+ else
184
+ self.ticket_number = nil
185
+ end
186
+
187
+ if attributes.key?(:'title')
188
+ self.title = attributes[:'title']
189
+ end
190
+
191
+ if attributes.key?(:'status')
192
+ self.status = attributes[:'status']
193
+ else
194
+ self.status = nil
195
+ end
196
+
197
+ if attributes.key?(:'sub_status')
198
+ self.sub_status = attributes[:'sub_status']
199
+ end
200
+
201
+ if attributes.key?(:'current_step')
202
+ self.current_step = attributes[:'current_step']
203
+ else
204
+ self.current_step = nil
205
+ end
206
+
207
+ if attributes.key?(:'author')
208
+ self.author = attributes[:'author']
209
+ else
210
+ self.author = nil
211
+ end
212
+
213
+ if attributes.key?(:'proxy_client_user')
214
+ self.proxy_client_user = attributes[:'proxy_client_user']
215
+ else
216
+ self.proxy_client_user = nil
217
+ end
218
+
219
+ if attributes.key?(:'created_at')
220
+ self.created_at = attributes[:'created_at']
221
+ else
222
+ self.created_at = nil
223
+ end
224
+
225
+ if attributes.key?(:'opened_at')
226
+ self.opened_at = attributes[:'opened_at']
227
+ else
228
+ self.opened_at = nil
229
+ end
230
+
231
+ if attributes.key?(:'completed_at')
232
+ self.completed_at = attributes[:'completed_at']
233
+ else
234
+ self.completed_at = nil
235
+ end
236
+
237
+ if attributes.key?(:'archived_at')
238
+ self.archived_at = attributes[:'archived_at']
239
+ else
240
+ self.archived_at = nil
241
+ end
242
+
243
+ if attributes.key?(:'updated_at')
244
+ self.updated_at = attributes[:'updated_at']
245
+ else
246
+ self.updated_at = nil
247
+ end
248
+
249
+ if attributes.key?(:'public_status')
250
+ self.public_status = attributes[:'public_status']
251
+ else
252
+ self.public_status = nil
253
+ end
254
+
255
+ if attributes.key?(:'forced_public_type')
256
+ self.forced_public_type = attributes[:'forced_public_type']
257
+ else
258
+ self.forced_public_type = nil
259
+ end
260
+
261
+ if attributes.key?(:'workflow')
262
+ self.workflow = attributes[:'workflow']
263
+ else
264
+ self.workflow = nil
265
+ end
266
+
267
+ if attributes.key?(:'labels')
268
+ if (value = attributes[:'labels']).is_a?(Array)
269
+ self.labels = value
270
+ end
271
+ else
272
+ self.labels = nil
273
+ end
274
+
275
+ if attributes.key?(:'steps')
276
+ if (value = attributes[:'steps']).is_a?(Array)
277
+ self.steps = value
278
+ end
279
+ else
280
+ self.steps = nil
281
+ end
282
+ end
283
+
284
+ # Show invalid properties with the reasons. Usually used together with valid?
285
+ # @return Array for valid properties with the reasons
286
+ def list_invalid_properties
287
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
288
+ invalid_properties = Array.new
289
+ if @id.nil?
290
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
291
+ end
292
+
293
+ if @ticket_number.nil?
294
+ invalid_properties.push('invalid value for "ticket_number", ticket_number cannot be nil.')
295
+ end
296
+
297
+ if @status.nil?
298
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
299
+ end
300
+
301
+ if @current_step.nil?
302
+ invalid_properties.push('invalid value for "current_step", current_step cannot be nil.')
303
+ end
304
+
305
+ if @current_step < 0
306
+ invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
307
+ end
308
+
309
+ if @author.nil?
310
+ invalid_properties.push('invalid value for "author", author cannot be nil.')
311
+ end
312
+
313
+ if @proxy_client_user.nil?
314
+ invalid_properties.push('invalid value for "proxy_client_user", proxy_client_user cannot be nil.')
315
+ end
316
+
317
+ if @created_at.nil?
318
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
319
+ end
320
+
321
+ if @updated_at.nil?
322
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
323
+ end
324
+
325
+ if @public_status.nil?
326
+ invalid_properties.push('invalid value for "public_status", public_status cannot be nil.')
327
+ end
328
+
329
+ if @forced_public_type.nil?
330
+ invalid_properties.push('invalid value for "forced_public_type", forced_public_type cannot be nil.')
331
+ end
332
+
333
+ if @workflow.nil?
334
+ invalid_properties.push('invalid value for "workflow", workflow cannot be nil.')
335
+ end
336
+
337
+ if @labels.nil?
338
+ invalid_properties.push('invalid value for "labels", labels cannot be nil.')
339
+ end
340
+
341
+ if @steps.nil?
342
+ invalid_properties.push('invalid value for "steps", steps cannot be nil.')
343
+ end
344
+
345
+ invalid_properties
346
+ end
347
+
348
+ # Check to see if the all the properties in the model are valid
349
+ # @return true if the model is valid
350
+ def valid?
351
+ warn '[DEPRECATED] the `valid?` method is obsolete'
352
+ return false if @id.nil?
353
+ return false if @ticket_number.nil?
354
+ return false if @status.nil?
355
+ status_validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "completed", "rejected", "archived", "denied"])
356
+ return false unless status_validator.valid?(@status)
357
+ return false if @current_step.nil?
358
+ return false if @current_step < 0
359
+ return false if @author.nil?
360
+ return false if @proxy_client_user.nil?
361
+ return false if @created_at.nil?
362
+ return false if @updated_at.nil?
363
+ return false if @public_status.nil?
364
+ return false if @forced_public_type.nil?
365
+ forced_public_type_validator = EnumAttributeValidator.new('String', ["follow_workflow", "forced_public", "forced_private"])
366
+ return false unless forced_public_type_validator.valid?(@forced_public_type)
367
+ return false if @workflow.nil?
368
+ return false if @labels.nil?
369
+ return false if @steps.nil?
370
+ true
371
+ end
372
+
373
+ # Custom attribute writer method checking allowed values (enum).
374
+ # @param [Object] status Object to be assigned
375
+ def status=(status)
376
+ validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "completed", "rejected", "archived", "denied"])
377
+ unless validator.valid?(status)
378
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
379
+ end
380
+ @status = status
381
+ end
382
+
383
+ # Custom attribute writer method with validation
384
+ # @param [Object] current_step Value to be assigned
385
+ def current_step=(current_step)
386
+ if current_step.nil?
387
+ fail ArgumentError, 'current_step cannot be nil'
388
+ end
389
+
390
+ if current_step < 0
391
+ fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
392
+ end
393
+
394
+ @current_step = current_step
395
+ end
396
+
397
+ # Custom attribute writer method checking allowed values (enum).
398
+ # @param [Object] forced_public_type Object to be assigned
399
+ def forced_public_type=(forced_public_type)
400
+ validator = EnumAttributeValidator.new('String', ["follow_workflow", "forced_public", "forced_private"])
401
+ unless validator.valid?(forced_public_type)
402
+ fail ArgumentError, "invalid value for \"forced_public_type\", must be one of #{validator.allowable_values}."
403
+ end
404
+ @forced_public_type = forced_public_type
405
+ end
406
+
407
+ # Custom attribute writer method with validation
408
+ # @param [Object] labels Value to be assigned
409
+ def labels=(labels)
410
+ if labels.nil?
411
+ fail ArgumentError, 'labels cannot be nil'
412
+ end
413
+
414
+ @labels = labels
415
+ end
416
+
417
+ # Checks equality by comparing each attribute.
418
+ # @param [Object] Object to be compared
419
+ def ==(o)
420
+ return true if self.equal?(o)
421
+ self.class == o.class &&
422
+ id == o.id &&
423
+ ticket_number == o.ticket_number &&
424
+ title == o.title &&
425
+ status == o.status &&
426
+ sub_status == o.sub_status &&
427
+ current_step == o.current_step &&
428
+ author == o.author &&
429
+ proxy_client_user == o.proxy_client_user &&
430
+ created_at == o.created_at &&
431
+ opened_at == o.opened_at &&
432
+ completed_at == o.completed_at &&
433
+ archived_at == o.archived_at &&
434
+ updated_at == o.updated_at &&
435
+ public_status == o.public_status &&
436
+ forced_public_type == o.forced_public_type &&
437
+ workflow == o.workflow &&
438
+ labels == o.labels &&
439
+ steps == o.steps
440
+ end
441
+
442
+ # @see the `==` method
443
+ # @param [Object] Object to be compared
444
+ def eql?(o)
445
+ self == o
446
+ end
447
+
448
+ # Calculates hash code according to all attributes.
449
+ # @return [Integer] Hash code
450
+ def hash
451
+ [id, ticket_number, title, status, sub_status, current_step, author, proxy_client_user, created_at, opened_at, completed_at, archived_at, updated_at, public_status, forced_public_type, workflow, labels, steps].hash
452
+ end
453
+
454
+ # Builds the object from hash
455
+ # @param [Hash] attributes Model attributes in the form of hash
456
+ # @return [Object] Returns the model itself
457
+ def self.build_from_hash(attributes)
458
+ return nil unless attributes.is_a?(Hash)
459
+ attributes = attributes.transform_keys(&:to_sym)
460
+ transformed_hash = {}
461
+ openapi_types.each_pair do |key, type|
462
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
463
+ transformed_hash["#{key}"] = nil
464
+ elsif type =~ /\AArray<(.*)>/i
465
+ # check to ensure the input is an array given that the attribute
466
+ # is documented as an array but the input is not
467
+ if attributes[attribute_map[key]].is_a?(Array)
468
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
469
+ end
470
+ elsif !attributes[attribute_map[key]].nil?
471
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
472
+ end
473
+ end
474
+ new(transformed_hash)
475
+ end
476
+
477
+ # Deserializes the data based on type
478
+ # @param string type Data type
479
+ # @param string value Value to be deserialized
480
+ # @return [Object] Deserialized data
481
+ def self._deserialize(type, value)
482
+ case type.to_sym
483
+ when :Time
484
+ Time.parse(value)
485
+ when :Date
486
+ Date.parse(value)
487
+ when :String
488
+ value.to_s
489
+ when :Integer
490
+ value.to_i
491
+ when :Float
492
+ value.to_f
493
+ when :Boolean
494
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
495
+ true
496
+ else
497
+ false
498
+ end
499
+ when :Object
500
+ # generic object (usually a Hash), return directly
501
+ value
502
+ when /\AArray<(?<inner_type>.+)>\z/
503
+ inner_type = Regexp.last_match[:inner_type]
504
+ value.map { |v| _deserialize(inner_type, v) }
505
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
506
+ k_type = Regexp.last_match[:k_type]
507
+ v_type = Regexp.last_match[:v_type]
508
+ {}.tap do |hash|
509
+ value.each do |k, v|
510
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
511
+ end
512
+ end
513
+ else # model
514
+ # models (e.g. Pet) or oneOf
515
+ klass = Kickflow.const_get(type)
516
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
517
+ end
518
+ end
519
+
520
+ # Returns the string representation of the object
521
+ # @return [String] String presentation of the object
522
+ def to_s
523
+ to_hash.to_s
524
+ end
525
+
526
+ # to_body is an alias to to_hash (backward compatibility)
527
+ # @return [Hash] Returns the object in the form of hash
528
+ def to_body
529
+ to_hash
530
+ end
531
+
532
+ # Returns the object in the form of hash
533
+ # @return [Hash] Returns the object in the form of hash
534
+ def to_hash
535
+ hash = {}
536
+ self.class.attribute_map.each_pair do |attr, param|
537
+ value = self.send(attr)
538
+ if value.nil?
539
+ is_nullable = self.class.openapi_nullable.include?(attr)
540
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
541
+ end
542
+
543
+ hash[param] = _to_hash(value)
544
+ end
545
+ hash
546
+ end
547
+
548
+ # Outputs non-array value in the form of hash
549
+ # For object, use to_hash. Otherwise, just return the value
550
+ # @param [Object] value Any valid value
551
+ # @return [Hash] Returns the value in the form of hash
552
+ def _to_hash(value)
553
+ if value.is_a?(Array)
554
+ value.compact.map { |v| _to_hash(v) }
555
+ elsif value.is_a?(Hash)
556
+ {}.tap do |hash|
557
+ value.each { |k, v| hash[k] = _to_hash(v) }
558
+ end
559
+ elsif value.respond_to? :to_hash
560
+ value.to_hash
561
+ else
562
+ value
563
+ end
564
+ end
565
+
566
+ end
567
+
568
+ end
@@ -18,10 +18,16 @@ module Kickflow
18
18
  class UserImage
19
19
  attr_accessor :_100x100
20
20
 
21
+ attr_accessor :_64x64
22
+
23
+ attr_accessor :_32x32
24
+
21
25
  # Attribute mapping from ruby-style variable name to JSON key.
22
26
  def self.attribute_map
23
27
  {
24
- :'_100x100' => :'100x100'
28
+ :'_100x100' => :'100x100',
29
+ :'_64x64' => :'64x64',
30
+ :'_32x32' => :'32x32'
25
31
  }
26
32
  end
27
33
 
@@ -33,13 +39,18 @@ module Kickflow
33
39
  # Attribute type mapping.
34
40
  def self.openapi_types
35
41
  {
36
- :'_100x100' => :'String'
42
+ :'_100x100' => :'String',
43
+ :'_64x64' => :'String',
44
+ :'_32x32' => :'String'
37
45
  }
38
46
  end
39
47
 
40
48
  # List of attributes with nullable: true
41
49
  def self.openapi_nullable
42
50
  Set.new([
51
+ :'_100x100',
52
+ :'_64x64',
53
+ :'_32x32'
43
54
  ])
44
55
  end
45
56
 
@@ -63,6 +74,18 @@ module Kickflow
63
74
  else
64
75
  self._100x100 = nil
65
76
  end
77
+
78
+ if attributes.key?(:'_64x64')
79
+ self._64x64 = attributes[:'_64x64']
80
+ else
81
+ self._64x64 = nil
82
+ end
83
+
84
+ if attributes.key?(:'_32x32')
85
+ self._32x32 = attributes[:'_32x32']
86
+ else
87
+ self._32x32 = nil
88
+ end
66
89
  end
67
90
 
68
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,10 +93,6 @@ module Kickflow
70
93
  def list_invalid_properties
71
94
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
95
  invalid_properties = Array.new
73
- if @_100x100.nil?
74
- invalid_properties.push('invalid value for "_100x100", _100x100 cannot be nil.')
75
- end
76
-
77
96
  invalid_properties
78
97
  end
79
98
 
@@ -81,7 +100,6 @@ module Kickflow
81
100
  # @return true if the model is valid
82
101
  def valid?
83
102
  warn '[DEPRECATED] the `valid?` method is obsolete'
84
- return false if @_100x100.nil?
85
103
  true
86
104
  end
87
105
 
@@ -90,7 +108,9 @@ module Kickflow
90
108
  def ==(o)
91
109
  return true if self.equal?(o)
92
110
  self.class == o.class &&
93
- _100x100 == o._100x100
111
+ _100x100 == o._100x100 &&
112
+ _64x64 == o._64x64 &&
113
+ _32x32 == o._32x32
94
114
  end
95
115
 
96
116
  # @see the `==` method
@@ -102,7 +122,7 @@ module Kickflow
102
122
  # Calculates hash code according to all attributes.
103
123
  # @return [Integer] Hash code
104
124
  def hash
105
- [_100x100].hash
125
+ [_100x100, _64x64, _32x32].hash
106
126
  end
107
127
 
108
128
  # Builds the object from hash