Resolved some issues which we experienced when creating replication policies from scratch differing from the documented example, e.g. different trigger or filters.
In general split much code into small methods in order to allow reuse and remove duplicated code, and improve readability and understanding.
Custom type:
Defined explicit values ':false',':true' for boolean like properties 'deletion', 'override', 'enabled'.
Set default value '' for property 'description'.
Added documentation for property 'trigger'.
Added some unit tests.
Provider:
Only read key 'trigger_settings' if available.
Added filtering of returned policies by api_instance.replication_policies_get() for a for given 'name'. This is required because api_instance.replication_policies_get() returns also policies which contain the given name partly, e.g. 'demo push' will also be returned when asking for 'demo'.
Implemented provider's interface method 'flush' because all properties when changed have been applied together in update_replication_policy_param(). In opposite to previous implementation of single 'property=()' methods the flush() method is automatically called ONLY once if several properties change. This reduces executions of the SwaggerClient.
Renamed variables and methods in order to distinguish if SwaggerClient's ProjectMemberEntity objects or simple member/member_group names are used.
Resolved some issues which we experienced when creating replication policies from scratch differing from the documented example, e.g. different trigger or filters. In general split much code into small methods in order to allow reuse and remove duplicated code, and improve readability and understanding.
Custom type:
Provider:
Note that this branch bases on branch of pull request #27.