Class: ParsingTemplate

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/parser_model_types.rb

Constant Summary collapse

ID =
1
APPLICATIONINTERFACE =
2
INITIALINPUTS =
3
PARSERCONNECTIONS =
4
GATEWAYID =
5
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  APPLICATIONINTERFACE => {:type => ::Thrift::Types::STRING, :name => 'applicationInterface'},
  INITIALINPUTS => {:type => ::Thrift::Types::LIST, :name => 'initialInputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParsingTemplateInput}},
  PARSERCONNECTIONS => {:type => ::Thrift::Types::LIST, :name => 'parserConnections', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserConnector}},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



217
# File 'lib/parser_model_types.rb', line 217

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


219
220
221
222
223
224
225
# File 'lib/parser_model_types.rb', line 219

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field applicationInterface is unset!') unless @applicationInterface
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field initialInputs is unset!') unless @initialInputs
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserConnections is unset!') unless @parserConnections
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
end