Class: Daily::GetDomainConfig200ResponseConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/daily-ruby/models/get_domain_config200_response_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ GetDomainConfig200ResponseConfig

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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
145
146
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
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
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 119

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::GetDomainConfig200ResponseConfig` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::GetDomainConfig200ResponseConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'hide_daily_branding')
    self.hide_daily_branding = attributes[:'hide_daily_branding']
  end

  if attributes.key?(:'redirect_on_meeting_exit')
    self.redirect_on_meeting_exit = attributes[:'redirect_on_meeting_exit']
  end

  if attributes.key?(:'meeting_join_hook')
    self.meeting_join_hook = attributes[:'meeting_join_hook']
  end

  if attributes.key?(:'hipaa')
    self.hipaa = attributes[:'hipaa']
  end

  if attributes.key?(:'intercom_auto_record')
    self.intercom_auto_record = attributes[:'intercom_auto_record']
  end

  if attributes.key?(:'intercom_manual_record')
    self.intercom_manual_record = attributes[:'intercom_manual_record']
  end

  if attributes.key?(:'sfu_impl')
    self.sfu_impl = attributes[:'sfu_impl']
  end

  if attributes.key?(:'sfu_switchover')
    self.sfu_switchover = attributes[:'sfu_switchover']
  end

  if attributes.key?(:'switchover_impl')
    self.switchover_impl = attributes[:'switchover_impl']
  end

  if attributes.key?(:'lang')
    self.lang = attributes[:'lang']
  end

  if attributes.key?(:'webhook_meeting_end')
    self.webhook_meeting_end = attributes[:'webhook_meeting_end']
  end

  if attributes.key?(:'recordings_bucket')
    self.recordings_bucket = attributes[:'recordings_bucket']
  end

  if attributes.key?(:'max_live_streams')
    self.max_live_streams = attributes[:'max_live_streams']
  end

  if attributes.key?(:'max_streaming_instances_per_room')
    self.max_streaming_instances_per_room = attributes[:'max_streaming_instances_per_room']
  end

  if attributes.key?(:'enable_daily_logger')
    self.enable_daily_logger = attributes[:'enable_daily_logger']
  end

  if attributes.key?(:'enable_prejoin_ui')
    self.enable_prejoin_ui = attributes[:'enable_prejoin_ui']
  end

  if attributes.key?(:'enable_network_ui')
    self.enable_network_ui = attributes[:'enable_network_ui']
  end

  if attributes.key?(:'disable_rate_limiting')
    self.disable_rate_limiting = attributes[:'disable_rate_limiting']
  end

  if attributes.key?(:'attach_callobject_to_window')
    self.attach_callobject_to_window = attributes[:'attach_callobject_to_window']
  end
end

Instance Attribute Details

#attach_callobject_to_windowObject

Returns the value of attribute attach_callobject_to_window.



54
55
56
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 54

def attach_callobject_to_window
  @attach_callobject_to_window
end

#disable_rate_limitingObject

Returns the value of attribute disable_rate_limiting.



52
53
54
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 52

def disable_rate_limiting
  @disable_rate_limiting
end

#enable_daily_loggerObject

Returns the value of attribute enable_daily_logger.



46
47
48
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 46

def enable_daily_logger
  @enable_daily_logger
end

#enable_network_uiObject

Returns the value of attribute enable_network_ui.



50
51
52
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 50

def enable_network_ui
  @enable_network_ui
end

#enable_prejoin_uiObject

Returns the value of attribute enable_prejoin_ui.



48
49
50
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 48

def enable_prejoin_ui
  @enable_prejoin_ui
end

#hide_daily_brandingObject

Returns the value of attribute hide_daily_branding.



18
19
20
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 18

def hide_daily_branding
  @hide_daily_branding
end

#hipaaObject

Returns the value of attribute hipaa.



24
25
26
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 24

def hipaa
  @hipaa
end

#intercom_auto_recordObject

Returns the value of attribute intercom_auto_record.



26
27
28
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 26

def intercom_auto_record
  @intercom_auto_record
end

#intercom_manual_recordObject

Returns the value of attribute intercom_manual_record.



28
29
30
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 28

def intercom_manual_record
  @intercom_manual_record
end

#langObject

Returns the value of attribute lang.



36
37
38
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 36

def lang
  @lang
end

#max_live_streamsObject

Returns the value of attribute max_live_streams.



42
43
44
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 42

def max_live_streams
  @max_live_streams
end

#max_streaming_instances_per_roomObject

Returns the value of attribute max_streaming_instances_per_room.



44
45
46
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 44

def max_streaming_instances_per_room
  @max_streaming_instances_per_room
end

#meeting_join_hookObject

Returns the value of attribute meeting_join_hook.



22
23
24
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 22

def meeting_join_hook
  @meeting_join_hook
end

#recordings_bucketObject

Returns the value of attribute recordings_bucket.



40
41
42
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 40

def recordings_bucket
  @recordings_bucket
end

#redirect_on_meeting_exitObject

Returns the value of attribute redirect_on_meeting_exit.



20
21
22
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 20

def redirect_on_meeting_exit
  @redirect_on_meeting_exit
end

#sfu_implObject

Returns the value of attribute sfu_impl.



30
31
32
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 30

def sfu_impl
  @sfu_impl
end

#sfu_switchoverObject

Returns the value of attribute sfu_switchover.



32
33
34
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 32

def sfu_switchover
  @sfu_switchover
end

#switchover_implObject

Returns the value of attribute switchover_impl.



34
35
36
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 34

def switchover_impl
  @switchover_impl
end

#webhook_meeting_endObject

Returns the value of attribute webhook_meeting_end.



38
39
40
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 38

def webhook_meeting_end
  @webhook_meeting_end
end

Class Method Details

._deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 308

def self._deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = Daily.const_get(type)
    klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



82
83
84
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 82

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 57

def self.attribute_map
  {
    :'hide_daily_branding' => :'hide_daily_branding',
    :'redirect_on_meeting_exit' => :'redirect_on_meeting_exit',
    :'meeting_join_hook' => :'meeting_join_hook',
    :'hipaa' => :'hipaa',
    :'intercom_auto_record' => :'intercom_auto_record',
    :'intercom_manual_record' => :'intercom_manual_record',
    :'sfu_impl' => :'sfu_impl',
    :'sfu_switchover' => :'sfu_switchover',
    :'switchover_impl' => :'switchover_impl',
    :'lang' => :'lang',
    :'webhook_meeting_end' => :'webhook_meeting_end',
    :'recordings_bucket' => :'recordings_bucket',
    :'max_live_streams' => :'max_live_streams',
    :'max_streaming_instances_per_room' => :'max_streaming_instances_per_room',
    :'enable_daily_logger' => :'enable_daily_logger',
    :'enable_prejoin_ui' => :'enable_prejoin_ui',
    :'enable_network_ui' => :'enable_network_ui',
    :'disable_rate_limiting' => :'disable_rate_limiting',
    :'attach_callobject_to_window' => :'attach_callobject_to_window'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 284

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



112
113
114
115
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 112

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 87

def self.openapi_types
  {
    :'hide_daily_branding' => :'Boolean',
    :'redirect_on_meeting_exit' => :'String',
    :'meeting_join_hook' => :'String',
    :'hipaa' => :'Boolean',
    :'intercom_auto_record' => :'Boolean',
    :'intercom_manual_record' => :'String',
    :'sfu_impl' => :'String',
    :'sfu_switchover' => :'Integer',
    :'switchover_impl' => :'String',
    :'lang' => :'String',
    :'webhook_meeting_end' => :'String',
    :'recordings_bucket' => :'GetDomainConfig200ResponseConfigRecordingsBucket',
    :'max_live_streams' => :'Float',
    :'max_streaming_instances_per_room' => :'Float',
    :'enable_daily_logger' => :'Boolean',
    :'enable_prejoin_ui' => :'Boolean',
    :'enable_network_ui' => :'Boolean',
    :'disable_rate_limiting' => :'Boolean',
    :'attach_callobject_to_window' => :'Boolean'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 245

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      hide_daily_branding == o.hide_daily_branding &&
      redirect_on_meeting_exit == o.redirect_on_meeting_exit &&
      meeting_join_hook == o.meeting_join_hook &&
      hipaa == o.hipaa &&
      intercom_auto_record == o.intercom_auto_record &&
      intercom_manual_record == o.intercom_manual_record &&
      sfu_impl == o.sfu_impl &&
      sfu_switchover == o.sfu_switchover &&
      switchover_impl == o.switchover_impl &&
      lang == o.lang &&
      webhook_meeting_end == o.webhook_meeting_end &&
      recordings_bucket == o.recordings_bucket &&
      max_live_streams == o.max_live_streams &&
      max_streaming_instances_per_room == o.max_streaming_instances_per_room &&
      enable_daily_logger == o.enable_daily_logger &&
      enable_prejoin_ui == o.enable_prejoin_ui &&
      enable_network_ui == o.enable_network_ui &&
      disable_rate_limiting == o.disable_rate_limiting &&
      attach_callobject_to_window == o.attach_callobject_to_window
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 379

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


271
272
273
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 271

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



277
278
279
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 277

def hash
  [hide_daily_branding, redirect_on_meeting_exit, meeting_join_hook, hipaa, intercom_auto_record, intercom_manual_record, sfu_impl, sfu_switchover, switchover_impl, lang, webhook_meeting_end, recordings_bucket, max_live_streams, max_streaming_instances_per_room, enable_daily_logger, enable_prejoin_ui, enable_network_ui, disable_rate_limiting, attach_callobject_to_window].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



211
212
213
214
215
216
217
218
219
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 211

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if !@sfu_impl.nil? && @sfu_impl.to_s.length < 1
    invalid_properties.push('invalid value for "sfu_impl", the character length must be great than or equal to 1.')
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



355
356
357
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 355

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 361

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



349
350
351
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 349

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



223
224
225
226
227
# File 'lib/daily-ruby/models/get_domain_config200_response_config.rb', line 223

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if !@sfu_impl.nil? && @sfu_impl.to_s.length < 1
  true
end