Class: Parser
- Inherits:
-
Object
- Object
- Parser
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/parser_model_types.rb
Constant Summary collapse
- ID =
1
- IMAGENAME =
2
- OUTPUTDIRPATH =
3
- INPUTDIRPATH =
4
- EXECUTIONCOMMAND =
5
- INPUTFILES =
6
- OUTPUTFILES =
7
- GATEWAYID =
8
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, IMAGENAME => {:type => ::Thrift::Types::STRING, :name => 'imageName'}, OUTPUTDIRPATH => {:type => ::Thrift::Types::STRING, :name => 'outputDirPath'}, INPUTDIRPATH => {:type => ::Thrift::Types::STRING, :name => 'inputDirPath'}, EXECUTIONCOMMAND => {:type => ::Thrift::Types::STRING, :name => 'executionCommand'}, INPUTFILES => {:type => ::Thrift::Types::LIST, :name => 'inputFiles', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserInput}}, OUTPUTFILES => {:type => ::Thrift::Types::LIST, :name => 'outputFiles', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserOutput}}, GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
102 |
# File 'lib/parser_model_types.rb', line 102 def struct_fields; FIELDS; end |
#validate ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/parser_model_types.rb', line 104 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 imageName is unset!') unless @imageName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field outputDirPath is unset!') unless @outputDirPath raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputDirPath is unset!') unless @inputDirPath raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executionCommand is unset!') unless @executionCommand raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputFiles is unset!') unless @inputFiles raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field outputFiles is unset!') unless @outputFiles raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId end |