ourskyai-node-platform-api 1.3.9821__py3-none-any.whl
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.
- ourskyai_node_platform_api/__init__.py +301 -0
- ourskyai_node_platform_api/api/__init__.py +5 -0
- ourskyai_node_platform_api/api/default_api.py +22197 -0
- ourskyai_node_platform_api/api_client.py +758 -0
- ourskyai_node_platform_api/api_response.py +25 -0
- ourskyai_node_platform_api/configuration.py +456 -0
- ourskyai_node_platform_api/exceptions.py +166 -0
- ourskyai_node_platform_api/models/__init__.py +284 -0
- ourskyai_node_platform_api/models/all_sky_camera_diagnosis_report.py +73 -0
- ourskyai_node_platform_api/models/astro_camera_diagnosis_report.py +79 -0
- ourskyai_node_platform_api/models/auto_stretch_image_completed.py +71 -0
- ourskyai_node_platform_api/models/auto_stretch_image_started.py +71 -0
- ourskyai_node_platform_api/models/autofocus_failed.py +71 -0
- ourskyai_node_platform_api/models/autofocus_finished.py +80 -0
- ourskyai_node_platform_api/models/autofocus_method.py +41 -0
- ourskyai_node_platform_api/models/autofocus_point_added.py +75 -0
- ourskyai_node_platform_api/models/autofocus_started.py +79 -0
- ourskyai_node_platform_api/models/bff_v1_all_sky_images.py +90 -0
- ourskyai_node_platform_api/models/camera_image_captured.py +75 -0
- ourskyai_node_platform_api/models/camera_status_updated.py +76 -0
- ourskyai_node_platform_api/models/camera_temperature_set.py +71 -0
- ourskyai_node_platform_api/models/capture_image_started.py +79 -0
- ourskyai_node_platform_api/models/connection_status.py +41 -0
- ourskyai_node_platform_api/models/create_mount_model_completed.py +71 -0
- ourskyai_node_platform_api/models/create_mount_model_failed.py +71 -0
- ourskyai_node_platform_api/models/create_mount_model_started.py +71 -0
- ourskyai_node_platform_api/models/custom_image_processing_container.py +81 -0
- ourskyai_node_platform_api/models/custom_image_processing_container_list.py +81 -0
- ourskyai_node_platform_api/models/debug_logged.py +73 -0
- ourskyai_node_platform_api/models/elevation_mask_diagnostic_completed.py +71 -0
- ourskyai_node_platform_api/models/elevation_mask_diagnostic_failed.py +71 -0
- ourskyai_node_platform_api/models/elevation_mask_diagnostic_started.py +71 -0
- ourskyai_node_platform_api/models/elevation_mask_point_added.py +75 -0
- ourskyai_node_platform_api/models/empty_success.py +71 -0
- ourskyai_node_platform_api/models/enclosure_shutter_label.py +40 -0
- ourskyai_node_platform_api/models/enclosure_shutter_state.py +46 -0
- ourskyai_node_platform_api/models/enclosure_shutter_statuses_updated.py +75 -0
- ourskyai_node_platform_api/models/enclosure_state.py +50 -0
- ourskyai_node_platform_api/models/event_type.py +94 -0
- ourskyai_node_platform_api/models/fits_header.py +73 -0
- ourskyai_node_platform_api/models/focus_operation.py +43 -0
- ourskyai_node_platform_api/models/focuser_diagnosis_report.py +73 -0
- ourskyai_node_platform_api/models/focuser_position.py +81 -0
- ourskyai_node_platform_api/models/focuser_status_updated.py +72 -0
- ourskyai_node_platform_api/models/go_to_altitude_azimuth_completed.py +73 -0
- ourskyai_node_platform_api/models/go_to_altitude_azimuth_failed.py +73 -0
- ourskyai_node_platform_api/models/go_to_altitude_azimuth_started.py +73 -0
- ourskyai_node_platform_api/models/go_to_home_completed.py +71 -0
- ourskyai_node_platform_api/models/go_to_home_failed.py +71 -0
- ourskyai_node_platform_api/models/go_to_home_started.py +71 -0
- ourskyai_node_platform_api/models/go_to_mechanical_coordinates_completed.py +73 -0
- ourskyai_node_platform_api/models/go_to_mechanical_coordinates_failed.py +73 -0
- ourskyai_node_platform_api/models/go_to_mechanical_coordinates_started.py +73 -0
- ourskyai_node_platform_api/models/go_to_ra_dec_completed.py +73 -0
- ourskyai_node_platform_api/models/go_to_ra_dec_failed.py +73 -0
- ourskyai_node_platform_api/models/go_to_ra_dec_started.py +73 -0
- ourskyai_node_platform_api/models/gps_data_updated.py +83 -0
- ourskyai_node_platform_api/models/hardware_daemon_logged.py +71 -0
- ourskyai_node_platform_api/models/ice_message.py +87 -0
- ourskyai_node_platform_api/models/image_file_format.py +42 -0
- ourskyai_node_platform_api/models/image_set_type.py +43 -0
- ourskyai_node_platform_api/models/location.py +75 -0
- ourskyai_node_platform_api/models/message_type.py +46 -0
- ourskyai_node_platform_api/models/message_type_wrapper.py +72 -0
- ourskyai_node_platform_api/models/metric_type.py +42 -0
- ourskyai_node_platform_api/models/motor_faulted.py +76 -0
- ourskyai_node_platform_api/models/motor_faults_cleared.py +72 -0
- ourskyai_node_platform_api/models/mount_diagnosis_report.py +77 -0
- ourskyai_node_platform_api/models/mount_model_point_added.py +77 -0
- ourskyai_node_platform_api/models/mount_model_point_failed.py +73 -0
- ourskyai_node_platform_api/models/mount_status_updated.py +72 -0
- ourskyai_node_platform_api/models/operation_status_updated.py +75 -0
- ourskyai_node_platform_api/models/optical_tube_status.py +71 -0
- ourskyai_node_platform_api/models/optical_tube_status_updated.py +72 -0
- ourskyai_node_platform_api/models/peer.py +78 -0
- ourskyai_node_platform_api/models/peer_role.py +40 -0
- ourskyai_node_platform_api/models/plate_solve_completed.py +75 -0
- ourskyai_node_platform_api/models/plate_solve_failed.py +71 -0
- ourskyai_node_platform_api/models/plate_solve_started.py +71 -0
- ourskyai_node_platform_api/models/platform_connection_diagnosis_report.py +71 -0
- ourskyai_node_platform_api/models/point2_d.py +73 -0
- ourskyai_node_platform_api/models/relay_channel.py +45 -0
- ourskyai_node_platform_api/models/relay_function.py +46 -0
- ourskyai_node_platform_api/models/relays_diagnosis_report.py +75 -0
- ourskyai_node_platform_api/models/relays_status.py +71 -0
- ourskyai_node_platform_api/models/relays_updated.py +82 -0
- ourskyai_node_platform_api/models/roof_diagnosis_report.py +75 -0
- ourskyai_node_platform_api/models/roof_state.py +50 -0
- ourskyai_node_platform_api/models/roof_status.py +71 -0
- ourskyai_node_platform_api/models/roof_updated.py +78 -0
- ourskyai_node_platform_api/models/rotator_position.py +73 -0
- ourskyai_node_platform_api/models/rotator_status_updated.py +72 -0
- ourskyai_node_platform_api/models/rotator_target_type.py +40 -0
- ourskyai_node_platform_api/models/safety_status_updated.py +75 -0
- ourskyai_node_platform_api/models/sdp_message.py +73 -0
- ourskyai_node_platform_api/models/slew_demo_enabled.py +71 -0
- ourskyai_node_platform_api/models/star_measurement_failed.py +71 -0
- ourskyai_node_platform_api/models/star_measurement_started.py +71 -0
- ourskyai_node_platform_api/models/stars_measured.py +75 -0
- ourskyai_node_platform_api/models/startup_wizard_step.py +76 -0
- ourskyai_node_platform_api/models/system_event_type.py +96 -0
- ourskyai_node_platform_api/models/task_cancelled.py +78 -0
- ourskyai_node_platform_api/models/task_completed.py +76 -0
- ourskyai_node_platform_api/models/task_scheduled.py +76 -0
- ourskyai_node_platform_api/models/task_started.py +76 -0
- ourskyai_node_platform_api/models/update_custom_image_processing_container_request.py +73 -0
- ourskyai_node_platform_api/models/v1_all_sky_classification.py +74 -0
- ourskyai_node_platform_api/models/v1_all_sky_classification_label.py +43 -0
- ourskyai_node_platform_api/models/v1_all_sky_image.py +81 -0
- ourskyai_node_platform_api/models/v1_all_sky_images.py +79 -0
- ourskyai_node_platform_api/models/v1_all_sky_keogram.py +81 -0
- ourskyai_node_platform_api/models/v1_all_sky_keograms.py +79 -0
- ourskyai_node_platform_api/models/v1_all_sky_prediction_label.py +43 -0
- ourskyai_node_platform_api/models/v1_all_sky_timelapse.py +81 -0
- ourskyai_node_platform_api/models/v1_all_sky_timelapses.py +79 -0
- ourskyai_node_platform_api/models/v1_apex_charts_timeline.py +79 -0
- ourskyai_node_platform_api/models/v1_apex_charts_timeline_element.py +75 -0
- ourskyai_node_platform_api/models/v1_astro_target.py +83 -0
- ourskyai_node_platform_api/models/v1_camera_roll_image.py +86 -0
- ourskyai_node_platform_api/models/v1_camera_status.py +85 -0
- ourskyai_node_platform_api/models/v1_camera_statuses.py +79 -0
- ourskyai_node_platform_api/models/v1_cancel_all_tasks_request.py +71 -0
- ourskyai_node_platform_api/models/v1_cancel_task_request.py +73 -0
- ourskyai_node_platform_api/models/v1_capture_image_request.py +89 -0
- ourskyai_node_platform_api/models/v1_capture_images_continuously_request.py +89 -0
- ourskyai_node_platform_api/models/v1_connected_camera.py +73 -0
- ourskyai_node_platform_api/models/v1_create_mount_model_request.py +77 -0
- ourskyai_node_platform_api/models/v1_cycle_relays_request.py +74 -0
- ourskyai_node_platform_api/models/v1_delete_image_request.py +71 -0
- ourskyai_node_platform_api/models/v1_diagnose_system_request.py +85 -0
- ourskyai_node_platform_api/models/v1_disable_live_video_request.py +71 -0
- ourskyai_node_platform_api/models/v1_elevation_mask.py +81 -0
- ourskyai_node_platform_api/models/v1_elevation_mask_point.py +75 -0
- ourskyai_node_platform_api/models/v1_enable_live_video_request.py +81 -0
- ourskyai_node_platform_api/models/v1_enclosure_rotator_status.py +75 -0
- ourskyai_node_platform_api/models/v1_enclosure_shutter_status.py +79 -0
- ourskyai_node_platform_api/models/v1_enclosure_shutter_statuses.py +79 -0
- ourskyai_node_platform_api/models/v1_enclosure_status.py +78 -0
- ourskyai_node_platform_api/models/v1_enclosure_window_status.py +75 -0
- ourskyai_node_platform_api/models/v1_end_session_request.py +73 -0
- ourskyai_node_platform_api/models/v1_event.py +80 -0
- ourskyai_node_platform_api/models/v1_event_data.py +911 -0
- ourskyai_node_platform_api/models/v1_filter.py +74 -0
- ourskyai_node_platform_api/models/v1_filter_type.py +65 -0
- ourskyai_node_platform_api/models/v1_filter_wheel_status.py +85 -0
- ourskyai_node_platform_api/models/v1_focuser_limit.py +73 -0
- ourskyai_node_platform_api/models/v1_focuser_status.py +79 -0
- ourskyai_node_platform_api/models/v1_follow_tle_request.py +73 -0
- ourskyai_node_platform_api/models/v1_get_component_status_response.py +145 -0
- ourskyai_node_platform_api/models/v1_get_health_check_response.py +83 -0
- ourskyai_node_platform_api/models/v1_get_storage_status_response.py +75 -0
- ourskyai_node_platform_api/models/v1_gnss_pps_status.py +88 -0
- ourskyai_node_platform_api/models/v1_gnss_pps_status_details.py +77 -0
- ourskyai_node_platform_api/models/v1_go_to_filter_wheel_position_request.py +71 -0
- ourskyai_node_platform_api/models/v1_go_to_focuser_position_request.py +74 -0
- ourskyai_node_platform_api/models/v1_go_to_m3_port_request.py +71 -0
- ourskyai_node_platform_api/models/v1_go_to_mount_coordinates_request.py +77 -0
- ourskyai_node_platform_api/models/v1_go_to_rotator_position_request.py +74 -0
- ourskyai_node_platform_api/models/v1_image.py +103 -0
- ourskyai_node_platform_api/models/v1_images.py +79 -0
- ourskyai_node_platform_api/models/v1_jog_enclosure_rotator_request.py +71 -0
- ourskyai_node_platform_api/models/v1_jog_enclosure_shutter_request.py +74 -0
- ourskyai_node_platform_api/models/v1_jog_enclosure_shutters_request.py +79 -0
- ourskyai_node_platform_api/models/v1_jog_enclosure_window_request.py +71 -0
- ourskyai_node_platform_api/models/v1_jog_mount_request.py +73 -0
- ourskyai_node_platform_api/models/v1_last_sample.py +75 -0
- ourskyai_node_platform_api/models/v1_latest_image.py +89 -0
- ourskyai_node_platform_api/models/v1_list_producers_request.py +71 -0
- ourskyai_node_platform_api/models/v1_list_producers_response.py +81 -0
- ourskyai_node_platform_api/models/v1_m3_status.py +73 -0
- ourskyai_node_platform_api/models/v1_metric.py +82 -0
- ourskyai_node_platform_api/models/v1_motor.py +46 -0
- ourskyai_node_platform_api/models/v1_motor_status.py +87 -0
- ourskyai_node_platform_api/models/v1_mount_model.py +81 -0
- ourskyai_node_platform_api/models/v1_mount_model_point.py +77 -0
- ourskyai_node_platform_api/models/v1_mount_status.py +93 -0
- ourskyai_node_platform_api/models/v1_mount_system_settings.py +73 -0
- ourskyai_node_platform_api/models/v1_move_focuser_position_request.py +74 -0
- ourskyai_node_platform_api/models/v1_move_focuser_response.py +77 -0
- ourskyai_node_platform_api/models/v1_move_focuser_steps_request.py +74 -0
- ourskyai_node_platform_api/models/v1_node_history.py +73 -0
- ourskyai_node_platform_api/models/v1_node_overview.py +122 -0
- ourskyai_node_platform_api/models/v1_node_status.py +43 -0
- ourskyai_node_platform_api/models/v1_ntp_status.py +88 -0
- ourskyai_node_platform_api/models/v1_ntp_status_details.py +73 -0
- ourskyai_node_platform_api/models/v1_open_enclosure_shutters_request.py +71 -0
- ourskyai_node_platform_api/models/v1_open_roof_request.py +71 -0
- ourskyai_node_platform_api/models/v1_optical_tube_cover_status.py +73 -0
- ourskyai_node_platform_api/models/v1_optical_tube_fan_role.py +46 -0
- ourskyai_node_platform_api/models/v1_optical_tube_fan_status.py +76 -0
- ourskyai_node_platform_api/models/v1_optical_tube_fan_statuses.py +79 -0
- ourskyai_node_platform_api/models/v1_optical_tube_heater_role.py +41 -0
- ourskyai_node_platform_api/models/v1_optical_tube_heater_status.py +76 -0
- ourskyai_node_platform_api/models/v1_optical_tube_heater_statuses.py +79 -0
- ourskyai_node_platform_api/models/v1_optical_tube_status.py +87 -0
- ourskyai_node_platform_api/models/v1_peer_status_changed_request.py +81 -0
- ourskyai_node_platform_api/models/v1_ptp_data_set.py +75 -0
- ourskyai_node_platform_api/models/v1_ptp_port_properties.py +77 -0
- ourskyai_node_platform_api/models/v1_ptp_status.py +88 -0
- ourskyai_node_platform_api/models/v1_ptp_status_details.py +102 -0
- ourskyai_node_platform_api/models/v1_ptp_time_status.py +85 -0
- ourskyai_node_platform_api/models/v1_record_video_request.py +71 -0
- ourskyai_node_platform_api/models/v1_relay.py +74 -0
- ourskyai_node_platform_api/models/v1_reset_mount_system_settings_to_default_request.py +73 -0
- ourskyai_node_platform_api/models/v1_reset_system_settings_to_default_request.py +75 -0
- ourskyai_node_platform_api/models/v1_roof_status.py +78 -0
- ourskyai_node_platform_api/models/v1_rotator_status.py +81 -0
- ourskyai_node_platform_api/models/v1_run_autofocus_request.py +82 -0
- ourskyai_node_platform_api/models/v1_run_blind_autofocus_request.py +73 -0
- ourskyai_node_platform_api/models/v1_safety_status.py +83 -0
- ourskyai_node_platform_api/models/v1_save_image_request.py +71 -0
- ourskyai_node_platform_api/models/v1_set_mount_park_position_request.py +73 -0
- ourskyai_node_platform_api/models/v1_set_optical_tube_heater_power_request.py +74 -0
- ourskyai_node_platform_api/models/v1_set_peer_status_request.py +88 -0
- ourskyai_node_platform_api/models/v1_set_relay_state_request.py +74 -0
- ourskyai_node_platform_api/models/v1_signal_message_request.py +90 -0
- ourskyai_node_platform_api/models/v1_signalling_request.py +225 -0
- ourskyai_node_platform_api/models/v1_source_statistics.py +103 -0
- ourskyai_node_platform_api/models/v1_start_session_request.py +90 -0
- ourskyai_node_platform_api/models/v1_stop_capturing_images_continuously_request.py +71 -0
- ourskyai_node_platform_api/models/v1_stop_recording_video_request.py +71 -0
- ourskyai_node_platform_api/models/v1_suntimes.py +87 -0
- ourskyai_node_platform_api/models/v1_system_diagnosis_report.py +117 -0
- ourskyai_node_platform_api/models/v1_system_event.py +80 -0
- ourskyai_node_platform_api/models/v1_system_event_data.py +939 -0
- ourskyai_node_platform_api/models/v1_system_events.py +79 -0
- ourskyai_node_platform_api/models/v1_system_health_check.py +86 -0
- ourskyai_node_platform_api/models/v1_system_location.py +83 -0
- ourskyai_node_platform_api/models/v1_system_location_gps_details.py +77 -0
- ourskyai_node_platform_api/models/v1_system_metric.py +88 -0
- ourskyai_node_platform_api/models/v1_system_metric_names.py +71 -0
- ourskyai_node_platform_api/models/v1_system_metric_tag.py +73 -0
- ourskyai_node_platform_api/models/v1_system_metric_type.py +40 -0
- ourskyai_node_platform_api/models/v1_system_metrics.py +79 -0
- ourskyai_node_platform_api/models/v1_system_network_interface.py +83 -0
- ourskyai_node_platform_api/models/v1_system_network_interface_info.py +75 -0
- ourskyai_node_platform_api/models/v1_system_network_interfaces.py +79 -0
- ourskyai_node_platform_api/models/v1_system_operation_mode.py +41 -0
- ourskyai_node_platform_api/models/v1_system_operation_status.py +75 -0
- ourskyai_node_platform_api/models/v1_system_settings.py +75 -0
- ourskyai_node_platform_api/models/v1_system_status.py +135 -0
- ourskyai_node_platform_api/models/v1_system_storage_status.py +75 -0
- ourskyai_node_platform_api/models/v1_system_time.py +94 -0
- ourskyai_node_platform_api/models/v1_system_variant.py +43 -0
- ourskyai_node_platform_api/models/v1_task.py +78 -0
- ourskyai_node_platform_api/models/v1_task_type.py +47 -0
- ourskyai_node_platform_api/models/v1_time_source.py +42 -0
- ourskyai_node_platform_api/models/v1_time_windowed_asset.py +86 -0
- ourskyai_node_platform_api/models/v1_time_windowed_asset_type.py +40 -0
- ourskyai_node_platform_api/models/v1_turn_off_optical_tube_fans_request.py +72 -0
- ourskyai_node_platform_api/models/v1_turn_on_optical_tube_fans_request.py +72 -0
- ourskyai_node_platform_api/models/v1_ui_operation_mode.py +40 -0
- ourskyai_node_platform_api/models/v1_update_filter_request.py +74 -0
- ourskyai_node_platform_api/models/v1_video.py +105 -0
- ourskyai_node_platform_api/models/v1_videos.py +79 -0
- ourskyai_node_platform_api/models/v1_weather_forecast.py +85 -0
- ourskyai_node_platform_api/models/v1_weather_forecast_city.py +73 -0
- ourskyai_node_platform_api/models/v1_weather_forecast_item.py +103 -0
- ourskyai_node_platform_api/models/v1_weather_forecast_temperature.py +77 -0
- ourskyai_node_platform_api/models/v1_weather_forecast_weather.py +77 -0
- ourskyai_node_platform_api/models/v1_weather_metric.py +85 -0
- ourskyai_node_platform_api/models/v1_weather_metrics.py +79 -0
- ourskyai_node_platform_api/models/v1_weather_station_status.py +71 -0
- ourskyai_node_platform_api/models/v2_capture_image_request.py +89 -0
- ourskyai_node_platform_api/models/v2_cycle_relays_request.py +74 -0
- ourskyai_node_platform_api/models/v2_enclosure_status.py +87 -0
- ourskyai_node_platform_api/models/v2_mount_status.py +94 -0
- ourskyai_node_platform_api/models/v2_relay_status.py +76 -0
- ourskyai_node_platform_api/models/v2_relay_statuses.py +79 -0
- ourskyai_node_platform_api/models/v2_turn_off_relay_request.py +72 -0
- ourskyai_node_platform_api/models/v2_turn_on_relay_request.py +72 -0
- ourskyai_node_platform_api/models/video_codec.py +39 -0
- ourskyai_node_platform_api/models/video_container_format.py +39 -0
- ourskyai_node_platform_api/models/wavefront_sensor_data_updated.py +110 -0
- ourskyai_node_platform_api/models/weather_station_diagnosis_report.py +73 -0
- ourskyai_node_platform_api/models/weather_station_status_updated.py +72 -0
- ourskyai_node_platform_api/py.typed +0 -0
- ourskyai_node_platform_api/rest.py +303 -0
- ourskyai_node_platform_api-1.3.9821.dist-info/METADATA +23 -0
- ourskyai_node_platform_api-1.3.9821.dist-info/RECORD +282 -0
- ourskyai_node_platform_api-1.3.9821.dist-info/WHEEL +5 -0
- ourskyai_node_platform_api-1.3.9821.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
from inspect import getfullargspec
|
|
17
|
+
import json
|
|
18
|
+
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
20
|
+
|
|
21
|
+
from typing import Any, List, Optional
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
|
|
23
|
+
from ourskyai_node_platform_api.models.message_type_wrapper import MessageTypeWrapper
|
|
24
|
+
from ourskyai_node_platform_api.models.v1_end_session_request import V1EndSessionRequest
|
|
25
|
+
from ourskyai_node_platform_api.models.v1_list_producers_request import V1ListProducersRequest
|
|
26
|
+
from ourskyai_node_platform_api.models.v1_list_producers_response import V1ListProducersResponse
|
|
27
|
+
from ourskyai_node_platform_api.models.v1_peer_status_changed_request import V1PeerStatusChangedRequest
|
|
28
|
+
from ourskyai_node_platform_api.models.v1_set_peer_status_request import V1SetPeerStatusRequest
|
|
29
|
+
from ourskyai_node_platform_api.models.v1_signal_message_request import V1SignalMessageRequest
|
|
30
|
+
from ourskyai_node_platform_api.models.v1_start_session_request import V1StartSessionRequest
|
|
31
|
+
from typing import Union, Any, List, TYPE_CHECKING
|
|
32
|
+
from pydantic import StrictStr, Field
|
|
33
|
+
|
|
34
|
+
V1SIGNALLINGREQUEST_ONE_OF_SCHEMAS = ["MessageTypeWrapper", "V1EndSessionRequest", "V1ListProducersRequest", "V1ListProducersResponse", "V1PeerStatusChangedRequest", "V1SetPeerStatusRequest", "V1SignalMessageRequest", "V1StartSessionRequest"]
|
|
35
|
+
|
|
36
|
+
class V1SignallingRequest(BaseModel):
|
|
37
|
+
"""
|
|
38
|
+
V1SignallingRequest
|
|
39
|
+
"""
|
|
40
|
+
# data type: V1PeerStatusChangedRequest
|
|
41
|
+
oneof_schema_1_validator: Optional[V1PeerStatusChangedRequest] = None
|
|
42
|
+
# data type: V1ListProducersRequest
|
|
43
|
+
oneof_schema_2_validator: Optional[V1ListProducersRequest] = None
|
|
44
|
+
# data type: V1ListProducersResponse
|
|
45
|
+
oneof_schema_3_validator: Optional[V1ListProducersResponse] = None
|
|
46
|
+
# data type: V1SetPeerStatusRequest
|
|
47
|
+
oneof_schema_4_validator: Optional[V1SetPeerStatusRequest] = None
|
|
48
|
+
# data type: V1StartSessionRequest
|
|
49
|
+
oneof_schema_5_validator: Optional[V1StartSessionRequest] = None
|
|
50
|
+
# data type: V1EndSessionRequest
|
|
51
|
+
oneof_schema_6_validator: Optional[V1EndSessionRequest] = None
|
|
52
|
+
# data type: V1SignalMessageRequest
|
|
53
|
+
oneof_schema_7_validator: Optional[V1SignalMessageRequest] = None
|
|
54
|
+
# data type: MessageTypeWrapper
|
|
55
|
+
oneof_schema_8_validator: Optional[MessageTypeWrapper] = None
|
|
56
|
+
if TYPE_CHECKING:
|
|
57
|
+
actual_instance: Union[MessageTypeWrapper, V1EndSessionRequest, V1ListProducersRequest, V1ListProducersResponse, V1PeerStatusChangedRequest, V1SetPeerStatusRequest, V1SignalMessageRequest, V1StartSessionRequest]
|
|
58
|
+
else:
|
|
59
|
+
actual_instance: Any
|
|
60
|
+
one_of_schemas: List[str] = Field(V1SIGNALLINGREQUEST_ONE_OF_SCHEMAS, const=True)
|
|
61
|
+
|
|
62
|
+
class Config:
|
|
63
|
+
validate_assignment = True
|
|
64
|
+
|
|
65
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
66
|
+
if args:
|
|
67
|
+
if len(args) > 1:
|
|
68
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
69
|
+
if kwargs:
|
|
70
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
71
|
+
super().__init__(actual_instance=args[0])
|
|
72
|
+
else:
|
|
73
|
+
super().__init__(**kwargs)
|
|
74
|
+
|
|
75
|
+
@validator('actual_instance')
|
|
76
|
+
def actual_instance_must_validate_oneof(cls, v):
|
|
77
|
+
instance = V1SignallingRequest.construct()
|
|
78
|
+
error_messages = []
|
|
79
|
+
match = 0
|
|
80
|
+
# validate data type: V1PeerStatusChangedRequest
|
|
81
|
+
if not isinstance(v, V1PeerStatusChangedRequest):
|
|
82
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1PeerStatusChangedRequest`")
|
|
83
|
+
else:
|
|
84
|
+
match += 1
|
|
85
|
+
# validate data type: V1ListProducersRequest
|
|
86
|
+
if not isinstance(v, V1ListProducersRequest):
|
|
87
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1ListProducersRequest`")
|
|
88
|
+
else:
|
|
89
|
+
match += 1
|
|
90
|
+
# validate data type: V1ListProducersResponse
|
|
91
|
+
if not isinstance(v, V1ListProducersResponse):
|
|
92
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1ListProducersResponse`")
|
|
93
|
+
else:
|
|
94
|
+
match += 1
|
|
95
|
+
# validate data type: V1SetPeerStatusRequest
|
|
96
|
+
if not isinstance(v, V1SetPeerStatusRequest):
|
|
97
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1SetPeerStatusRequest`")
|
|
98
|
+
else:
|
|
99
|
+
match += 1
|
|
100
|
+
# validate data type: V1StartSessionRequest
|
|
101
|
+
if not isinstance(v, V1StartSessionRequest):
|
|
102
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1StartSessionRequest`")
|
|
103
|
+
else:
|
|
104
|
+
match += 1
|
|
105
|
+
# validate data type: V1EndSessionRequest
|
|
106
|
+
if not isinstance(v, V1EndSessionRequest):
|
|
107
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1EndSessionRequest`")
|
|
108
|
+
else:
|
|
109
|
+
match += 1
|
|
110
|
+
# validate data type: V1SignalMessageRequest
|
|
111
|
+
if not isinstance(v, V1SignalMessageRequest):
|
|
112
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `V1SignalMessageRequest`")
|
|
113
|
+
else:
|
|
114
|
+
match += 1
|
|
115
|
+
# validate data type: MessageTypeWrapper
|
|
116
|
+
if not isinstance(v, MessageTypeWrapper):
|
|
117
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `MessageTypeWrapper`")
|
|
118
|
+
else:
|
|
119
|
+
match += 1
|
|
120
|
+
if match > 1:
|
|
121
|
+
# more than 1 match
|
|
122
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in V1SignallingRequest with oneOf schemas: MessageTypeWrapper, V1EndSessionRequest, V1ListProducersRequest, V1ListProducersResponse, V1PeerStatusChangedRequest, V1SetPeerStatusRequest, V1SignalMessageRequest, V1StartSessionRequest. Details: " + ", ".join(error_messages))
|
|
123
|
+
elif match == 0:
|
|
124
|
+
# no match
|
|
125
|
+
raise ValueError("No match found when setting `actual_instance` in V1SignallingRequest with oneOf schemas: MessageTypeWrapper, V1EndSessionRequest, V1ListProducersRequest, V1ListProducersResponse, V1PeerStatusChangedRequest, V1SetPeerStatusRequest, V1SignalMessageRequest, V1StartSessionRequest. Details: " + ", ".join(error_messages))
|
|
126
|
+
else:
|
|
127
|
+
return v
|
|
128
|
+
|
|
129
|
+
@classmethod
|
|
130
|
+
def from_dict(cls, obj: dict) -> V1SignallingRequest:
|
|
131
|
+
return cls.from_json(json.dumps(obj))
|
|
132
|
+
|
|
133
|
+
@classmethod
|
|
134
|
+
def from_json(cls, json_str: str) -> V1SignallingRequest:
|
|
135
|
+
"""Returns the object represented by the json string"""
|
|
136
|
+
instance = V1SignallingRequest.construct()
|
|
137
|
+
error_messages = []
|
|
138
|
+
match = 0
|
|
139
|
+
|
|
140
|
+
# deserialize data into V1PeerStatusChangedRequest
|
|
141
|
+
try:
|
|
142
|
+
instance.actual_instance = V1PeerStatusChangedRequest.from_json(json_str)
|
|
143
|
+
match += 1
|
|
144
|
+
except (ValidationError, ValueError) as e:
|
|
145
|
+
error_messages.append(str(e))
|
|
146
|
+
# deserialize data into V1ListProducersRequest
|
|
147
|
+
try:
|
|
148
|
+
instance.actual_instance = V1ListProducersRequest.from_json(json_str)
|
|
149
|
+
match += 1
|
|
150
|
+
except (ValidationError, ValueError) as e:
|
|
151
|
+
error_messages.append(str(e))
|
|
152
|
+
# deserialize data into V1ListProducersResponse
|
|
153
|
+
try:
|
|
154
|
+
instance.actual_instance = V1ListProducersResponse.from_json(json_str)
|
|
155
|
+
match += 1
|
|
156
|
+
except (ValidationError, ValueError) as e:
|
|
157
|
+
error_messages.append(str(e))
|
|
158
|
+
# deserialize data into V1SetPeerStatusRequest
|
|
159
|
+
try:
|
|
160
|
+
instance.actual_instance = V1SetPeerStatusRequest.from_json(json_str)
|
|
161
|
+
match += 1
|
|
162
|
+
except (ValidationError, ValueError) as e:
|
|
163
|
+
error_messages.append(str(e))
|
|
164
|
+
# deserialize data into V1StartSessionRequest
|
|
165
|
+
try:
|
|
166
|
+
instance.actual_instance = V1StartSessionRequest.from_json(json_str)
|
|
167
|
+
match += 1
|
|
168
|
+
except (ValidationError, ValueError) as e:
|
|
169
|
+
error_messages.append(str(e))
|
|
170
|
+
# deserialize data into V1EndSessionRequest
|
|
171
|
+
try:
|
|
172
|
+
instance.actual_instance = V1EndSessionRequest.from_json(json_str)
|
|
173
|
+
match += 1
|
|
174
|
+
except (ValidationError, ValueError) as e:
|
|
175
|
+
error_messages.append(str(e))
|
|
176
|
+
# deserialize data into V1SignalMessageRequest
|
|
177
|
+
try:
|
|
178
|
+
instance.actual_instance = V1SignalMessageRequest.from_json(json_str)
|
|
179
|
+
match += 1
|
|
180
|
+
except (ValidationError, ValueError) as e:
|
|
181
|
+
error_messages.append(str(e))
|
|
182
|
+
# deserialize data into MessageTypeWrapper
|
|
183
|
+
try:
|
|
184
|
+
instance.actual_instance = MessageTypeWrapper.from_json(json_str)
|
|
185
|
+
match += 1
|
|
186
|
+
except (ValidationError, ValueError) as e:
|
|
187
|
+
error_messages.append(str(e))
|
|
188
|
+
|
|
189
|
+
if match > 1:
|
|
190
|
+
# more than 1 match
|
|
191
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into V1SignallingRequest with oneOf schemas: MessageTypeWrapper, V1EndSessionRequest, V1ListProducersRequest, V1ListProducersResponse, V1PeerStatusChangedRequest, V1SetPeerStatusRequest, V1SignalMessageRequest, V1StartSessionRequest. Details: " + ", ".join(error_messages))
|
|
192
|
+
elif match == 0:
|
|
193
|
+
# no match
|
|
194
|
+
raise ValueError("No match found when deserializing the JSON string into V1SignallingRequest with oneOf schemas: MessageTypeWrapper, V1EndSessionRequest, V1ListProducersRequest, V1ListProducersResponse, V1PeerStatusChangedRequest, V1SetPeerStatusRequest, V1SignalMessageRequest, V1StartSessionRequest. Details: " + ", ".join(error_messages))
|
|
195
|
+
else:
|
|
196
|
+
return instance
|
|
197
|
+
|
|
198
|
+
def to_json(self) -> str:
|
|
199
|
+
"""Returns the JSON representation of the actual instance"""
|
|
200
|
+
if self.actual_instance is None:
|
|
201
|
+
return "null"
|
|
202
|
+
|
|
203
|
+
to_json = getattr(self.actual_instance, "to_json", None)
|
|
204
|
+
if callable(to_json):
|
|
205
|
+
return self.actual_instance.to_json()
|
|
206
|
+
else:
|
|
207
|
+
return json.dumps(self.actual_instance)
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the dict representation of the actual instance"""
|
|
211
|
+
if self.actual_instance is None:
|
|
212
|
+
return None
|
|
213
|
+
|
|
214
|
+
to_dict = getattr(self.actual_instance, "to_dict", None)
|
|
215
|
+
if callable(to_dict):
|
|
216
|
+
return self.actual_instance.to_dict()
|
|
217
|
+
else:
|
|
218
|
+
# primitive type
|
|
219
|
+
return self.actual_instance
|
|
220
|
+
|
|
221
|
+
def to_str(self) -> str:
|
|
222
|
+
"""Returns the string representation of the actual instance"""
|
|
223
|
+
return pprint.pformat(self.dict())
|
|
224
|
+
|
|
225
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from pydantic import BaseModel, Field, StrictInt, StrictStr, validator
|
|
23
|
+
from ourskyai_node_platform_api.models.v1_last_sample import V1LastSample
|
|
24
|
+
|
|
25
|
+
class V1SourceStatistics(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Source status information # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
mode: StrictStr = Field(..., description="Source mode indicator")
|
|
30
|
+
state: StrictStr = Field(..., description="Source state")
|
|
31
|
+
name: StrictStr = Field(..., description="Source name or address")
|
|
32
|
+
stratum: StrictInt = Field(..., description="Stratum level of the source")
|
|
33
|
+
poll: StrictInt = Field(..., description="Polling interval in log2 seconds")
|
|
34
|
+
reach: StrictStr = Field(..., description="Reachability register in octal")
|
|
35
|
+
last_rx: StrictInt = Field(..., alias="lastRx", description="Time since last sample was received in seconds")
|
|
36
|
+
last_sample: V1LastSample = Field(..., alias="lastSample")
|
|
37
|
+
__properties = ["mode", "state", "name", "stratum", "poll", "reach", "lastRx", "lastSample"]
|
|
38
|
+
|
|
39
|
+
@validator('mode')
|
|
40
|
+
def mode_validate_enum(cls, value):
|
|
41
|
+
"""Validates the enum"""
|
|
42
|
+
if value not in ('SERVER', 'PEER', 'REF_CLOCK', 'UNKNOWN'):
|
|
43
|
+
raise ValueError("must be one of enum values ('SERVER', 'PEER', 'REF_CLOCK', 'UNKNOWN')")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
@validator('state')
|
|
47
|
+
def state_validate_enum(cls, value):
|
|
48
|
+
"""Validates the enum"""
|
|
49
|
+
if value not in ('UNKNOWN_STATE', 'SYNC', 'CANDIDATE', 'EXCLUDED', 'UNREACHABLE', 'FALSETICKER', 'VOLATILE'):
|
|
50
|
+
raise ValueError("must be one of enum values ('UNKNOWN_STATE', 'SYNC', 'CANDIDATE', 'EXCLUDED', 'UNREACHABLE', 'FALSETICKER', 'VOLATILE')")
|
|
51
|
+
return value
|
|
52
|
+
|
|
53
|
+
class Config:
|
|
54
|
+
"""Pydantic configuration"""
|
|
55
|
+
allow_population_by_field_name = True
|
|
56
|
+
validate_assignment = True
|
|
57
|
+
|
|
58
|
+
def to_str(self) -> str:
|
|
59
|
+
"""Returns the string representation of the model using alias"""
|
|
60
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
61
|
+
|
|
62
|
+
def to_json(self) -> str:
|
|
63
|
+
"""Returns the JSON representation of the model using alias"""
|
|
64
|
+
return json.dumps(self.to_dict())
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_json(cls, json_str: str) -> V1SourceStatistics:
|
|
68
|
+
"""Create an instance of V1SourceStatistics from a JSON string"""
|
|
69
|
+
return cls.from_dict(json.loads(json_str))
|
|
70
|
+
|
|
71
|
+
def to_dict(self):
|
|
72
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
73
|
+
_dict = self.dict(by_alias=True,
|
|
74
|
+
exclude={
|
|
75
|
+
},
|
|
76
|
+
exclude_none=True)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of last_sample
|
|
78
|
+
if self.last_sample:
|
|
79
|
+
_dict['lastSample'] = self.last_sample.to_dict()
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: dict) -> V1SourceStatistics:
|
|
84
|
+
"""Create an instance of V1SourceStatistics from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return V1SourceStatistics.parse_obj(obj)
|
|
90
|
+
|
|
91
|
+
_obj = V1SourceStatistics.parse_obj({
|
|
92
|
+
"mode": obj.get("mode"),
|
|
93
|
+
"state": obj.get("state"),
|
|
94
|
+
"name": obj.get("name"),
|
|
95
|
+
"stratum": obj.get("stratum"),
|
|
96
|
+
"poll": obj.get("poll"),
|
|
97
|
+
"reach": obj.get("reach"),
|
|
98
|
+
"last_rx": obj.get("lastRx"),
|
|
99
|
+
"last_sample": V1LastSample.from_dict(obj.get("lastSample")) if obj.get("lastSample") is not None else None
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
23
|
+
|
|
24
|
+
class V1StartSessionRequest(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
Start a WebRTC Session # noqa: E501
|
|
27
|
+
"""
|
|
28
|
+
session_id: Optional[StrictStr] = Field(None, alias="sessionId", description="optional session ID")
|
|
29
|
+
peer_id: Optional[StrictStr] = Field(None, alias="peerId", description="optional consumer ID")
|
|
30
|
+
consumer_id: Optional[StrictStr] = Field(None, alias="consumerId", description="optional consumer ID")
|
|
31
|
+
__properties = ["sessionId", "peerId", "consumerId"]
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
"""Pydantic configuration"""
|
|
35
|
+
allow_population_by_field_name = True
|
|
36
|
+
validate_assignment = True
|
|
37
|
+
|
|
38
|
+
def to_str(self) -> str:
|
|
39
|
+
"""Returns the string representation of the model using alias"""
|
|
40
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
41
|
+
|
|
42
|
+
def to_json(self) -> str:
|
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> V1StartSessionRequest:
|
|
48
|
+
"""Create an instance of V1StartSessionRequest from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self):
|
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
53
|
+
_dict = self.dict(by_alias=True,
|
|
54
|
+
exclude={
|
|
55
|
+
},
|
|
56
|
+
exclude_none=True)
|
|
57
|
+
# set to None if session_id (nullable) is None
|
|
58
|
+
# and __fields_set__ contains the field
|
|
59
|
+
if self.session_id is None and "session_id" in self.__fields_set__:
|
|
60
|
+
_dict['sessionId'] = None
|
|
61
|
+
|
|
62
|
+
# set to None if peer_id (nullable) is None
|
|
63
|
+
# and __fields_set__ contains the field
|
|
64
|
+
if self.peer_id is None and "peer_id" in self.__fields_set__:
|
|
65
|
+
_dict['peerId'] = None
|
|
66
|
+
|
|
67
|
+
# set to None if consumer_id (nullable) is None
|
|
68
|
+
# and __fields_set__ contains the field
|
|
69
|
+
if self.consumer_id is None and "consumer_id" in self.__fields_set__:
|
|
70
|
+
_dict['consumerId'] = None
|
|
71
|
+
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: dict) -> V1StartSessionRequest:
|
|
76
|
+
"""Create an instance of V1StartSessionRequest from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return V1StartSessionRequest.parse_obj(obj)
|
|
82
|
+
|
|
83
|
+
_obj = V1StartSessionRequest.parse_obj({
|
|
84
|
+
"session_id": obj.get("sessionId"),
|
|
85
|
+
"peer_id": obj.get("peerId"),
|
|
86
|
+
"consumer_id": obj.get("consumerId")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
23
|
+
|
|
24
|
+
class V1StopCapturingImagesContinuouslyRequest(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
Request object to stop an active continuous image capture session. Identifies which camera's capture session should be terminated. # noqa: E501
|
|
27
|
+
"""
|
|
28
|
+
camera_id: StrictStr = Field(..., alias="cameraId", description="Unique identifier of the camera whose continuous capture session should be stopped. Must match the cameraId used when starting the continuous capture.")
|
|
29
|
+
__properties = ["cameraId"]
|
|
30
|
+
|
|
31
|
+
class Config:
|
|
32
|
+
"""Pydantic configuration"""
|
|
33
|
+
allow_population_by_field_name = True
|
|
34
|
+
validate_assignment = True
|
|
35
|
+
|
|
36
|
+
def to_str(self) -> str:
|
|
37
|
+
"""Returns the string representation of the model using alias"""
|
|
38
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
39
|
+
|
|
40
|
+
def to_json(self) -> str:
|
|
41
|
+
"""Returns the JSON representation of the model using alias"""
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> V1StopCapturingImagesContinuouslyRequest:
|
|
46
|
+
"""Create an instance of V1StopCapturingImagesContinuouslyRequest from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self):
|
|
50
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
51
|
+
_dict = self.dict(by_alias=True,
|
|
52
|
+
exclude={
|
|
53
|
+
},
|
|
54
|
+
exclude_none=True)
|
|
55
|
+
return _dict
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_dict(cls, obj: dict) -> V1StopCapturingImagesContinuouslyRequest:
|
|
59
|
+
"""Create an instance of V1StopCapturingImagesContinuouslyRequest from a dict"""
|
|
60
|
+
if obj is None:
|
|
61
|
+
return None
|
|
62
|
+
|
|
63
|
+
if not isinstance(obj, dict):
|
|
64
|
+
return V1StopCapturingImagesContinuouslyRequest.parse_obj(obj)
|
|
65
|
+
|
|
66
|
+
_obj = V1StopCapturingImagesContinuouslyRequest.parse_obj({
|
|
67
|
+
"camera_id": obj.get("cameraId")
|
|
68
|
+
})
|
|
69
|
+
return _obj
|
|
70
|
+
|
|
71
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
23
|
+
|
|
24
|
+
class V1StopRecordingVideoRequest(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
Request object to stop an active video recording session and finalize the video file. The recording will be properly closed with all metadata written. # noqa: E501
|
|
27
|
+
"""
|
|
28
|
+
camera_id: StrictStr = Field(..., alias="cameraId", description="Unique identifier of the camera whose video recording should be stopped. Must match the cameraId of an actively recording camera.")
|
|
29
|
+
__properties = ["cameraId"]
|
|
30
|
+
|
|
31
|
+
class Config:
|
|
32
|
+
"""Pydantic configuration"""
|
|
33
|
+
allow_population_by_field_name = True
|
|
34
|
+
validate_assignment = True
|
|
35
|
+
|
|
36
|
+
def to_str(self) -> str:
|
|
37
|
+
"""Returns the string representation of the model using alias"""
|
|
38
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
39
|
+
|
|
40
|
+
def to_json(self) -> str:
|
|
41
|
+
"""Returns the JSON representation of the model using alias"""
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> V1StopRecordingVideoRequest:
|
|
46
|
+
"""Create an instance of V1StopRecordingVideoRequest from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self):
|
|
50
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
51
|
+
_dict = self.dict(by_alias=True,
|
|
52
|
+
exclude={
|
|
53
|
+
},
|
|
54
|
+
exclude_none=True)
|
|
55
|
+
return _dict
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_dict(cls, obj: dict) -> V1StopRecordingVideoRequest:
|
|
59
|
+
"""Create an instance of V1StopRecordingVideoRequest from a dict"""
|
|
60
|
+
if obj is None:
|
|
61
|
+
return None
|
|
62
|
+
|
|
63
|
+
if not isinstance(obj, dict):
|
|
64
|
+
return V1StopRecordingVideoRequest.parse_obj(obj)
|
|
65
|
+
|
|
66
|
+
_obj = V1StopRecordingVideoRequest.parse_obj({
|
|
67
|
+
"camera_id": obj.get("cameraId")
|
|
68
|
+
})
|
|
69
|
+
return _obj
|
|
70
|
+
|
|
71
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OurSky
|
|
5
|
+
|
|
6
|
+
Node Platform API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.3.9821
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
23
|
+
|
|
24
|
+
class V1Suntimes(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
V1Suntimes
|
|
27
|
+
"""
|
|
28
|
+
node_id: Optional[StrictStr] = Field(None, alias="nodeId")
|
|
29
|
+
sunrise: datetime = Field(...)
|
|
30
|
+
sunset: datetime = Field(...)
|
|
31
|
+
civil_rise: Optional[datetime] = Field(None, alias="civilRise")
|
|
32
|
+
civil_set: Optional[datetime] = Field(None, alias="civilSet")
|
|
33
|
+
nautical_rise: Optional[datetime] = Field(None, alias="nauticalRise")
|
|
34
|
+
nautical_set: Optional[datetime] = Field(None, alias="nauticalSet")
|
|
35
|
+
astronomical_rise: Optional[datetime] = Field(None, alias="astronomicalRise")
|
|
36
|
+
astronomical_set: Optional[datetime] = Field(None, alias="astronomicalSet")
|
|
37
|
+
__properties = ["nodeId", "sunrise", "sunset", "civilRise", "civilSet", "nauticalRise", "nauticalSet", "astronomicalRise", "astronomicalSet"]
|
|
38
|
+
|
|
39
|
+
class Config:
|
|
40
|
+
"""Pydantic configuration"""
|
|
41
|
+
allow_population_by_field_name = True
|
|
42
|
+
validate_assignment = True
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> V1Suntimes:
|
|
54
|
+
"""Create an instance of V1Suntimes from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self):
|
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
59
|
+
_dict = self.dict(by_alias=True,
|
|
60
|
+
exclude={
|
|
61
|
+
},
|
|
62
|
+
exclude_none=True)
|
|
63
|
+
return _dict
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_dict(cls, obj: dict) -> V1Suntimes:
|
|
67
|
+
"""Create an instance of V1Suntimes from a dict"""
|
|
68
|
+
if obj is None:
|
|
69
|
+
return None
|
|
70
|
+
|
|
71
|
+
if not isinstance(obj, dict):
|
|
72
|
+
return V1Suntimes.parse_obj(obj)
|
|
73
|
+
|
|
74
|
+
_obj = V1Suntimes.parse_obj({
|
|
75
|
+
"node_id": obj.get("nodeId"),
|
|
76
|
+
"sunrise": obj.get("sunrise"),
|
|
77
|
+
"sunset": obj.get("sunset"),
|
|
78
|
+
"civil_rise": obj.get("civilRise"),
|
|
79
|
+
"civil_set": obj.get("civilSet"),
|
|
80
|
+
"nautical_rise": obj.get("nauticalRise"),
|
|
81
|
+
"nautical_set": obj.get("nauticalSet"),
|
|
82
|
+
"astronomical_rise": obj.get("astronomicalRise"),
|
|
83
|
+
"astronomical_set": obj.get("astronomicalSet")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|