52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/db_event_model_types.rb', line 52
def validate
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field crudType is unset!') unless @crudType
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field entityType is unset!') unless @entityType
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field entityDataModel is unset!') unless @entityDataModel
unless @crudType.nil? || ::CrudType::VALID_VALUES.include?(@crudType)
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field crudType!')
end
unless @entityType.nil? || ::EntityType::VALID_VALUES.include?(@entityType)
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field entityType!')
end
end
|