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

Public Member Functions

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

Public Attributes

 objectName
 
 objectType
 
 privs
 
 grantee
 
 privilegeObjectType
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - objectName
 - objectType
 - privs
 - grantee
 - privilegeObjectType

Definition at line 5469 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDBObject.__init__ (   self,
  objectName = None,
  objectType = None,
  privs = None,
  grantee = None,
  privilegeObjectType = None 
)

Definition at line 5481 of file ttypes.py.

5482  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None,):
5483  self.objectName = objectName
5484  self.objectType = objectType
5485  self.privs = privs
5486  self.grantee = grantee
5487  self.privilegeObjectType = privilegeObjectType

Member Function Documentation

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

Definition at line 5571 of file ttypes.py.

5572  def __eq__(self, other):
5573  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDBObject.__ne__ (   self,
  other 
)

Definition at line 5574 of file ttypes.py.

5575  def __ne__(self, other):
5576  return not (self == other)
5577 
def omnisci.thrift.ttypes.TDBObject.__repr__ (   self)

Definition at line 5566 of file ttypes.py.

5567  def __repr__(self):
5568  L = ['%s=%r' % (key, value)
5569  for key, value in self.__dict__.items()]
5570  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.TDBObject.read (   self,
  iprot 
)

Definition at line 5488 of file ttypes.py.

References omnisci.thrift.ttypes.TDBObject.grantee, ObjectRoleDescriptor.objectName, omnisci.thrift.ttypes.TDBObject.objectName, omnisci.thrift.OmniSci.get_db_object_privs_args.objectName, ObjectRoleDescriptor.objectType, omnisci.thrift.ttypes.TDBObject.objectType, omnisci.thrift.OmniSci.has_object_privilege_args.objectType, omnisci.thrift.ttypes.TDBObject.privilegeObjectType, ObjectRoleDescriptor.privs, Parser::GrantPrivilegesStmt.privs, Parser::RevokePrivilegesStmt.privs, and omnisci.thrift.ttypes.TDBObject.privs.

5489  def read(self, iprot):
5490  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5491  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5492  return
5493  iprot.readStructBegin()
5494  while True:
5495  (fname, ftype, fid) = iprot.readFieldBegin()
5496  if ftype == TType.STOP:
5497  break
5498  if fid == 1:
5499  if ftype == TType.STRING:
5500  self.objectName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5501  else:
5502  iprot.skip(ftype)
5503  elif fid == 2:
5504  if ftype == TType.I32:
5505  self.objectType = iprot.readI32()
5506  else:
5507  iprot.skip(ftype)
5508  elif fid == 3:
5509  if ftype == TType.LIST:
5510  self.privs = []
5511  (_etype244, _size241) = iprot.readListBegin()
5512  for _i245 in range(_size241):
5513  _elem246 = iprot.readBool()
5514  self.privs.append(_elem246)
5515  iprot.readListEnd()
5516  else:
5517  iprot.skip(ftype)
5518  elif fid == 4:
5519  if ftype == TType.STRING:
5520  self.grantee = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5521  else:
5522  iprot.skip(ftype)
5523  elif fid == 5:
5524  if ftype == TType.I32:
5525  self.privilegeObjectType = iprot.readI32()
5526  else:
5527  iprot.skip(ftype)
5528  else:
5529  iprot.skip(ftype)
5530  iprot.readFieldEnd()
5531  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDBObject.validate (   self)

Definition at line 5563 of file ttypes.py.

5564  def validate(self):
5565  return
def omnisci.thrift.ttypes.TDBObject.write (   self,
  oprot 
)

Definition at line 5532 of file ttypes.py.

References omnisci.thrift.ttypes.TDBObject.grantee, ObjectRoleDescriptor.objectName, omnisci.thrift.ttypes.TDBObject.objectName, omnisci.thrift.OmniSci.get_db_object_privs_args.objectName, ObjectRoleDescriptor.objectType, omnisci.thrift.ttypes.TDBObject.objectType, omnisci.thrift.OmniSci.has_object_privilege_args.objectType, omnisci.thrift.ttypes.TDBObject.privilegeObjectType, ObjectRoleDescriptor.privs, Parser::GrantPrivilegesStmt.privs, Parser::RevokePrivilegesStmt.privs, and omnisci.thrift.ttypes.TDBObject.privs.

5533  def write(self, oprot):
5534  if oprot._fast_encode is not None and self.thrift_spec is not None:
5535  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5536  return
5537  oprot.writeStructBegin('TDBObject')
5538  if self.objectName is not None:
5539  oprot.writeFieldBegin('objectName', TType.STRING, 1)
5540  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
5541  oprot.writeFieldEnd()
5542  if self.objectType is not None:
5543  oprot.writeFieldBegin('objectType', TType.I32, 2)
5544  oprot.writeI32(self.objectType)
5545  oprot.writeFieldEnd()
5546  if self.privs is not None:
5547  oprot.writeFieldBegin('privs', TType.LIST, 3)
5548  oprot.writeListBegin(TType.BOOL, len(self.privs))
5549  for iter247 in self.privs:
5550  oprot.writeBool(iter247)
5551  oprot.writeListEnd()
5552  oprot.writeFieldEnd()
5553  if self.grantee is not None:
5554  oprot.writeFieldBegin('grantee', TType.STRING, 4)
5555  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
5556  oprot.writeFieldEnd()
5557  if self.privilegeObjectType is not None:
5558  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
5559  oprot.writeI32(self.privilegeObjectType)
5560  oprot.writeFieldEnd()
5561  oprot.writeFieldStop()
5562  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDBObject.__dict__
private

Definition at line 5572 of file ttypes.py.

omnisci.thrift.ttypes.TDBObject.grantee

Definition at line 5485 of file ttypes.py.

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

omnisci.thrift.ttypes.TDBObject.objectName

Definition at line 5482 of file ttypes.py.

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

omnisci.thrift.ttypes.TDBObject.objectType

Definition at line 5483 of file ttypes.py.

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

omnisci.thrift.ttypes.TDBObject.privilegeObjectType

Definition at line 5486 of file ttypes.py.

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

omnisci.thrift.ttypes.TDBObject.privs

Definition at line 5484 of file ttypes.py.

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


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