Class: Hive2::Thrift::TCancelDelegationTokenReq
- Inherits:
-
Object
- Object
- Hive2::Thrift::TCancelDelegationTokenReq
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- SESSIONHANDLE =
1
- DELEGATIONTOKEN =
2
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::TSessionHandle}, DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1697 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1697 def struct_fields; FIELDS; end |
#validate ⇒ Object
1699 1700 1701 1702 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1699 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 delegationToken is unset!') unless @delegationToken end |