Commit Graph

13 Commits

Author SHA1 Message Date
27379e7cd6 Add Shared Folders support (#61)
* Minimal Shared Folders support

* Bugfixes in share.py and README updates

* Added tests for shares

* Formatted with black

* Added myself as a contributor.

* Support for extended attributes for shares.

* Tidied up some comments.

* Reformatted with Black

* Fixed tests

* Fixed tests, maybe

* addressing initial feedback on pull request \#61

* Working on tests, can't repro failure locally.

* Updated test per comment on #61 and added a generic to shares.

* Fixed pylint complaint

* Tried to fix the test again, didn\'t

* Ran Black

* Implemented feedback on pull request.

* Updated tests to reflect the move of shares to UUID

* Fix CI

* Rename to SynoCoreShare

* Remove useless _execute_request() special treatment

Co-authored-by: Quentin POLLET <polletquentin74@me.com>
2020-07-12 12:45:28 +02:00
660d1e661f Add SurveillanceStation (#57)
* Add SurveillanceStation

* Fix error in error handling

* Fix Python 2.7 pylint

* Capitalize Camera_API.List

Co-authored-by: Xiaonan Shen <s@sxn.dev>

* Capitalize Camera_API.GetSnapshot + id instead of cameraId

Co-authored-by: Xiaonan Shen <s@sxn.dev>

* Join idList

Co-authored-by: Xiaonan Shen <s@sxn.dev>

* black

* pylint

* methods are case sensitive

* Backward compat with Camera.GetSnapshot cameraId

* raw live view data

* Add Info.GetInfo

* Use Camera.GetInfo

* Fix TakeSnapshot blSave

* Fix content type

* Add SurveillanceStation api data

* Add unit test, miss SYNO.SurveillanceStation.Camera GetInfo

* Do not use Camera.LetInfo but .List with max_version 7

* Fix Switch on param

Co-authored-by: Xiaonan Shen <s@sxn.dev>

* Update camera list api data

* Add more API data

* Take care of new test data

* Add RTSP test + previous library code owners

Co-authored-by: Joe Lu <snjoetw@gmail.com>

Co-authored-by: David <dconnor@gmail.com>

Co-authored-by: Aleksander Lyse <aleksander.lyse@gmail.com>

Co-authored-by: Loïc Gerbaud <info@loicg.net>

* Fix Py27 pipe

* Fix : get_all_cameras() test

* Update README for SurveillanceStation

* Fix README
2020-06-29 01:25:05 +02:00
796a1a7dc5 Add SynoSecurity status_by_check + add outOfDate test (#54) 2020-06-02 10:57:29 +02:00
9a523c75a2 Make Exceptions detailed (#52) 2020-05-15 00:11:25 +02:00
e460eb73cb Add API SYNO.Core.SecurityScan.Status (#46) 2020-05-02 15:47:00 +02:00
5f9c2dd96a Add DSM 5 SYNO.DSM.Network test (#45) 2020-05-02 14:56:40 +02:00
a398d3a952 Add API SYNO.DSM.Network (#44) 2020-05-02 11:49:49 +02:00
bf6c88912c Fix Storage volume_disk_temp_[X](volume_id) for SHR disks redundancy (#42)
* Fix Storage volume_disk_temp_[X] for SHR disks redundancy

* Fix pylint & black

* Add SHR2 redundancy tests
2020-05-01 13:55:02 +02:00
adba2c3084 Fix : DSM 5 storage "KeyError: 'data'" (#39) 2020-04-29 12:27:44 +02:00
4096d7886b Add DSM 5 tests + fix DSM 5 issues 2020-04-28 22:56:51 +02:00
15697152cc Populated test data from DSM 5.2-5967 Update 9 (#37)
Co-authored-by: aaska <aaska@users.noreply.github.com>

Co-authored-by: Stanislav Toropovskyi <48147949+stast1@users.noreply.github.com>
2020-04-28 13:58:29 +02:00
0622bcf560 Refactor requests (#33)
* API discovery (SYNO.API.Info) + use Exceptions

- remove dsm_version
- use SynologyDSMRequestException for failed requests

* _discover_apis any time

* simplify requests

- Add api.request(api, method, params=None)

* Add connection failed tests

* Finalized ?

* Fix SynologyDSMRequestException not beeing SynologyDSMException

* Fix SynologyDSMAPINotExistsException not beeing SynologyDSMException

* Add Virtual Machine Manager API documentation

* Can get and post request

- Add error handling by API code

* Pylint

* Add get + post tests + SynologyDSMAPIErrorException
2020-04-22 14:00:27 +02:00
e393b1282c Add SYNO.API.Info to test constants + reorganize test consts (#31) 2020-04-14 14:01:58 +02:00