daily-ruby 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +13 -12
  4. data/README.md +203 -40
  5. data/daily-ruby.gemspec +4 -4
  6. data/docs/BatchRoomCreateRequest.md +18 -0
  7. data/docs/BatchRoomCreateRequestRoomsInner.md +22 -0
  8. data/docs/BatchRoomDelete200Response.md +18 -0
  9. data/docs/BatchRoomsApi.md +150 -0
  10. data/docs/CreateMeetingToken200Response.md +1 -1
  11. data/docs/CreateMeetingTokenRequest.md +18 -0
  12. data/docs/CreateRoom200Response.md +30 -0
  13. data/docs/{RoomRequest.md → CreateRoomRequest.md} +3 -3
  14. data/docs/DailyLiveStreamingOptions.md +40 -0
  15. data/docs/DailyLiveStreamingOptionsRtmpUrl.md +49 -0
  16. data/docs/DailyStreamingActiveParticipantLayoutConfig.md +18 -0
  17. data/docs/DailyStreamingCustomLayoutConfig.md +24 -0
  18. data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +15 -0
  19. data/docs/DailyStreamingDefaultLayoutConfig.md +20 -0
  20. data/docs/{ServerErrorResponse.md → DailyStreamingEndpoint.md} +4 -4
  21. data/docs/DailyStreamingLayoutConfig.md +69 -0
  22. data/docs/DailyStreamingOptions.md +36 -0
  23. data/docs/DailyStreamingPortraitLayoutConfig.md +22 -0
  24. data/docs/DailyStreamingPortraitLayoutVariant.md +15 -0
  25. data/docs/DailyStreamingSingleParticipantLayoutConfig.md +20 -0
  26. data/docs/DeleteTranscript200Response.md +30 -0
  27. data/docs/Domain.md +18 -0
  28. data/docs/DomainApi.md +149 -0
  29. data/docs/DomainProperties.md +74 -0
  30. data/docs/Eject200Response.md +18 -0
  31. data/docs/EjectRequest.md +18 -0
  32. data/docs/GetDomainConfig200Response.md +22 -0
  33. data/docs/GetDomainConfig200ResponseConfig.md +54 -0
  34. data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +20 -0
  35. data/docs/GetMeetingInfo200Response.md +20 -0
  36. data/docs/GetMeetingInfo200ResponseDataInner.md +28 -0
  37. data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +26 -0
  38. data/docs/GetPresence200Response.md +18 -0
  39. data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +28 -0
  40. data/docs/GetRecordingInfo200Response.md +36 -0
  41. data/docs/GetRecordingInfo200ResponseTracksInner.md +22 -0
  42. data/docs/GetRecordingLink200Response.md +20 -0
  43. data/docs/GetTranscriptInfo200Response.md +32 -0
  44. data/docs/GetTranscriptInfo200ResponseOutParams.md +22 -0
  45. data/docs/GetTranscriptLink200Response.md +22 -0
  46. data/docs/ListAPILogs200Response.md +38 -0
  47. data/docs/ListRecordings200Response.md +20 -0
  48. data/docs/ListRecordings200ResponseDataInner.md +30 -0
  49. data/docs/ListRooms200Response.md +20 -0
  50. data/docs/ListRooms200ResponseDataInner.md +30 -0
  51. data/docs/ListRooms200ResponseDataInnerConfig.md +18 -0
  52. data/docs/ListTranscript200Response.md +20 -0
  53. data/docs/ListTranscript200ResponseDataInner.md +28 -0
  54. data/docs/LogsApi.md +177 -0
  55. data/docs/MeetingParticipantsGetRes.md +20 -0
  56. data/docs/MeetingParticipantsGetResDataInner.md +28 -0
  57. data/docs/MeetingTokensApi.md +88 -10
  58. data/docs/MeetingsApi.md +247 -0
  59. data/docs/MeetingsMeetingGetRes.md +28 -0
  60. data/docs/Permissions.md +22 -0
  61. data/docs/{MeetingTokenRequestPropertiesPermissionsCanSend.md → PermissionsCanAdmin.md} +4 -4
  62. data/docs/{MeetingTokenRequestPropertiesPermissionsCanAdmin.md → PermissionsCanSend.md} +4 -4
  63. data/docs/PostWebhook.md +22 -0
  64. data/docs/PresenceApi.md +74 -0
  65. data/docs/Properties.md +60 -0
  66. data/docs/RecordingError.md +24 -0
  67. data/docs/RecordingErrorPayload.md +26 -0
  68. data/docs/RecordingReadyToDownload.md +24 -0
  69. data/docs/RecordingReadyToDownloadPayload.md +34 -0
  70. data/docs/RecordingStarted.md +24 -0
  71. data/docs/RecordingStartedPayload.md +28 -0
  72. data/docs/RecordingStreamingOptions.md +38 -0
  73. data/docs/RecordingsApi.md +303 -0
  74. data/docs/RecordingsBucket.md +26 -0
  75. data/docs/RoomProperties.md +94 -0
  76. data/docs/RoomPropertiesStreamingEndpointsInner.md +28 -0
  77. data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +26 -0
  78. data/docs/RoomsApi.md +1418 -0
  79. data/docs/RoomsRoomNameGetRes.md +30 -0
  80. data/docs/RoomsRoomNamePresenceGetRes.md +20 -0
  81. data/docs/RoomsRoomNamePresenceGetResDataInner.md +28 -0
  82. data/docs/SendAppMessageRequest.md +20 -0
  83. data/docs/SetRoomConfigRequest.md +20 -0
  84. data/docs/SetSessionDataRequest.md +22 -0
  85. data/docs/StreamingEnded.md +24 -0
  86. data/docs/StreamingEndedPayload.md +22 -0
  87. data/docs/StreamingError.md +24 -0
  88. data/docs/StreamingErrorPayload.md +26 -0
  89. data/docs/StreamingStarted.md +24 -0
  90. data/docs/StreamingStartedPayload.md +24 -0
  91. data/docs/StreamingUpdated.md +24 -0
  92. data/docs/StreamingUpdatedPayload.md +24 -0
  93. data/docs/TranscriptApi.md +305 -0
  94. data/docs/TranscriptionBucket.md +24 -0
  95. data/docs/TranscriptionProperties.md +32 -0
  96. data/docs/TranscriptionPropertiesEndpointing.md +49 -0
  97. data/docs/TranscriptionPropertiesRedact.md +51 -0
  98. data/docs/UpdatePermissionsRequest.md +18 -0
  99. data/docs/UpdatePermissionsRequestDataValue.md +22 -0
  100. data/docs/UpdatePermissionsRequestDataValueCanSend.md +49 -0
  101. data/docs/UpdateWebhook.md +22 -0
  102. data/docs/ValidateMeetingToken200Response.md +28 -0
  103. data/docs/Webhook.md +38 -0
  104. data/docs/WebhooksApi.md +370 -0
  105. data/example.rb +61 -0
  106. data/lib/daily-ruby/api/batch_rooms_api.rb +143 -0
  107. data/lib/daily-ruby/api/domain_api.rb +143 -0
  108. data/lib/daily-ruby/api/logs_api.rb +181 -0
  109. data/lib/daily-ruby/api/meeting_tokens_api.rb +78 -12
  110. data/lib/daily-ruby/api/meetings_api.rb +238 -0
  111. data/lib/daily-ruby/api/presence_api.rb +77 -0
  112. data/lib/daily-ruby/api/recordings_api.rb +280 -0
  113. data/lib/daily-ruby/api/rooms_api.rb +1302 -0
  114. data/lib/daily-ruby/api/transcript_api.rb +283 -0
  115. data/lib/daily-ruby/api/webhooks_api.rb +339 -0
  116. data/lib/daily-ruby/api_client.rb +4 -4
  117. data/lib/daily-ruby/api_error.rb +4 -4
  118. data/lib/daily-ruby/configuration.rb +19 -7
  119. data/lib/daily-ruby/models/{room_deleted_response.rb → batch_room_create_request.rb} +16 -24
  120. data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +232 -0
  121. data/lib/daily-ruby/models/batch_room_delete200_response.rb +214 -0
  122. data/lib/daily-ruby/models/create_meeting_token200_response.rb +4 -4
  123. data/lib/daily-ruby/models/{server_error_response.rb → create_meeting_token_request.rb} +14 -15
  124. data/lib/daily-ruby/models/create_room200_response.rb +270 -0
  125. data/lib/daily-ruby/models/create_room_request.rb +232 -0
  126. data/lib/daily-ruby/models/daily_live_streaming_options.rb +324 -0
  127. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_send.rb → daily_live_streaming_options_rtmp_url.rb} +6 -6
  128. data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb} +29 -41
  129. data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +293 -0
  130. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +105 -0
  131. data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +264 -0
  132. data/lib/daily-ruby/models/daily_streaming_endpoint.rb +221 -0
  133. data/lib/daily-ruby/models/daily_streaming_layout_config.rb +46 -0
  134. data/lib/daily-ruby/models/daily_streaming_options.rb +304 -0
  135. data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +273 -0
  136. data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +40 -0
  137. data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +271 -0
  138. data/lib/daily-ruby/models/delete_transcript200_response.rb +307 -0
  139. data/lib/daily-ruby/models/{meeting_token_request.rb → domain.rb} +8 -9
  140. data/lib/daily-ruby/models/domain_properties.rb +570 -0
  141. data/lib/daily-ruby/models/eject200_response.rb +216 -0
  142. data/lib/daily-ruby/models/eject_request.rb +217 -0
  143. data/lib/daily-ruby/models/get_domain_config200_response.rb +271 -0
  144. data/lib/daily-ruby/models/get_domain_config200_response_config.rb +395 -0
  145. data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +223 -0
  146. data/lib/daily-ruby/models/get_meeting_info200_response.rb +259 -0
  147. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +353 -0
  148. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +290 -0
  149. data/lib/daily-ruby/models/get_presence200_response.rb +243 -0
  150. data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +370 -0
  151. data/lib/daily-ruby/models/get_recording_info200_response.rb +340 -0
  152. data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +269 -0
  153. data/lib/daily-ruby/models/get_recording_link200_response.rb +225 -0
  154. data/lib/daily-ruby/models/get_transcript_info200_response.rb +317 -0
  155. data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +232 -0
  156. data/lib/daily-ruby/models/get_transcript_link200_response.rb +233 -0
  157. data/lib/daily-ruby/models/list_api_logs200_response.rb +315 -0
  158. data/lib/daily-ruby/models/list_recordings200_response.rb +227 -0
  159. data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +272 -0
  160. data/lib/daily-ruby/models/list_rooms200_response.rb +227 -0
  161. data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +270 -0
  162. data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +216 -0
  163. data/lib/daily-ruby/models/list_transcript200_response.rb +227 -0
  164. data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +298 -0
  165. data/lib/daily-ruby/models/meeting_participants_get_res.rb +225 -0
  166. data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +259 -0
  167. data/lib/daily-ruby/models/meetings_meeting_get_res.rb +259 -0
  168. data/lib/daily-ruby/models/permissions.rb +234 -0
  169. data/lib/daily-ruby/models/permissions_can_admin.rb +106 -0
  170. data/lib/daily-ruby/models/permissions_can_send.rb +106 -0
  171. data/lib/daily-ruby/models/post_webhook.rb +259 -0
  172. data/lib/daily-ruby/models/{meeting_token_request_properties.rb → properties.rb} +81 -29
  173. data/lib/daily-ruby/models/recording_error.rb +278 -0
  174. data/lib/daily-ruby/models/recording_error_payload.rb +290 -0
  175. data/lib/daily-ruby/models/recording_ready_to_download.rb +278 -0
  176. data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +344 -0
  177. data/lib/daily-ruby/models/recording_started.rb +278 -0
  178. data/lib/daily-ruby/models/recording_started_payload.rb +299 -0
  179. data/lib/daily-ruby/models/recording_streaming_options.rb +350 -0
  180. data/lib/daily-ruby/models/recordings_bucket.rb +258 -0
  181. data/lib/daily-ruby/models/room_properties.rb +678 -0
  182. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -0
  183. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +255 -0
  184. data/lib/daily-ruby/models/{room_response.rb → rooms_room_name_get_res.rb} +22 -12
  185. data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +225 -0
  186. data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +259 -0
  187. data/lib/daily-ruby/models/send_app_message_request.rb +227 -0
  188. data/lib/daily-ruby/models/set_room_config_request.rb +223 -0
  189. data/lib/daily-ruby/models/set_session_data_request.rb +273 -0
  190. data/lib/daily-ruby/models/streaming_ended.rb +278 -0
  191. data/lib/daily-ruby/models/streaming_ended_payload.rb +236 -0
  192. data/lib/daily-ruby/models/streaming_error.rb +278 -0
  193. data/lib/daily-ruby/models/streaming_error_payload.rb +256 -0
  194. data/lib/daily-ruby/models/streaming_started.rb +278 -0
  195. data/lib/daily-ruby/models/streaming_started_payload.rb +245 -0
  196. data/lib/daily-ruby/models/streaming_updated.rb +278 -0
  197. data/lib/daily-ruby/models/streaming_updated_payload.rb +245 -0
  198. data/lib/daily-ruby/models/transcription_bucket.rb +246 -0
  199. data/lib/daily-ruby/models/transcription_properties.rb +283 -0
  200. data/lib/daily-ruby/models/transcription_properties_endpointing.rb +106 -0
  201. data/lib/daily-ruby/models/transcription_properties_redact.rb +107 -0
  202. data/lib/daily-ruby/models/{room_not_found_response.rb → update_permissions_request.rb} +16 -24
  203. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions.rb → update_permissions_request_data_value.rb} +13 -12
  204. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_admin.rb → update_permissions_request_data_value_can_send.rb} +5 -5
  205. data/lib/daily-ruby/models/update_webhook.rb +259 -0
  206. data/lib/daily-ruby/models/validate_meeting_token200_response.rb +265 -0
  207. data/lib/daily-ruby/models/webhook.rb +339 -0
  208. data/lib/daily-ruby/version.rb +5 -5
  209. data/lib/daily-ruby.rb +101 -16
  210. data/run.sh +1 -1
  211. data/spec/api/batch_rooms_api_spec.rb +58 -0
  212. data/spec/api/domain_api_spec.rb +58 -0
  213. data/spec/api/logs_api_spec.rb +70 -0
  214. data/spec/api/meeting_tokens_api_spec.rb +20 -7
  215. data/spec/api/meetings_api_spec.rb +81 -0
  216. data/spec/api/presence_api_spec.rb +45 -0
  217. data/spec/api/recordings_api_spec.rb +86 -0
  218. data/spec/api/rooms_api_spec.rb +278 -0
  219. data/spec/api/transcript_api_spec.rb +87 -0
  220. data/spec/api/webhooks_api_spec.rb +95 -0
  221. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
  222. data/spec/models/batch_room_create_request_spec.rb +36 -0
  223. data/spec/models/batch_room_delete200_response_spec.rb +36 -0
  224. data/spec/models/create_meeting_token200_response_spec.rb +4 -4
  225. data/spec/models/create_meeting_token_request_spec.rb +36 -0
  226. data/spec/models/create_room200_response_spec.rb +72 -0
  227. data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
  228. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
  229. data/spec/models/daily_live_streaming_options_spec.rb +102 -0
  230. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
  231. data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
  232. data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
  233. data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
  234. data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
  235. data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
  236. data/spec/models/daily_streaming_options_spec.rb +90 -0
  237. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
  238. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
  239. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
  240. data/spec/models/delete_transcript200_response_spec.rb +76 -0
  241. data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
  242. data/spec/models/domain_spec.rb +36 -0
  243. data/spec/models/eject200_response_spec.rb +36 -0
  244. data/spec/models/eject_request_spec.rb +36 -0
  245. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
  246. data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
  247. data/spec/models/get_domain_config200_response_spec.rb +48 -0
  248. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
  249. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
  250. data/spec/models/get_meeting_info200_response_spec.rb +42 -0
  251. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
  252. data/spec/models/get_presence200_response_spec.rb +36 -0
  253. data/spec/models/get_recording_info200_response_spec.rb +94 -0
  254. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
  255. data/spec/models/get_recording_link200_response_spec.rb +42 -0
  256. data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
  257. data/spec/models/get_transcript_info200_response_spec.rb +82 -0
  258. data/spec/models/get_transcript_link200_response_spec.rb +48 -0
  259. data/spec/models/list_api_logs200_response_spec.rb +96 -0
  260. data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
  261. data/spec/models/list_recordings200_response_spec.rb +42 -0
  262. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
  263. data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
  264. data/spec/models/list_rooms200_response_spec.rb +42 -0
  265. data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
  266. data/spec/models/list_transcript200_response_spec.rb +42 -0
  267. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
  268. data/spec/models/meeting_participants_get_res_spec.rb +42 -0
  269. data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
  270. data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
  271. data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
  272. data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
  273. data/spec/models/post_webhook_spec.rb +52 -0
  274. data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
  275. data/spec/models/recording_error_payload_spec.rb +64 -0
  276. data/spec/models/recording_error_spec.rb +58 -0
  277. data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
  278. data/spec/models/recording_ready_to_download_spec.rb +58 -0
  279. data/spec/models/recording_started_payload_spec.rb +70 -0
  280. data/spec/models/recording_started_spec.rb +58 -0
  281. data/spec/models/recording_streaming_options_spec.rb +100 -0
  282. data/spec/models/recordings_bucket_spec.rb +60 -0
  283. data/spec/models/room_properties_spec.rb +272 -0
  284. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
  285. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
  286. data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
  287. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
  288. data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
  289. data/spec/models/send_app_message_request_spec.rb +42 -0
  290. data/spec/models/set_room_config_request_spec.rb +42 -0
  291. data/spec/models/set_session_data_request_spec.rb +52 -0
  292. data/spec/models/streaming_ended_payload_spec.rb +48 -0
  293. data/spec/models/streaming_ended_spec.rb +58 -0
  294. data/spec/models/streaming_error_payload_spec.rb +60 -0
  295. data/spec/models/streaming_error_spec.rb +58 -0
  296. data/spec/models/streaming_started_payload_spec.rb +54 -0
  297. data/spec/models/streaming_started_spec.rb +58 -0
  298. data/spec/models/streaming_updated_payload_spec.rb +54 -0
  299. data/spec/models/streaming_updated_spec.rb +58 -0
  300. data/spec/models/transcription_bucket_spec.rb +54 -0
  301. data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
  302. data/spec/models/transcription_properties_redact_spec.rb +32 -0
  303. data/spec/models/transcription_properties_spec.rb +78 -0
  304. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
  305. data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
  306. data/spec/models/update_permissions_request_spec.rb +36 -0
  307. data/spec/models/update_webhook_spec.rb +52 -0
  308. data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
  309. data/spec/models/webhook_spec.rb +100 -0
  310. data/spec/spec_helper.rb +4 -4
  311. metadata +391 -52
  312. data/daily.yaml +0 -422
  313. data/docs/MeetingTokenRequest.md +0 -18
  314. data/docs/MeetingTokenRequestProperties.md +0 -56
  315. data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
  316. data/docs/RoomApi.md +0 -227
  317. data/docs/RoomDeletedResponse.md +0 -20
  318. data/docs/RoomNotFoundResponse.md +0 -20
  319. data/docs/RoomRequestProperties.md +0 -76
  320. data/docs/RoomResponse.md +0 -28
  321. data/lib/daily-ruby/api/room_api.rb +0 -218
  322. data/lib/daily-ruby/models/room_request_properties.rb +0 -521
  323. data/script.rb +0 -35
  324. data/spec/api/room_api_spec.rb +0 -74
  325. data/spec/models/meeting_token_request_spec.rb +0 -36
  326. data/spec/models/room_deleted_response_spec.rb +0 -42
  327. data/spec/models/room_not_found_response_spec.rb +0 -42
  328. data/spec/models/server_error_response_spec.rb +0 -36
@@ -0,0 +1,570 @@
1
+ =begin
2
+ #Daily API
3
+
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Daily
17
+ class DomainProperties
18
+ # 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
+ attr_accessor :enable_advanced_chat
20
+
21
+ # 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
+ attr_accessor :enable_people_ui
23
+
24
+ # Sets whether rooms for this domain can use [Daily Prebuilt](https://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
+ attr_accessor :enable_pip_ui
26
+
27
+ # Determines if [Daily Prebuilt](https://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
+ attr_accessor :enable_emoji_reactions
29
+
30
+ # Sets whether the participants in the room can use [Daily Prebuilt](https://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
+ attr_accessor :enable_hand_raising
32
+
33
+ # 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](https://daily.co/blog/daily-prebuilt-video-chat) to use `enable_prejoin_ui`.
34
+ attr_accessor :enable_prejoin_ui
35
+
36
+ # Sets whether rooms for this domain have [Daily Prebuilt](https://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](https://daily.co/blog/daily-prebuilt-video-chat) to use `enable_breakout_rooms`. ⚠️ This property is in beta.
37
+ attr_accessor :enable_breakout_rooms
38
+
39
+ # 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](https://daily.co/blog/daily-prebuilt-video-chat) to use `enable_network_ui`.
40
+ attr_accessor :enable_network_ui
41
+
42
+ # 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
+ attr_accessor :enable_noise_cancellation_ui
44
+
45
+ # 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
+ attr_accessor :enable_video_processing_ui
47
+
48
+ # Whether \"Powered by Daily\" displays in the in-call UI.
49
+ attr_accessor :hide_daily_branding
50
+
51
+ # (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
+ attr_accessor :redirect_on_meeting_exit
53
+
54
+ # Email us at help@daily.co to turn on HIPAA. Learn more about [our HIPAA compliance](https://www.daily.co/hipaa-compliance).
55
+ attr_accessor :hipaa
56
+
57
+ # Whether to automatically start recording when an Intercom support agent joins an Intercom-created call. Please see our [Intercom Messenger App page](https://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
+ attr_accessor :intercom_auto_record
59
+
60
+ # 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
+ attr_accessor :lang
62
+
63
+ # Sets a URL that will receive a webhook when a user joins a room.
64
+ attr_accessor :meeting_join_hook
65
+
66
+ # 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
+ attr_accessor :geo
68
+
69
+ # 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
+ attr_accessor :rtmp_geo
71
+
72
+ # 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
+ attr_accessor :disable_rtmp_geo_fallback
74
+
75
+ # 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
+ attr_accessor :enable_terse_logging
77
+
78
+ # 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
+ attr_accessor :enable_transcription_storage
80
+
81
+ attr_accessor :transcription_bucket
82
+
83
+ # 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
+ attr_accessor :recordings_template
85
+
86
+ # 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
+ attr_accessor :enable_mesh_sfu
88
+
89
+ # 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
+ attr_accessor :sfu_switchover
91
+
92
+ attr_accessor :recordings_bucket
93
+
94
+ attr_accessor :permissions
95
+
96
+ # Defines a custom S3 bucket where the batch processor will write its output
97
+ attr_accessor :batch_processor_bucket
98
+
99
+ # Enables whether the batch processor will use [ScienceIO metadata concepts](https://www.science.io/) when generating SOAP notes.
100
+ attr_accessor :batch_processor_enable_medical_concept
101
+
102
+ class EnumAttributeValidator
103
+ attr_reader :datatype
104
+ attr_reader :allowable_values
105
+
106
+ def initialize(datatype, allowable_values)
107
+ @allowable_values = allowable_values.map do |value|
108
+ case datatype.to_s
109
+ when /Integer/i
110
+ value.to_i
111
+ when /Float/i
112
+ value.to_f
113
+ else
114
+ value
115
+ end
116
+ end
117
+ end
118
+
119
+ def valid?(value)
120
+ !value || allowable_values.include?(value)
121
+ end
122
+ end
123
+
124
+ # Attribute mapping from ruby-style variable name to JSON key.
125
+ def self.attribute_map
126
+ {
127
+ :'enable_advanced_chat' => :'enable_advanced_chat',
128
+ :'enable_people_ui' => :'enable_people_ui',
129
+ :'enable_pip_ui' => :'enable_pip_ui',
130
+ :'enable_emoji_reactions' => :'enable_emoji_reactions',
131
+ :'enable_hand_raising' => :'enable_hand_raising',
132
+ :'enable_prejoin_ui' => :'enable_prejoin_ui',
133
+ :'enable_breakout_rooms' => :'enable_breakout_rooms',
134
+ :'enable_network_ui' => :'enable_network_ui',
135
+ :'enable_noise_cancellation_ui' => :'enable_noise_cancellation_ui',
136
+ :'enable_video_processing_ui' => :'enable_video_processing_ui',
137
+ :'hide_daily_branding' => :'hide_daily_branding',
138
+ :'redirect_on_meeting_exit' => :'redirect_on_meeting_exit',
139
+ :'hipaa' => :'hipaa',
140
+ :'intercom_auto_record' => :'intercom_auto_record',
141
+ :'lang' => :'lang',
142
+ :'meeting_join_hook' => :'meeting_join_hook',
143
+ :'geo' => :'geo',
144
+ :'rtmp_geo' => :'rtmp_geo',
145
+ :'disable_rtmp_geo_fallback' => :'disable_rtmp_geo_fallback',
146
+ :'enable_terse_logging' => :'enable_terse_logging',
147
+ :'enable_transcription_storage' => :'enable_transcription_storage',
148
+ :'transcription_bucket' => :'transcription_bucket',
149
+ :'recordings_template' => :'recordings_template',
150
+ :'enable_mesh_sfu' => :'enable_mesh_sfu',
151
+ :'sfu_switchover' => :'sfu_switchover',
152
+ :'recordings_bucket' => :'recordings_bucket',
153
+ :'permissions' => :'permissions',
154
+ :'batch_processor_bucket' => :'batch_processor_bucket',
155
+ :'batch_processor_enable_medical_concept' => :'batch_processor_enable_medical_concept'
156
+ }
157
+ end
158
+
159
+ # Returns all the JSON keys this model knows about
160
+ def self.acceptable_attributes
161
+ attribute_map.values
162
+ end
163
+
164
+ # Attribute type mapping.
165
+ def self.openapi_types
166
+ {
167
+ :'enable_advanced_chat' => :'Boolean',
168
+ :'enable_people_ui' => :'Boolean',
169
+ :'enable_pip_ui' => :'Boolean',
170
+ :'enable_emoji_reactions' => :'Boolean',
171
+ :'enable_hand_raising' => :'Boolean',
172
+ :'enable_prejoin_ui' => :'Boolean',
173
+ :'enable_breakout_rooms' => :'Boolean',
174
+ :'enable_network_ui' => :'Boolean',
175
+ :'enable_noise_cancellation_ui' => :'Boolean',
176
+ :'enable_video_processing_ui' => :'Boolean',
177
+ :'hide_daily_branding' => :'Boolean',
178
+ :'redirect_on_meeting_exit' => :'String',
179
+ :'hipaa' => :'Boolean',
180
+ :'intercom_auto_record' => :'Boolean',
181
+ :'lang' => :'String',
182
+ :'meeting_join_hook' => :'String',
183
+ :'geo' => :'String',
184
+ :'rtmp_geo' => :'String',
185
+ :'disable_rtmp_geo_fallback' => :'Boolean',
186
+ :'enable_terse_logging' => :'Boolean',
187
+ :'enable_transcription_storage' => :'Boolean',
188
+ :'transcription_bucket' => :'TranscriptionBucket',
189
+ :'recordings_template' => :'String',
190
+ :'enable_mesh_sfu' => :'Boolean',
191
+ :'sfu_switchover' => :'Float',
192
+ :'recordings_bucket' => :'RecordingsBucket',
193
+ :'permissions' => :'Permissions',
194
+ :'batch_processor_bucket' => :'Object',
195
+ :'batch_processor_enable_medical_concept' => :'Boolean'
196
+ }
197
+ end
198
+
199
+ # List of attributes with nullable: true
200
+ def self.openapi_nullable
201
+ Set.new([
202
+ ])
203
+ end
204
+
205
+ # Initializes the object
206
+ # @param [Hash] attributes Model attributes in the form of hash
207
+ def initialize(attributes = {})
208
+ if (!attributes.is_a?(Hash))
209
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::DomainProperties` initialize method"
210
+ end
211
+
212
+ # check to see if the attribute exists and convert string to symbol for hash key
213
+ attributes = attributes.each_with_object({}) { |(k, v), h|
214
+ if (!self.class.attribute_map.key?(k.to_sym))
215
+ 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
216
+ end
217
+ h[k.to_sym] = v
218
+ }
219
+
220
+ if attributes.key?(:'enable_advanced_chat')
221
+ self.enable_advanced_chat = attributes[:'enable_advanced_chat']
222
+ else
223
+ self.enable_advanced_chat = false
224
+ end
225
+
226
+ if attributes.key?(:'enable_people_ui')
227
+ self.enable_people_ui = attributes[:'enable_people_ui']
228
+ else
229
+ self.enable_people_ui = true
230
+ end
231
+
232
+ if attributes.key?(:'enable_pip_ui')
233
+ self.enable_pip_ui = attributes[:'enable_pip_ui']
234
+ else
235
+ self.enable_pip_ui = false
236
+ end
237
+
238
+ if attributes.key?(:'enable_emoji_reactions')
239
+ self.enable_emoji_reactions = attributes[:'enable_emoji_reactions']
240
+ else
241
+ self.enable_emoji_reactions = false
242
+ end
243
+
244
+ if attributes.key?(:'enable_hand_raising')
245
+ self.enable_hand_raising = attributes[:'enable_hand_raising']
246
+ else
247
+ self.enable_hand_raising = false
248
+ end
249
+
250
+ if attributes.key?(:'enable_prejoin_ui')
251
+ self.enable_prejoin_ui = attributes[:'enable_prejoin_ui']
252
+ else
253
+ self.enable_prejoin_ui = true
254
+ end
255
+
256
+ if attributes.key?(:'enable_breakout_rooms')
257
+ self.enable_breakout_rooms = attributes[:'enable_breakout_rooms']
258
+ else
259
+ self.enable_breakout_rooms = false
260
+ end
261
+
262
+ if attributes.key?(:'enable_network_ui')
263
+ self.enable_network_ui = attributes[:'enable_network_ui']
264
+ else
265
+ self.enable_network_ui = false
266
+ end
267
+
268
+ if attributes.key?(:'enable_noise_cancellation_ui')
269
+ self.enable_noise_cancellation_ui = attributes[:'enable_noise_cancellation_ui']
270
+ else
271
+ self.enable_noise_cancellation_ui = true
272
+ end
273
+
274
+ if attributes.key?(:'enable_video_processing_ui')
275
+ self.enable_video_processing_ui = attributes[:'enable_video_processing_ui']
276
+ else
277
+ self.enable_video_processing_ui = true
278
+ end
279
+
280
+ if attributes.key?(:'hide_daily_branding')
281
+ self.hide_daily_branding = attributes[:'hide_daily_branding']
282
+ else
283
+ self.hide_daily_branding = false
284
+ end
285
+
286
+ if attributes.key?(:'redirect_on_meeting_exit')
287
+ self.redirect_on_meeting_exit = attributes[:'redirect_on_meeting_exit']
288
+ end
289
+
290
+ if attributes.key?(:'hipaa')
291
+ self.hipaa = attributes[:'hipaa']
292
+ else
293
+ self.hipaa = false
294
+ end
295
+
296
+ if attributes.key?(:'intercom_auto_record')
297
+ self.intercom_auto_record = attributes[:'intercom_auto_record']
298
+ end
299
+
300
+ if attributes.key?(:'lang')
301
+ self.lang = attributes[:'lang']
302
+ else
303
+ self.lang = 'en'
304
+ end
305
+
306
+ if attributes.key?(:'meeting_join_hook')
307
+ self.meeting_join_hook = attributes[:'meeting_join_hook']
308
+ else
309
+ self.meeting_join_hook = 'NULL'
310
+ end
311
+
312
+ if attributes.key?(:'geo')
313
+ self.geo = attributes[:'geo']
314
+ else
315
+ self.geo = 'NULL'
316
+ end
317
+
318
+ if attributes.key?(:'rtmp_geo')
319
+ self.rtmp_geo = attributes[:'rtmp_geo']
320
+ else
321
+ self.rtmp_geo = 'The closest available region to the SFU region used by the meeting.'
322
+ end
323
+
324
+ if attributes.key?(:'disable_rtmp_geo_fallback')
325
+ self.disable_rtmp_geo_fallback = attributes[:'disable_rtmp_geo_fallback']
326
+ else
327
+ self.disable_rtmp_geo_fallback = false
328
+ end
329
+
330
+ if attributes.key?(:'enable_terse_logging')
331
+ self.enable_terse_logging = attributes[:'enable_terse_logging']
332
+ else
333
+ self.enable_terse_logging = false
334
+ end
335
+
336
+ if attributes.key?(:'enable_transcription_storage')
337
+ self.enable_transcription_storage = attributes[:'enable_transcription_storage']
338
+ else
339
+ self.enable_transcription_storage = false
340
+ end
341
+
342
+ if attributes.key?(:'transcription_bucket')
343
+ self.transcription_bucket = attributes[:'transcription_bucket']
344
+ end
345
+
346
+ if attributes.key?(:'recordings_template')
347
+ self.recordings_template = attributes[:'recordings_template']
348
+ else
349
+ self.recordings_template = '{domain_name}/{room_name}/{epoch_time}.'
350
+ end
351
+
352
+ if attributes.key?(:'enable_mesh_sfu')
353
+ self.enable_mesh_sfu = attributes[:'enable_mesh_sfu']
354
+ end
355
+
356
+ if attributes.key?(:'sfu_switchover')
357
+ self.sfu_switchover = attributes[:'sfu_switchover']
358
+ else
359
+ self.sfu_switchover = 2
360
+ end
361
+
362
+ if attributes.key?(:'recordings_bucket')
363
+ self.recordings_bucket = attributes[:'recordings_bucket']
364
+ end
365
+
366
+ if attributes.key?(:'permissions')
367
+ self.permissions = attributes[:'permissions']
368
+ end
369
+
370
+ if attributes.key?(:'batch_processor_bucket')
371
+ self.batch_processor_bucket = attributes[:'batch_processor_bucket']
372
+ end
373
+
374
+ if attributes.key?(:'batch_processor_enable_medical_concept')
375
+ self.batch_processor_enable_medical_concept = attributes[:'batch_processor_enable_medical_concept']
376
+ else
377
+ self.batch_processor_enable_medical_concept = true
378
+ end
379
+ end
380
+
381
+ # Show invalid properties with the reasons. Usually used together with valid?
382
+ # @return Array for valid properties with the reasons
383
+ def list_invalid_properties
384
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
385
+ invalid_properties = Array.new
386
+ invalid_properties
387
+ end
388
+
389
+ # Check to see if the all the properties in the model are valid
390
+ # @return true if the model is valid
391
+ def valid?
392
+ warn '[DEPRECATED] the `valid?` method is obsolete'
393
+ lang_validator = EnumAttributeValidator.new('String', ["de", "en", "es", "fi", "fr", "it", "jp", "ka", "nl", "no", "pt", "pt-BR", "pl", "ru", "sv", "tr", "user"])
394
+ return false unless lang_validator.valid?(@lang)
395
+ true
396
+ end
397
+
398
+ # Custom attribute writer method checking allowed values (enum).
399
+ # @param [Object] lang Object to be assigned
400
+ def lang=(lang)
401
+ validator = EnumAttributeValidator.new('String', ["de", "en", "es", "fi", "fr", "it", "jp", "ka", "nl", "no", "pt", "pt-BR", "pl", "ru", "sv", "tr", "user"])
402
+ unless validator.valid?(lang)
403
+ fail ArgumentError, "invalid value for \"lang\", must be one of #{validator.allowable_values}."
404
+ end
405
+ @lang = lang
406
+ end
407
+
408
+ # Checks equality by comparing each attribute.
409
+ # @param [Object] Object to be compared
410
+ def ==(o)
411
+ return true if self.equal?(o)
412
+ self.class == o.class &&
413
+ enable_advanced_chat == o.enable_advanced_chat &&
414
+ enable_people_ui == o.enable_people_ui &&
415
+ enable_pip_ui == o.enable_pip_ui &&
416
+ enable_emoji_reactions == o.enable_emoji_reactions &&
417
+ enable_hand_raising == o.enable_hand_raising &&
418
+ enable_prejoin_ui == o.enable_prejoin_ui &&
419
+ enable_breakout_rooms == o.enable_breakout_rooms &&
420
+ enable_network_ui == o.enable_network_ui &&
421
+ enable_noise_cancellation_ui == o.enable_noise_cancellation_ui &&
422
+ enable_video_processing_ui == o.enable_video_processing_ui &&
423
+ hide_daily_branding == o.hide_daily_branding &&
424
+ redirect_on_meeting_exit == o.redirect_on_meeting_exit &&
425
+ hipaa == o.hipaa &&
426
+ intercom_auto_record == o.intercom_auto_record &&
427
+ lang == o.lang &&
428
+ meeting_join_hook == o.meeting_join_hook &&
429
+ geo == o.geo &&
430
+ rtmp_geo == o.rtmp_geo &&
431
+ disable_rtmp_geo_fallback == o.disable_rtmp_geo_fallback &&
432
+ enable_terse_logging == o.enable_terse_logging &&
433
+ enable_transcription_storage == o.enable_transcription_storage &&
434
+ transcription_bucket == o.transcription_bucket &&
435
+ recordings_template == o.recordings_template &&
436
+ enable_mesh_sfu == o.enable_mesh_sfu &&
437
+ sfu_switchover == o.sfu_switchover &&
438
+ recordings_bucket == o.recordings_bucket &&
439
+ permissions == o.permissions &&
440
+ batch_processor_bucket == o.batch_processor_bucket &&
441
+ batch_processor_enable_medical_concept == o.batch_processor_enable_medical_concept
442
+ end
443
+
444
+ # @see the `==` method
445
+ # @param [Object] Object to be compared
446
+ def eql?(o)
447
+ self == o
448
+ end
449
+
450
+ # Calculates hash code according to all attributes.
451
+ # @return [Integer] Hash code
452
+ def hash
453
+ [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
454
+ end
455
+
456
+ # Builds the object from hash
457
+ # @param [Hash] attributes Model attributes in the form of hash
458
+ # @return [Object] Returns the model itself
459
+ def self.build_from_hash(attributes)
460
+ return nil unless attributes.is_a?(Hash)
461
+ attributes = attributes.transform_keys(&:to_sym)
462
+ transformed_hash = {}
463
+ openapi_types.each_pair do |key, type|
464
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
465
+ transformed_hash["#{key}"] = nil
466
+ elsif type =~ /\AArray<(.*)>/i
467
+ # check to ensure the input is an array given that the attribute
468
+ # is documented as an array but the input is not
469
+ if attributes[attribute_map[key]].is_a?(Array)
470
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
471
+ end
472
+ elsif !attributes[attribute_map[key]].nil?
473
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
474
+ end
475
+ end
476
+ new(transformed_hash)
477
+ end
478
+
479
+ # Deserializes the data based on type
480
+ # @param string type Data type
481
+ # @param string value Value to be deserialized
482
+ # @return [Object] Deserialized data
483
+ def self._deserialize(type, value)
484
+ case type.to_sym
485
+ when :Time
486
+ Time.parse(value)
487
+ when :Date
488
+ Date.parse(value)
489
+ when :String
490
+ value.to_s
491
+ when :Integer
492
+ value.to_i
493
+ when :Float
494
+ value.to_f
495
+ when :Boolean
496
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
497
+ true
498
+ else
499
+ false
500
+ end
501
+ when :Object
502
+ # generic object (usually a Hash), return directly
503
+ value
504
+ when /\AArray<(?<inner_type>.+)>\z/
505
+ inner_type = Regexp.last_match[:inner_type]
506
+ value.map { |v| _deserialize(inner_type, v) }
507
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
508
+ k_type = Regexp.last_match[:k_type]
509
+ v_type = Regexp.last_match[:v_type]
510
+ {}.tap do |hash|
511
+ value.each do |k, v|
512
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
513
+ end
514
+ end
515
+ else # model
516
+ # models (e.g. Pet) or oneOf
517
+ klass = Daily.const_get(type)
518
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
519
+ end
520
+ end
521
+
522
+ # Returns the string representation of the object
523
+ # @return [String] String presentation of the object
524
+ def to_s
525
+ to_hash.to_s
526
+ end
527
+
528
+ # to_body is an alias to to_hash (backward compatibility)
529
+ # @return [Hash] Returns the object in the form of hash
530
+ def to_body
531
+ to_hash
532
+ end
533
+
534
+ # Returns the object in the form of hash
535
+ # @return [Hash] Returns the object in the form of hash
536
+ def to_hash
537
+ hash = {}
538
+ self.class.attribute_map.each_pair do |attr, param|
539
+ value = self.send(attr)
540
+ if value.nil?
541
+ is_nullable = self.class.openapi_nullable.include?(attr)
542
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
543
+ end
544
+
545
+ hash[param] = _to_hash(value)
546
+ end
547
+ hash
548
+ end
549
+
550
+ # Outputs non-array value in the form of hash
551
+ # For object, use to_hash. Otherwise, just return the value
552
+ # @param [Object] value Any valid value
553
+ # @return [Hash] Returns the value in the form of hash
554
+ def _to_hash(value)
555
+ if value.is_a?(Array)
556
+ value.compact.map { |v| _to_hash(v) }
557
+ elsif value.is_a?(Hash)
558
+ {}.tap do |hash|
559
+ value.each { |k, v| hash[k] = _to_hash(v) }
560
+ end
561
+ elsif value.respond_to? :to_hash
562
+ value.to_hash
563
+ else
564
+ value
565
+ end
566
+ end
567
+
568
+ end
569
+
570
+ end