Class: ExperimentSummaryModel
- Inherits:
-
Object
- Object
- ExperimentSummaryModel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/experiment_model_types.rb
Constant Summary collapse
- EXPERIMENTID =
1
- PROJECTID =
2
- GATEWAYID =
3
- CREATIONTIME =
4
- USERNAME =
5
- NAME =
6
- DESCRIPTION =
7
- EXECUTIONID =
8
- RESOURCEHOSTID =
9
- EXPERIMENTSTATUS =
10
- STATUSUPDATETIME =
12
- FIELDS =
{ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'}, PROJECTID => {:type => ::Thrift::Types::STRING, :name => 'projectId'}, GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}, CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true}, USERNAME => {:type => ::Thrift::Types::STRING, :name => 'userName'}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true}, EXECUTIONID => {:type => ::Thrift::Types::STRING, :name => 'executionId', :optional => true}, RESOURCEHOSTID => {:type => ::Thrift::Types::STRING, :name => 'resourceHostId', :optional => true}, EXPERIMENTSTATUS => {:type => ::Thrift::Types::STRING, :name => 'experimentStatus', :optional => true}, STATUSUPDATETIME => {:type => ::Thrift::Types::I64, :name => 'statusUpdateTime', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
190 |
# File 'lib/experiment_model_types.rb', line 190 def struct_fields; FIELDS; end |
#validate ⇒ Object
192 193 194 195 196 197 198 |
# File 'lib/experiment_model_types.rb', line 192 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field projectId is unset!') unless @projectId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userName is unset!') unless @userName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name end |