daily-ruby 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +13 -12
- data/README.md +198 -42
- data/daily-ruby.gemspec +4 -4
- data/docs/BatchRoomCreateRequest.md +18 -0
- data/docs/BatchRoomCreateRequestRoomsInner.md +22 -0
- data/docs/BatchRoomDelete200Response.md +18 -0
- data/docs/BatchRoomsApi.md +150 -0
- data/docs/CreateMeetingToken200Response.md +18 -0
- data/docs/CreateMeetingTokenRequest.md +18 -0
- data/docs/CreateRoom200Response.md +30 -0
- data/docs/{RoomRequest.md → CreateRoomRequest.md} +3 -3
- data/docs/DailyLiveStreamingOptions.md +40 -0
- data/docs/DailyLiveStreamingOptionsRtmpUrl.md +49 -0
- data/docs/DailyStreamingActiveParticipantLayoutConfig.md +18 -0
- data/docs/DailyStreamingCustomLayoutConfig.md +24 -0
- data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +15 -0
- data/docs/DailyStreamingDefaultLayoutConfig.md +20 -0
- data/docs/DailyStreamingEndpoint.md +18 -0
- data/docs/DailyStreamingLayoutConfig.md +69 -0
- data/docs/DailyStreamingOptions.md +36 -0
- data/docs/DailyStreamingPortraitLayoutConfig.md +22 -0
- data/docs/DailyStreamingPortraitLayoutVariant.md +15 -0
- data/docs/DailyStreamingSingleParticipantLayoutConfig.md +20 -0
- data/docs/DeleteTranscript200Response.md +30 -0
- data/docs/Domain.md +18 -0
- data/docs/DomainApi.md +149 -0
- data/docs/DomainProperties.md +74 -0
- data/docs/Eject200Response.md +18 -0
- data/docs/EjectRequest.md +18 -0
- data/docs/GetDomainConfig200Response.md +22 -0
- data/docs/GetDomainConfig200ResponseConfig.md +54 -0
- data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +20 -0
- data/docs/GetMeetingInfo200Response.md +20 -0
- data/docs/GetMeetingInfo200ResponseDataInner.md +28 -0
- data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +26 -0
- data/docs/GetPresence200Response.md +18 -0
- data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +28 -0
- data/docs/GetRecordingInfo200Response.md +36 -0
- data/docs/GetRecordingInfo200ResponseTracksInner.md +22 -0
- data/docs/GetRecordingLink200Response.md +20 -0
- data/docs/GetTranscriptInfo200Response.md +32 -0
- data/docs/GetTranscriptInfo200ResponseOutParams.md +22 -0
- data/docs/GetTranscriptLink200Response.md +22 -0
- data/docs/ListAPILogs200Response.md +38 -0
- data/docs/ListRecordings200Response.md +20 -0
- data/docs/ListRecordings200ResponseDataInner.md +30 -0
- data/docs/ListRooms200Response.md +20 -0
- data/docs/ListRooms200ResponseDataInner.md +30 -0
- data/docs/ListRooms200ResponseDataInnerConfig.md +18 -0
- data/docs/ListTranscript200Response.md +20 -0
- data/docs/ListTranscript200ResponseDataInner.md +28 -0
- data/docs/LogsApi.md +177 -0
- data/docs/MeetingParticipantsGetRes.md +20 -0
- data/docs/MeetingParticipantsGetResDataInner.md +28 -0
- data/docs/MeetingTokensApi.md +92 -14
- data/docs/MeetingsApi.md +247 -0
- data/docs/MeetingsMeetingGetRes.md +28 -0
- data/docs/Permissions.md +22 -0
- data/docs/{MeetingTokenRequestPropertiesPermissionsCanSend.md → PermissionsCanAdmin.md} +4 -4
- data/docs/{MeetingTokenRequestPropertiesPermissionsCanAdmin.md → PermissionsCanSend.md} +4 -4
- data/docs/PostWebhook.md +22 -0
- data/docs/PresenceApi.md +74 -0
- data/docs/Properties.md +60 -0
- data/docs/RecordingError.md +24 -0
- data/docs/RecordingErrorPayload.md +26 -0
- data/docs/RecordingReadyToDownload.md +24 -0
- data/docs/RecordingReadyToDownloadPayload.md +34 -0
- data/docs/RecordingStarted.md +24 -0
- data/docs/RecordingStartedPayload.md +28 -0
- data/docs/RecordingStreamingOptions.md +38 -0
- data/docs/RecordingsApi.md +303 -0
- data/docs/RecordingsBucket.md +26 -0
- data/docs/RoomProperties.md +94 -0
- data/docs/RoomPropertiesStreamingEndpointsInner.md +28 -0
- data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +26 -0
- data/docs/RoomsApi.md +1418 -0
- data/docs/RoomsRoomNameGetRes.md +30 -0
- data/docs/RoomsRoomNamePresenceGetRes.md +20 -0
- data/docs/RoomsRoomNamePresenceGetResDataInner.md +28 -0
- data/docs/SendAppMessageRequest.md +20 -0
- data/docs/SetRoomConfigRequest.md +20 -0
- data/docs/SetSessionDataRequest.md +22 -0
- data/docs/StreamingEnded.md +24 -0
- data/docs/StreamingEndedPayload.md +22 -0
- data/docs/StreamingError.md +24 -0
- data/docs/StreamingErrorPayload.md +26 -0
- data/docs/StreamingStarted.md +24 -0
- data/docs/StreamingStartedPayload.md +24 -0
- data/docs/StreamingUpdated.md +24 -0
- data/docs/StreamingUpdatedPayload.md +24 -0
- data/docs/TranscriptApi.md +305 -0
- data/docs/TranscriptionBucket.md +24 -0
- data/docs/TranscriptionProperties.md +32 -0
- data/docs/TranscriptionPropertiesEndpointing.md +49 -0
- data/docs/TranscriptionPropertiesRedact.md +51 -0
- data/docs/UpdatePermissionsRequest.md +18 -0
- data/docs/UpdatePermissionsRequestDataValue.md +22 -0
- data/docs/UpdatePermissionsRequestDataValueCanSend.md +49 -0
- data/docs/UpdateWebhook.md +22 -0
- data/docs/ValidateMeetingToken200Response.md +28 -0
- data/docs/Webhook.md +38 -0
- data/docs/WebhooksApi.md +370 -0
- data/example.rb +61 -0
- data/lib/daily-ruby/api/batch_rooms_api.rb +143 -0
- data/lib/daily-ruby/api/domain_api.rb +143 -0
- data/lib/daily-ruby/api/logs_api.rb +181 -0
- data/lib/daily-ruby/api/meeting_tokens_api.rb +81 -15
- data/lib/daily-ruby/api/meetings_api.rb +238 -0
- data/lib/daily-ruby/api/presence_api.rb +77 -0
- data/lib/daily-ruby/api/recordings_api.rb +280 -0
- data/lib/daily-ruby/api/rooms_api.rb +1302 -0
- data/lib/daily-ruby/api/transcript_api.rb +283 -0
- data/lib/daily-ruby/api/webhooks_api.rb +339 -0
- data/lib/daily-ruby/api_client.rb +4 -4
- data/lib/daily-ruby/api_error.rb +4 -4
- data/lib/daily-ruby/configuration.rb +19 -7
- data/lib/daily-ruby/models/{room_deleted_response.rb → batch_room_create_request.rb} +16 -24
- data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +232 -0
- data/lib/daily-ruby/models/batch_room_delete200_response.rb +214 -0
- data/lib/daily-ruby/models/{meeting_token_response.rb → create_meeting_token200_response.rb} +7 -9
- data/lib/daily-ruby/models/{room_not_found_response.rb → create_meeting_token_request.rb} +14 -24
- data/lib/daily-ruby/models/create_room200_response.rb +270 -0
- data/lib/daily-ruby/models/create_room_request.rb +232 -0
- data/lib/daily-ruby/models/daily_live_streaming_options.rb +324 -0
- data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_send.rb → daily_live_streaming_options_rtmp_url.rb} +6 -6
- data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb} +29 -41
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +293 -0
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +105 -0
- data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +264 -0
- data/lib/daily-ruby/models/daily_streaming_endpoint.rb +221 -0
- data/lib/daily-ruby/models/daily_streaming_layout_config.rb +46 -0
- data/lib/daily-ruby/models/daily_streaming_options.rb +304 -0
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +273 -0
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +40 -0
- data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +271 -0
- data/lib/daily-ruby/models/delete_transcript200_response.rb +307 -0
- data/lib/daily-ruby/models/{meeting_token_request.rb → domain.rb} +8 -9
- data/lib/daily-ruby/models/domain_properties.rb +570 -0
- data/lib/daily-ruby/models/eject200_response.rb +216 -0
- data/lib/daily-ruby/models/eject_request.rb +217 -0
- data/lib/daily-ruby/models/get_domain_config200_response.rb +271 -0
- data/lib/daily-ruby/models/get_domain_config200_response_config.rb +395 -0
- data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +223 -0
- data/lib/daily-ruby/models/get_meeting_info200_response.rb +259 -0
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +353 -0
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +290 -0
- data/lib/daily-ruby/models/get_presence200_response.rb +243 -0
- data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +370 -0
- data/lib/daily-ruby/models/get_recording_info200_response.rb +340 -0
- data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +269 -0
- data/lib/daily-ruby/models/get_recording_link200_response.rb +225 -0
- data/lib/daily-ruby/models/get_transcript_info200_response.rb +317 -0
- data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +232 -0
- data/lib/daily-ruby/models/get_transcript_link200_response.rb +233 -0
- data/lib/daily-ruby/models/list_api_logs200_response.rb +315 -0
- data/lib/daily-ruby/models/list_recordings200_response.rb +227 -0
- data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +272 -0
- data/lib/daily-ruby/models/list_rooms200_response.rb +227 -0
- data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +270 -0
- data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +216 -0
- data/lib/daily-ruby/models/list_transcript200_response.rb +227 -0
- data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +298 -0
- data/lib/daily-ruby/models/meeting_participants_get_res.rb +225 -0
- data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +259 -0
- data/lib/daily-ruby/models/meetings_meeting_get_res.rb +259 -0
- data/lib/daily-ruby/models/permissions.rb +234 -0
- data/lib/daily-ruby/models/permissions_can_admin.rb +106 -0
- data/lib/daily-ruby/models/permissions_can_send.rb +106 -0
- data/lib/daily-ruby/models/post_webhook.rb +259 -0
- data/lib/daily-ruby/models/{meeting_token_request_properties.rb → properties.rb} +81 -29
- data/lib/daily-ruby/models/recording_error.rb +278 -0
- data/lib/daily-ruby/models/recording_error_payload.rb +290 -0
- data/lib/daily-ruby/models/recording_ready_to_download.rb +278 -0
- data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +344 -0
- data/lib/daily-ruby/models/recording_started.rb +278 -0
- data/lib/daily-ruby/models/recording_started_payload.rb +299 -0
- data/lib/daily-ruby/models/recording_streaming_options.rb +350 -0
- data/lib/daily-ruby/models/recordings_bucket.rb +258 -0
- data/lib/daily-ruby/models/room_properties.rb +678 -0
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -0
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +255 -0
- data/lib/daily-ruby/models/{room_response.rb → rooms_room_name_get_res.rb} +22 -12
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +225 -0
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +259 -0
- data/lib/daily-ruby/models/send_app_message_request.rb +227 -0
- data/lib/daily-ruby/models/set_room_config_request.rb +223 -0
- data/lib/daily-ruby/models/set_session_data_request.rb +273 -0
- data/lib/daily-ruby/models/streaming_ended.rb +278 -0
- data/lib/daily-ruby/models/streaming_ended_payload.rb +236 -0
- data/lib/daily-ruby/models/streaming_error.rb +278 -0
- data/lib/daily-ruby/models/streaming_error_payload.rb +256 -0
- data/lib/daily-ruby/models/streaming_started.rb +278 -0
- data/lib/daily-ruby/models/streaming_started_payload.rb +245 -0
- data/lib/daily-ruby/models/streaming_updated.rb +278 -0
- data/lib/daily-ruby/models/streaming_updated_payload.rb +245 -0
- data/lib/daily-ruby/models/{server_error_response.rb → transcription_bucket.rb} +46 -16
- data/lib/daily-ruby/models/transcription_properties.rb +283 -0
- data/lib/daily-ruby/models/transcription_properties_endpointing.rb +106 -0
- data/lib/daily-ruby/models/transcription_properties_redact.rb +107 -0
- data/lib/daily-ruby/models/update_permissions_request.rb +216 -0
- data/lib/daily-ruby/models/{meeting_token_request_properties_permissions.rb → update_permissions_request_data_value.rb} +13 -12
- data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_admin.rb → update_permissions_request_data_value_can_send.rb} +5 -5
- data/lib/daily-ruby/models/update_webhook.rb +259 -0
- data/lib/daily-ruby/models/validate_meeting_token200_response.rb +265 -0
- data/lib/daily-ruby/models/webhook.rb +339 -0
- data/lib/daily-ruby/version.rb +5 -5
- data/lib/daily-ruby.rb +102 -17
- data/spec/api/batch_rooms_api_spec.rb +58 -0
- data/spec/api/domain_api_spec.rb +58 -0
- data/spec/api/logs_api_spec.rb +70 -0
- data/spec/api/meeting_tokens_api_spec.rb +21 -8
- data/spec/api/meetings_api_spec.rb +81 -0
- data/spec/api/presence_api_spec.rb +45 -0
- data/spec/api/recordings_api_spec.rb +86 -0
- data/spec/api/rooms_api_spec.rb +278 -0
- data/spec/api/transcript_api_spec.rb +87 -0
- data/spec/api/webhooks_api_spec.rb +95 -0
- data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
- data/spec/models/batch_room_create_request_spec.rb +36 -0
- data/spec/models/batch_room_delete200_response_spec.rb +36 -0
- data/spec/models/create_meeting_token200_response_spec.rb +36 -0
- data/spec/models/create_meeting_token_request_spec.rb +36 -0
- data/spec/models/create_room200_response_spec.rb +72 -0
- data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
- data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
- data/spec/models/daily_live_streaming_options_spec.rb +102 -0
- data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
- data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
- data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
- data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
- data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
- data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
- data/spec/models/daily_streaming_options_spec.rb +90 -0
- data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
- data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
- data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
- data/spec/models/delete_transcript200_response_spec.rb +76 -0
- data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
- data/spec/models/domain_spec.rb +36 -0
- data/spec/models/eject200_response_spec.rb +36 -0
- data/spec/models/eject_request_spec.rb +36 -0
- data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
- data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
- data/spec/models/get_domain_config200_response_spec.rb +48 -0
- data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
- data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
- data/spec/models/get_meeting_info200_response_spec.rb +42 -0
- data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
- data/spec/models/get_presence200_response_spec.rb +36 -0
- data/spec/models/get_recording_info200_response_spec.rb +94 -0
- data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
- data/spec/models/get_recording_link200_response_spec.rb +42 -0
- data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
- data/spec/models/get_transcript_info200_response_spec.rb +82 -0
- data/spec/models/get_transcript_link200_response_spec.rb +48 -0
- data/spec/models/list_api_logs200_response_spec.rb +96 -0
- data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
- data/spec/models/list_recordings200_response_spec.rb +42 -0
- data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
- data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
- data/spec/models/list_rooms200_response_spec.rb +42 -0
- data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
- data/spec/models/list_transcript200_response_spec.rb +42 -0
- data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
- data/spec/models/meeting_participants_get_res_spec.rb +42 -0
- data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
- data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
- data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
- data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
- data/spec/models/post_webhook_spec.rb +52 -0
- data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
- data/spec/models/recording_error_payload_spec.rb +64 -0
- data/spec/models/recording_error_spec.rb +58 -0
- data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
- data/spec/models/recording_ready_to_download_spec.rb +58 -0
- data/spec/models/recording_started_payload_spec.rb +70 -0
- data/spec/models/recording_started_spec.rb +58 -0
- data/spec/models/recording_streaming_options_spec.rb +100 -0
- data/spec/models/recordings_bucket_spec.rb +60 -0
- data/spec/models/room_properties_spec.rb +272 -0
- data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
- data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
- data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
- data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
- data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
- data/spec/models/send_app_message_request_spec.rb +42 -0
- data/spec/models/set_room_config_request_spec.rb +42 -0
- data/spec/models/set_session_data_request_spec.rb +52 -0
- data/spec/models/streaming_ended_payload_spec.rb +48 -0
- data/spec/models/streaming_ended_spec.rb +58 -0
- data/spec/models/streaming_error_payload_spec.rb +60 -0
- data/spec/models/streaming_error_spec.rb +58 -0
- data/spec/models/streaming_started_payload_spec.rb +54 -0
- data/spec/models/streaming_started_spec.rb +58 -0
- data/spec/models/streaming_updated_payload_spec.rb +54 -0
- data/spec/models/streaming_updated_spec.rb +58 -0
- data/spec/models/transcription_bucket_spec.rb +54 -0
- data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
- data/spec/models/transcription_properties_redact_spec.rb +32 -0
- data/spec/models/transcription_properties_spec.rb +78 -0
- data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
- data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
- data/spec/models/update_permissions_request_spec.rb +36 -0
- data/spec/models/update_webhook_spec.rb +52 -0
- data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
- data/spec/models/webhook_spec.rb +100 -0
- data/spec/spec_helper.rb +4 -4
- metadata +395 -55
- data/daily.yaml +0 -460
- data/docs/MeetingTokenRequest.md +0 -18
- data/docs/MeetingTokenRequestProperties.md +0 -56
- data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
- data/docs/MeetingTokenResponse.md +0 -18
- data/docs/RoomApi.md +0 -297
- data/docs/RoomDeletedResponse.md +0 -20
- data/docs/RoomNotFoundResponse.md +0 -20
- data/docs/RoomRequestProperties.md +0 -76
- data/docs/RoomResponse.md +0 -28
- data/docs/ServerErrorResponse.md +0 -18
- data/lib/daily-ruby/api/room_api.rb +0 -281
- data/lib/daily-ruby/models/room_request_properties.rb +0 -521
- data/spec/api/room_api_spec.rb +0 -86
- data/spec/models/meeting_token_request_spec.rb +0 -36
- data/spec/models/meeting_token_response_spec.rb +0 -36
- data/spec/models/room_deleted_response_spec.rb +0 -42
- data/spec/models/room_not_found_response_spec.rb +0 -42
- data/spec/models/server_error_response_spec.rb +0 -36
|
@@ -0,0 +1,324 @@
|
|
|
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 DailyLiveStreamingOptions
|
|
18
|
+
# Property that specifies the output width of the given stream.
|
|
19
|
+
attr_accessor :width
|
|
20
|
+
|
|
21
|
+
# Property that specifies the output height of the given stream.
|
|
22
|
+
attr_accessor :height
|
|
23
|
+
|
|
24
|
+
# Property that specifies the video frame rate per second.
|
|
25
|
+
attr_accessor :fps
|
|
26
|
+
|
|
27
|
+
# Property that specifies the video bitrate for the output video in kilobits per second (kbps).
|
|
28
|
+
attr_accessor :video_bitrate
|
|
29
|
+
|
|
30
|
+
# Property that specifies the audio bitrate for the output audio in kilobits per second (kbps).
|
|
31
|
+
attr_accessor :audio_bitrate
|
|
32
|
+
|
|
33
|
+
# Amount of time in seconds to wait before ending a recording or live stream when the room is idle (e.g. when all users have muted video and audio). Default: 300 (seconds). Note: Once the timeout has been reached, it typically takes an additional 1-3 minutes for the recording or live stream to be shut down.
|
|
34
|
+
attr_accessor :min_idle_time_out
|
|
35
|
+
|
|
36
|
+
# Maximum duration in seconds after which recording/streaming is forcefully stopped. Default: \\`15000\\` seconds (3 hours). This is a preventive circuit breaker to prevent billing surprises in case a user starts recording/streaming and leaves the room.
|
|
37
|
+
attr_accessor :max_duration
|
|
38
|
+
|
|
39
|
+
# Specifies the background color of the stream, formatted as \\#rrggbb or \\#aarrggbb string.
|
|
40
|
+
attr_accessor :background_color
|
|
41
|
+
|
|
42
|
+
# UUID for a streaming or recording session. Used when multiple streaming or recording sessions are running for single room.
|
|
43
|
+
attr_accessor :instance_id
|
|
44
|
+
|
|
45
|
+
attr_accessor :layout
|
|
46
|
+
|
|
47
|
+
attr_accessor :rtmp_url
|
|
48
|
+
|
|
49
|
+
attr_accessor :endpoints
|
|
50
|
+
|
|
51
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
|
+
def self.attribute_map
|
|
53
|
+
{
|
|
54
|
+
:'width' => :'width',
|
|
55
|
+
:'height' => :'height',
|
|
56
|
+
:'fps' => :'fps',
|
|
57
|
+
:'video_bitrate' => :'videoBitrate',
|
|
58
|
+
:'audio_bitrate' => :'audioBitrate',
|
|
59
|
+
:'min_idle_time_out' => :'minIdleTimeOut',
|
|
60
|
+
:'max_duration' => :'maxDuration',
|
|
61
|
+
:'background_color' => :'backgroundColor',
|
|
62
|
+
:'instance_id' => :'instanceId',
|
|
63
|
+
:'layout' => :'layout',
|
|
64
|
+
:'rtmp_url' => :'rtmpUrl',
|
|
65
|
+
:'endpoints' => :'endpoints'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
|
70
|
+
def self.acceptable_attributes
|
|
71
|
+
attribute_map.values
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute type mapping.
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'width' => :'Float',
|
|
78
|
+
:'height' => :'Float',
|
|
79
|
+
:'fps' => :'Float',
|
|
80
|
+
:'video_bitrate' => :'Float',
|
|
81
|
+
:'audio_bitrate' => :'Float',
|
|
82
|
+
:'min_idle_time_out' => :'Float',
|
|
83
|
+
:'max_duration' => :'Float',
|
|
84
|
+
:'background_color' => :'String',
|
|
85
|
+
:'instance_id' => :'String',
|
|
86
|
+
:'layout' => :'DailyStreamingLayoutConfig',
|
|
87
|
+
:'rtmp_url' => :'DailyLiveStreamingOptionsRtmpUrl',
|
|
88
|
+
:'endpoints' => :'Array<DailyStreamingEndpoint>'
|
|
89
|
+
}
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# List of attributes with nullable: true
|
|
93
|
+
def self.openapi_nullable
|
|
94
|
+
Set.new([
|
|
95
|
+
])
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Initializes the object
|
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
100
|
+
def initialize(attributes = {})
|
|
101
|
+
if (!attributes.is_a?(Hash))
|
|
102
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::DailyLiveStreamingOptions` initialize method"
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
106
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
107
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::DailyLiveStreamingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
109
|
+
end
|
|
110
|
+
h[k.to_sym] = v
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'width')
|
|
114
|
+
self.width = attributes[:'width']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'height')
|
|
118
|
+
self.height = attributes[:'height']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'fps')
|
|
122
|
+
self.fps = attributes[:'fps']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'video_bitrate')
|
|
126
|
+
self.video_bitrate = attributes[:'video_bitrate']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'audio_bitrate')
|
|
130
|
+
self.audio_bitrate = attributes[:'audio_bitrate']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'min_idle_time_out')
|
|
134
|
+
self.min_idle_time_out = attributes[:'min_idle_time_out']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'max_duration')
|
|
138
|
+
self.max_duration = attributes[:'max_duration']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'background_color')
|
|
142
|
+
self.background_color = attributes[:'background_color']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'instance_id')
|
|
146
|
+
self.instance_id = attributes[:'instance_id']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'layout')
|
|
150
|
+
self.layout = attributes[:'layout']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'rtmp_url')
|
|
154
|
+
self.rtmp_url = attributes[:'rtmp_url']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'endpoints')
|
|
158
|
+
if (value = attributes[:'endpoints']).is_a?(Array)
|
|
159
|
+
self.endpoints = value
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
165
|
+
# @return Array for valid properties with the reasons
|
|
166
|
+
def list_invalid_properties
|
|
167
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
168
|
+
invalid_properties = Array.new
|
|
169
|
+
invalid_properties
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Check to see if the all the properties in the model are valid
|
|
173
|
+
# @return true if the model is valid
|
|
174
|
+
def valid?
|
|
175
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
|
+
true
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Checks equality by comparing each attribute.
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def ==(o)
|
|
182
|
+
return true if self.equal?(o)
|
|
183
|
+
self.class == o.class &&
|
|
184
|
+
width == o.width &&
|
|
185
|
+
height == o.height &&
|
|
186
|
+
fps == o.fps &&
|
|
187
|
+
video_bitrate == o.video_bitrate &&
|
|
188
|
+
audio_bitrate == o.audio_bitrate &&
|
|
189
|
+
min_idle_time_out == o.min_idle_time_out &&
|
|
190
|
+
max_duration == o.max_duration &&
|
|
191
|
+
background_color == o.background_color &&
|
|
192
|
+
instance_id == o.instance_id &&
|
|
193
|
+
layout == o.layout &&
|
|
194
|
+
rtmp_url == o.rtmp_url &&
|
|
195
|
+
endpoints == o.endpoints
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# @see the `==` method
|
|
199
|
+
# @param [Object] Object to be compared
|
|
200
|
+
def eql?(o)
|
|
201
|
+
self == o
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Calculates hash code according to all attributes.
|
|
205
|
+
# @return [Integer] Hash code
|
|
206
|
+
def hash
|
|
207
|
+
[width, height, fps, video_bitrate, audio_bitrate, min_idle_time_out, max_duration, background_color, instance_id, layout, rtmp_url, endpoints].hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Builds the object from hash
|
|
211
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
212
|
+
# @return [Object] Returns the model itself
|
|
213
|
+
def self.build_from_hash(attributes)
|
|
214
|
+
return nil unless attributes.is_a?(Hash)
|
|
215
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
216
|
+
transformed_hash = {}
|
|
217
|
+
openapi_types.each_pair do |key, type|
|
|
218
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
219
|
+
transformed_hash["#{key}"] = nil
|
|
220
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
221
|
+
# check to ensure the input is an array given that the attribute
|
|
222
|
+
# is documented as an array but the input is not
|
|
223
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
224
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
225
|
+
end
|
|
226
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
227
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
new(transformed_hash)
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Deserializes the data based on type
|
|
234
|
+
# @param string type Data type
|
|
235
|
+
# @param string value Value to be deserialized
|
|
236
|
+
# @return [Object] Deserialized data
|
|
237
|
+
def self._deserialize(type, value)
|
|
238
|
+
case type.to_sym
|
|
239
|
+
when :Time
|
|
240
|
+
Time.parse(value)
|
|
241
|
+
when :Date
|
|
242
|
+
Date.parse(value)
|
|
243
|
+
when :String
|
|
244
|
+
value.to_s
|
|
245
|
+
when :Integer
|
|
246
|
+
value.to_i
|
|
247
|
+
when :Float
|
|
248
|
+
value.to_f
|
|
249
|
+
when :Boolean
|
|
250
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
251
|
+
true
|
|
252
|
+
else
|
|
253
|
+
false
|
|
254
|
+
end
|
|
255
|
+
when :Object
|
|
256
|
+
# generic object (usually a Hash), return directly
|
|
257
|
+
value
|
|
258
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
259
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
260
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
261
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
262
|
+
k_type = Regexp.last_match[:k_type]
|
|
263
|
+
v_type = Regexp.last_match[:v_type]
|
|
264
|
+
{}.tap do |hash|
|
|
265
|
+
value.each do |k, v|
|
|
266
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
else # model
|
|
270
|
+
# models (e.g. Pet) or oneOf
|
|
271
|
+
klass = Daily.const_get(type)
|
|
272
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Returns the string representation of the object
|
|
277
|
+
# @return [String] String presentation of the object
|
|
278
|
+
def to_s
|
|
279
|
+
to_hash.to_s
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_body
|
|
285
|
+
to_hash
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Returns the object in the form of hash
|
|
289
|
+
# @return [Hash] Returns the object in the form of hash
|
|
290
|
+
def to_hash
|
|
291
|
+
hash = {}
|
|
292
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
293
|
+
value = self.send(attr)
|
|
294
|
+
if value.nil?
|
|
295
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
296
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
hash[param] = _to_hash(value)
|
|
300
|
+
end
|
|
301
|
+
hash
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Outputs non-array value in the form of hash
|
|
305
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
306
|
+
# @param [Object] value Any valid value
|
|
307
|
+
# @return [Hash] Returns the value in the form of hash
|
|
308
|
+
def _to_hash(value)
|
|
309
|
+
if value.is_a?(Array)
|
|
310
|
+
value.compact.map { |v| _to_hash(v) }
|
|
311
|
+
elsif value.is_a?(Hash)
|
|
312
|
+
{}.tap do |hash|
|
|
313
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
314
|
+
end
|
|
315
|
+
elsif value.respond_to? :to_hash
|
|
316
|
+
value.to_hash
|
|
317
|
+
else
|
|
318
|
+
value
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Daily
|
|
2
|
+
#Daily API
|
|
3
3
|
|
|
4
|
-
#The
|
|
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,13 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Daily
|
|
17
|
-
module
|
|
17
|
+
module DailyLiveStreamingOptionsRtmpUrl
|
|
18
18
|
class << self
|
|
19
19
|
# List of class defined in oneOf (OpenAPI v3)
|
|
20
20
|
def openapi_one_of
|
|
21
21
|
[
|
|
22
22
|
:'Array<String>',
|
|
23
|
-
:'
|
|
23
|
+
:'String'
|
|
24
24
|
]
|
|
25
25
|
end
|
|
26
26
|
|
data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Daily
|
|
2
|
+
#Daily API
|
|
3
3
|
|
|
4
|
-
#The
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.0.2
|
|
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,13 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Daily
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
|
-
attr_accessor :privacy
|
|
22
|
-
|
|
23
|
-
attr_accessor :properties
|
|
17
|
+
class DailyStreamingActiveParticipantLayoutConfig
|
|
18
|
+
attr_accessor :preset
|
|
24
19
|
|
|
25
20
|
class EnumAttributeValidator
|
|
26
21
|
attr_reader :datatype
|
|
@@ -47,9 +42,7 @@ module Daily
|
|
|
47
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
43
|
def self.attribute_map
|
|
49
44
|
{
|
|
50
|
-
:'
|
|
51
|
-
:'privacy' => :'privacy',
|
|
52
|
-
:'properties' => :'properties'
|
|
45
|
+
:'preset' => :'preset'
|
|
53
46
|
}
|
|
54
47
|
end
|
|
55
48
|
|
|
@@ -61,9 +54,7 @@ module Daily
|
|
|
61
54
|
# Attribute type mapping.
|
|
62
55
|
def self.openapi_types
|
|
63
56
|
{
|
|
64
|
-
:'
|
|
65
|
-
:'privacy' => :'String',
|
|
66
|
-
:'properties' => :'RoomRequestProperties'
|
|
57
|
+
:'preset' => :'String'
|
|
67
58
|
}
|
|
68
59
|
end
|
|
69
60
|
|
|
@@ -77,27 +68,21 @@ module Daily
|
|
|
77
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
69
|
def initialize(attributes = {})
|
|
79
70
|
if (!attributes.is_a?(Hash))
|
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::DailyStreamingActiveParticipantLayoutConfig` initialize method"
|
|
81
72
|
end
|
|
82
73
|
|
|
83
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::DailyStreamingActiveParticipantLayoutConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
78
|
end
|
|
88
79
|
h[k.to_sym] = v
|
|
89
80
|
}
|
|
90
81
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'privacy')
|
|
96
|
-
self.privacy = attributes[:'privacy']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.key?(:'properties')
|
|
100
|
-
self.properties = attributes[:'properties']
|
|
82
|
+
if attributes.key?(:'preset')
|
|
83
|
+
self.preset = attributes[:'preset']
|
|
84
|
+
else
|
|
85
|
+
self.preset = nil
|
|
101
86
|
end
|
|
102
87
|
end
|
|
103
88
|
|
|
@@ -106,6 +91,10 @@ module Daily
|
|
|
106
91
|
def list_invalid_properties
|
|
107
92
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
93
|
invalid_properties = Array.new
|
|
94
|
+
if @preset.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "preset", preset cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
109
98
|
invalid_properties
|
|
110
99
|
end
|
|
111
100
|
|
|
@@ -113,19 +102,20 @@ module Daily
|
|
|
113
102
|
# @return true if the model is valid
|
|
114
103
|
def valid?
|
|
115
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
return false if @preset.nil?
|
|
106
|
+
preset_validator = EnumAttributeValidator.new('String', ["active-participant"])
|
|
107
|
+
return false unless preset_validator.valid?(@preset)
|
|
118
108
|
true
|
|
119
109
|
end
|
|
120
110
|
|
|
121
111
|
# Custom attribute writer method checking allowed values (enum).
|
|
122
|
-
# @param [Object]
|
|
123
|
-
def
|
|
124
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
125
|
-
unless validator.valid?(
|
|
126
|
-
fail ArgumentError, "invalid value for \"
|
|
112
|
+
# @param [Object] preset Object to be assigned
|
|
113
|
+
def preset=(preset)
|
|
114
|
+
validator = EnumAttributeValidator.new('String', ["active-participant"])
|
|
115
|
+
unless validator.valid?(preset)
|
|
116
|
+
fail ArgumentError, "invalid value for \"preset\", must be one of #{validator.allowable_values}."
|
|
127
117
|
end
|
|
128
|
-
@
|
|
118
|
+
@preset = preset
|
|
129
119
|
end
|
|
130
120
|
|
|
131
121
|
# Checks equality by comparing each attribute.
|
|
@@ -133,9 +123,7 @@ module Daily
|
|
|
133
123
|
def ==(o)
|
|
134
124
|
return true if self.equal?(o)
|
|
135
125
|
self.class == o.class &&
|
|
136
|
-
|
|
137
|
-
privacy == o.privacy &&
|
|
138
|
-
properties == o.properties
|
|
126
|
+
preset == o.preset
|
|
139
127
|
end
|
|
140
128
|
|
|
141
129
|
# @see the `==` method
|
|
@@ -147,7 +135,7 @@ module Daily
|
|
|
147
135
|
# Calculates hash code according to all attributes.
|
|
148
136
|
# @return [Integer] Hash code
|
|
149
137
|
def hash
|
|
150
|
-
[
|
|
138
|
+
[preset].hash
|
|
151
139
|
end
|
|
152
140
|
|
|
153
141
|
# Builds the object from hash
|