Class: WorkflowHandler
- Inherits:
-
Object
- Object
- WorkflowHandler
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_workflow_model_types.rb
Constant Summary collapse
- ID =
1
- TYPE =
2
- INPUTS =
3
- OUTPUTS =
4
- STATUSES =
5
- ERRORS =
6
- CREATEDAT =
7
- UPDATEDAT =
8
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::HandlerType}, INPUTS => {:type => ::Thrift::Types::LIST, :name => 'inputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::InputDataObjectType}, :optional => true}, OUTPUTS => {:type => ::Thrift::Types::LIST, :name => 'outputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OutputDataObjectType}, :optional => true}, STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HandlerStatus}, :optional => true}, ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true}, CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true}, UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
261 |
# File 'lib/airavata_workflow_model_types.rb', line 261 def struct_fields; FIELDS; end |
#validate ⇒ Object
263 264 265 266 267 268 269 |
# File 'lib/airavata_workflow_model_types.rb', line 263 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 type is unset!') unless @type unless @type.nil? || ::HandlerType::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |