Class: Hive2::Thrift::TGetDelegationTokenReq

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

SESSIONHANDLE =
1
OWNER =
2
RENEWER =
3
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::TSessionHandle},
  OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
  RENEWER => {:type => ::Thrift::Types::STRING, :name => 'renewer'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


1657
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1657

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1659
1660
1661
1662
1663
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1659

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