Method: GoodData::Project#blueprint
- Defined in:
- lib/gooddata/models/project.rb
#blueprint(options = {}) ⇒ GoodData::ProjectRole
Gets project blueprint from the server
849 850 851 852 853 854 855 856 857 858 |
# File 'lib/gooddata/models/project.rb', line 849 def blueprint( = {}) = { include_ca: true }.merge() result = client.get("/gdc/projects/#{pid}/model/view", params: { includeDeprecated: true, includeGrain: true, includeCA: [:include_ca] }) polling_url = result['asyncTask']['link']['poll'] model = client.poll_on_code(polling_url, ) bp = GoodData::Model::FromWire.from_wire(model, ) bp.title = title bp end |