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



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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 191

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']
  @feed_audit_logs_enabled = attributes[:feed_audit_logs_enabled] || attributes['feed_audit_logs_enabled']
  @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_audio_call_moderation_enabled = attributes[:moderation_audio_call_moderation_enabled] || attributes['moderation_audio_call_moderation_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_video_call_moderation_enabled = attributes[:moderation_video_call_moderation_enabled] || attributes['moderation_video_call_moderation_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_attempt_timeout_ms = attributes[:before_message_send_hook_attempt_timeout_ms] || attributes['before_message_send_hook_attempt_timeout_ms'] || nil
  @before_message_send_hook_url = attributes[:before_message_send_hook_url] || attributes['before_message_send_hook_url'] || nil
  @moderation_onboarding_complete = attributes[:moderation_onboarding_complete] || attributes['moderation_onboarding_complete'] || nil
  @moderation_s3_image_access_role_arn = attributes[:moderation_s3_image_access_role_arn] || attributes['moderation_s3_image_access_role_arn'] || nil
  @revoke_tokens_issued_before = attributes[:revoke_tokens_issued_before] || attributes['revoke_tokens_issued_before'] || nil
  @video_primary_use_case = attributes[:video_primary_use_case] || attributes['video_primary_use_case'] || 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
  @activity_metrics_config = attributes[:activity_metrics_config] || attributes['activity_metrics_config'] || 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

#activity_metrics_config ⇒ Hash<String, Integer>

Returns:

  • (Hash<String, Integer>)


182
183
184
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 182

def activity_metrics_config
  @activity_metrics_config
end

#allow_multi_user_devices ⇒ Boolean

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_reasons ⇒ Array<String>

Returns:

  • (Array<String>)


173
174
175
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 173

def allowed_flag_reasons
  @allowed_flag_reasons
end

#async_url_enrich_enabled ⇒ Boolean

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_enabled ⇒ Boolean

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_attempt_timeout_ms ⇒ Integer

Returns:

  • (Integer)


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

def before_message_send_hook_attempt_timeout_ms
  @before_message_send_hook_attempt_timeout_ms
end

#before_message_send_hook_url ⇒ String

Returns:

  • (String)


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

def before_message_send_hook_url
  @before_message_send_hook_url
end

#call_types ⇒ Hash<String, CallType>

Returns:



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

def call_types
  @call_types
end

#campaign_enabled ⇒ Boolean

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_seconds ⇒ Integer

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_configs ⇒ Hash<String, ChannelConfig>

Returns:



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

def channel_configs
  @channel_configs
end

#custom_action_handler_url ⇒ String

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_info ⇒ DataDogInfo

Returns:



185
186
187
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 185

def datadog_info
  @datadog_info
end

#disable_auth_checks ⇒ Boolean

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_checks ⇒ Boolean

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_usernames ⇒ String

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_hooks ⇒ Array<EventHook>

Returns:



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

def event_hooks
  @event_hooks
end

#feed_audit_logs_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def feed_audit_logs_enabled
  @feed_audit_logs_enabled
end

#file_upload_config ⇒ FileUploadConfig

Returns:



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

def file_upload_config
  @file_upload_config
end

#geofences ⇒ Array<GeofenceResponse>

Returns:



176
177
178
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 176

def geofences
  @geofences
end

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

Returns:

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


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

def grants
  @grants
end

#guest_user_creation_disabled ⇒ Boolean

Returns:

  • (Boolean)


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

def guest_user_creation_disabled
  @guest_user_creation_disabled
end

#id ⇒ Integer

Returns:

  • (Integer)


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

def id
  @id
end

#image_moderation_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def image_moderation_enabled
  @image_moderation_enabled
end

#image_moderation_labels ⇒ Array<String>

Returns:

  • (Array<String>)


179
180
181
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 179

def image_moderation_labels
  @image_moderation_labels
end

#image_upload_config ⇒ FileUploadConfig

Returns:



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

def image_upload_config
  @image_upload_config
end

#max_aggregated_activities_length ⇒ Integer

Returns:

  • (Integer)


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

def max_aggregated_activities_length
  @max_aggregated_activities_length
end

#moderation_audio_call_moderation_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_audio_call_moderation_enabled
  @moderation_audio_call_moderation_enabled
end

#moderation_dashboard_preferences ⇒ ModerationDashboardPreferences



188
189
190
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 188

def moderation_dashboard_preferences
  @moderation_dashboard_preferences
end

#moderation_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_enabled
  @moderation_enabled
end

#moderation_llm_configurability_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_llm_configurability_enabled
  @moderation_llm_configurability_enabled
end

#moderation_multitenant_blocklist_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_multitenant_blocklist_enabled
  @moderation_multitenant_blocklist_enabled
end

#moderation_onboarding_complete ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_onboarding_complete
  @moderation_onboarding_complete
end

#moderation_s3_image_access_role_arn ⇒ String

Returns:

  • (String)


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

def moderation_s3_image_access_role_arn
  @moderation_s3_image_access_role_arn
end

#moderation_video_call_moderation_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def moderation_video_call_moderation_enabled
  @moderation_video_call_moderation_enabled
end

#moderation_webhook_url ⇒ String

Returns:

  • (String)


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

def moderation_webhook_url
  @moderation_webhook_url
end

#multi_tenant_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def multi_tenant_enabled
  @multi_tenant_enabled
end

#name ⇒ String

Returns:

  • (String)


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

def name
  @name
end

#organization ⇒ String

Returns:

  • (String)


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

def organization
  @organization
end

#permission_version ⇒ String

Returns:

  • (String)


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

def permission_version
  @permission_version
end

#placement ⇒ String

Returns:

  • (String)


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

def placement
  @placement
end

#policies ⇒ Hash<String, Array<Policy>>

Returns:

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


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

def policies
  @policies
end

#push_notifications ⇒ PushNotificationFields



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

def push_notifications
  @push_notifications
end

#reminders_interval ⇒ Integer

Returns:

  • (Integer)


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

def reminders_interval
  @reminders_interval
end

#revoke_tokens_issued_before ⇒ DateTime

Returns:

  • (DateTime)


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

def revoke_tokens_issued_before
  @revoke_tokens_issued_before
end

#sns_key ⇒ String

Returns:

  • (String)


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

def sns_key
  @sns_key
end

#sns_secret ⇒ String

Returns:

  • (String)


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

def sns_secret
  @sns_secret
end

#sns_topic_arn ⇒ String

Returns:

  • (String)


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

def sns_topic_arn
  @sns_topic_arn
end

#sqs_key ⇒ String

Returns:

  • (String)


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

def sqs_key
  @sqs_key
end

#sqs_secret ⇒ String

Returns:

  • (String)


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

def sqs_secret
  @sqs_secret
end

#sqs_url ⇒ String

Returns:

  • (String)


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

def sqs_url
  @sqs_url
end

#suspended ⇒ Boolean

Returns:

  • (Boolean)


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

def suspended
  @suspended
end

#suspended_explanation ⇒ String

Returns:

  • (String)


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

def suspended_explanation
  @suspended_explanation
end

#use_hook_v2 ⇒ Boolean

Returns:

  • (Boolean)


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

def use_hook_v2
  @use_hook_v2
end

#user_response_time_enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def user_response_time_enabled
  @user_response_time_enabled
end

#user_search_disallowed_roles ⇒ Array<String>

Returns:

  • (Array<String>)


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

def user_search_disallowed_roles
  @user_search_disallowed_roles
end

#video_primary_use_case ⇒ String

Returns:

  • (String)


170
171
172
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 170

def video_primary_use_case
  @video_primary_use_case
end

#webhook_events ⇒ Array<String>

Returns:

  • (Array<String>)


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

def webhook_events
  @webhook_events
end

#webhook_url ⇒ String

Returns:

  • (String)


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

def webhook_url
  @webhook_url
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
# File 'lib/getstream_ruby/generated/models/app_response_fields.rb', line 255

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',
    feed_audit_logs_enabled: 'feed_audit_logs_enabled',
    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_audio_call_moderation_enabled: 'moderation_audio_call_moderation_enabled',
    moderation_enabled: 'moderation_enabled',
    moderation_llm_configurability_enabled: 'moderation_llm_configurability_enabled',
    moderation_multitenant_blocklist_enabled: 'moderation_multitenant_blocklist_enabled',
    moderation_video_call_moderation_enabled: 'moderation_video_call_moderation_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_attempt_timeout_ms: 'before_message_send_hook_attempt_timeout_ms',
    before_message_send_hook_url: 'before_message_send_hook_url',
    moderation_onboarding_complete: 'moderation_onboarding_complete',
    moderation_s3_image_access_role_arn: 'moderation_s3_image_access_role_arn',
    revoke_tokens_issued_before: 'revoke_tokens_issued_before',
    video_primary_use_case: 'video_primary_use_case',
    allowed_flag_reasons: 'allowed_flag_reasons',
    geofences: 'geofences',
    image_moderation_labels: 'image_moderation_labels',
    activity_metrics_config: 'activity_metrics_config',
    datadog_info: 'datadog_info',
    moderation_dashboard_preferences: 'moderation_dashboard_preferences'
  }
end