Sha256: e9ffa17a44382cf02039376e58ec413eaef304acc11a1ade0b7f8d75cccee483

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 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 'complex'

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

        PARAMS = define_type(self) do
          description 'Segment ID'
          param :segment_id, instance_of(Type::StringType), required: true

          description 'PID of Development Project'
          param :development_pid, instance_of(Type::StringType), required: true

          description 'Storage Driver'
          param :driver, instance_of(Type::StringType), required: true # required: false, , default: 'pg'

          description 'Master Project Name'
          param :master_name, instance_of(Type::StringType), required: true
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gooddata-0.6.53 lib/gooddata/lcm/types/complex/segment.rb
gooddata-0.6.52 lib/gooddata/lcm/types/complex/segment.rb
gooddata-0.6.51 lib/gooddata/lcm/types/complex/segment.rb
gooddata-0.6.50 lib/gooddata/lcm/types/complex/segment.rb