OmniSciDB  a7179b2938
 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 5498 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 5510 of file ttypes.py.

5511  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None,):
5512  self.objectName = objectName
5513  self.objectType = objectType
5514  self.privs = privs
5515  self.grantee = grantee
5516  self.privilegeObjectType = privilegeObjectType

Member Function Documentation

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

Definition at line 5600 of file ttypes.py.

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

Definition at line 5603 of file ttypes.py.

5604  def __ne__(self, other):
5605  return not (self == other)
5606 
def omnisci.thrift.ttypes.TDBObject.__repr__ (   self)

Definition at line 5595 of file ttypes.py.

5596  def __repr__(self):
5597  L = ['%s=%r' % (key, value)
5598  for key, value in self.__dict__.items()]
5599  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 5517 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.

5518  def read(self, iprot):
5519  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5520  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5521  return
5522  iprot.readStructBegin()
5523  while True:
5524  (fname, ftype, fid) = iprot.readFieldBegin()
5525  if ftype == TType.STOP:
5526  break
5527  if fid == 1:
5528  if ftype == TType.STRING:
5529  self.objectName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5530  else:
5531  iprot.skip(ftype)
5532  elif fid == 2:
5533  if ftype == TType.I32:
5534  self.objectType = iprot.readI32()
5535  else:
5536  iprot.skip(ftype)
5537  elif fid == 3:
5538  if ftype == TType.LIST:
5539  self.privs = []
5540  (_etype244, _size241) = iprot.readListBegin()
5541  for _i245 in range(_size241):
5542  _elem246 = iprot.readBool()
5543  self.privs.append(_elem246)
5544  iprot.readListEnd()
5545  else:
5546  iprot.skip(ftype)
5547  elif fid == 4:
5548  if ftype == TType.STRING:
5549  self.grantee = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5550  else:
5551  iprot.skip(ftype)
5552  elif fid == 5:
5553  if ftype == TType.I32:
5554  self.privilegeObjectType = iprot.readI32()
5555  else:
5556  iprot.skip(ftype)
5557  else:
5558  iprot.skip(ftype)
5559  iprot.readFieldEnd()
5560  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDBObject.validate (   self)

Definition at line 5592 of file ttypes.py.

5593  def validate(self):
5594  return
def omnisci.thrift.ttypes.TDBObject.write (   self,
  oprot 
)

Definition at line 5561 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.

5562  def write(self, oprot):
5563  if oprot._fast_encode is not None and self.thrift_spec is not None:
5564  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5565  return
5566  oprot.writeStructBegin('TDBObject')
5567  if self.objectName is not None:
5568  oprot.writeFieldBegin('objectName', TType.STRING, 1)
5569  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
5570  oprot.writeFieldEnd()
5571  if self.objectType is not None:
5572  oprot.writeFieldBegin('objectType', TType.I32, 2)
5573  oprot.writeI32(self.objectType)
5574  oprot.writeFieldEnd()
5575  if self.privs is not None:
5576  oprot.writeFieldBegin('privs', TType.LIST, 3)
5577  oprot.writeListBegin(TType.BOOL, len(self.privs))
5578  for iter247 in self.privs:
5579  oprot.writeBool(iter247)
5580  oprot.writeListEnd()
5581  oprot.writeFieldEnd()
5582  if self.grantee is not None:
5583  oprot.writeFieldBegin('grantee', TType.STRING, 4)
5584  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
5585  oprot.writeFieldEnd()
5586  if self.privilegeObjectType is not None:
5587  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
5588  oprot.writeI32(self.privilegeObjectType)
5589  oprot.writeFieldEnd()
5590  oprot.writeFieldStop()
5591  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDBObject.__dict__
private

Definition at line 5601 of file ttypes.py.

omnisci.thrift.ttypes.TDBObject.grantee

Definition at line 5514 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 5511 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 5512 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 5515 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 5513 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: