Class: Hexspace::TGetOperationStatusResp
- Inherits:
-
Object
- Object
- Hexspace::TGetOperationStatusResp
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- STATUS =
1
- OPERATIONSTATE =
2
- SQLSTATE =
3
- ERRORCODE =
4
- ERRORMESSAGE =
5
- TASKSTATUS =
6
- OPERATIONSTARTED =
7
- OPERATIONCOMPLETED =
8
- HASRESULTSET =
9
- PROGRESSUPDATERESPONSE =
10
- FIELDS =
{ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}, OPERATIONSTATE => {:type => ::Thrift::Types::I32, :name => 'operationState', :optional => true, :enum_class => ::Hexspace::TOperationState}, SQLSTATE => {:type => ::Thrift::Types::STRING, :name => 'sqlState', :optional => true}, ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :optional => true}, ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}, TASKSTATUS => {:type => ::Thrift::Types::STRING, :name => 'taskStatus', :optional => true}, OPERATIONSTARTED => {:type => ::Thrift::Types::I64, :name => 'operationStarted', :optional => true}, OPERATIONCOMPLETED => {:type => ::Thrift::Types::I64, :name => 'operationCompleted', :optional => true}, HASRESULTSET => {:type => ::Thrift::Types::BOOL, :name => 'hasResultSet', :optional => true}, PROGRESSUPDATERESPONSE => {:type => ::Thrift::Types::STRUCT, :name => 'progressUpdateResponse', :class => ::Hexspace::TProgressUpdateResp, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1760 |
# File 'lib/hexspace/tcli_service_types.rb', line 1760 def struct_fields; FIELDS; end |
#validate ⇒ Object
1762 1763 1764 1765 1766 1767 |
# File 'lib/hexspace/tcli_service_types.rb', line 1762 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status unless @operationState.nil? || ::Hexspace::TOperationState::VALID_VALUES.include?(@operationState) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationState!') end end |