daily-ruby 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (329) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +13 -12
  4. data/README.md +198 -42
  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 +18 -0
  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/DailyStreamingEndpoint.md +18 -0
  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 +92 -14
  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 +81 -15
  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/{meeting_token_response.rb → create_meeting_token200_response.rb} +7 -9
  123. data/lib/daily-ruby/models/{room_not_found_response.rb → create_meeting_token_request.rb} +14 -24
  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/{server_error_response.rb → transcription_bucket.rb} +46 -16
  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/update_permissions_request.rb +216 -0
  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 +102 -17
  210. data/spec/api/batch_rooms_api_spec.rb +58 -0
  211. data/spec/api/domain_api_spec.rb +58 -0
  212. data/spec/api/logs_api_spec.rb +70 -0
  213. data/spec/api/meeting_tokens_api_spec.rb +21 -8
  214. data/spec/api/meetings_api_spec.rb +81 -0
  215. data/spec/api/presence_api_spec.rb +45 -0
  216. data/spec/api/recordings_api_spec.rb +86 -0
  217. data/spec/api/rooms_api_spec.rb +278 -0
  218. data/spec/api/transcript_api_spec.rb +87 -0
  219. data/spec/api/webhooks_api_spec.rb +95 -0
  220. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
  221. data/spec/models/batch_room_create_request_spec.rb +36 -0
  222. data/spec/models/batch_room_delete200_response_spec.rb +36 -0
  223. data/spec/models/create_meeting_token200_response_spec.rb +36 -0
  224. data/spec/models/create_meeting_token_request_spec.rb +36 -0
  225. data/spec/models/create_room200_response_spec.rb +72 -0
  226. data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
  227. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
  228. data/spec/models/daily_live_streaming_options_spec.rb +102 -0
  229. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
  230. data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
  231. data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
  232. data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
  233. data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
  234. data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
  235. data/spec/models/daily_streaming_options_spec.rb +90 -0
  236. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
  237. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
  238. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
  239. data/spec/models/delete_transcript200_response_spec.rb +76 -0
  240. data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
  241. data/spec/models/domain_spec.rb +36 -0
  242. data/spec/models/eject200_response_spec.rb +36 -0
  243. data/spec/models/eject_request_spec.rb +36 -0
  244. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
  245. data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
  246. data/spec/models/get_domain_config200_response_spec.rb +48 -0
  247. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
  248. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
  249. data/spec/models/get_meeting_info200_response_spec.rb +42 -0
  250. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
  251. data/spec/models/get_presence200_response_spec.rb +36 -0
  252. data/spec/models/get_recording_info200_response_spec.rb +94 -0
  253. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
  254. data/spec/models/get_recording_link200_response_spec.rb +42 -0
  255. data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
  256. data/spec/models/get_transcript_info200_response_spec.rb +82 -0
  257. data/spec/models/get_transcript_link200_response_spec.rb +48 -0
  258. data/spec/models/list_api_logs200_response_spec.rb +96 -0
  259. data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
  260. data/spec/models/list_recordings200_response_spec.rb +42 -0
  261. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
  262. data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
  263. data/spec/models/list_rooms200_response_spec.rb +42 -0
  264. data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
  265. data/spec/models/list_transcript200_response_spec.rb +42 -0
  266. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
  267. data/spec/models/meeting_participants_get_res_spec.rb +42 -0
  268. data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
  269. data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
  270. data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
  271. data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
  272. data/spec/models/post_webhook_spec.rb +52 -0
  273. data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
  274. data/spec/models/recording_error_payload_spec.rb +64 -0
  275. data/spec/models/recording_error_spec.rb +58 -0
  276. data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
  277. data/spec/models/recording_ready_to_download_spec.rb +58 -0
  278. data/spec/models/recording_started_payload_spec.rb +70 -0
  279. data/spec/models/recording_started_spec.rb +58 -0
  280. data/spec/models/recording_streaming_options_spec.rb +100 -0
  281. data/spec/models/recordings_bucket_spec.rb +60 -0
  282. data/spec/models/room_properties_spec.rb +272 -0
  283. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
  284. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
  285. data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
  286. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
  287. data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
  288. data/spec/models/send_app_message_request_spec.rb +42 -0
  289. data/spec/models/set_room_config_request_spec.rb +42 -0
  290. data/spec/models/set_session_data_request_spec.rb +52 -0
  291. data/spec/models/streaming_ended_payload_spec.rb +48 -0
  292. data/spec/models/streaming_ended_spec.rb +58 -0
  293. data/spec/models/streaming_error_payload_spec.rb +60 -0
  294. data/spec/models/streaming_error_spec.rb +58 -0
  295. data/spec/models/streaming_started_payload_spec.rb +54 -0
  296. data/spec/models/streaming_started_spec.rb +58 -0
  297. data/spec/models/streaming_updated_payload_spec.rb +54 -0
  298. data/spec/models/streaming_updated_spec.rb +58 -0
  299. data/spec/models/transcription_bucket_spec.rb +54 -0
  300. data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
  301. data/spec/models/transcription_properties_redact_spec.rb +32 -0
  302. data/spec/models/transcription_properties_spec.rb +78 -0
  303. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
  304. data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
  305. data/spec/models/update_permissions_request_spec.rb +36 -0
  306. data/spec/models/update_webhook_spec.rb +52 -0
  307. data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
  308. data/spec/models/webhook_spec.rb +100 -0
  309. data/spec/spec_helper.rb +4 -4
  310. metadata +395 -55
  311. data/daily.yaml +0 -460
  312. data/docs/MeetingTokenRequest.md +0 -18
  313. data/docs/MeetingTokenRequestProperties.md +0 -56
  314. data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
  315. data/docs/MeetingTokenResponse.md +0 -18
  316. data/docs/RoomApi.md +0 -297
  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/docs/ServerErrorResponse.md +0 -18
  322. data/lib/daily-ruby/api/room_api.rb +0 -281
  323. data/lib/daily-ruby/models/room_request_properties.rb +0 -521
  324. data/spec/api/room_api_spec.rb +0 -86
  325. data/spec/models/meeting_token_request_spec.rb +0 -36
  326. data/spec/models/meeting_token_response_spec.rb +0 -36
  327. data/spec/models/room_deleted_response_spec.rb +0 -42
  328. data/spec/models/room_not_found_response_spec.rb +0 -42
  329. data/spec/models/server_error_response_spec.rb +0 -36
@@ -0,0 +1,267 @@
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 RoomPropertiesStreamingEndpointsInner
18
+ # # Used by the `startLiveStreaming()` API to reference which stream configuration to start.
19
+ # attr_accessor :name
20
+
21
+ # # Whether the streaming endpoint is `rtmp` or `hls`.
22
+ # attr_accessor :type
23
+
24
+ # # The `s3Key` path prefix for where to store the recordings. Therefore, the final final master.m3u8 path template is `<bucket_name>/<path>/<mtgSessionId>/master.m3u8`, i.e. `hls_config['storage']['bucket_name']/hls_config['storage']['path']/<mtgSessionId>/master.m3u8`.
25
+ # attr_accessor :hls_config_storage_path
26
+
27
+ # # `path_template` is made up of a replacement string with prefixes, suffixes, or both. `path_template` without replacement string is also valid. The currently supported replacements are: - `epoch_time`: The epoch time in seconds (optional) - `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) - `live_streaming_id`: The ID of the live streaming in our DB (optional) The restrictions for defining a recording template are as follows: - 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 Examples - Example domain: \"myDomain\" - Example room: \"myRoom\" - example hls bucket: \"HLS_S3_BUCKET\" Example 1: - Template: `my-hls-{domain_name}-{epoch_time}` - Resulting path of master.m3u8: `s3://HLS_S3_BUCKET/my-hls-myDomain-1675842936274/master.m3u8` Example 2: - Template: `{room_name}/{instance_id}/` - Resulting path of master.m3u8: `myRoom/d529cd2f-fbcc-4fb7-b2c0-c4995b1162b6/master.m3u8`
28
+ # attr_accessor :hls_config_storage_path_template
29
+
30
+ # # If `true`, the live stream will be saved as a recording after streaming has ended. If `false`, the stream is available only until the streaming is live.
31
+ # attr_accessor :hls_config_save_hls_recording
32
+
33
+ # # An optional array of variants to generate for HLS. For most use cases this property can be omitted as Daily uses sensible defaults. The array defines the resolution, FPS, and bitrate for each variant. The following limitations apply: - There can be a maximum of one variant with 1080p resolution. All other variants must be less than or equal to 720p. - A maximum of four variants can be specified, other than iframe-only stream - We do not support iframe-only variant, at least one full-stream variant is required
34
+ # attr_accessor :hls_config_variants
35
+
36
+ # # Attribute mapping from ruby-style variable name to JSON key.
37
+ # def self.attribute_map
38
+ # {
39
+ # :'name' => :'name',
40
+ # :'type' => :'type',
41
+ # :'hls_config_storage_path' => :'hls_config['storage']['path']',
42
+ # :'hls_config_storage_path_template' => :'hls_config['storage']['path_template']',
43
+ # :'hls_config_save_hls_recording' => :'hls_config['save_hls_recording']',
44
+ # :'hls_config_variants' => :'hls_config['variants']'
45
+ # }
46
+ # end
47
+
48
+ # # Returns all the JSON keys this model knows about
49
+ # def self.acceptable_attributes
50
+ # attribute_map.values
51
+ # end
52
+
53
+ # # Attribute type mapping.
54
+ # def self.openapi_types
55
+ # {
56
+ # :'name' => :'String',
57
+ # :'type' => :'String',
58
+ # :'hls_config_storage_path' => :'String',
59
+ # :'hls_config_storage_path_template' => :'String',
60
+ # :'hls_config_save_hls_recording' => :'Boolean',
61
+ # :'hls_config_variants' => :'Array<RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner>'
62
+ # }
63
+ # end
64
+
65
+ # # List of attributes with nullable: true
66
+ # def self.openapi_nullable
67
+ # Set.new([
68
+ # ])
69
+ # end
70
+
71
+ # # Initializes the object
72
+ # # @param [Hash] attributes Model attributes in the form of hash
73
+ # def initialize(attributes = {})
74
+ # if (!attributes.is_a?(Hash))
75
+ # fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomPropertiesStreamingEndpointsInner` initialize method"
76
+ # end
77
+
78
+ # # check to see if the attribute exists and convert string to symbol for hash key
79
+ # attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ # if (!self.class.attribute_map.key?(k.to_sym))
81
+ # fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomPropertiesStreamingEndpointsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ # end
83
+ # h[k.to_sym] = v
84
+ # }
85
+
86
+ # if attributes.key?(:'name')
87
+ # self.name = attributes[:'name']
88
+ # end
89
+
90
+ # if attributes.key?(:'type')
91
+ # self.type = attributes[:'type']
92
+ # end
93
+
94
+ # if attributes.key?(:'hls_config_storage_path')
95
+ # self.hls_config_storage_path = attributes[:'hls_config_storage_path']
96
+ # end
97
+
98
+ # if attributes.key?(:'hls_config_storage_path_template')
99
+ # self.hls_config_storage_path_template = attributes[:'hls_config_storage_path_template']
100
+ # end
101
+
102
+ # if attributes.key?(:'hls_config_save_hls_recording')
103
+ # self.hls_config_save_hls_recording = attributes[:'hls_config_save_hls_recording']
104
+ # end
105
+
106
+ # if attributes.key?(:'hls_config_variants')
107
+ # if (value = attributes[:'hls_config_variants']).is_a?(Array)
108
+ # self.hls_config_variants = value
109
+ # end
110
+ # end
111
+ # end
112
+
113
+ # # Show invalid properties with the reasons. Usually used together with valid?
114
+ # # @return Array for valid properties with the reasons
115
+ # def list_invalid_properties
116
+ # warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
+ # invalid_properties = Array.new
118
+ # invalid_properties
119
+ # end
120
+
121
+ # # Check to see if the all the properties in the model are valid
122
+ # # @return true if the model is valid
123
+ # def valid?
124
+ # warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ # true
126
+ # end
127
+
128
+ # # Checks equality by comparing each attribute.
129
+ # # @param [Object] Object to be compared
130
+ # def ==(o)
131
+ # return true if self.equal?(o)
132
+ # self.class == o.class &&
133
+ # name == o.name &&
134
+ # type == o.type &&
135
+ # hls_config_storage_path == o.hls_config_storage_path &&
136
+ # hls_config_storage_path_template == o.hls_config_storage_path_template &&
137
+ # hls_config_save_hls_recording == o.hls_config_save_hls_recording &&
138
+ # hls_config_variants == o.hls_config_variants
139
+ # end
140
+
141
+ # # @see the `==` method
142
+ # # @param [Object] Object to be compared
143
+ # def eql?(o)
144
+ # self == o
145
+ # end
146
+
147
+ # # Calculates hash code according to all attributes.
148
+ # # @return [Integer] Hash code
149
+ # def hash
150
+ # [name, type, hls_config_storage_path, hls_config_storage_path_template, hls_config_save_hls_recording, hls_config_variants].hash
151
+ # end
152
+
153
+ # # Builds the object from hash
154
+ # # @param [Hash] attributes Model attributes in the form of hash
155
+ # # @return [Object] Returns the model itself
156
+ # def self.build_from_hash(attributes)
157
+ # return nil unless attributes.is_a?(Hash)
158
+ # attributes = attributes.transform_keys(&:to_sym)
159
+ # transformed_hash = {}
160
+ # openapi_types.each_pair do |key, type|
161
+ # if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
162
+ # transformed_hash["#{key}"] = nil
163
+ # elsif type =~ /\AArray<(.*)>/i
164
+ # # check to ensure the input is an array given that the attribute
165
+ # # is documented as an array but the input is not
166
+ # if attributes[attribute_map[key]].is_a?(Array)
167
+ # transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
168
+ # end
169
+ # elsif !attributes[attribute_map[key]].nil?
170
+ # transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
171
+ # end
172
+ # end
173
+ # new(transformed_hash)
174
+ # end
175
+
176
+ # # Deserializes the data based on type
177
+ # # @param string type Data type
178
+ # # @param string value Value to be deserialized
179
+ # # @return [Object] Deserialized data
180
+ # def self._deserialize(type, value)
181
+ # case type.to_sym
182
+ # when :Time
183
+ # Time.parse(value)
184
+ # when :Date
185
+ # Date.parse(value)
186
+ # when :String
187
+ # value.to_s
188
+ # when :Integer
189
+ # value.to_i
190
+ # when :Float
191
+ # value.to_f
192
+ # when :Boolean
193
+ # if value.to_s =~ /\A(true|t|yes|y|1)\z/i
194
+ # true
195
+ # else
196
+ # false
197
+ # end
198
+ # when :Object
199
+ # # generic object (usually a Hash), return directly
200
+ # value
201
+ # when /\AArray<(?<inner_type>.+)>\z/
202
+ # inner_type = Regexp.last_match[:inner_type]
203
+ # value.map { |v| _deserialize(inner_type, v) }
204
+ # when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
205
+ # k_type = Regexp.last_match[:k_type]
206
+ # v_type = Regexp.last_match[:v_type]
207
+ # {}.tap do |hash|
208
+ # value.each do |k, v|
209
+ # hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
210
+ # end
211
+ # end
212
+ # else # model
213
+ # # models (e.g. Pet) or oneOf
214
+ # klass = Daily.const_get(type)
215
+ # klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
216
+ # end
217
+ # end
218
+
219
+ # # Returns the string representation of the object
220
+ # # @return [String] String presentation of the object
221
+ # def to_s
222
+ # to_hash.to_s
223
+ # end
224
+
225
+ # # to_body is an alias to to_hash (backward compatibility)
226
+ # # @return [Hash] Returns the object in the form of hash
227
+ # def to_body
228
+ # to_hash
229
+ # end
230
+
231
+ # # Returns the object in the form of hash
232
+ # # @return [Hash] Returns the object in the form of hash
233
+ # def to_hash
234
+ # hash = {}
235
+ # self.class.attribute_map.each_pair do |attr, param|
236
+ # value = self.send(attr)
237
+ # if value.nil?
238
+ # is_nullable = self.class.openapi_nullable.include?(attr)
239
+ # next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
240
+ # end
241
+
242
+ # hash[param] = _to_hash(value)
243
+ # end
244
+ # hash
245
+ # end
246
+
247
+ # # Outputs non-array value in the form of hash
248
+ # # For object, use to_hash. Otherwise, just return the value
249
+ # # @param [Object] value Any valid value
250
+ # # @return [Hash] Returns the value in the form of hash
251
+ # def _to_hash(value)
252
+ # if value.is_a?(Array)
253
+ # value.compact.map { |v| _to_hash(v) }
254
+ # elsif value.is_a?(Hash)
255
+ # {}.tap do |hash|
256
+ # value.each { |k, v| hash[k] = _to_hash(v) }
257
+ # end
258
+ # elsif value.respond_to? :to_hash
259
+ # value.to_hash
260
+ # else
261
+ # value
262
+ # end
263
+ # end
264
+
265
+ # end
266
+
267
+ # end
@@ -0,0 +1,255 @@
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 RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner
18
+ # Output width. Min: `32`. Max: `1920`.
19
+ attr_accessor :width
20
+
21
+ # Output height. Min: `32`. Max: `1920`. For portrait mode, the height can be greater than the width.
22
+ attr_accessor :height
23
+
24
+ # Output FPS. Min: `1`. Max: `30`.
25
+ attr_accessor :fps
26
+
27
+ # Bitrate in kilobits per second (kbps). Min: `100`. Max: `5000`.
28
+ attr_accessor :bitrate
29
+
30
+ # Whether this variant is iframe-only. One iframe is generated for each segment. If `true`, the `fps` property is ignored.
31
+ attr_accessor :iframe_only
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'width' => :'width',
37
+ :'height' => :'height',
38
+ :'fps' => :'fps',
39
+ :'bitrate' => :'bitrate',
40
+ :'iframe_only' => :'iframe_only'
41
+ }
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'width' => :'Float',
53
+ :'height' => :'Float',
54
+ :'fps' => :'Float',
55
+ :'bitrate' => :'Float',
56
+ :'iframe_only' => :'Boolean'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'width')
82
+ self.width = attributes[:'width']
83
+ end
84
+
85
+ if attributes.key?(:'height')
86
+ self.height = attributes[:'height']
87
+ end
88
+
89
+ if attributes.key?(:'fps')
90
+ self.fps = attributes[:'fps']
91
+ end
92
+
93
+ if attributes.key?(:'bitrate')
94
+ self.bitrate = attributes[:'bitrate']
95
+ end
96
+
97
+ if attributes.key?(:'iframe_only')
98
+ self.iframe_only = attributes[:'iframe_only']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
106
+ invalid_properties = Array.new
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ warn '[DEPRECATED] the `valid?` method is obsolete'
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ width == o.width &&
123
+ height == o.height &&
124
+ fps == o.fps &&
125
+ bitrate == o.bitrate &&
126
+ iframe_only == o.iframe_only
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Integer] Hash code
137
+ def hash
138
+ [width, height, fps, bitrate, iframe_only].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def self.build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
+ end
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
160
+ end
161
+ new(transformed_hash)
162
+ end
163
+
164
+ # Deserializes the data based on type
165
+ # @param string type Data type
166
+ # @param string value Value to be deserialized
167
+ # @return [Object] Deserialized data
168
+ def self._deserialize(type, value)
169
+ case type.to_sym
170
+ when :Time
171
+ Time.parse(value)
172
+ when :Date
173
+ Date.parse(value)
174
+ when :String
175
+ value.to_s
176
+ when :Integer
177
+ value.to_i
178
+ when :Float
179
+ value.to_f
180
+ when :Boolean
181
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
+ true
183
+ else
184
+ false
185
+ end
186
+ when :Object
187
+ # generic object (usually a Hash), return directly
188
+ value
189
+ when /\AArray<(?<inner_type>.+)>\z/
190
+ inner_type = Regexp.last_match[:inner_type]
191
+ value.map { |v| _deserialize(inner_type, v) }
192
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
+ k_type = Regexp.last_match[:k_type]
194
+ v_type = Regexp.last_match[:v_type]
195
+ {}.tap do |hash|
196
+ value.each do |k, v|
197
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
198
+ end
199
+ end
200
+ else # model
201
+ # models (e.g. Pet) or oneOf
202
+ klass = Daily.const_get(type)
203
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
204
+ end
205
+ end
206
+
207
+ # Returns the string representation of the object
208
+ # @return [String] String presentation of the object
209
+ def to_s
210
+ to_hash.to_s
211
+ end
212
+
213
+ # to_body is an alias to to_hash (backward compatibility)
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_body
216
+ to_hash
217
+ end
218
+
219
+ # Returns the object in the form of hash
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_hash
222
+ hash = {}
223
+ self.class.attribute_map.each_pair do |attr, param|
224
+ value = self.send(attr)
225
+ if value.nil?
226
+ is_nullable = self.class.openapi_nullable.include?(attr)
227
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
228
+ end
229
+
230
+ hash[param] = _to_hash(value)
231
+ end
232
+ hash
233
+ end
234
+
235
+ # Outputs non-array value in the form of hash
236
+ # For object, use to_hash. Otherwise, just return the value
237
+ # @param [Object] value Any valid value
238
+ # @return [Hash] Returns the value in the form of hash
239
+ def _to_hash(value)
240
+ if value.is_a?(Array)
241
+ value.compact.map { |v| _to_hash(v) }
242
+ elsif value.is_a?(Hash)
243
+ {}.tap do |hash|
244
+ value.each { |k, v| hash[k] = _to_hash(v) }
245
+ end
246
+ elsif value.respond_to? :to_hash
247
+ value.to_hash
248
+ else
249
+ value
250
+ end
251
+ end
252
+
253
+ end
254
+
255
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
- #Daily
2
+ #Daily API
3
3
 
4
- #The official library for communicating with the Daily REST API.
5
-
6
- The version of the OpenAPI document: 0.0.1
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
7
5
 
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
10
10
 
@@ -14,8 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Daily
17
- # A Room where a Daily call is hosted.
18
- class RoomResponse
17
+ class RoomsRoomNameGetRes
19
18
  attr_accessor :id
20
19
 
21
20
  attr_accessor :name
@@ -28,6 +27,8 @@ module Daily
28
27
 
29
28
  attr_accessor :created_at
30
29
 
30
+ attr_accessor :config
31
+
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
32
33
  def self.attribute_map
33
34
  {
@@ -36,7 +37,8 @@ module Daily
36
37
  :'api_created' => :'api_created',
37
38
  :'privacy' => :'privacy',
38
39
  :'url' => :'url',
39
- :'created_at' => :'created_at'
40
+ :'created_at' => :'created_at',
41
+ :'config' => :'config'
40
42
  }
41
43
  end
42
44
 
@@ -53,7 +55,8 @@ module Daily
53
55
  :'api_created' => :'Boolean',
54
56
  :'privacy' => :'String',
55
57
  :'url' => :'String',
56
- :'created_at' => :'Time'
58
+ :'created_at' => :'String',
59
+ :'config' => :'ListRooms200ResponseDataInnerConfig'
57
60
  }
58
61
  end
59
62
 
@@ -67,13 +70,13 @@ module Daily
67
70
  # @param [Hash] attributes Model attributes in the form of hash
68
71
  def initialize(attributes = {})
69
72
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomResponse` initialize method"
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomsRoomNameGetRes` initialize method"
71
74
  end
72
75
 
73
76
  # check to see if the attribute exists and convert string to symbol for hash key
74
77
  attributes = attributes.each_with_object({}) { |(k, v), h|
75
78
  if (!self.class.attribute_map.key?(k.to_sym))
76
- fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomsRoomNameGetRes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
80
  end
78
81
  h[k.to_sym] = v
79
82
  }
@@ -88,6 +91,8 @@ module Daily
88
91
 
89
92
  if attributes.key?(:'api_created')
90
93
  self.api_created = attributes[:'api_created']
94
+ else
95
+ self.api_created = true
91
96
  end
92
97
 
93
98
  if attributes.key?(:'privacy')
@@ -101,6 +106,10 @@ module Daily
101
106
  if attributes.key?(:'created_at')
102
107
  self.created_at = attributes[:'created_at']
103
108
  end
109
+
110
+ if attributes.key?(:'config')
111
+ self.config = attributes[:'config']
112
+ end
104
113
  end
105
114
 
106
115
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +137,8 @@ module Daily
128
137
  api_created == o.api_created &&
129
138
  privacy == o.privacy &&
130
139
  url == o.url &&
131
- created_at == o.created_at
140
+ created_at == o.created_at &&
141
+ config == o.config
132
142
  end
133
143
 
134
144
  # @see the `==` method
@@ -140,7 +150,7 @@ module Daily
140
150
  # Calculates hash code according to all attributes.
141
151
  # @return [Integer] Hash code
142
152
  def hash
143
- [id, name, api_created, privacy, url, created_at].hash
153
+ [id, name, api_created, privacy, url, created_at, config].hash
144
154
  end
145
155
 
146
156
  # Builds the object from hash