Class: Hexspace::TProgressUpdateResp
- Inherits:
-
Object
- Object
- Hexspace::TProgressUpdateResp
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- HEADERNAMES =
1
- ROWS =
2
- PROGRESSEDPERCENTAGE =
3
- STATUS =
4
- FOOTERSUMMARY =
5
- STARTTIME =
6
- FIELDS =
{ HEADERNAMES => {:type => ::Thrift::Types::LIST, :name => 'headerNames', :element => {:type => ::Thrift::Types::STRING}}, ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}}, PROGRESSEDPERCENTAGE => {:type => ::Thrift::Types::DOUBLE, :name => 'progressedPercentage'}, STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::Hexspace::TJobExecutionStatus}, FOOTERSUMMARY => {:type => ::Thrift::Types::STRING, :name => 'footerSummary'}, STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2059 |
# File 'lib/hexspace/tcli_service_types.rb', line 2059 def struct_fields; FIELDS; end |
#validate ⇒ Object
2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 |
# File 'lib/hexspace/tcli_service_types.rb', line 2061 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field headerNames is unset!') unless @headerNames raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rows is unset!') unless @rows raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field progressedPercentage is unset!') unless @progressedPercentage raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field footerSummary is unset!') unless @footerSummary raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startTime is unset!') unless @startTime unless @status.nil? || ::Hexspace::TJobExecutionStatus::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |