Class: GetStream::Generated::Models::UpdateChannelTypeResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/update_channel_type_response.rb

Overview

Basic response information

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ UpdateChannelTypeResponse

Initialize with attributes



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 140

def initialize(attributes = {})
  super(attributes)
  @automod = attributes.fetch(:automod) { attributes.fetch('automod', nil) }
  @automod_behavior = attributes.fetch(:automod_behavior) { attributes.fetch('automod_behavior', nil) }
  @connect_events = attributes.fetch(:connect_events) { attributes.fetch('connect_events', nil) }
  @count_messages = attributes.fetch(:count_messages) { attributes.fetch('count_messages', nil) }
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @custom_events = attributes.fetch(:custom_events) { attributes.fetch('custom_events', nil) }
  @delivery_events = attributes.fetch(:delivery_events) { attributes.fetch('delivery_events', nil) }
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @mark_messages_pending = attributes.fetch(:mark_messages_pending) { attributes.fetch('mark_messages_pending', nil) }
  @max_message_length = attributes.fetch(:max_message_length) { attributes.fetch('max_message_length', nil) }
  @message_retention = attributes.fetch(:message_retention) { attributes.fetch('message_retention', nil) }
  @mutes = attributes.fetch(:mutes) { attributes.fetch('mutes', nil) }
  @name = attributes.fetch(:name) { attributes.fetch('name', nil) }
  @polls = attributes.fetch(:polls) { attributes.fetch('polls', nil) }
  @push_notifications = attributes.fetch(:push_notifications) { attributes.fetch('push_notifications', nil) }
  @quotes = attributes.fetch(:quotes) { attributes.fetch('quotes', nil) }
  @reactions = attributes.fetch(:reactions) { attributes.fetch('reactions', nil) }
  @read_events = attributes.fetch(:read_events) { attributes.fetch('read_events', nil) }
  @reminders = attributes.fetch(:reminders) { attributes.fetch('reminders', nil) }
  @replies = attributes.fetch(:replies) { attributes.fetch('replies', nil) }
  @search = attributes.fetch(:search) { attributes.fetch('search', nil) }
  @shared_locations = attributes.fetch(:shared_locations) { attributes.fetch('shared_locations', nil) }
  @skip_last_msg_update_for_system_msgs = attributes.fetch(:skip_last_msg_update_for_system_msgs) { attributes.fetch('skip_last_msg_update_for_system_msgs', nil) }
  @typing_events = attributes.fetch(:typing_events) { attributes.fetch('typing_events', nil) }
  @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) }
  @uploads = attributes.fetch(:uploads) { attributes.fetch('uploads', nil) }
  @url_enrichment = attributes.fetch(:url_enrichment) { attributes.fetch('url_enrichment', nil) }
  @user_message_reminders = attributes.fetch(:user_message_reminders) { attributes.fetch('user_message_reminders', nil) }
  @voice_transcription = attributes.fetch(:voice_transcription) { attributes.fetch('voice_transcription', nil) }
  @commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) }
  @permissions = attributes.fetch(:permissions) { attributes.fetch('permissions', nil) }
  @grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
  @blocklist = attributes.fetch(:blocklist) { attributes.fetch('blocklist', nil) }
  @blocklist_behavior = attributes.fetch(:blocklist_behavior) { attributes.fetch('blocklist_behavior', nil) }
  @partition_size = attributes.fetch(:partition_size) { attributes.fetch('partition_size', nil) }
  @partition_ttl = attributes.fetch(:partition_ttl) { attributes.fetch('partition_ttl', nil) }
  @push_level = attributes.fetch(:push_level) { attributes.fetch('push_level', nil) }
  @allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
  @blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
  @mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
  @automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
  @chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
end

Instance Attribute Details

#allowed_flag_reasons ⇒ Array<String>

Returns:

  • (Array<String>)


125
126
127
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 125

def allowed_flag_reasons
  @allowed_flag_reasons
end

#automod ⇒ AutomodMode

Returns Automod level applied to a channel type.

Returns:

  • (AutomodMode) —

    Automod level applied to a channel type.



14
15
16
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 14

def automod
  @automod
end

#automod_behavior ⇒ ChannelModerationBehavior

Returns What automod or a blocklist does when it matches.

Returns:



17
18
19
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 17

def automod_behavior
  @automod_behavior
end

#automod_thresholds ⇒ Thresholds

Returns Sets thresholds for AI moderation.

Returns:

  • (Thresholds) —

    Sets thresholds for AI moderation



134
135
136
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 134

def automod_thresholds
  @automod_thresholds
end

#blocklist ⇒ String

Returns:

  • (String)


110
111
112
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 110

def blocklist
  @blocklist
end

#blocklist_behavior ⇒ ChannelModerationBehavior

Returns What automod or a blocklist does when it matches.

Returns:



113
114
115
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 113

def blocklist_behavior
  @blocklist_behavior
end

#blocklists ⇒ Array<BlockListOptions>

Returns:



128
129
130
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 128

def blocklists
  @blocklists
end

#chat_preferences ⇒ ChatPreferences

Returns:



137
138
139
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 137

def chat_preferences
  @chat_preferences
end

#commands ⇒ Array<String>

Returns:

  • (Array<String>)


101
102
103
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 101

def commands
  @commands
end

#connect_events ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 20

def connect_events
  @connect_events
end

#count_messages ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 23

def count_messages
  @count_messages
end

#created_at ⇒ DateTime

Returns:

  • (DateTime)


26
27
28
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 26

def created_at
  @created_at
end

#custom_events ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 29

def custom_events
  @custom_events
end

#delivery_events ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 32

def delivery_events
  @delivery_events
end

#duration ⇒ String

Returns Duration of the request in milliseconds.

Returns:

  • (String) —

    Duration of the request in milliseconds



35
36
37
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 35

def duration
  @duration
end

#grants ⇒ Hash<String, Array<String>>

Returns:

  • (Hash<String, Array<String>>)


107
108
109
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 107

def grants
  @grants
end

#mark_messages_pending ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 38

def mark_messages_pending
  @mark_messages_pending
end

#mark_types ⇒ Array<String>

Returns:

  • (Array<String>)


131
132
133
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 131

def mark_types
  @mark_types
end

#max_message_length ⇒ Integer

Returns:

  • (Integer)


41
42
43
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 41

def max_message_length
  @max_message_length
end

#message_retention ⇒ String

Returns:

  • (String)


44
45
46
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 44

def message_retention
  @message_retention
end

#mutes ⇒ Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 47

def mutes
  @mutes
end

#name ⇒ String

Returns:

  • (String)


50
51
52
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 50

def name
  @name
end

#partition_size ⇒ Integer

Returns:

  • (Integer)


116
117
118
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 116

def partition_size
  @partition_size
end

#partition_ttl ⇒ String

Returns:

  • (String)


119
120
121
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 119

def partition_ttl
  @partition_ttl
end

#permissions ⇒ Array<PolicyRequest>

Returns:



104
105
106
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 104

def permissions
  @permissions
end

#polls ⇒ Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 53

def polls
  @polls
end

#push_level ⇒ PushLevel

Returns Sets the push notification level for a channel type.

Returns:

  • (PushLevel) —

    Sets the push notification level for a channel type



122
123
124
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 122

def push_level
  @push_level
end

#push_notifications ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 56

def push_notifications
  @push_notifications
end

#quotes ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 59

def quotes
  @quotes
end

#reactions ⇒ Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 62

def reactions
  @reactions
end

#read_events ⇒ Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 65

def read_events
  @read_events
end

#reminders ⇒ Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 68

def reminders
  @reminders
end

#replies ⇒ Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 71

def replies
  @replies
end

#search ⇒ Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 74

def search
  @search
end

#shared_locations ⇒ Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 77

def shared_locations
  @shared_locations
end

#skip_last_msg_update_for_system_msgs ⇒ Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 80

def skip_last_msg_update_for_system_msgs
  @skip_last_msg_update_for_system_msgs
end

#typing_events ⇒ Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 83

def typing_events
  @typing_events
end

#updated_at ⇒ DateTime

Returns:

  • (DateTime)


86
87
88
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 86

def updated_at
  @updated_at
end

#uploads ⇒ Boolean

Returns:

  • (Boolean)


89
90
91
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 89

def uploads
  @uploads
end

#url_enrichment ⇒ Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 92

def url_enrichment
  @url_enrichment
end

#user_message_reminders ⇒ Boolean

Returns:

  • (Boolean)


95
96
97
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 95

def user_message_reminders
  @user_message_reminders
end

#voice_transcription ⇒ Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 98

def voice_transcription
  @voice_transcription
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/getstream_ruby/generated/models/update_channel_type_response.rb', line 187

def self.json_field_mappings
  {
    automod: 'automod',
    automod_behavior: 'automod_behavior',
    connect_events: 'connect_events',
    count_messages: 'count_messages',
    created_at: 'created_at',
    custom_events: 'custom_events',
    delivery_events: 'delivery_events',
    duration: 'duration',
    mark_messages_pending: 'mark_messages_pending',
    max_message_length: 'max_message_length',
    message_retention: 'message_retention',
    mutes: 'mutes',
    name: 'name',
    polls: 'polls',
    push_notifications: 'push_notifications',
    quotes: 'quotes',
    reactions: 'reactions',
    read_events: 'read_events',
    reminders: 'reminders',
    replies: 'replies',
    search: 'search',
    shared_locations: 'shared_locations',
    skip_last_msg_update_for_system_msgs: 'skip_last_msg_update_for_system_msgs',
    typing_events: 'typing_events',
    updated_at: 'updated_at',
    uploads: 'uploads',
    url_enrichment: 'url_enrichment',
    user_message_reminders: 'user_message_reminders',
    voice_transcription: 'voice_transcription',
    commands: 'commands',
    permissions: 'permissions',
    grants: 'grants',
    blocklist: 'blocklist',
    blocklist_behavior: 'blocklist_behavior',
    partition_size: 'partition_size',
    partition_ttl: 'partition_ttl',
    push_level: 'push_level',
    allowed_flag_reasons: 'allowed_flag_reasons',
    blocklists: 'blocklists',
    mark_types: 'mark_types',
    automod_thresholds: 'automod_thresholds',
    chat_preferences: 'chat_preferences'
  }
end