# 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 'class' module GoodData module LCM2 module Type class AdsClientType < ClassType CATEGORY = :class # PARAMS = define_type(self) do # description 'Username used for connecting to ADS' # param :username, instance_of(Type::StringType), required: true # # description 'Password used for connecting to ADS' # param :password, instance_of(Type::StringType), required: true # # description 'JDBC Connection String used for connecting to ADS' # param :jdbc, instance_of(Type::StringType), required: true # end def check(value) # BaseType.check_params(PARAMS, value) value.class == GoodData::Datawarehouse end end end end end