Class: Daily::DomainProperties

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DomainProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
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
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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/daily-ruby/models/domain_properties.rb', line 207

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::DomainProperties` 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::DomainProperties`. 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?(:'enable_advanced_chat')
    self.enable_advanced_chat = attributes[:'enable_advanced_chat']
  else
    self.enable_advanced_chat = false
  end

  if attributes.key?(:'enable_people_ui')
    self.enable_people_ui = attributes[:'enable_people_ui']
  else
    self.enable_people_ui = true
  end

  if attributes.key?(:'enable_pip_ui')
    self.enable_pip_ui = attributes[:'enable_pip_ui']
  else
    self.enable_pip_ui = false
  end

  if attributes.key?(:'enable_emoji_reactions')
    self.enable_emoji_reactions = attributes[:'enable_emoji_reactions']
  else
    self.enable_emoji_reactions = false
  end

  if attributes.key?(:'enable_hand_raising')
    self.enable_hand_raising = attributes[:'enable_hand_raising']
  else
    self.enable_hand_raising = false
  end

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

  if attributes.key?(:'enable_breakout_rooms')
    self.enable_breakout_rooms = attributes[:'enable_breakout_rooms']
  else
    self.enable_breakout_rooms = false
  end

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

  if attributes.key?(:'enable_noise_cancellation_ui')
    self.enable_noise_cancellation_ui = attributes[:'enable_noise_cancellation_ui']
  else
    self.enable_noise_cancellation_ui = true
  end

  if attributes.key?(:'enable_video_processing_ui')
    self.enable_video_processing_ui = attributes[:'enable_video_processing_ui']
  else
    self.enable_video_processing_ui = true
  end

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

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

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

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

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

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

  if attributes.key?(:'geo')
    self.geo = attributes[:'geo']
  else
    self.geo = 'NULL'
  end

  if attributes.key?(:'rtmp_geo')
    self.rtmp_geo = attributes[:'rtmp_geo']
  else
    self.rtmp_geo = 'The closest available region to the SFU region used by the meeting.'
  end

  if attributes.key?(:'disable_rtmp_geo_fallback')
    self.disable_rtmp_geo_fallback = attributes[:'disable_rtmp_geo_fallback']
  else
    self.disable_rtmp_geo_fallback = false
  end

  if attributes.key?(:'enable_terse_logging')
    self.enable_terse_logging = attributes[:'enable_terse_logging']
  else
    self.enable_terse_logging = false
  end

  if attributes.key?(:'enable_transcription_storage')
    self.enable_transcription_storage = attributes[:'enable_transcription_storage']
  else
    self.enable_transcription_storage = false
  end

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

  if attributes.key?(:'recordings_template')
    self.recordings_template = attributes[:'recordings_template']
  else
    self.recordings_template = '{domain_name}/{room_name}/{epoch_time}.'
  end

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

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

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

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

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

  if attributes.key?(:'batch_processor_enable_medical_concept')
    self.batch_processor_enable_medical_concept = attributes[:'batch_processor_enable_medical_concept']
  else
    self.batch_processor_enable_medical_concept = true
  end
end

Instance Attribute Details

#batch_processor_bucketObject

Defines a custom S3 bucket where the batch processor will write its output



97
98
99
# File 'lib/daily-ruby/models/domain_properties.rb', line 97

def batch_processor_bucket
  @batch_processor_bucket
end

#batch_processor_enable_medical_conceptObject

Enables whether the batch processor will use [ScienceIO metadata concepts](www.science.io/) when generating SOAP notes.



100
101
102
# File 'lib/daily-ruby/models/domain_properties.rb', line 100

def batch_processor_enable_medical_concept
  @batch_processor_enable_medical_concept
end

#disable_rtmp_geo_fallbackObject

Disable the fall back behavior of rtmp_geo. When rtmp_geo is set, we first try to connect to a media server in desired region. If a media server is not available in the desired region, we fall back to default region based on SFU’s region. This property disables this automatic fall back. When this property is set, we will trigger a recording/streaming error event when media worker is unavailable. Also, the client should retry recording/streaming.



73
74
75
# File 'lib/daily-ruby/models/domain_properties.rb', line 73

def disable_rtmp_geo_fallback
  @disable_rtmp_geo_fallback
end

#enable_advanced_chatObject

Property that gives end users a richer chat experience. This includes: * Emoji reactions to chat messages * Emoji picker in the chat input form * Ability to send a Giphy chat message ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object.



19
20
21
# File 'lib/daily-ruby/models/domain_properties.rb', line 19

def enable_advanced_chat
  @enable_advanced_chat
end

#enable_breakout_roomsObject

Sets whether rooms for this domain have [Daily Prebuilt](www.daily.co/prebuilt)’s breakout rooms feature enabled. When set to ‘true`, an owner in a Prebuilt call can create breakout rooms to divide participants into smaller, private groups. ⚠️ You must be using [Daily Prebuilt](daily.co/blog/daily-prebuilt-video-chat) to use `enable_breakout_rooms`. ⚠️ This property is in beta.



37
38
39
# File 'lib/daily-ruby/models/domain_properties.rb', line 37

def enable_breakout_rooms
  @enable_breakout_rooms
end

#enable_emoji_reactionsObject

Determines if [Daily Prebuilt](www.daily.co/prebuilt) displays the Emoji Reactions UI. When set to ‘true`, a Reactions button appears in the call tray. This button allows users to select and send a reaction into the call. When set to `false`, the Reactions button is hidden and the feature is disabled. Usage: This feature is a good fit for meetings when a host or presenter would benefit from receiving nonverbal cues from the audience. It’s also great to keep meetings fun. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object.



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

def enable_emoji_reactions
  @enable_emoji_reactions
end

#enable_hand_raisingObject

Sets whether the participants in the room can use [Daily Prebuilt](www.daily.co/prebuilt)‘s hand raising controls. When set to `true`, an additional button will be available in Daily Prebuilt’s UI to toggle a hand raise. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object.



31
32
33
# File 'lib/daily-ruby/models/domain_properties.rb', line 31

def enable_hand_raising
  @enable_hand_raising
end

#enable_mesh_sfuObject

Configures a room to use multiple SFUs for a call’s media. This feature enables calls to scale to large sizes and to reduce latency between participants. It is recommended specifically for interactive live streaming. See our [guide for interactive live streaming](/guides/scaling-calls/interactive-live-streaming-rtmp-output#daily-prebuilt-configurations-to-support-100-000-participants) for additional instruction.



87
88
89
# File 'lib/daily-ruby/models/domain_properties.rb', line 87

def enable_mesh_sfu
  @enable_mesh_sfu
end

#enable_network_uiObject

Determines whether the network button, and the network panel it reveals on click, appears across all rooms belonging to this domain. ⚠️ You must be using [Daily Prebuilt](daily.co/blog/daily-prebuilt-video-chat) to use ‘enable_network_ui`.



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

def enable_network_ui
  @enable_network_ui
end

#enable_noise_cancellation_uiObject

Determines whether Daily Prebuilt displays noise cancellation controls. When set to ‘true`, a participant can enable microphone noise cancellation during a Daily Prebuilt call. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. To learn more about adding noise cancellation to a custom application, see the [`updateInputSettings()` docs](/reference/daily-js/instance-methods/update-input-settings).



43
44
45
# File 'lib/daily-ruby/models/domain_properties.rb', line 43

def enable_noise_cancellation_ui
  @enable_noise_cancellation_ui
end

#enable_people_uiObject

Determines if [Daily Prebuilt](/guides/products/prebuilt) displays the People UI. When set to true, a People button in the call tray reveals a People tab in the call sidebar. The tab lists all participants, and next to each name indicates audio status and an option to pin the participant. When ‘enable_people_ui` is set to false, the button and tab are hidden. ⚠️ Has no effect on custom calls built on the Daily [call object](/guides/products/call-object).



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

def enable_people_ui
  @enable_people_ui
end

#enable_pip_uiObject

Sets whether rooms for this domain can use [Daily Prebuilt](www.daily.co/prebuilt)‘s Picture in Picture controls. When set to `true`, an additional button will be available in Daily Prebuilt’s UI to toggle the Picture in Picture feature. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object.



25
26
27
# File 'lib/daily-ruby/models/domain_properties.rb', line 25

def enable_pip_ui
  @enable_pip_ui
end

#enable_prejoin_uiObject

Determines whether participants enter a waiting room with a camera, mic, and browser check before joining a call in any room under this domain. ⚠️ You must be using [Daily Prebuilt](daily.co/blog/daily-prebuilt-video-chat) to use ‘enable_prejoin_ui`.



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

def enable_prejoin_ui
  @enable_prejoin_ui
end

#enable_terse_loggingObject

Reduces the volume of log messages. This feature should be enabled when there are more than 200 participants in a meeting to help improve performance. See our [guides for supporting large experiences](/guides/scaling-calls) for additional instruction.



76
77
78
# File 'lib/daily-ruby/models/domain_properties.rb', line 76

def enable_terse_logging
  @enable_terse_logging
end

#enable_transcription_storageObject

Live transcriptions generated can be saved as WebVTT. This flag controls if transcription started with [‘startTranscription()`](/reference/daily-js/instance-methods/start-transcription) should be saved or not.



79
80
81
# File 'lib/daily-ruby/models/domain_properties.rb', line 79

def enable_transcription_storage
  @enable_transcription_storage
end

#enable_video_processing_uiObject

Determines whether Daily Prebuilt displays background blur controls. When set to ‘true`, a participant can enable blur during a Daily Prebuilt call. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object.



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

def enable_video_processing_ui
  @enable_video_processing_ui
end

#geoObject

Daily uses signaling servers to manage all of the participants in a given call session. In an SFU/server mode call, the server will send and receive all audio and video from each participant. In a peer-to-peer call, each participant sends media directly to and from each other peer, but a signaling server still manages call state. Daily runs servers in several different AWS regions to minimize latency for users around the world. The job of ‘picking’ a call server is handled when the first participant joins a room. The first participant’s browser connects to a call server using Amazon’s Route 53 DNS resolution, which chooses a server in the region closest to them. This isn’t always optimal. For example, if one person joins in London, and then ten more people join from Cape Town, the call will still be hosted out of ‘eu-west-2` . The majority of the participants will have higher latency to the server than if one of them had joined first and the call was being hosted in `af-south-1`. In cases like this, you may want to configure your domain (or a specific room) to always choose a call server in a specific AWS region. Available regions: - `"af-south-1"` (Cape Town) - `"ap-northeast-2"` (Seoul) - `"ap-southeast-1"` (Singapore) - `"ap-southeast-2"` (Sydney) - `"ap-south-1"` (Mumbai) - `"eu-central-1"` (Frankfurt) - `"eu-west-2"` (London) - `"sa-east-1"` (São Paulo) - `"us-east-1"` (N. Virginia) - `"us-west-2"` (Oregon)



67
68
69
# File 'lib/daily-ruby/models/domain_properties.rb', line 67

def geo
  @geo
end

#hide_daily_brandingObject

Whether "Powered by Daily" displays in the in-call UI.



49
50
51
# File 'lib/daily-ruby/models/domain_properties.rb', line 49

def hide_daily_branding
  @hide_daily_branding
end

#hipaaObject

Email us at [email protected] to turn on HIPAA. Learn more about [our HIPAA compliance](www.daily.co/hipaa-compliance).



55
56
57
# File 'lib/daily-ruby/models/domain_properties.rb', line 55

def hipaa
  @hipaa
end

#intercom_auto_recordObject

Whether to automatically start recording when an Intercom support agent joins an Intercom-created call. Please see our [Intercom Messenger App page](www.daily.co/intercom) for more information. ⚠️This method is read-only; please contact us if you’d like to enable intercom call auto-recording.



58
59
60
# File 'lib/daily-ruby/models/domain_properties.rb', line 58

def intercom_auto_record
  @intercom_auto_record
end

#langObject

The default language for the video call UI, for all calls. If you set the language at this domain level, you can still override the setting for specific rooms in [a room’s configuration properties](/reference/rest-api/rooms/config), or for a specific participant in a [meeting token](/reference/rest-api/meeting-tokens/config). You can also set the language dynamically using the front-end library [setDailyLang() method](/reference/daily-js/instance-methods/set-daily-lang). ‘*` Norwegian `"no"` and Russian `"ru"` are only available in the new Daily Prebuilt.



61
62
63
# File 'lib/daily-ruby/models/domain_properties.rb', line 61

def lang
  @lang
end

#meeting_join_hookObject

Sets a URL that will receive a webhook when a user joins a room.



64
65
66
# File 'lib/daily-ruby/models/domain_properties.rb', line 64

def meeting_join_hook
  @meeting_join_hook
end

#permissionsObject

Returns the value of attribute permissions.



94
95
96
# File 'lib/daily-ruby/models/domain_properties.rb', line 94

def permissions
  @permissions
end

#recordings_bucketObject

Returns the value of attribute recordings_bucket.



92
93
94
# File 'lib/daily-ruby/models/domain_properties.rb', line 92

def recordings_bucket
  @recordings_bucket
end

#recordings_templateObject

Cloud recordings are stored in either Daily’s S3 bucket or the customer’s own S3 bucket. By default recordings are stored as ‘domain_name/room_name/epoch_time`. Sometimes, the use case may call for custom recording file names to be used (for example, if you’d like to enforce the presence of the .mp4 extension in the file name). ‘recordings_template` is made up of a replacement string with prefixes, suffixes, or both. The currently supported replacements are: - `epoch_time`: The epoch time in seconds (mandatory) - `domain_name`: Your Daily domain (optional) - `room_name`: The name of the room which is getting recorded (optional) - `mtg_session_id`: The ID of the meeting session which is getting recorded (optional) - `instance_id`: The instance ID of the recording (optional) - `recording_id`: The recording ID of the recording (optional) The restrictions for defining a recording template are as follows: - The `epoch_time` tag is mandatory to ensure the recording file name is unique under all conditions - The maximum size of the template is 1024 characters - Each replacement parameter should be placed within a curly bracket (e.g., `domain_name`) - Only alphanumeric characters `(0-9, A-Z, a-z)` and `.`, `/`, `-`, `_` are valid within the template - `.mp4` is the only valid extension Examples - Example domain: "myDomain" - Example room: "myRoom" Example 1: - Template: `myprefix-domain_name-epoch_time.mp4` - Resulting file name: `myprefix-myDomain-1675842936274.mp4` Example 2: - Template: `room_name/instance_id/epoch_time` - Resulting room name: `myRoom/d529cd2f-fbcc-4fb7-b2c0-c4995b1162b6/1675842936274`



84
85
86
# File 'lib/daily-ruby/models/domain_properties.rb', line 84

def recordings_template
  @recordings_template
end

#redirect_on_meeting_exitObject

(For meetings that open in a separate browser tab.) When a user clicks on the in-call menu bar’s "leave meeting" button, the browser loads this URL. A query string that includes a parameter of the form ‘recent-call=<domain>/<room>` is appended to the URL. On mobile, you can redirect to a deep link to bring a user back into your app.



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

def redirect_on_meeting_exit
  @redirect_on_meeting_exit
end

#rtmp_geoObject

Used to select the region where an RTMP stream should originate. In cases where RTMP streaming services aren’t available in the desired region, we’ll attempt to fall back to the default region based on the SFU being used for the meeting. Available regions: - ‘"us-west-2"` (Oregon) - `"eu-central-1"` (Frankfurt) - `"ap-south-1"` (Mumbai) The default regions are grouped based on the SFU region like so: - RTMP region `"us-west-2"` includes SFU regions: `"us-west-2"`, `"us-east-1"`, `"sa-east-1"` - RTMP region `"eu-central-1"` includes SFU regions: `"eu-central-1"`, `"eu-west-2"`, `"af-south-1"` - RTMP region `"ap-south-1"` includes SFU regions: `"ap-southeast-1"`, `"ap-southeast-2"`, `"ap-northeast-2"`, `"ap-south-1"`



70
71
72
# File 'lib/daily-ruby/models/domain_properties.rb', line 70

def rtmp_geo
  @rtmp_geo
end

#sfu_switchoverObject

Dictates the participant count after which room topology automatically switches from Peer-to-Peer (P2P) to Selective Forwarding Unit (SFU) mode, or vice versa. For example, if ‘sfu_switchover` is set to `3` and the current network topology is P2P, the topology will switch to SFU mode when the fourth participant joins the call. If the current topology is SFU, it will switch to P2P mode when the participant count decreases from `3` to `2`. We recommend specifying an integer value for this property except for cases where you would like the room to switch to SFU mode as soon as the first participant joins. In this case, set `sfu_switchover` to `0.5`. See our [guide about video call architecture](/guides/architecture-and-monitoring/intro-to-video-arch#the-architecture-of-a-room-p2p-vs-sfu-calls) for additional information.



90
91
92
# File 'lib/daily-ruby/models/domain_properties.rb', line 90

def sfu_switchover
  @sfu_switchover
end

#transcription_bucketObject

Returns the value of attribute transcription_bucket.



81
82
83
# File 'lib/daily-ruby/models/domain_properties.rb', line 81

def transcription_bucket
  @transcription_bucket
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



483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
# File 'lib/daily-ruby/models/domain_properties.rb', line 483

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



160
161
162
# File 'lib/daily-ruby/models/domain_properties.rb', line 160

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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
# File 'lib/daily-ruby/models/domain_properties.rb', line 125

def self.attribute_map
  {
    :'enable_advanced_chat' => :'enable_advanced_chat',
    :'enable_people_ui' => :'enable_people_ui',
    :'enable_pip_ui' => :'enable_pip_ui',
    :'enable_emoji_reactions' => :'enable_emoji_reactions',
    :'enable_hand_raising' => :'enable_hand_raising',
    :'enable_prejoin_ui' => :'enable_prejoin_ui',
    :'enable_breakout_rooms' => :'enable_breakout_rooms',
    :'enable_network_ui' => :'enable_network_ui',
    :'enable_noise_cancellation_ui' => :'enable_noise_cancellation_ui',
    :'enable_video_processing_ui' => :'enable_video_processing_ui',
    :'hide_daily_branding' => :'hide_daily_branding',
    :'redirect_on_meeting_exit' => :'redirect_on_meeting_exit',
    :'hipaa' => :'hipaa',
    :'intercom_auto_record' => :'intercom_auto_record',
    :'lang' => :'lang',
    :'meeting_join_hook' => :'meeting_join_hook',
    :'geo' => :'geo',
    :'rtmp_geo' => :'rtmp_geo',
    :'disable_rtmp_geo_fallback' => :'disable_rtmp_geo_fallback',
    :'enable_terse_logging' => :'enable_terse_logging',
    :'enable_transcription_storage' => :'enable_transcription_storage',
    :'transcription_bucket' => :'transcription_bucket',
    :'recordings_template' => :'recordings_template',
    :'enable_mesh_sfu' => :'enable_mesh_sfu',
    :'sfu_switchover' => :'sfu_switchover',
    :'recordings_bucket' => :'recordings_bucket',
    :'permissions' => :'permissions',
    :'batch_processor_bucket' => :'batch_processor_bucket',
    :'batch_processor_enable_medical_concept' => :'batch_processor_enable_medical_concept'
  }
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



459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
# File 'lib/daily-ruby/models/domain_properties.rb', line 459

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



200
201
202
203
# File 'lib/daily-ruby/models/domain_properties.rb', line 200

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

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/daily-ruby/models/domain_properties.rb', line 165

def self.openapi_types
  {
    :'enable_advanced_chat' => :'Boolean',
    :'enable_people_ui' => :'Boolean',
    :'enable_pip_ui' => :'Boolean',
    :'enable_emoji_reactions' => :'Boolean',
    :'enable_hand_raising' => :'Boolean',
    :'enable_prejoin_ui' => :'Boolean',
    :'enable_breakout_rooms' => :'Boolean',
    :'enable_network_ui' => :'Boolean',
    :'enable_noise_cancellation_ui' => :'Boolean',
    :'enable_video_processing_ui' => :'Boolean',
    :'hide_daily_branding' => :'Boolean',
    :'redirect_on_meeting_exit' => :'String',
    :'hipaa' => :'Boolean',
    :'intercom_auto_record' => :'Boolean',
    :'lang' => :'String',
    :'meeting_join_hook' => :'String',
    :'geo' => :'String',
    :'rtmp_geo' => :'String',
    :'disable_rtmp_geo_fallback' => :'Boolean',
    :'enable_terse_logging' => :'Boolean',
    :'enable_transcription_storage' => :'Boolean',
    :'transcription_bucket' => :'TranscriptionBucket',
    :'recordings_template' => :'String',
    :'enable_mesh_sfu' => :'Boolean',
    :'sfu_switchover' => :'Float',
    :'recordings_bucket' => :'RecordingsBucket',
    :'permissions' => :'Permissions',
    :'batch_processor_bucket' => :'Object',
    :'batch_processor_enable_medical_concept' => :'Boolean'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
# File 'lib/daily-ruby/models/domain_properties.rb', line 410

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      enable_advanced_chat == o.enable_advanced_chat &&
      enable_people_ui == o.enable_people_ui &&
      enable_pip_ui == o.enable_pip_ui &&
      enable_emoji_reactions == o.enable_emoji_reactions &&
      enable_hand_raising == o.enable_hand_raising &&
      enable_prejoin_ui == o.enable_prejoin_ui &&
      enable_breakout_rooms == o.enable_breakout_rooms &&
      enable_network_ui == o.enable_network_ui &&
      enable_noise_cancellation_ui == o.enable_noise_cancellation_ui &&
      enable_video_processing_ui == o.enable_video_processing_ui &&
      hide_daily_branding == o.hide_daily_branding &&
      redirect_on_meeting_exit == o.redirect_on_meeting_exit &&
      hipaa == o.hipaa &&
      intercom_auto_record == o.intercom_auto_record &&
      lang == o.lang &&
      meeting_join_hook == o.meeting_join_hook &&
      geo == o.geo &&
      rtmp_geo == o.rtmp_geo &&
      disable_rtmp_geo_fallback == o.disable_rtmp_geo_fallback &&
      enable_terse_logging == o.enable_terse_logging &&
      enable_transcription_storage == o.enable_transcription_storage &&
      transcription_bucket == o.transcription_bucket &&
      recordings_template == o.recordings_template &&
      enable_mesh_sfu == o.enable_mesh_sfu &&
      sfu_switchover == o.sfu_switchover &&
      recordings_bucket == o.recordings_bucket &&
      permissions == o.permissions &&
      batch_processor_bucket == o.batch_processor_bucket &&
      batch_processor_enable_medical_concept == o.batch_processor_enable_medical_concept
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



554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/daily-ruby/models/domain_properties.rb', line 554

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


446
447
448
# File 'lib/daily-ruby/models/domain_properties.rb', line 446

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



452
453
454
# File 'lib/daily-ruby/models/domain_properties.rb', line 452

def hash
  [enable_advanced_chat, enable_people_ui, enable_pip_ui, enable_emoji_reactions, enable_hand_raising, enable_prejoin_ui, enable_breakout_rooms, enable_network_ui, enable_noise_cancellation_ui, enable_video_processing_ui, hide_daily_branding, redirect_on_meeting_exit, hipaa, intercom_auto_record, lang, meeting_join_hook, geo, rtmp_geo, disable_rtmp_geo_fallback, enable_terse_logging, enable_transcription_storage, transcription_bucket, recordings_template, enable_mesh_sfu, sfu_switchover, recordings_bucket, permissions, batch_processor_bucket, batch_processor_enable_medical_concept].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



383
384
385
386
387
# File 'lib/daily-ruby/models/domain_properties.rb', line 383

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  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



530
531
532
# File 'lib/daily-ruby/models/domain_properties.rb', line 530

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



536
537
538
539
540
541
542
543
544
545
546
547
548
# File 'lib/daily-ruby/models/domain_properties.rb', line 536

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



524
525
526
# File 'lib/daily-ruby/models/domain_properties.rb', line 524

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



391
392
393
394
395
396
# File 'lib/daily-ruby/models/domain_properties.rb', line 391

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  lang_validator = EnumAttributeValidator.new('String', ["de", "en", "es", "fi", "fr", "it", "jp", "ka", "nl", "no", "pt", "pt-BR", "pl", "ru", "sv", "tr", "user"])
  return false unless lang_validator.valid?(@lang)
  true
end