Class: Hexspace::TGetDelegationTokenReq
- Inherits:
-
Object
- Object
- Hexspace::TGetDelegationTokenReq
- 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
- OWNER =
2
- RENEWER =
3
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}, OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'}, RENEWER => {:type => ::Thrift::Types::STRING, :name => 'renewer'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1937 |
# File 'lib/hexspace/tcli_service_types.rb', line 1937 def struct_fields; FIELDS; end |
#validate ⇒ Object
1939 1940 1941 1942 1943 |
# File 'lib/hexspace/tcli_service_types.rb', line 1939 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 owner is unset!') unless @owner raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field renewer is unset!') unless @renewer end |