Class: GetStream::Generated::Models::QueryReviewQueueRequest

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

Initialize with attributes



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/getstream_ruby/generated/models/query_review_queue_request.rb', line 50

def initialize(attributes = {})
  super(attributes)
  @exclude_default_action_config = attributes.fetch(:exclude_default_action_config) { attributes.fetch('exclude_default_action_config', nil) }
  @limit = attributes.fetch(:limit) { attributes.fetch('limit', nil) }
  @lock_count = attributes.fetch(:lock_count) { attributes.fetch('lock_count', nil) }
  @lock_duration = attributes.fetch(:lock_duration) { attributes.fetch('lock_duration', nil) }
  @lock_items = attributes.fetch(:lock_items) { attributes.fetch('lock_items', nil) }
  @next = attributes.fetch(:next) { attributes.fetch('next', nil) }
  @prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) }
  @stats_only = attributes.fetch(:stats_only) { attributes.fetch('stats_only', nil) }
  @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
  @sort = attributes.fetch(:sort) { attributes.fetch('sort', nil) }
  @filter = attributes.fetch(:filter) { attributes.fetch('filter', nil) }
  @user = attributes.fetch(:user) { attributes.fetch('user', nil) }
end

Instance Attribute Details

#exclude_default_action_config ⇒ Boolean

Returns:

  • (Boolean)


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

def exclude_default_action_config
  @exclude_default_action_config
end

#filter ⇒ Object

Returns Filter conditions for review queue items. Accepts built-in fields (e.g. status, channel_cid, severity, recommended_action) and customer-supplied moderation_payload.custom keys: any key that is not a built-in field is matched against the item's custom moderation data (e.g. "loc-42"). Use filter_config.filterable_custom_keys to discover which custom keys the app exposes as chips. content_text searches the moderated text: "$q" is a keyword search (terms ANDed, no adjacency) over the indexed tsvector, while "$eq" (or "$in" for several wordings) matches the text exactly. The exact form is unindexed, so scope it with date_range rather than running it across the whole queue.

Returns:

  • (Object) —

    Filter conditions for review queue items. Accepts built-in fields (e.g. status, channel_cid, severity, recommended_action) and customer-supplied moderation_payload.custom keys: any key that is not a built-in field is matched against the item's custom moderation data (e.g. "loc-42"). Use filter_config.filterable_custom_keys to discover which custom keys the app exposes as chips. content_text searches the moderated text: "$q" is a keyword search (terms ANDed, no adjacency) over the indexed tsvector, while "$eq" (or "$in" for several wordings) matches the text exactly. The exact form is unindexed, so scope it with date_range rather than running it across the whole queue.



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

def filter
  @filter
end

#limit ⇒ Integer

Returns:

  • (Integer)


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

def limit
  @limit
end

#lock_count ⇒ Integer

Returns Number of items to lock (1-25).

Returns:

  • (Integer) —

    Number of items to lock (1-25)



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

def lock_count
  @lock_count
end

#lock_duration ⇒ Integer

Returns Duration for which items should be locked.

Returns:

  • (Integer) —

    Duration for which items should be locked



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

def lock_duration
  @lock_duration
end

#lock_items ⇒ Boolean

Returns Whether to lock items for review (true), unlock items (false), or just fetch (nil).

Returns:

  • (Boolean) —

    Whether to lock items for review (true), unlock items (false), or just fetch (nil)



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

def lock_items
  @lock_items
end

#next ⇒ String

Returns:

  • (String)


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

def next
  @next
end

#prev ⇒ String

Returns:

  • (String)


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

def prev
  @prev
end

#sort ⇒ Array<SortParamRequest>

Returns Sorting parameters for the results.

Returns:



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

def sort
  @sort
end

#stats_only ⇒ Boolean

Returns Whether to return only statistics.

Returns:

  • (Boolean) —

    Whether to return only statistics



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

def stats_only
  @stats_only
end

#user ⇒ UserRequest

Returns User request object.

Returns:



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

def user
  @user
end

#user_id ⇒ String

Returns:

  • (String)


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

def user_id
  @user_id
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/getstream_ruby/generated/models/query_review_queue_request.rb', line 67

def self.json_field_mappings
  {
    exclude_default_action_config: 'exclude_default_action_config',
    limit: 'limit',
    lock_count: 'lock_count',
    lock_duration: 'lock_duration',
    lock_items: 'lock_items',
    next: 'next',
    prev: 'prev',
    stats_only: 'stats_only',
    user_id: 'user_id',
    sort: 'sort',
    filter: 'filter',
    user: 'user'
  }
end