Class: GetStream::Generated::Models::CreateChannelTypeRequest

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

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 = {}) ⇒ CreateChannelTypeRequest

Initialize with attributes



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/getstream_ruby/generated/models/create_channel_type_request.rb', line 110

def initialize(attributes = {})
  super(attributes)
  @automod = attributes[:automod] || attributes['automod']
  @automod_behavior = attributes[:automod_behavior] || attributes['automod_behavior']
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length']
  @name = attributes[:name] || attributes['name']
  @blocklist = attributes[:blocklist] || attributes['blocklist'] || nil
  @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil
  @connect_events = attributes[:connect_events] || attributes['connect_events'] || nil
  @count_messages = attributes[:count_messages] || attributes['count_messages'] || nil
  @custom_events = attributes[:custom_events] || attributes['custom_events'] || nil
  @delivery_events = attributes[:delivery_events] || attributes['delivery_events'] || nil
  @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending'] || nil
  @message_retention = attributes[:message_retention] || attributes['message_retention'] || nil
  @mutes = attributes[:mutes] || attributes['mutes'] || nil
  @partition_size = attributes[:partition_size] || attributes['partition_size'] || nil
  @partition_ttl = attributes[:partition_ttl] || attributes['partition_ttl'] || nil
  @polls = attributes[:polls] || attributes['polls'] || nil
  @push_level = attributes[:push_level] || attributes['push_level'] || nil
  @push_notifications = attributes[:push_notifications] || attributes['push_notifications'] || nil
  @reactions = attributes[:reactions] || attributes['reactions'] || nil
  @read_events = attributes[:read_events] || attributes['read_events'] || nil
  @replies = attributes[:replies] || attributes['replies'] || nil
  @search = attributes[:search] || attributes['search'] || nil
  @shared_locations = attributes[:shared_locations] || attributes['shared_locations'] || nil
  @skip_last_msg_update_for_system_msgs = attributes[:skip_last_msg_update_for_system_msgs] || attributes['skip_last_msg_update_for_system_msgs'] || nil
  @typing_events = attributes[:typing_events] || attributes['typing_events'] || nil
  @uploads = attributes[:uploads] || attributes['uploads'] || nil
  @url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] || nil
  @user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] || nil
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
  @commands = attributes[:commands] || attributes['commands'] || nil
  @permissions = attributes[:permissions] || attributes['permissions'] || nil
  @grants = attributes[:grants] || attributes['grants'] || nil
end

Instance Attribute Details

#automodString

Returns Automod. One of: disabled, simple, AI.

Returns:

  • (String)

    Automod. One of: disabled, simple, AI



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

def automod
  @automod
end

#automod_behaviorString

Returns Automod behavior. One of: flag, block.

Returns:

  • (String)

    Automod behavior. One of: flag, block



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

def automod_behavior
  @automod_behavior
end

#blocklistString

Returns Blocklist.

Returns:

  • (String)

    Blocklist



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

def blocklist
  @blocklist
end

#blocklist_behaviorString

Returns Blocklist behavior. One of: flag, block, shadow_block.

Returns:

  • (String)

    Blocklist behavior. One of: flag, block, shadow_block



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

def blocklist_behavior
  @blocklist_behavior
end

#blocklistsArray<BlockListOptions>

Returns Blocklists.

Returns:



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

def blocklists
  @blocklists
end

#commandsArray<String>

Returns List of commands that channel supports.

Returns:

  • (Array<String>)

    List of commands that channel supports



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

def commands
  @commands
end

#connect_eventsBoolean

Returns Connect events.

Returns:

  • (Boolean)

    Connect events



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

def connect_events
  @connect_events
end

#count_messagesBoolean

Returns Count messages in channel.

Returns:

  • (Boolean)

    Count messages in channel.



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

def count_messages
  @count_messages
end

#custom_eventsBoolean

Returns Custom events.

Returns:

  • (Boolean)

    Custom events



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

def custom_events
  @custom_events
end

#delivery_eventsBoolean

Returns:

  • (Boolean)


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

def delivery_events
  @delivery_events
end

#grantsHash<String, Array<String>>

Returns List of grants for the channel type.

Returns:

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

    List of grants for the channel type



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

def grants
  @grants
end

#mark_messages_pendingBoolean

Returns Mark messages pending.

Returns:

  • (Boolean)

    Mark messages pending



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

def mark_messages_pending
  @mark_messages_pending
end

#max_message_lengthInteger

Returns Max message length.

Returns:

  • (Integer)

    Max message length



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

def max_message_length
  @max_message_length
end

#message_retentionString

Returns Message retention. One of: infinite, numeric.

Returns:

  • (String)

    Message retention. One of: infinite, numeric



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

def message_retention
  @message_retention
end

#mutesBoolean

Returns Mutes.

Returns:

  • (Boolean)

    Mutes



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

def mutes
  @mutes
end

#nameString

Returns Channel type name.

Returns:

  • (String)

    Channel type name



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

def name
  @name
end

#partition_sizeInteger

Returns Partition size.

Returns:

  • (Integer)

    Partition size



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

def partition_size
  @partition_size
end

#partition_ttlString

Returns Partition TTL.

Returns:

  • (String)

    Partition TTL



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

def partition_ttl
  @partition_ttl
end

#permissionsArray<PolicyRequest>

Returns List of permissions for the channel type.

Returns:

  • (Array<PolicyRequest>)

    List of permissions for the channel type



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

def permissions
  @permissions
end

#pollsBoolean

Returns Polls.

Returns:

  • (Boolean)

    Polls



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

def polls
  @polls
end

#push_levelString

Returns Default push notification level for the channel type. One of: all, all_mentions, mentions, direct_mentions, none.

Returns:

  • (String)

    Default push notification level for the channel type. One of: all, all_mentions, mentions, direct_mentions, none



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

def push_level
  @push_level
end

#push_notificationsBoolean

Returns Push notifications.

Returns:

  • (Boolean)

    Push notifications



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

def push_notifications
  @push_notifications
end

#reactionsBoolean

Returns Reactions.

Returns:

  • (Boolean)

    Reactions



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

def reactions
  @reactions
end

#read_eventsBoolean

Returns Read events.

Returns:

  • (Boolean)

    Read events



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

def read_events
  @read_events
end

#repliesBoolean

Returns Replies.

Returns:

  • (Boolean)

    Replies



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

def replies
  @replies
end

#searchBoolean

Returns Search.

Returns:

  • (Boolean)

    Search



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

def search
  @search
end

#shared_locationsBoolean

Returns Enables shared location messages.

Returns:

  • (Boolean)

    Enables shared location messages



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

def shared_locations
  @shared_locations
end

#skip_last_msg_update_for_system_msgsBoolean

Returns:

  • (Boolean)


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

def skip_last_msg_update_for_system_msgs
  @skip_last_msg_update_for_system_msgs
end

#typing_eventsBoolean

Returns Typing events.

Returns:

  • (Boolean)

    Typing events



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

def typing_events
  @typing_events
end

#uploadsBoolean

Returns Uploads.

Returns:

  • (Boolean)

    Uploads



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

def uploads
  @uploads
end

#url_enrichmentBoolean

Returns URL enrichment.

Returns:

  • (Boolean)

    URL enrichment



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

def url_enrichment
  @url_enrichment
end

#user_message_remindersBoolean

Returns:

  • (Boolean)


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

def user_message_reminders
  @user_message_reminders
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



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
# File 'lib/getstream_ruby/generated/models/create_channel_type_request.rb', line 147

def self.json_field_mappings
  {
    automod: 'automod',
    automod_behavior: 'automod_behavior',
    max_message_length: 'max_message_length',
    name: 'name',
    blocklist: 'blocklist',
    blocklist_behavior: 'blocklist_behavior',
    connect_events: 'connect_events',
    count_messages: 'count_messages',
    custom_events: 'custom_events',
    delivery_events: 'delivery_events',
    mark_messages_pending: 'mark_messages_pending',
    message_retention: 'message_retention',
    mutes: 'mutes',
    partition_size: 'partition_size',
    partition_ttl: 'partition_ttl',
    polls: 'polls',
    push_level: 'push_level',
    push_notifications: 'push_notifications',
    reactions: 'reactions',
    read_events: 'read_events',
    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',
    uploads: 'uploads',
    url_enrichment: 'url_enrichment',
    user_message_reminders: 'user_message_reminders',
    blocklists: 'blocklists',
    commands: 'commands',
    permissions: 'permissions',
    grants: 'grants'
  }
end