Class: Hexspace::TGetInfoReq
- Inherits:
-
Object
- Object
- Hexspace::TGetInfoReq
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- SESSIONHANDLE =
1
- INFOTYPE =
2
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}, INFOTYPE => {:type => ::Thrift::Types::I32, :name => 'infoType', :enum_class => ::Hexspace::TGetInfoType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1268 |
# File 'lib/hexspace/tcli_service_types.rb', line 1268 def struct_fields; FIELDS; end |
#validate ⇒ Object
1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/hexspace/tcli_service_types.rb', line 1270 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field infoType is unset!') unless @infoType unless @infoType.nil? || ::Hexspace::TGetInfoType::VALID_VALUES.include?(@infoType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field infoType!') end end |