Class: Hexspace::TOperationHandle
- Inherits:
-
Object
- Object
- Hexspace::TOperationHandle
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- OPERATIONID =
1
- OPERATIONTYPE =
2
- HASRESULTSET =
3
- MODIFIEDROWCOUNT =
4
- FIELDS =
{ OPERATIONID => {:type => ::Thrift::Types::STRUCT, :name => 'operationId', :class => ::Hexspace::THandleIdentifier}, OPERATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'operationType', :enum_class => ::Hexspace::TOperationType}, HASRESULTSET => {:type => ::Thrift::Types::BOOL, :name => 'hasResultSet'}, MODIFIEDROWCOUNT => {:type => ::Thrift::Types::DOUBLE, :name => 'modifiedRowCount', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1104 |
# File 'lib/hexspace/tcli_service_types.rb', line 1104 def struct_fields; FIELDS; end |
#validate ⇒ Object
1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/hexspace/tcli_service_types.rb', line 1106 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationId is unset!') unless @operationId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationType is unset!') unless @operationType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasResultSet is unset!') if @hasResultSet.nil? unless @operationType.nil? || ::Hexspace::TOperationType::VALID_VALUES.include?(@operationType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!') end end |