require 'helix_web_services_client/open_model' class HelixWebServicesClient # Fetch all protections in the system. Returns a single Protections # instance. def protections obj = execute_method_no_body(:get, hve_path('protections')) OpenModel.new(obj) end # Updates the protections table based on the Protections instance passed in # # @param protections [Hash|OpenModel] A hash with a `protections` property # that is an Array of protections entries def update_protections(protections) protections = OpenModel.new(protections) unless protections.is_a?(OpenModel) execute_method_with_body(:put, hve_path('protections'), protections.marshal_dump) end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 17274 | tjuricek |
Initial revision of Ruby client API. Removing a bunch of the "helper method aliases" and specs that no longer run. The 2016.1 API will be much more like the Java (and TBD C++) APIs. |
||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/lib/helix_web_services_client/protections.rb | |||||
#3 | 15240 | tjuricek |
Set api level via request path on all Helix Versioning Engine methods. This will allow migration of applications to different P4D versions. Our internal methods (like project API) should attempt to handle backward compatibility similarly. P4WEBAPI-118 |
||
#2 | 15227 | tjuricek |
Revise implementation, tests, and documentation for protections management. Remove some specs I will not be revising from the helix_web_services project. |
||
#1 | 13808 | tjuricek | Finish converting most of the core p4d API into the new monolithic system. | ||
//guest/perforce_software/helix-web-services/main/p4_web_api/clients/ruby/p4_web_api_client/lib/p4_web_api_client/client/protections.rb | |||||
#1 | 13412 | tjuricek |
Initial version of the web-services mainline. This is a collection of several projects, that will likely often get released together, though many of them may not always be relevant. See the README for more information. |