Sha256: 24cd45f7f577e9433d12e722d52de5c60a3187dad9d4f26a58eadc0778288578

Contents?: true

Size: 1.2 KB

Versions: 73

Compression:

Stored size: 1.2 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require_relative '../base_type'

require_relative '../scalar/bool'
require_relative 'complex'

module GoodData
  module LCM2
    module Type
      class UpdatePreferenceType < ComplexType
        CATEGORY = :complex

        PARAMS = define_type(self) do
          description 'Cascade Drop'
          param :cascade_drops, instance_of(Type::BooleanType), required: false, default: nil, deprecated: true, replacement: :allow_cascade_drops

          description 'Preserve Data'
          param :preserve_data, instance_of(Type::BooleanType), required: false, default: nil, deprecated: true, replacement: :keep_data

          description 'Allow Cascade Drop'
          param :allow_cascade_drops, instance_of(Type::BooleanType), required: false, default: false

          description 'Keep Data'
          param :keep_data, instance_of(Type::BooleanType), required: false, default: true
        end

        def check(value)
          BaseType.check_params(PARAMS, value)
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
gooddata-2.3.1-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.3.1 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.3.0-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.3.0 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.2.0-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.2.0 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.19-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.19 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.17-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.17 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.15-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.15 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.14-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.14 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.13-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.13 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.12-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.12 lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.11-java lib/gooddata/lcm/types/complex/update_preference.rb
gooddata-2.1.11 lib/gooddata/lcm/types/complex/update_preference.rb