OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TKrb5Session Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TKrb5Session:
+ Collaboration diagram for omnisci.thrift.ttypes.TKrb5Session:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 sessionId
 
 krbToken
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - sessionId
 - krbToken

Definition at line 931 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TKrb5Session.__init__ (   self,
  sessionId = None,
  krbToken = None 
)

Definition at line 940 of file ttypes.py.

941  def __init__(self, sessionId=None, krbToken=None,):
942  self.sessionId = sessionId
943  self.krbToken = krbToken

Member Function Documentation

def omnisci.thrift.ttypes.TKrb5Session.__eq__ (   self,
  other 
)

Definition at line 992 of file ttypes.py.

993  def __eq__(self, other):
994  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TKrb5Session.__ne__ (   self,
  other 
)

Definition at line 995 of file ttypes.py.

996  def __ne__(self, other):
997  return not (self == other)
998 
def omnisci.thrift.ttypes.TKrb5Session.__repr__ (   self)

Definition at line 987 of file ttypes.py.

988  def __repr__(self):
989  L = ['%s=%r' % (key, value)
990  for key, value in self.__dict__.items()]
991  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def omnisci.thrift.ttypes.TKrb5Session.read (   self,
  iprot 
)

Definition at line 944 of file ttypes.py.

References omnisci.thrift.ttypes.TKrb5Session.krbToken, com.mapd.tests.MapdTestClient.sessionId, and omnisci.thrift.ttypes.TKrb5Session.sessionId.

945  def read(self, iprot):
946  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
947  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
948  return
949  iprot.readStructBegin()
950  while True:
951  (fname, ftype, fid) = iprot.readFieldBegin()
952  if ftype == TType.STOP:
953  break
954  if fid == 1:
955  if ftype == TType.STRING:
956  self.sessionId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
957  else:
958  iprot.skip(ftype)
959  elif fid == 2:
960  if ftype == TType.STRING:
961  self.krbToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
962  else:
963  iprot.skip(ftype)
964  else:
965  iprot.skip(ftype)
966  iprot.readFieldEnd()
967  iprot.readStructEnd()
def omnisci.thrift.ttypes.TKrb5Session.validate (   self)

Definition at line 984 of file ttypes.py.

985  def validate(self):
986  return
def omnisci.thrift.ttypes.TKrb5Session.write (   self,
  oprot 
)

Definition at line 968 of file ttypes.py.

References omnisci.thrift.ttypes.TKrb5Session.krbToken, com.mapd.tests.MapdTestClient.sessionId, and omnisci.thrift.ttypes.TKrb5Session.sessionId.

969  def write(self, oprot):
970  if oprot._fast_encode is not None and self.thrift_spec is not None:
971  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
972  return
973  oprot.writeStructBegin('TKrb5Session')
974  if self.sessionId is not None:
975  oprot.writeFieldBegin('sessionId', TType.STRING, 1)
976  oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId)
977  oprot.writeFieldEnd()
978  if self.krbToken is not None:
979  oprot.writeFieldBegin('krbToken', TType.STRING, 2)
980  oprot.writeString(self.krbToken.encode('utf-8') if sys.version_info[0] == 2 else self.krbToken)
981  oprot.writeFieldEnd()
982  oprot.writeFieldStop()
983  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TKrb5Session.__dict__
private

Definition at line 993 of file ttypes.py.

omnisci.thrift.ttypes.TKrb5Session.krbToken

Definition at line 942 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TKrb5Session.read(), and omnisci.thrift.ttypes.TKrb5Session.write().

omnisci.thrift.ttypes.TKrb5Session.sessionId

Definition at line 941 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TKrb5Session.read(), and omnisci.thrift.ttypes.TKrb5Session.write().


The documentation for this class was generated from the following file: