Class: Hexspace::TRenewDelegationTokenReq
- Inherits:
-
Object
- Object
- Hexspace::TRenewDelegationTokenReq
- 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
- DELEGATIONTOKEN =
2
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}, DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2014 |
# File 'lib/hexspace/tcli_service_types.rb', line 2014 def struct_fields; FIELDS; end |
#validate ⇒ Object
2016 2017 2018 2019 |
# File 'lib/hexspace/tcli_service_types.rb', line 2016 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 |