Class: HandlerStatus
- Inherits:
-
Object
- Object
- HandlerStatus
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_workflow_model_types.rb
Constant Summary collapse
- ID =
1
- STATE =
2
- DESCRIPTION =
3
- UPDATEDAT =
4
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true}, STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::HandlerState}, DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true}, UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
227 |
# File 'lib/airavata_workflow_model_types.rb', line 227 def struct_fields; FIELDS; end |
#validate ⇒ Object
229 230 231 232 233 234 |
# File 'lib/airavata_workflow_model_types.rb', line 229 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state unless @state.nil? || ::HandlerState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |