Method: GoodData::Project#update_from_blueprint

Defined in:
lib/gooddata/models/project.rb

#update_from_blueprint(blueprint, options = {}) ⇒ Object

Applies blueprint to the project.

Examples:

Update with custom update preference.

GoodData.project.update_from_blueprint(
  blueprint,
  update_preference: {
    cascade_drops: false, preserve_data: false
  }
)

Parameters:

  • blueprint (Hash)

    Blueprint to apply to the project.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :update_preference (Hash) — default: cascade_drops: false, preserve_data: true

    Specifies how dropping LDM and data should be treated.



2170
2171
2172
# File 'lib/gooddata/models/project.rb', line 2170

def update_from_blueprint(blueprint, options = {})
  GoodData::Model::ProjectCreator.migrate(options.merge(spec: blueprint, token: options[:auth_token], client: client, project: self))
end