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

Public Member Functions

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

Public Attributes

 create_
 
 drop_
 
 select_
 
 insert_
 
 update_
 
 delete_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - create_
 - drop_
 - select_
 - insert_
 - update_
 - delete_

Definition at line 5850 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TViewPermissions.__init__ (   self,
  create_ = None,
  drop_ = None,
  select_ = None,
  insert_ = None,
  update_ = None,
  delete_ = None 
)

Definition at line 5863 of file ttypes.py.

5864  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
5865  self.create_ = create_
5866  self.drop_ = drop_
5867  self.select_ = select_
5868  self.insert_ = insert_
5869  self.update_ = update_
5870  self.delete_ = delete_

Member Function Documentation

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

Definition at line 5955 of file ttypes.py.

5956  def __eq__(self, other):
5957  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TViewPermissions.__ne__ (   self,
  other 
)

Definition at line 5958 of file ttypes.py.

5959  def __ne__(self, other):
5960  return not (self == other)
5961 
def heavydb.thrift.ttypes.TViewPermissions.__repr__ (   self)

Definition at line 5950 of file ttypes.py.

5951  def __repr__(self):
5952  L = ['%s=%r' % (key, value)
5953  for key, value in self.__dict__.items()]
5954  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.TViewPermissions.read (   self,
  iprot 
)

Definition at line 5871 of file ttypes.py.

References heavydb.thrift.ttypes.TDatabasePermissions.create_, heavydb.thrift.ttypes.TTablePermissions.create_, heavydb.thrift.ttypes.TDashboardPermissions.create_, heavydb.thrift.ttypes.TViewPermissions.create_, heavydb.thrift.ttypes.TDatabasePermissions.delete_, heavydb.thrift.ttypes.TTablePermissions.delete_, heavydb.thrift.ttypes.TDashboardPermissions.delete_, heavydb.thrift.ttypes.TViewPermissions.delete_, heavydb.thrift.ttypes.TTablePermissions.drop_, heavydb.thrift.ttypes.TViewPermissions.drop_, heavydb.thrift.ttypes.TTablePermissions.insert_, heavydb.thrift.ttypes.TViewPermissions.insert_, heavydb.thrift.ttypes.TTablePermissions.select_, heavydb.thrift.ttypes.TViewPermissions.select_, heavydb.thrift.ttypes.TTablePermissions.update_, and heavydb.thrift.ttypes.TViewPermissions.update_.

5872  def read(self, iprot):
5873  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5874  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5875  return
5876  iprot.readStructBegin()
5877  while True:
5878  (fname, ftype, fid) = iprot.readFieldBegin()
5879  if ftype == TType.STOP:
5880  break
5881  if fid == 1:
5882  if ftype == TType.BOOL:
5883  self.create_ = iprot.readBool()
5884  else:
5885  iprot.skip(ftype)
5886  elif fid == 2:
5887  if ftype == TType.BOOL:
5888  self.drop_ = iprot.readBool()
5889  else:
5890  iprot.skip(ftype)
5891  elif fid == 3:
5892  if ftype == TType.BOOL:
5893  self.select_ = iprot.readBool()
5894  else:
5895  iprot.skip(ftype)
5896  elif fid == 4:
5897  if ftype == TType.BOOL:
5898  self.insert_ = iprot.readBool()
5899  else:
5900  iprot.skip(ftype)
5901  elif fid == 5:
5902  if ftype == TType.BOOL:
5903  self.update_ = iprot.readBool()
5904  else:
5905  iprot.skip(ftype)
5906  elif fid == 6:
5907  if ftype == TType.BOOL:
5908  self.delete_ = iprot.readBool()
5909  else:
5910  iprot.skip(ftype)
5911  else:
5912  iprot.skip(ftype)
5913  iprot.readFieldEnd()
5914  iprot.readStructEnd()
def heavydb.thrift.ttypes.TViewPermissions.validate (   self)

Definition at line 5947 of file ttypes.py.

5948  def validate(self):
5949  return
def heavydb.thrift.ttypes.TViewPermissions.write (   self,
  oprot 
)

Definition at line 5915 of file ttypes.py.

References heavydb.thrift.ttypes.TDatabasePermissions.create_, heavydb.thrift.ttypes.TTablePermissions.create_, heavydb.thrift.ttypes.TDashboardPermissions.create_, heavydb.thrift.ttypes.TViewPermissions.create_, heavydb.thrift.ttypes.TDatabasePermissions.delete_, heavydb.thrift.ttypes.TTablePermissions.delete_, heavydb.thrift.ttypes.TDashboardPermissions.delete_, heavydb.thrift.ttypes.TViewPermissions.delete_, heavydb.thrift.ttypes.TTablePermissions.drop_, heavydb.thrift.ttypes.TViewPermissions.drop_, heavydb.thrift.ttypes.TTablePermissions.insert_, heavydb.thrift.ttypes.TViewPermissions.insert_, heavydb.thrift.ttypes.TTablePermissions.select_, heavydb.thrift.ttypes.TViewPermissions.select_, heavydb.thrift.ttypes.TTablePermissions.update_, and heavydb.thrift.ttypes.TViewPermissions.update_.

5916  def write(self, oprot):
5917  if oprot._fast_encode is not None and self.thrift_spec is not None:
5918  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5919  return
5920  oprot.writeStructBegin('TViewPermissions')
5921  if self.create_ is not None:
5922  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5923  oprot.writeBool(self.create_)
5924  oprot.writeFieldEnd()
5925  if self.drop_ is not None:
5926  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5927  oprot.writeBool(self.drop_)
5928  oprot.writeFieldEnd()
5929  if self.select_ is not None:
5930  oprot.writeFieldBegin('select_', TType.BOOL, 3)
5931  oprot.writeBool(self.select_)
5932  oprot.writeFieldEnd()
5933  if self.insert_ is not None:
5934  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
5935  oprot.writeBool(self.insert_)
5936  oprot.writeFieldEnd()
5937  if self.update_ is not None:
5938  oprot.writeFieldBegin('update_', TType.BOOL, 5)
5939  oprot.writeBool(self.update_)
5940  oprot.writeFieldEnd()
5941  if self.delete_ is not None:
5942  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
5943  oprot.writeBool(self.delete_)
5944  oprot.writeFieldEnd()
5945  oprot.writeFieldStop()
5946  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TViewPermissions.__dict__
private

Definition at line 5956 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TViewPermissions.create_

Definition at line 5864 of file ttypes.py.

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

heavydb.thrift.ttypes.TViewPermissions.delete_

Definition at line 5869 of file ttypes.py.

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

heavydb.thrift.ttypes.TViewPermissions.drop_

Definition at line 5865 of file ttypes.py.

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

heavydb.thrift.ttypes.TViewPermissions.insert_

Definition at line 5867 of file ttypes.py.

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

heavydb.thrift.ttypes.TViewPermissions.select_

Definition at line 5866 of file ttypes.py.

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

heavydb.thrift.ttypes.TViewPermissions.update_

Definition at line 5868 of file ttypes.py.

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


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