OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDatabasePermissions Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDatabasePermissions:
+ Collaboration diagram for heavydb.thrift.ttypes.TDatabasePermissions:

Public Member Functions

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

Public Attributes

 create_
 
 delete_
 
 view_sql_editor_
 
 access_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - create_
 - delete_
 - view_sql_editor_
 - access_

Definition at line 5536 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDatabasePermissions.__init__ (   self,
  create_ = None,
  delete_ = None,
  view_sql_editor_ = None,
  access_ = None 
)

Definition at line 5547 of file ttypes.py.

5548  def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
5549  self.create_ = create_
5550  self.delete_ = delete_
5551  self.view_sql_editor_ = view_sql_editor_
5552  self.access_ = access_

Member Function Documentation

def heavydb.thrift.ttypes.TDatabasePermissions.__eq__ (   self,
  other 
)

Definition at line 5619 of file ttypes.py.

5620  def __eq__(self, other):
5621  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDatabasePermissions.__ne__ (   self,
  other 
)

Definition at line 5622 of file ttypes.py.

5623  def __ne__(self, other):
5624  return not (self == other)
5625 
def heavydb.thrift.ttypes.TDatabasePermissions.__repr__ (   self)

Definition at line 5614 of file ttypes.py.

5615  def __repr__(self):
5616  L = ['%s=%r' % (key, value)
5617  for key, value in self.__dict__.items()]
5618  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 heavydb.thrift.ttypes.TDatabasePermissions.read (   self,
  iprot 
)

Definition at line 5553 of file ttypes.py.

References heavydb.thrift.ttypes.TDatabasePermissions.access_, heavydb.thrift.ttypes.TDatabasePermissions.create_, heavydb.thrift.ttypes.TDatabasePermissions.delete_, and heavydb.thrift.ttypes.TDatabasePermissions.view_sql_editor_.

5554  def read(self, iprot):
5555  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5556  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5557  return
5558  iprot.readStructBegin()
5559  while True:
5560  (fname, ftype, fid) = iprot.readFieldBegin()
5561  if ftype == TType.STOP:
5562  break
5563  if fid == 1:
5564  if ftype == TType.BOOL:
5565  self.create_ = iprot.readBool()
5566  else:
5567  iprot.skip(ftype)
5568  elif fid == 2:
5569  if ftype == TType.BOOL:
5570  self.delete_ = iprot.readBool()
5571  else:
5572  iprot.skip(ftype)
5573  elif fid == 3:
5574  if ftype == TType.BOOL:
5575  self.view_sql_editor_ = iprot.readBool()
5576  else:
5577  iprot.skip(ftype)
5578  elif fid == 4:
5579  if ftype == TType.BOOL:
5580  self.access_ = iprot.readBool()
5581  else:
5582  iprot.skip(ftype)
5583  else:
5584  iprot.skip(ftype)
5585  iprot.readFieldEnd()
5586  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDatabasePermissions.validate (   self)

Definition at line 5611 of file ttypes.py.

5612  def validate(self):
5613  return
def heavydb.thrift.ttypes.TDatabasePermissions.write (   self,
  oprot 
)

Definition at line 5587 of file ttypes.py.

References heavydb.thrift.ttypes.TDatabasePermissions.access_, heavydb.thrift.ttypes.TDatabasePermissions.create_, heavydb.thrift.ttypes.TDatabasePermissions.delete_, and heavydb.thrift.ttypes.TDatabasePermissions.view_sql_editor_.

5588  def write(self, oprot):
5589  if oprot._fast_encode is not None and self.thrift_spec is not None:
5590  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5591  return
5592  oprot.writeStructBegin('TDatabasePermissions')
5593  if self.create_ is not None:
5594  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5595  oprot.writeBool(self.create_)
5596  oprot.writeFieldEnd()
5597  if self.delete_ is not None:
5598  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
5599  oprot.writeBool(self.delete_)
5600  oprot.writeFieldEnd()
5601  if self.view_sql_editor_ is not None:
5602  oprot.writeFieldBegin('view_sql_editor_', TType.BOOL, 3)
5603  oprot.writeBool(self.view_sql_editor_)
5604  oprot.writeFieldEnd()
5605  if self.access_ is not None:
5606  oprot.writeFieldBegin('access_', TType.BOOL, 4)
5607  oprot.writeBool(self.access_)
5608  oprot.writeFieldEnd()
5609  oprot.writeFieldStop()
5610  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDatabasePermissions.__dict__
private

Definition at line 5620 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TDatabasePermissions.access_

Definition at line 5551 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDatabasePermissions.read(), and heavydb.thrift.ttypes.TDatabasePermissions.write().

heavydb.thrift.ttypes.TDatabasePermissions.create_

Definition at line 5548 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDatabasePermissions.read(), heavydb.thrift.ttypes.TTablePermissions.read(), heavydb.thrift.ttypes.TDashboardPermissions.read(), heavydb.thrift.ttypes.TViewPermissions.read(), heavydb.thrift.ttypes.TServerPermissions.read(), heavydb.thrift.ttypes.TDatabasePermissions.write(), heavydb.thrift.ttypes.TTablePermissions.write(), heavydb.thrift.ttypes.TDashboardPermissions.write(), heavydb.thrift.ttypes.TViewPermissions.write(), and heavydb.thrift.ttypes.TServerPermissions.write().

heavydb.thrift.ttypes.TDatabasePermissions.delete_

Definition at line 5549 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDatabasePermissions.read(), heavydb.thrift.ttypes.TTablePermissions.read(), heavydb.thrift.ttypes.TDashboardPermissions.read(), heavydb.thrift.ttypes.TViewPermissions.read(), heavydb.thrift.ttypes.TDatabasePermissions.write(), heavydb.thrift.ttypes.TTablePermissions.write(), heavydb.thrift.ttypes.TDashboardPermissions.write(), and heavydb.thrift.ttypes.TViewPermissions.write().

heavydb.thrift.ttypes.TDatabasePermissions.view_sql_editor_

Definition at line 5550 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDatabasePermissions.read(), and heavydb.thrift.ttypes.TDatabasePermissions.write().


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