Class: ApplicationStatus
- Inherits:
-
Object
- Object
- ApplicationStatus
- 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 => ::ApplicationState}, 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
85 |
# File 'lib/airavata_workflow_model_types.rb', line 85 def struct_fields; FIELDS; end |
#validate ⇒ Object
87 88 89 90 91 92 |
# File 'lib/airavata_workflow_model_types.rb', line 87 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state unless @state.nil? || ::ApplicationState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |