Class: GetStream::Generated::Models::ConfigResponse

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

Initialize with attributes



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/getstream_ruby/generated/models/config_response.rb', line 62

def initialize(attributes = {})
  super(attributes)
  @async = attributes[:async] || attributes['async']
  @created_at = attributes[:created_at] || attributes['created_at']
  @key = attributes[:key] || attributes['key']
  @team = attributes[:team] || attributes['team']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @supported_video_call_harm_types = attributes[:supported_video_call_harm_types] || attributes['supported_video_call_harm_types']
  @ai_image_config = attributes[:ai_image_config] || attributes['ai_image_config'] || nil
  @ai_text_config = attributes[:ai_text_config] || attributes['ai_text_config'] || nil
  @ai_video_config = attributes[:ai_video_config] || attributes['ai_video_config'] || nil
  @automod_platform_circumvention_config = attributes[:automod_platform_circumvention_config] || attributes['automod_platform_circumvention_config'] || nil
  @automod_semantic_filters_config = attributes[:automod_semantic_filters_config] || attributes['automod_semantic_filters_config'] || nil
  @automod_toxicity_config = attributes[:automod_toxicity_config] || attributes['automod_toxicity_config'] || nil
  @block_list_config = attributes[:block_list_config] || attributes['block_list_config'] || nil
  @llm_config = attributes[:llm_config] || attributes['llm_config'] || nil
  @velocity_filter_config = attributes[:velocity_filter_config] || attributes['velocity_filter_config'] || nil
  @video_call_rule_config = attributes[:video_call_rule_config] || attributes['video_call_rule_config'] || nil
end

Instance Attribute Details

#ai_image_configAIImageConfig

Returns:



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

def ai_image_config
  @ai_image_config
end

#ai_text_configAITextConfig

Returns:



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

def ai_text_config
  @ai_text_config
end

#ai_video_configAIVideoConfig

Returns:



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

def ai_video_config
  @ai_video_config
end

#asyncBoolean

Returns Whether moderation should be performed asynchronously.

Returns:

  • (Boolean)

    Whether moderation should be performed asynchronously



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

def async
  @async
end

#automod_platform_circumvention_configAutomodPlatformCircumventionConfig



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

def automod_platform_circumvention_config
  @automod_platform_circumvention_config
end

#automod_semantic_filters_configAutomodSemanticFiltersConfig



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

def automod_semantic_filters_config
  @automod_semantic_filters_config
end

#automod_toxicity_configAutomodToxicityConfig



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

def automod_toxicity_config
  @automod_toxicity_config
end

#block_list_configBlockListConfig

Returns:



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

def block_list_config
  @block_list_config
end

#created_atDateTime

Returns When the configuration was created.

Returns:

  • (DateTime)

    When the configuration was created



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

def created_at
  @created_at
end

#keyString

Returns Unique identifier for the moderation configuration.

Returns:

  • (String)

    Unique identifier for the moderation configuration



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

def key
  @key
end

#llm_configLLMConfig

Returns:



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

def llm_config
  @llm_config
end

#supported_video_call_harm_typesArray<String>

Returns:

  • (Array<String>)


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

def supported_video_call_harm_types
  @supported_video_call_harm_types
end

#teamString

Returns Team associated with the configuration.

Returns:

  • (String)

    Team associated with the configuration



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

def team
  @team
end

#updated_atDateTime

Returns When the configuration was last updated.

Returns:

  • (DateTime)

    When the configuration was last updated



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

def updated_at
  @updated_at
end

#velocity_filter_configVelocityFilterConfig



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

def velocity_filter_config
  @velocity_filter_config
end

#video_call_rule_configVideoCallRuleConfig

Returns:



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

def video_call_rule_config
  @video_call_rule_config
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/getstream_ruby/generated/models/config_response.rb', line 83

def self.json_field_mappings
  {
    async: 'async',
    created_at: 'created_at',
    key: 'key',
    team: 'team',
    updated_at: 'updated_at',
    supported_video_call_harm_types: 'supported_video_call_harm_types',
    ai_image_config: 'ai_image_config',
    ai_text_config: 'ai_text_config',
    ai_video_config: 'ai_video_config',
    automod_platform_circumvention_config: 'automod_platform_circumvention_config',
    automod_semantic_filters_config: 'automod_semantic_filters_config',
    automod_toxicity_config: 'automod_toxicity_config',
    block_list_config: 'block_list_config',
    llm_config: 'llm_config',
    velocity_filter_config: 'velocity_filter_config',
    video_call_rule_config: 'video_call_rule_config'
  }
end