Class: GetStream::Generated::Models::BulkActionAppealsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::BulkActionAppealsRequest
- Defined in:
- lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb
Instance Attribute Summary collapse
-
#action_type ⇒ String
Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal.
-
#appeal_ids ⇒ Array<String>
List of appeal UUIDs to process.
-
#mark_reviewed ⇒ MarkReviewedRequestPayload
Configuration for mark reviewed action.
-
#reject_appeal ⇒ RejectAppealRequestPayload
Configuration for rejecting an appeal.
-
#restore ⇒ RestoreActionRequestPayload
Configuration for restore action.
-
#unban ⇒ UnbanActionRequestPayload
Configuration for unban moderation action.
-
#unblock ⇒ UnblockActionRequestPayload
Configuration for unblock action.
-
#user ⇒ UserRequest
User request object.
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BulkActionAppealsRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ BulkActionAppealsRequest
Initialize with attributes
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 41 def initialize(attributes = {}) super(attributes) @action_type = attributes[:action_type] || attributes['action_type'] @appeal_ids = attributes[:appeal_ids] || attributes['appeal_ids'] @user_id = attributes[:user_id] || attributes['user_id'] || nil @mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil @reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil @restore = attributes[:restore] || attributes['restore'] || nil @unban = attributes[:unban] || attributes['unban'] || nil @unblock = attributes[:unblock] || attributes['unblock'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#action_type ⇒ String
Returns Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 14 def action_type @action_type end |
#appeal_ids ⇒ Array<String>
Returns List of appeal UUIDs to process.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 17 def appeal_ids @appeal_ids end |
#mark_reviewed ⇒ MarkReviewedRequestPayload
Returns Configuration for mark reviewed action.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 23 def mark_reviewed @mark_reviewed end |
#reject_appeal ⇒ RejectAppealRequestPayload
Returns Configuration for rejecting an appeal.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 26 def reject_appeal @reject_appeal end |
#restore ⇒ RestoreActionRequestPayload
Returns Configuration for restore action.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 29 def restore @restore end |
#unban ⇒ UnbanActionRequestPayload
Returns Configuration for unban moderation action.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 32 def unban @unban end |
#unblock ⇒ UnblockActionRequestPayload
Returns Configuration for unblock action.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 35 def unblock @unblock end |
#user ⇒ UserRequest
Returns User request object.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 38 def user @user end |
#user_id ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 20 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 55 def self.json_field_mappings { action_type: 'action_type', appeal_ids: 'appeal_ids', user_id: 'user_id', mark_reviewed: 'mark_reviewed', reject_appeal: 'reject_appeal', restore: 'restore', unban: 'unban', unblock: 'unblock', user: 'user' } end |