kickflow 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -6
- data/Rakefile +22 -6
- data/docs/DefaultApi.md +6 -4
- data/docs/MemberUser.md +1 -1
- data/docs/PatchTeamsTeamIdMembershipsUserIdRequest.md +1 -1
- data/docs/PatchTicketsTicketIdRequest.md +3 -1
- data/docs/PostTeamsTeamIdMembersRequestUsersInner.md +1 -1
- data/docs/PostTicketsIdViewersRequest.md +3 -1
- data/docs/PostTicketsRequest.md +3 -1
- data/docs/PostTicketsRequestApproversInner.md +20 -0
- data/docs/RoleUpdateBody.md +1 -1
- data/docs/RouteStep.md +2 -0
- data/docs/RouteStepConditionField.md +0 -2
- data/docs/RouteStepTarget.md +3 -1
- data/docs/TicketAssignee.md +2 -0
- data/docs/TicketViewer.md +3 -1
- data/docs/TicketWorkflow.md +0 -12
- data/docs/Workflow.md +0 -8
- data/docs/WorkflowDetail.md +0 -12
- data/docs/WorkflowInTicket.md +0 -12
- data/lib/kickflow/api/_api.rb +13 -6
- data/lib/kickflow/models/member_user.rb +1 -1
- data/lib/kickflow/models/patch_teams_team_id_memberships_user_id_request.rb +1 -1
- data/lib/kickflow/models/patch_tickets_ticket_id_request.rb +17 -4
- data/lib/kickflow/models/post_general_masters_request.rb +2 -0
- data/lib/kickflow/models/post_teams_team_id_members_request_users_inner.rb +1 -1
- data/lib/kickflow/models/post_tickets_id_viewers_request.rb +16 -5
- data/lib/kickflow/models/post_tickets_request.rb +17 -4
- data/lib/kickflow/models/post_tickets_request_approvers_inner.rb +241 -0
- data/lib/kickflow/models/role_create_body_permission_list_inner.rb +2 -2
- data/lib/kickflow/models/role_detail_all_of_permission_list.rb +2 -2
- data/lib/kickflow/models/role_update_body.rb +1 -1
- data/lib/kickflow/models/route_step.rb +16 -3
- data/lib/kickflow/models/route_step_condition_field.rb +1 -11
- data/lib/kickflow/models/route_step_target.rb +14 -4
- data/lib/kickflow/models/ticket_assignee.rb +18 -1
- data/lib/kickflow/models/ticket_viewer.rb +22 -5
- data/lib/kickflow/models/workflow.rb +1 -73
- data/lib/kickflow/models/workflow_detail.rb +1 -111
- data/lib/kickflow/models/workflow_in_ticket.rb +1 -104
- data/lib/kickflow/version.rb +1 -1
- data/lib/kickflow.rb +1 -2
- data/spec/models/post_tickets_request_approvers_inner_spec.rb +42 -0
- data/vendor/schema.yaml +88 -109
- metadata +6 -6
- data/Rakefile~ +0 -48
- data/manifest.scm~ +0 -1
- data/pkg/kickflow-0.1.0.gem +0 -0
- data/pkg/kickflow-0.2.0.gem +0 -0
@@ -26,13 +26,17 @@ module Kickflow
|
|
26
26
|
# 承認者の指定に使う役職の配列
|
27
27
|
attr_accessor :grades
|
28
28
|
|
29
|
+
# 承認者タイプ「チームを動的に指定」で指定する変数名が入ります。
|
30
|
+
attr_accessor :variable
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'team' => :'team',
|
33
36
|
:'descendants' => :'descendants',
|
34
37
|
:'grade_symbol' => :'gradeSymbol',
|
35
|
-
:'grades' => :'grades'
|
38
|
+
:'grades' => :'grades',
|
39
|
+
:'variable' => :'variable'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -47,7 +51,8 @@ module Kickflow
|
|
47
51
|
:'team' => :'Team',
|
48
52
|
:'descendants' => :'Boolean',
|
49
53
|
:'grade_symbol' => :'String',
|
50
|
-
:'grades' => :'Array<Grade>'
|
54
|
+
:'grades' => :'Array<Grade>',
|
55
|
+
:'variable' => :'String'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -89,6 +94,10 @@ module Kickflow
|
|
89
94
|
self.grades = value
|
90
95
|
end
|
91
96
|
end
|
97
|
+
|
98
|
+
if attributes.key?(:'variable')
|
99
|
+
self.variable = attributes[:'variable']
|
100
|
+
end
|
92
101
|
end
|
93
102
|
|
94
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -114,7 +123,8 @@ module Kickflow
|
|
114
123
|
team == o.team &&
|
115
124
|
descendants == o.descendants &&
|
116
125
|
grade_symbol == o.grade_symbol &&
|
117
|
-
grades == o.grades
|
126
|
+
grades == o.grades &&
|
127
|
+
variable == o.variable
|
118
128
|
end
|
119
129
|
|
120
130
|
# @see the `==` method
|
@@ -126,7 +136,7 @@ module Kickflow
|
|
126
136
|
# Calculates hash code according to all attributes.
|
127
137
|
# @return [Integer] Hash code
|
128
138
|
def hash
|
129
|
-
[team, descendants, grade_symbol, grades].hash
|
139
|
+
[team, descendants, grade_symbol, grades, variable].hash
|
130
140
|
end
|
131
141
|
|
132
142
|
# Builds the object from hash
|
@@ -31,6 +31,9 @@ module Kickflow
|
|
31
31
|
# 承認日時。古いデータではnullを返します。
|
32
32
|
attr_accessor :completed_at
|
33
33
|
|
34
|
+
# 承認を保留中の場合true
|
35
|
+
attr_accessor :pending
|
36
|
+
|
34
37
|
attr_accessor :user
|
35
38
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -41,6 +44,7 @@ module Kickflow
|
|
41
44
|
:'current' => :'current',
|
42
45
|
:'completed' => :'completed',
|
43
46
|
:'completed_at' => :'completedAt',
|
47
|
+
:'pending' => :'pending',
|
44
48
|
:'user' => :'user'
|
45
49
|
}
|
46
50
|
end
|
@@ -58,6 +62,7 @@ module Kickflow
|
|
58
62
|
:'current' => :'Boolean',
|
59
63
|
:'completed' => :'Boolean',
|
60
64
|
:'completed_at' => :'Time',
|
65
|
+
:'pending' => :'Boolean',
|
61
66
|
:'user' => :'User'
|
62
67
|
}
|
63
68
|
end
|
@@ -114,6 +119,12 @@ module Kickflow
|
|
114
119
|
self.completed_at = nil
|
115
120
|
end
|
116
121
|
|
122
|
+
if attributes.key?(:'pending')
|
123
|
+
self.pending = attributes[:'pending']
|
124
|
+
else
|
125
|
+
self.pending = nil
|
126
|
+
end
|
127
|
+
|
117
128
|
if attributes.key?(:'user')
|
118
129
|
self.user = attributes[:'user']
|
119
130
|
else
|
@@ -142,6 +153,10 @@ module Kickflow
|
|
142
153
|
invalid_properties.push('invalid value for "completed", completed cannot be nil.')
|
143
154
|
end
|
144
155
|
|
156
|
+
if @pending.nil?
|
157
|
+
invalid_properties.push('invalid value for "pending", pending cannot be nil.')
|
158
|
+
end
|
159
|
+
|
145
160
|
if @user.nil?
|
146
161
|
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
147
162
|
end
|
@@ -157,6 +172,7 @@ module Kickflow
|
|
157
172
|
return false if @step_order.nil?
|
158
173
|
return false if @current.nil?
|
159
174
|
return false if @completed.nil?
|
175
|
+
return false if @pending.nil?
|
160
176
|
return false if @user.nil?
|
161
177
|
true
|
162
178
|
end
|
@@ -171,6 +187,7 @@ module Kickflow
|
|
171
187
|
current == o.current &&
|
172
188
|
completed == o.completed &&
|
173
189
|
completed_at == o.completed_at &&
|
190
|
+
pending == o.pending &&
|
174
191
|
user == o.user
|
175
192
|
end
|
176
193
|
|
@@ -183,7 +200,7 @@ module Kickflow
|
|
183
200
|
# Calculates hash code according to all attributes.
|
184
201
|
# @return [Integer] Hash code
|
185
202
|
def hash
|
186
|
-
[id, step_order, current, completed, completed_at, user].hash
|
203
|
+
[id, step_order, current, completed, completed_at, pending, user].hash
|
187
204
|
end
|
188
205
|
|
189
206
|
# Builds the object from hash
|
@@ -25,13 +25,17 @@ module Kickflow
|
|
25
25
|
|
26
26
|
attr_accessor :grade
|
27
27
|
|
28
|
+
# 下位のチームを含めるかどうか
|
29
|
+
attr_accessor :descendants
|
30
|
+
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'id' => :'id',
|
32
35
|
:'user' => :'user',
|
33
36
|
:'team' => :'team',
|
34
|
-
:'grade' => :'grade'
|
37
|
+
:'grade' => :'grade',
|
38
|
+
:'descendants' => :'descendants'
|
35
39
|
}
|
36
40
|
end
|
37
41
|
|
@@ -46,7 +50,8 @@ module Kickflow
|
|
46
50
|
:'id' => :'String',
|
47
51
|
:'user' => :'User',
|
48
52
|
:'team' => :'Team',
|
49
|
-
:'grade' => :'Grade'
|
53
|
+
:'grade' => :'Grade',
|
54
|
+
:'descendants' => :'Boolean'
|
50
55
|
}
|
51
56
|
end
|
52
57
|
|
@@ -55,7 +60,7 @@ module Kickflow
|
|
55
60
|
Set.new([
|
56
61
|
:'user',
|
57
62
|
:'team',
|
58
|
-
:'grade'
|
63
|
+
:'grade',
|
59
64
|
])
|
60
65
|
end
|
61
66
|
|
@@ -97,6 +102,12 @@ module Kickflow
|
|
97
102
|
else
|
98
103
|
self.grade = nil
|
99
104
|
end
|
105
|
+
|
106
|
+
if attributes.key?(:'descendants')
|
107
|
+
self.descendants = attributes[:'descendants']
|
108
|
+
else
|
109
|
+
self.descendants = nil
|
110
|
+
end
|
100
111
|
end
|
101
112
|
|
102
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -108,6 +119,10 @@ module Kickflow
|
|
108
119
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
109
120
|
end
|
110
121
|
|
122
|
+
if @descendants.nil?
|
123
|
+
invalid_properties.push('invalid value for "descendants", descendants cannot be nil.')
|
124
|
+
end
|
125
|
+
|
111
126
|
invalid_properties
|
112
127
|
end
|
113
128
|
|
@@ -116,6 +131,7 @@ module Kickflow
|
|
116
131
|
def valid?
|
117
132
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
118
133
|
return false if @id.nil?
|
134
|
+
return false if @descendants.nil?
|
119
135
|
true
|
120
136
|
end
|
121
137
|
|
@@ -127,7 +143,8 @@ module Kickflow
|
|
127
143
|
id == o.id &&
|
128
144
|
user == o.user &&
|
129
145
|
team == o.team &&
|
130
|
-
grade == o.grade
|
146
|
+
grade == o.grade &&
|
147
|
+
descendants == o.descendants
|
131
148
|
end
|
132
149
|
|
133
150
|
# @see the `==` method
|
@@ -139,7 +156,7 @@ module Kickflow
|
|
139
156
|
# Calculates hash code according to all attributes.
|
140
157
|
# @return [Integer] Hash code
|
141
158
|
def hash
|
142
|
-
[id, user, team, grade].hash
|
159
|
+
[id, user, team, grade, descendants].hash
|
143
160
|
end
|
144
161
|
|
145
162
|
# Builds the object from hash
|
@@ -49,18 +49,6 @@ module Kickflow
|
|
49
49
|
# タイトルの説明
|
50
50
|
attr_accessor :title_description
|
51
51
|
|
52
|
-
# 明細を持つ場合true。このフィールドは廃止予定です。代わりにsectionListのsectionTypeを参照してください。
|
53
|
-
attr_accessor :slip
|
54
|
-
|
55
|
-
# 明細タイトル。このフィールドは廃止予定です。代わりにsectionListのtitleを参照してください。
|
56
|
-
attr_accessor :slip_title
|
57
|
-
|
58
|
-
# 明細の説明。このフィールドは廃止予定です。代わりにsectionListのdescriptionを参照してください。
|
59
|
-
attr_accessor :slip_description
|
60
|
-
|
61
|
-
# 明細の位置。このフィールドは廃止予定です。代わりにsectionListを参照してください。
|
62
|
-
attr_accessor :slip_position
|
63
|
-
|
64
52
|
# チケット番号のフォーマット
|
65
53
|
attr_accessor :ticket_number_format
|
66
54
|
|
@@ -127,10 +115,6 @@ module Kickflow
|
|
127
115
|
:'visible_to_manager' => :'visibleToManager',
|
128
116
|
:'visible_to_team_members' => :'visibleToTeamMembers',
|
129
117
|
:'title_description' => :'titleDescription',
|
130
|
-
:'slip' => :'slip',
|
131
|
-
:'slip_title' => :'slipTitle',
|
132
|
-
:'slip_description' => :'slipDescription',
|
133
|
-
:'slip_position' => :'slipPosition',
|
134
118
|
:'ticket_number_format' => :'ticketNumberFormat',
|
135
119
|
:'overwritable' => :'overwritable',
|
136
120
|
:'created_at' => :'createdAt',
|
@@ -164,10 +148,6 @@ module Kickflow
|
|
164
148
|
:'visible_to_manager' => :'String',
|
165
149
|
:'visible_to_team_members' => :'Boolean',
|
166
150
|
:'title_description' => :'String',
|
167
|
-
:'slip' => :'Boolean',
|
168
|
-
:'slip_title' => :'String',
|
169
|
-
:'slip_description' => :'String',
|
170
|
-
:'slip_position' => :'String',
|
171
151
|
:'ticket_number_format' => :'String',
|
172
152
|
:'overwritable' => :'Boolean',
|
173
153
|
:'created_at' => :'String',
|
@@ -186,8 +166,6 @@ module Kickflow
|
|
186
166
|
def self.openapi_nullable
|
187
167
|
Set.new([
|
188
168
|
:'title_description',
|
189
|
-
:'slip_title',
|
190
|
-
:'slip_description',
|
191
169
|
:'ticket_number_format',
|
192
170
|
:'title_formula',
|
193
171
|
:'author',
|
@@ -276,30 +254,6 @@ module Kickflow
|
|
276
254
|
self.title_description = nil
|
277
255
|
end
|
278
256
|
|
279
|
-
if attributes.key?(:'slip')
|
280
|
-
self.slip = attributes[:'slip']
|
281
|
-
else
|
282
|
-
self.slip = false
|
283
|
-
end
|
284
|
-
|
285
|
-
if attributes.key?(:'slip_title')
|
286
|
-
self.slip_title = attributes[:'slip_title']
|
287
|
-
else
|
288
|
-
self.slip_title = nil
|
289
|
-
end
|
290
|
-
|
291
|
-
if attributes.key?(:'slip_description')
|
292
|
-
self.slip_description = attributes[:'slip_description']
|
293
|
-
else
|
294
|
-
self.slip_description = nil
|
295
|
-
end
|
296
|
-
|
297
|
-
if attributes.key?(:'slip_position')
|
298
|
-
self.slip_position = attributes[:'slip_position']
|
299
|
-
else
|
300
|
-
self.slip_position = nil
|
301
|
-
end
|
302
|
-
|
303
257
|
if attributes.key?(:'ticket_number_format')
|
304
258
|
self.ticket_number_format = attributes[:'ticket_number_format']
|
305
259
|
else
|
@@ -419,14 +373,6 @@ module Kickflow
|
|
419
373
|
invalid_properties.push('invalid value for "visible_to_team_members", visible_to_team_members cannot be nil.')
|
420
374
|
end
|
421
375
|
|
422
|
-
if @slip.nil?
|
423
|
-
invalid_properties.push('invalid value for "slip", slip cannot be nil.')
|
424
|
-
end
|
425
|
-
|
426
|
-
if @slip_position.nil?
|
427
|
-
invalid_properties.push('invalid value for "slip_position", slip_position cannot be nil.')
|
428
|
-
end
|
429
|
-
|
430
376
|
if @overwritable.nil?
|
431
377
|
invalid_properties.push('invalid value for "overwritable", overwritable cannot be nil.')
|
432
378
|
end
|
@@ -473,10 +419,6 @@ module Kickflow
|
|
473
419
|
visible_to_manager_validator = EnumAttributeValidator.new('String', ["none", "direct", "all"])
|
474
420
|
return false unless visible_to_manager_validator.valid?(@visible_to_manager)
|
475
421
|
return false if @visible_to_team_members.nil?
|
476
|
-
return false if @slip.nil?
|
477
|
-
return false if @slip_position.nil?
|
478
|
-
slip_position_validator = EnumAttributeValidator.new('String', ["top", "bottom"])
|
479
|
-
return false unless slip_position_validator.valid?(@slip_position)
|
480
422
|
return false if @overwritable.nil?
|
481
423
|
return false if @created_at.nil?
|
482
424
|
return false if @updated_at.nil?
|
@@ -523,16 +465,6 @@ module Kickflow
|
|
523
465
|
@visible_to_manager = visible_to_manager
|
524
466
|
end
|
525
467
|
|
526
|
-
# Custom attribute writer method checking allowed values (enum).
|
527
|
-
# @param [Object] slip_position Object to be assigned
|
528
|
-
def slip_position=(slip_position)
|
529
|
-
validator = EnumAttributeValidator.new('String', ["top", "bottom"])
|
530
|
-
unless validator.valid?(slip_position)
|
531
|
-
fail ArgumentError, "invalid value for \"slip_position\", must be one of #{validator.allowable_values}."
|
532
|
-
end
|
533
|
-
@slip_position = slip_position
|
534
|
-
end
|
535
|
-
|
536
468
|
# Custom attribute writer method checking allowed values (enum).
|
537
469
|
# @param [Object] title_input_mode Object to be assigned
|
538
470
|
def title_input_mode=(title_input_mode)
|
@@ -559,10 +491,6 @@ module Kickflow
|
|
559
491
|
visible_to_manager == o.visible_to_manager &&
|
560
492
|
visible_to_team_members == o.visible_to_team_members &&
|
561
493
|
title_description == o.title_description &&
|
562
|
-
slip == o.slip &&
|
563
|
-
slip_title == o.slip_title &&
|
564
|
-
slip_description == o.slip_description &&
|
565
|
-
slip_position == o.slip_position &&
|
566
494
|
ticket_number_format == o.ticket_number_format &&
|
567
495
|
overwritable == o.overwritable &&
|
568
496
|
created_at == o.created_at &&
|
@@ -585,7 +513,7 @@ module Kickflow
|
|
585
513
|
# Calculates hash code according to all attributes.
|
586
514
|
# @return [Integer] Hash code
|
587
515
|
def hash
|
588
|
-
[id, code, version_id, version_number, name, description, status, public_ticket, visible_to_manager, visible_to_team_members, title_description,
|
516
|
+
[id, code, version_id, version_number, name, description, status, public_ticket, visible_to_manager, visible_to_team_members, title_description, ticket_number_format, overwritable, created_at, updated_at, title_input_mode, title_formula, allow_editing_of_viewers, author, version_author, folder, categories].hash
|
589
517
|
end
|
590
518
|
|
591
519
|
# Builds the object from hash
|
@@ -49,18 +49,6 @@ module Kickflow
|
|
49
49
|
# タイトルの説明
|
50
50
|
attr_accessor :title_description
|
51
51
|
|
52
|
-
# 明細を持つ場合true。このフィールドは廃止予定です。代わりにsectionListのsectionTypeを参照してください。
|
53
|
-
attr_accessor :slip
|
54
|
-
|
55
|
-
# 明細タイトル。このフィールドは廃止予定です。代わりにsectionListのtitleを参照してください。
|
56
|
-
attr_accessor :slip_title
|
57
|
-
|
58
|
-
# 明細の説明。このフィールドは廃止予定です。代わりにsectionListのdescriptionを参照してください。
|
59
|
-
attr_accessor :slip_description
|
60
|
-
|
61
|
-
# 明細の位置。このフィールドは廃止予定です。代わりにsectionListを参照してください。
|
62
|
-
attr_accessor :slip_position
|
63
|
-
|
64
52
|
# チケット番号のフォーマット
|
65
53
|
attr_accessor :ticket_number_format
|
66
54
|
|
@@ -94,12 +82,6 @@ module Kickflow
|
|
94
82
|
# セクション・明細を表すオブジェクトを画面に表示される順に格納した配列。
|
95
83
|
attr_accessor :section_list
|
96
84
|
|
97
|
-
# セクションの配列。このフィールドは廃止予定です。代わりにsectionListを参照してください。
|
98
|
-
attr_accessor :sections
|
99
|
-
|
100
|
-
# 明細フィールド
|
101
|
-
attr_accessor :slip_fields
|
102
|
-
|
103
85
|
# ワークフロー単位のチケット閲覧者
|
104
86
|
attr_accessor :ticket_viewers
|
105
87
|
|
@@ -144,10 +126,6 @@ module Kickflow
|
|
144
126
|
:'visible_to_manager' => :'visibleToManager',
|
145
127
|
:'visible_to_team_members' => :'visibleToTeamMembers',
|
146
128
|
:'title_description' => :'titleDescription',
|
147
|
-
:'slip' => :'slip',
|
148
|
-
:'slip_title' => :'slipTitle',
|
149
|
-
:'slip_description' => :'slipDescription',
|
150
|
-
:'slip_position' => :'slipPosition',
|
151
129
|
:'ticket_number_format' => :'ticketNumberFormat',
|
152
130
|
:'overwritable' => :'overwritable',
|
153
131
|
:'created_at' => :'createdAt',
|
@@ -160,8 +138,6 @@ module Kickflow
|
|
160
138
|
:'folder' => :'folder',
|
161
139
|
:'categories' => :'categories',
|
162
140
|
:'section_list' => :'sectionList',
|
163
|
-
:'sections' => :'sections',
|
164
|
-
:'slip_fields' => :'slipFields',
|
165
141
|
:'ticket_viewers' => :'ticketViewers',
|
166
142
|
:'cloud_sign_setting' => :'cloudSignSetting',
|
167
143
|
:'route_conditions' => :'routeConditions'
|
@@ -187,10 +163,6 @@ module Kickflow
|
|
187
163
|
:'visible_to_manager' => :'String',
|
188
164
|
:'visible_to_team_members' => :'Boolean',
|
189
165
|
:'title_description' => :'String',
|
190
|
-
:'slip' => :'Boolean',
|
191
|
-
:'slip_title' => :'String',
|
192
|
-
:'slip_description' => :'String',
|
193
|
-
:'slip_position' => :'String',
|
194
166
|
:'ticket_number_format' => :'String',
|
195
167
|
:'overwritable' => :'Boolean',
|
196
168
|
:'created_at' => :'String',
|
@@ -203,8 +175,6 @@ module Kickflow
|
|
203
175
|
:'folder' => :'Folder',
|
204
176
|
:'categories' => :'Array<Category>',
|
205
177
|
:'section_list' => :'Array<SectionListItem>',
|
206
|
-
:'sections' => :'Array<Section>',
|
207
|
-
:'slip_fields' => :'Array<SlipFieldDetail>',
|
208
178
|
:'ticket_viewers' => :'Array<WorkflowTicketViewer>',
|
209
179
|
:'cloud_sign_setting' => :'WorkflowInTicketAllOfCloudSignSetting',
|
210
180
|
:'route_conditions' => :'Array<WorkflowRouteCondition>'
|
@@ -215,8 +185,6 @@ module Kickflow
|
|
215
185
|
def self.openapi_nullable
|
216
186
|
Set.new([
|
217
187
|
:'title_description',
|
218
|
-
:'slip_title',
|
219
|
-
:'slip_description',
|
220
188
|
:'ticket_number_format',
|
221
189
|
:'title_formula',
|
222
190
|
:'cloud_sign_setting',
|
@@ -311,30 +279,6 @@ module Kickflow
|
|
311
279
|
self.title_description = nil
|
312
280
|
end
|
313
281
|
|
314
|
-
if attributes.key?(:'slip')
|
315
|
-
self.slip = attributes[:'slip']
|
316
|
-
else
|
317
|
-
self.slip = false
|
318
|
-
end
|
319
|
-
|
320
|
-
if attributes.key?(:'slip_title')
|
321
|
-
self.slip_title = attributes[:'slip_title']
|
322
|
-
else
|
323
|
-
self.slip_title = nil
|
324
|
-
end
|
325
|
-
|
326
|
-
if attributes.key?(:'slip_description')
|
327
|
-
self.slip_description = attributes[:'slip_description']
|
328
|
-
else
|
329
|
-
self.slip_description = nil
|
330
|
-
end
|
331
|
-
|
332
|
-
if attributes.key?(:'slip_position')
|
333
|
-
self.slip_position = attributes[:'slip_position']
|
334
|
-
else
|
335
|
-
self.slip_position = nil
|
336
|
-
end
|
337
|
-
|
338
282
|
if attributes.key?(:'ticket_number_format')
|
339
283
|
self.ticket_number_format = attributes[:'ticket_number_format']
|
340
284
|
else
|
@@ -409,22 +353,6 @@ module Kickflow
|
|
409
353
|
end
|
410
354
|
end
|
411
355
|
|
412
|
-
if attributes.key?(:'sections')
|
413
|
-
if (value = attributes[:'sections']).is_a?(Array)
|
414
|
-
self.sections = value
|
415
|
-
end
|
416
|
-
else
|
417
|
-
self.sections = nil
|
418
|
-
end
|
419
|
-
|
420
|
-
if attributes.key?(:'slip_fields')
|
421
|
-
if (value = attributes[:'slip_fields']).is_a?(Array)
|
422
|
-
self.slip_fields = value
|
423
|
-
end
|
424
|
-
else
|
425
|
-
self.slip_fields = nil
|
426
|
-
end
|
427
|
-
|
428
356
|
if attributes.key?(:'ticket_viewers')
|
429
357
|
if (value = attributes[:'ticket_viewers']).is_a?(Array)
|
430
358
|
self.ticket_viewers = value
|
@@ -498,14 +426,6 @@ module Kickflow
|
|
498
426
|
invalid_properties.push('invalid value for "visible_to_team_members", visible_to_team_members cannot be nil.')
|
499
427
|
end
|
500
428
|
|
501
|
-
if @slip.nil?
|
502
|
-
invalid_properties.push('invalid value for "slip", slip cannot be nil.')
|
503
|
-
end
|
504
|
-
|
505
|
-
if @slip_position.nil?
|
506
|
-
invalid_properties.push('invalid value for "slip_position", slip_position cannot be nil.')
|
507
|
-
end
|
508
|
-
|
509
429
|
if @overwritable.nil?
|
510
430
|
invalid_properties.push('invalid value for "overwritable", overwritable cannot be nil.')
|
511
431
|
end
|
@@ -538,14 +458,6 @@ module Kickflow
|
|
538
458
|
invalid_properties.push('invalid value for "categories", categories cannot be nil.')
|
539
459
|
end
|
540
460
|
|
541
|
-
if @sections.nil?
|
542
|
-
invalid_properties.push('invalid value for "sections", sections cannot be nil.')
|
543
|
-
end
|
544
|
-
|
545
|
-
if @slip_fields.nil?
|
546
|
-
invalid_properties.push('invalid value for "slip_fields", slip_fields cannot be nil.')
|
547
|
-
end
|
548
|
-
|
549
461
|
if @ticket_viewers.nil?
|
550
462
|
invalid_properties.push('invalid value for "ticket_viewers", ticket_viewers cannot be nil.')
|
551
463
|
end
|
@@ -576,10 +488,6 @@ module Kickflow
|
|
576
488
|
visible_to_manager_validator = EnumAttributeValidator.new('String', ["none", "direct", "all"])
|
577
489
|
return false unless visible_to_manager_validator.valid?(@visible_to_manager)
|
578
490
|
return false if @visible_to_team_members.nil?
|
579
|
-
return false if @slip.nil?
|
580
|
-
return false if @slip_position.nil?
|
581
|
-
slip_position_validator = EnumAttributeValidator.new('String', ["top", "bottom"])
|
582
|
-
return false unless slip_position_validator.valid?(@slip_position)
|
583
491
|
return false if @overwritable.nil?
|
584
492
|
return false if @created_at.nil?
|
585
493
|
return false if @updated_at.nil?
|
@@ -590,8 +498,6 @@ module Kickflow
|
|
590
498
|
return false if @version_author.nil?
|
591
499
|
return false if @folder.nil?
|
592
500
|
return false if @categories.nil?
|
593
|
-
return false if @sections.nil?
|
594
|
-
return false if @slip_fields.nil?
|
595
501
|
return false if @ticket_viewers.nil?
|
596
502
|
return false if @route_conditions.nil?
|
597
503
|
true
|
@@ -632,16 +538,6 @@ module Kickflow
|
|
632
538
|
@visible_to_manager = visible_to_manager
|
633
539
|
end
|
634
540
|
|
635
|
-
# Custom attribute writer method checking allowed values (enum).
|
636
|
-
# @param [Object] slip_position Object to be assigned
|
637
|
-
def slip_position=(slip_position)
|
638
|
-
validator = EnumAttributeValidator.new('String', ["top", "bottom"])
|
639
|
-
unless validator.valid?(slip_position)
|
640
|
-
fail ArgumentError, "invalid value for \"slip_position\", must be one of #{validator.allowable_values}."
|
641
|
-
end
|
642
|
-
@slip_position = slip_position
|
643
|
-
end
|
644
|
-
|
645
541
|
# Custom attribute writer method checking allowed values (enum).
|
646
542
|
# @param [Object] title_input_mode Object to be assigned
|
647
543
|
def title_input_mode=(title_input_mode)
|
@@ -668,10 +564,6 @@ module Kickflow
|
|
668
564
|
visible_to_manager == o.visible_to_manager &&
|
669
565
|
visible_to_team_members == o.visible_to_team_members &&
|
670
566
|
title_description == o.title_description &&
|
671
|
-
slip == o.slip &&
|
672
|
-
slip_title == o.slip_title &&
|
673
|
-
slip_description == o.slip_description &&
|
674
|
-
slip_position == o.slip_position &&
|
675
567
|
ticket_number_format == o.ticket_number_format &&
|
676
568
|
overwritable == o.overwritable &&
|
677
569
|
created_at == o.created_at &&
|
@@ -684,8 +576,6 @@ module Kickflow
|
|
684
576
|
folder == o.folder &&
|
685
577
|
categories == o.categories &&
|
686
578
|
section_list == o.section_list &&
|
687
|
-
sections == o.sections &&
|
688
|
-
slip_fields == o.slip_fields &&
|
689
579
|
ticket_viewers == o.ticket_viewers &&
|
690
580
|
cloud_sign_setting == o.cloud_sign_setting &&
|
691
581
|
route_conditions == o.route_conditions
|
@@ -700,7 +590,7 @@ module Kickflow
|
|
700
590
|
# Calculates hash code according to all attributes.
|
701
591
|
# @return [Integer] Hash code
|
702
592
|
def hash
|
703
|
-
[id, code, version_id, version_number, name, description, status, public_ticket, visible_to_manager, visible_to_team_members, title_description,
|
593
|
+
[id, code, version_id, version_number, name, description, status, public_ticket, visible_to_manager, visible_to_team_members, title_description, ticket_number_format, overwritable, created_at, updated_at, title_input_mode, title_formula, allow_editing_of_viewers, author, version_author, folder, categories, section_list, ticket_viewers, cloud_sign_setting, route_conditions].hash
|
704
594
|
end
|
705
595
|
|
706
596
|
# Builds the object from hash
|