OmniSciDB  340b00dbf6
 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 928 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 937 of file ttypes.py.

938  def __init__(self, sessionId=None, krbToken=None,):
939  self.sessionId = sessionId
940  self.krbToken = krbToken

Member Function Documentation

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

Definition at line 989 of file ttypes.py.

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

Definition at line 992 of file ttypes.py.

993  def __ne__(self, other):
994  return not (self == other)
995 
def omnisci.thrift.ttypes.TKrb5Session.__repr__ (   self)

Definition at line 984 of file ttypes.py.

985  def __repr__(self):
986  L = ['%s=%r' % (key, value)
987  for key, value in self.__dict__.items()]
988  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 941 of file ttypes.py.

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

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

Definition at line 981 of file ttypes.py.

982  def validate(self):
983  return
def omnisci.thrift.ttypes.TKrb5Session.write (   self,
  oprot 
)

Definition at line 965 of file ttypes.py.

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

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

Member Data Documentation

omnisci.thrift.ttypes.TKrb5Session.__dict__
private

Definition at line 990 of file ttypes.py.

omnisci.thrift.ttypes.TKrb5Session.krbToken

Definition at line 939 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 938 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: