Class: GetStream::Generated::Models::AppResponseFields

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/app_response_fields.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 = {}) ⇒ AppResponseFields

Initialize with attributes



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
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
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 170

def initialize(attributes = {})
  super(attributes)
  @allow_multi_user_devices = attributes[:allow_multi_user_devices] || attributes['allow_multi_user_devices']
  @async_url_enrich_enabled = attributes[:async_url_enrich_enabled] || attributes['async_url_enrich_enabled']
  @auto_translation_enabled = attributes[:auto_translation_enabled] || attributes['auto_translation_enabled']
  @campaign_enabled = attributes[:campaign_enabled] || attributes['campaign_enabled']
  @cdn_expiration_seconds = attributes[:cdn_expiration_seconds] || attributes['cdn_expiration_seconds']
  @custom_action_handler_url = attributes[:custom_action_handler_url] || attributes['custom_action_handler_url']
  @disable_auth_checks = attributes[:disable_auth_checks] || attributes['disable_auth_checks']
  @disable_permissions_checks = attributes[:disable_permissions_checks] || attributes['disable_permissions_checks']
  @enforce_unique_usernames = attributes[:enforce_unique_usernames] || attributes['enforce_unique_usernames']
  @guest_user_creation_disabled = attributes[:guest_user_creation_disabled] || attributes['guest_user_creation_disabled']
  @id = attributes[:id] || attributes['id']
  @image_moderation_enabled = attributes[:image_moderation_enabled] || attributes['image_moderation_enabled']
  @max_aggregated_activities_length = attributes[:max_aggregated_activities_length] || attributes['max_aggregated_activities_length']
  @moderation_bulk_submit_action_enabled = attributes[:moderation_bulk_submit_action_enabled] || attributes['moderation_bulk_submit_action_enabled']
  @moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled']
  @moderation_llm_configurability_enabled = attributes[:moderation_llm_configurability_enabled] || attributes['moderation_llm_configurability_enabled']
  @moderation_multitenant_blocklist_enabled = attributes[:moderation_multitenant_blocklist_enabled] || attributes['moderation_multitenant_blocklist_enabled']
  @moderation_webhook_url = attributes[:moderation_webhook_url] || attributes['moderation_webhook_url']
  @multi_tenant_enabled = attributes[:multi_tenant_enabled] || attributes['multi_tenant_enabled']
  @name = attributes[:name] || attributes['name']
  @organization = attributes[:organization] || attributes['organization']
  @permission_version = attributes[:permission_version] || attributes['permission_version']
  @placement = attributes[:placement] || attributes['placement']
  @reminders_interval = attributes[:reminders_interval] || attributes['reminders_interval']
  @sns_key = attributes[:sns_key] || attributes['sns_key']
  @sns_secret = attributes[:sns_secret] || attributes['sns_secret']
  @sns_topic_arn = attributes[:sns_topic_arn] || attributes['sns_topic_arn']
  @sqs_key = attributes[:sqs_key] || attributes['sqs_key']
  @sqs_secret = attributes[:sqs_secret] || attributes['sqs_secret']
  @sqs_url = attributes[:sqs_url] || attributes['sqs_url']
  @suspended = attributes[:suspended] || attributes['suspended']
  @suspended_explanation = attributes[:suspended_explanation] || attributes['suspended_explanation']
  @use_hook_v2 = attributes[:use_hook_v2] || attributes['use_hook_v2']
  @user_response_time_enabled = attributes[:user_response_time_enabled] || attributes['user_response_time_enabled']
  @webhook_url = attributes[:webhook_url] || attributes['webhook_url']
  @event_hooks = attributes[:event_hooks] || attributes['event_hooks']
  @user_search_disallowed_roles = attributes[:user_search_disallowed_roles] || attributes['user_search_disallowed_roles']
  @webhook_events = attributes[:webhook_events] || attributes['webhook_events']
  @call_types = attributes[:call_types] || attributes['call_types']
  @channel_configs = attributes[:channel_configs] || attributes['channel_configs']
  @file_upload_config = attributes[:file_upload_config] || attributes['file_upload_config']
  @grants = attributes[:grants] || attributes['grants']
  @image_upload_config = attributes[:image_upload_config] || attributes['image_upload_config']
  @policies = attributes[:policies] || attributes['policies']
  @push_notifications = attributes[:push_notifications] || attributes['push_notifications']
  @before_message_send_hook_url = attributes[:before_message_send_hook_url] || attributes['before_message_send_hook_url'] || nil
  @revoke_tokens_issued_before = attributes[:revoke_tokens_issued_before] || attributes['revoke_tokens_issued_before'] || nil
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
  @geofences = attributes[:geofences] || attributes['geofences'] || nil
  @image_moderation_labels = attributes[:image_moderation_labels] || attributes['image_moderation_labels'] || nil
  @datadog_info = attributes[:datadog_info] || attributes['datadog_info'] || nil
  @moderation_dashboard_preferences = attributes[:moderation_dashboard_preferences] || attributes['moderation_dashboard_preferences'] || nil
end

Instance Attribute Details

#allow_multi_user_devicesBoolean

Returns:

  • (Boolean)


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

def allow_multi_user_devices
  @allow_multi_user_devices
end

#allowed_flag_reasonsArray<String>

Returns:

  • (Array<String>)


155
156
157
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 155

def allowed_flag_reasons
  @allowed_flag_reasons
end

#async_url_enrich_enabledBoolean

Returns:

  • (Boolean)


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

def async_url_enrich_enabled
  @async_url_enrich_enabled
end

#auto_translation_enabledBoolean

Returns:

  • (Boolean)


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

def auto_translation_enabled
  @auto_translation_enabled
end

#before_message_send_hook_urlString

Returns:

  • (String)


149
150
151
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 149

def before_message_send_hook_url
  @before_message_send_hook_url
end

#call_typesHash<String, CallType>

Returns:



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

def call_types
  @call_types
end

#campaign_enabledBoolean

Returns:

  • (Boolean)


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

def campaign_enabled
  @campaign_enabled
end

#cdn_expiration_secondsInteger

Returns:

  • (Integer)


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

def cdn_expiration_seconds
  @cdn_expiration_seconds
end

#channel_configsHash<String, ChannelConfig>

Returns:



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

def channel_configs
  @channel_configs
end

#custom_action_handler_urlString

Returns:

  • (String)


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

def custom_action_handler_url
  @custom_action_handler_url
end

#datadog_infoDataDogInfo

Returns:



164
165
166
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 164

def datadog_info
  @datadog_info
end

#disable_auth_checksBoolean

Returns:

  • (Boolean)


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

def disable_auth_checks
  @disable_auth_checks
end

#disable_permissions_checksBoolean

Returns:

  • (Boolean)


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

def disable_permissions_checks
  @disable_permissions_checks
end

#enforce_unique_usernamesString

Returns:

  • (String)


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

def enforce_unique_usernames
  @enforce_unique_usernames
end

#event_hooksArray<EventHook>

Returns:



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

def event_hooks
  @event_hooks
end

#file_upload_configFileUploadConfig

Returns:



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

def file_upload_config
  @file_upload_config
end

#geofencesArray<GeofenceResponse>

Returns:



158
159
160
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 158

def geofences
  @geofences
end

#grantsHash<String, Array<String>>

Returns:

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


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

def grants
  @grants
end

#guest_user_creation_disabledBoolean

Returns:

  • (Boolean)


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

def guest_user_creation_disabled
  @guest_user_creation_disabled
end

#idInteger

Returns:

  • (Integer)


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

def id
  @id
end

#image_moderation_enabledBoolean

Returns:

  • (Boolean)


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

def image_moderation_enabled
  @image_moderation_enabled
end

#image_moderation_labelsArray<String>

Returns:

  • (Array<String>)


161
162
163
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 161

def image_moderation_labels
  @image_moderation_labels
end

#image_upload_configFileUploadConfig

Returns:



140
141
142
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 140

def image_upload_config
  @image_upload_config
end

#max_aggregated_activities_lengthInteger

Returns:

  • (Integer)


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

def max_aggregated_activities_length
  @max_aggregated_activities_length
end

#moderation_bulk_submit_action_enabledBoolean

Returns:

  • (Boolean)


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

def moderation_bulk_submit_action_enabled
  @moderation_bulk_submit_action_enabled
end

#moderation_dashboard_preferencesModerationDashboardPreferences



167
168
169
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 167

def moderation_dashboard_preferences
  @moderation_dashboard_preferences
end

#moderation_enabledBoolean

Returns:

  • (Boolean)


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

def moderation_enabled
  @moderation_enabled
end

#moderation_llm_configurability_enabledBoolean

Returns:

  • (Boolean)


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

def moderation_llm_configurability_enabled
  @moderation_llm_configurability_enabled
end

#moderation_multitenant_blocklist_enabledBoolean

Returns:

  • (Boolean)


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

def moderation_multitenant_blocklist_enabled
  @moderation_multitenant_blocklist_enabled
end

#moderation_webhook_urlString

Returns:

  • (String)


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

def moderation_webhook_url
  @moderation_webhook_url
end

#multi_tenant_enabledBoolean

Returns:

  • (Boolean)


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

def multi_tenant_enabled
  @multi_tenant_enabled
end

#nameString

Returns:

  • (String)


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

def name
  @name
end

#organizationString

Returns:

  • (String)


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

def organization
  @organization
end

#permission_versionString

Returns:

  • (String)


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

def permission_version
  @permission_version
end

#placementString

Returns:

  • (String)


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

def placement
  @placement
end

#policiesHash<String, Array<Policy>>

Returns:

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


143
144
145
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 143

def policies
  @policies
end

#push_notificationsPushNotificationFields



146
147
148
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 146

def push_notifications
  @push_notifications
end

#reminders_intervalInteger

Returns:

  • (Integer)


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

def reminders_interval
  @reminders_interval
end

#revoke_tokens_issued_beforeDateTime

Returns:

  • (DateTime)


152
153
154
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 152

def revoke_tokens_issued_before
  @revoke_tokens_issued_before
end

#sns_keyString

Returns:

  • (String)


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

def sns_key
  @sns_key
end

#sns_secretString

Returns:

  • (String)


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

def sns_secret
  @sns_secret
end

#sns_topic_arnString

Returns:

  • (String)


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

def sns_topic_arn
  @sns_topic_arn
end

#sqs_keyString

Returns:

  • (String)


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

def sqs_key
  @sqs_key
end

#sqs_secretString

Returns:

  • (String)


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

def sqs_secret
  @sqs_secret
end

#sqs_urlString

Returns:

  • (String)


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

def sqs_url
  @sqs_url
end

#suspendedBoolean

Returns:

  • (Boolean)


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

def suspended
  @suspended
end

#suspended_explanationString

Returns:

  • (String)


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

def suspended_explanation
  @suspended_explanation
end

#use_hook_v2Boolean

Returns:

  • (Boolean)


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

def use_hook_v2
  @use_hook_v2
end

#user_response_time_enabledBoolean

Returns:

  • (Boolean)


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

def user_response_time_enabled
  @user_response_time_enabled
end

#user_search_disallowed_rolesArray<String>

Returns:

  • (Array<String>)


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

def user_search_disallowed_roles
  @user_search_disallowed_roles
end

#webhook_eventsArray<String>

Returns:

  • (Array<String>)


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

def webhook_events
  @webhook_events
end

#webhook_urlString

Returns:

  • (String)


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

def webhook_url
  @webhook_url
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 227

def self.json_field_mappings
  {
    allow_multi_user_devices: 'allow_multi_user_devices',
    async_url_enrich_enabled: 'async_url_enrich_enabled',
    auto_translation_enabled: 'auto_translation_enabled',
    campaign_enabled: 'campaign_enabled',
    cdn_expiration_seconds: 'cdn_expiration_seconds',
    custom_action_handler_url: 'custom_action_handler_url',
    disable_auth_checks: 'disable_auth_checks',
    disable_permissions_checks: 'disable_permissions_checks',
    enforce_unique_usernames: 'enforce_unique_usernames',
    guest_user_creation_disabled: 'guest_user_creation_disabled',
    id: 'id',
    image_moderation_enabled: 'image_moderation_enabled',
    max_aggregated_activities_length: 'max_aggregated_activities_length',
    moderation_bulk_submit_action_enabled: 'moderation_bulk_submit_action_enabled',
    moderation_enabled: 'moderation_enabled',
    moderation_llm_configurability_enabled: 'moderation_llm_configurability_enabled',
    moderation_multitenant_blocklist_enabled: 'moderation_multitenant_blocklist_enabled',
    moderation_webhook_url: 'moderation_webhook_url',
    multi_tenant_enabled: 'multi_tenant_enabled',
    name: 'name',
    organization: 'organization',
    permission_version: 'permission_version',
    placement: 'placement',
    reminders_interval: 'reminders_interval',
    sns_key: 'sns_key',
    sns_secret: 'sns_secret',
    sns_topic_arn: 'sns_topic_arn',
    sqs_key: 'sqs_key',
    sqs_secret: 'sqs_secret',
    sqs_url: 'sqs_url',
    suspended: 'suspended',
    suspended_explanation: 'suspended_explanation',
    use_hook_v2: 'use_hook_v2',
    user_response_time_enabled: 'user_response_time_enabled',
    webhook_url: 'webhook_url',
    event_hooks: 'event_hooks',
    user_search_disallowed_roles: 'user_search_disallowed_roles',
    webhook_events: 'webhook_events',
    call_types: 'call_types',
    channel_configs: 'channel_configs',
    file_upload_config: 'file_upload_config',
    grants: 'grants',
    image_upload_config: 'image_upload_config',
    policies: 'policies',
    push_notifications: 'push_notifications',
    before_message_send_hook_url: 'before_message_send_hook_url',
    revoke_tokens_issued_before: 'revoke_tokens_issued_before',
    allowed_flag_reasons: 'allowed_flag_reasons',
    geofences: 'geofences',
    image_moderation_labels: 'image_moderation_labels',
    datadog_info: 'datadog_info',
    moderation_dashboard_preferences: 'moderation_dashboard_preferences'
  }
end