OmniSciDB  a5dc49c757
 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 6037 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 6050 of file ttypes.py.

6051  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
6052  self.create_ = create_
6053  self.drop_ = drop_
6054  self.select_ = select_
6055  self.insert_ = insert_
6056  self.update_ = update_
6057  self.delete_ = delete_

Member Function Documentation

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

Definition at line 6142 of file ttypes.py.

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

Definition at line 6145 of file ttypes.py.

6146  def __ne__(self, other):
6147  return not (self == other)
6148 
def heavydb.thrift.ttypes.TViewPermissions.__repr__ (   self)

Definition at line 6137 of file ttypes.py.

6138  def __repr__(self):
6139  L = ['%s=%r' % (key, value)
6140  for key, value in self.__dict__.items()]
6141  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 6058 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_.

6059  def read(self, iprot):
6060  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6061  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6062  return
6063  iprot.readStructBegin()
6064  while True:
6065  (fname, ftype, fid) = iprot.readFieldBegin()
6066  if ftype == TType.STOP:
6067  break
6068  if fid == 1:
6069  if ftype == TType.BOOL:
6070  self.create_ = iprot.readBool()
6071  else:
6072  iprot.skip(ftype)
6073  elif fid == 2:
6074  if ftype == TType.BOOL:
6075  self.drop_ = iprot.readBool()
6076  else:
6077  iprot.skip(ftype)
6078  elif fid == 3:
6079  if ftype == TType.BOOL:
6080  self.select_ = iprot.readBool()
6081  else:
6082  iprot.skip(ftype)
6083  elif fid == 4:
6084  if ftype == TType.BOOL:
6085  self.insert_ = iprot.readBool()
6086  else:
6087  iprot.skip(ftype)
6088  elif fid == 5:
6089  if ftype == TType.BOOL:
6090  self.update_ = iprot.readBool()
6091  else:
6092  iprot.skip(ftype)
6093  elif fid == 6:
6094  if ftype == TType.BOOL:
6095  self.delete_ = iprot.readBool()
6096  else:
6097  iprot.skip(ftype)
6098  else:
6099  iprot.skip(ftype)
6100  iprot.readFieldEnd()
6101  iprot.readStructEnd()
def heavydb.thrift.ttypes.TViewPermissions.validate (   self)

Definition at line 6134 of file ttypes.py.

6135  def validate(self):
6136  return
def heavydb.thrift.ttypes.TViewPermissions.write (   self,
  oprot 
)

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

6103  def write(self, oprot):
6104  if oprot._fast_encode is not None and self.thrift_spec is not None:
6105  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6106  return
6107  oprot.writeStructBegin('TViewPermissions')
6108  if self.create_ is not None:
6109  oprot.writeFieldBegin('create_', TType.BOOL, 1)
6110  oprot.writeBool(self.create_)
6111  oprot.writeFieldEnd()
6112  if self.drop_ is not None:
6113  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
6114  oprot.writeBool(self.drop_)
6115  oprot.writeFieldEnd()
6116  if self.select_ is not None:
6117  oprot.writeFieldBegin('select_', TType.BOOL, 3)
6118  oprot.writeBool(self.select_)
6119  oprot.writeFieldEnd()
6120  if self.insert_ is not None:
6121  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
6122  oprot.writeBool(self.insert_)
6123  oprot.writeFieldEnd()
6124  if self.update_ is not None:
6125  oprot.writeFieldBegin('update_', TType.BOOL, 5)
6126  oprot.writeBool(self.update_)
6127  oprot.writeFieldEnd()
6128  if self.delete_ is not None:
6129  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
6130  oprot.writeBool(self.delete_)
6131  oprot.writeFieldEnd()
6132  oprot.writeFieldStop()
6133  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TViewPermissions.__dict__
private

Definition at line 6143 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TViewPermissions.create_

Definition at line 6051 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 6056 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 6052 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 6054 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 6053 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 6055 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: