OmniSciDB  a5dc49c757
 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 5723 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 5734 of file ttypes.py.

5735  def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
5736  self.create_ = create_
5737  self.delete_ = delete_
5738  self.view_sql_editor_ = view_sql_editor_
5739  self.access_ = access_

Member Function Documentation

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

Definition at line 5806 of file ttypes.py.

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

Definition at line 5809 of file ttypes.py.

5810  def __ne__(self, other):
5811  return not (self == other)
5812 
def heavydb.thrift.ttypes.TDatabasePermissions.__repr__ (   self)

Definition at line 5801 of file ttypes.py.

5802  def __repr__(self):
5803  L = ['%s=%r' % (key, value)
5804  for key, value in self.__dict__.items()]
5805  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 5740 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_.

5741  def read(self, iprot):
5742  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5743  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5744  return
5745  iprot.readStructBegin()
5746  while True:
5747  (fname, ftype, fid) = iprot.readFieldBegin()
5748  if ftype == TType.STOP:
5749  break
5750  if fid == 1:
5751  if ftype == TType.BOOL:
5752  self.create_ = iprot.readBool()
5753  else:
5754  iprot.skip(ftype)
5755  elif fid == 2:
5756  if ftype == TType.BOOL:
5757  self.delete_ = iprot.readBool()
5758  else:
5759  iprot.skip(ftype)
5760  elif fid == 3:
5761  if ftype == TType.BOOL:
5762  self.view_sql_editor_ = iprot.readBool()
5763  else:
5764  iprot.skip(ftype)
5765  elif fid == 4:
5766  if ftype == TType.BOOL:
5767  self.access_ = iprot.readBool()
5768  else:
5769  iprot.skip(ftype)
5770  else:
5771  iprot.skip(ftype)
5772  iprot.readFieldEnd()
5773  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDatabasePermissions.validate (   self)

Definition at line 5798 of file ttypes.py.

5799  def validate(self):
5800  return
def heavydb.thrift.ttypes.TDatabasePermissions.write (   self,
  oprot 
)

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

5775  def write(self, oprot):
5776  if oprot._fast_encode is not None and self.thrift_spec is not None:
5777  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5778  return
5779  oprot.writeStructBegin('TDatabasePermissions')
5780  if self.create_ is not None:
5781  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5782  oprot.writeBool(self.create_)
5783  oprot.writeFieldEnd()
5784  if self.delete_ is not None:
5785  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
5786  oprot.writeBool(self.delete_)
5787  oprot.writeFieldEnd()
5788  if self.view_sql_editor_ is not None:
5789  oprot.writeFieldBegin('view_sql_editor_', TType.BOOL, 3)
5790  oprot.writeBool(self.view_sql_editor_)
5791  oprot.writeFieldEnd()
5792  if self.access_ is not None:
5793  oprot.writeFieldBegin('access_', TType.BOOL, 4)
5794  oprot.writeBool(self.access_)
5795  oprot.writeFieldEnd()
5796  oprot.writeFieldStop()
5797  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDatabasePermissions.__dict__
private

Definition at line 5807 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDatabasePermissions.access_

Definition at line 5738 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 5735 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 5736 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 5737 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: