Sha256: 3edbff679db99dac7c120c9f86987780794fad35704814d20b4540a7c507cac7

Contents?: true

Size: 1.16 KB

Versions: 10

Compression:

Stored size: 1.16 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: false, default: 'pg'

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

          description 'Production Tag Names'
          param :production_tags, array_of(instance_of(Type::StringType)), required: false
        end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gooddata-1.3.1-java lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.3.1 lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.3.0-java lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.3.0 lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.2.1-java lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.2.1 lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.2.0-java lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.2.0 lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.1.0-java lib/gooddata/lcm/types/complex/segment.rb
gooddata-1.1.0 lib/gooddata/lcm/types/complex/segment.rb