require 'uri' class HelixWebServicesClient # Lists the projects available on the server for the user. # # @param details [Boolean] Defaults to false, if true, output will be an array of project details. # If false, output will be an array of project IDs. # # @param extension [String] If set, will only return projects with the indicated extension ID. def projects(details: nil, extension: nil) query = {} query[:details] = details if details query[:extension] = extension if extension arr = execute_method_no_body(:get, '/projects/v1', query) arr = arr.map { |a| OpenModel.new(a) } if details arr end # Return the project details # # @param project_id [String] The project's String id def project(project_id) path = "/projects/v1/#{URI.encode(project_id)}" obj = execute_method_no_body(:get, path) OpenModel.new(obj) end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services_client/lib/helix_web_services_client/projects.rb | |||||
#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/projects.rb | |||||
#4 | 15437 | tjuricek |
Basic "HVE Project" implementation. This will allow directories in a HVE instance to host 'projects' for use by helix sync. There are no methods defined for creating the projects, however. This does not include any specialization or testing in the Qt API yet. I may investigate creating a "higher level" interface for Qt client apps. |
||
#3 | 15099 | tjuricek | Revise project services to be our simple 'container' for other systems. | ||
#2 | 15098 | tjuricek |
Revised project services to GET-only forms. With Helix Sync revising to integrate purely with Helix Cloud, this is the only thing we can reasonably define. |
||
#1 | 15090 | tjuricek |
Update _proposed_ API for project services. This is *very likely* to change, and will not be implemented until reviewed. |