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

Public Member Functions

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

Public Attributes

 database_permissions_
 
 table_permissions_
 
 dashboard_permissions_
 
 view_permissions_
 
 server_permissions_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - database_permissions_
 - table_permissions_
 - dashboard_permissions_
 - view_permissions_
 - server_permissions_

Definition at line 6052 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDBObjectPermissions.__init__ (   self,
  database_permissions_ = None,
  table_permissions_ = None,
  dashboard_permissions_ = None,
  view_permissions_ = None,
  server_permissions_ = None 
)

Definition at line 6064 of file ttypes.py.

6065  def __init__(self, database_permissions_=None, table_permissions_=None, dashboard_permissions_=None, view_permissions_=None, server_permissions_=None,):
6066  self.database_permissions_ = database_permissions_
6067  self.table_permissions_ = table_permissions_
6068  self.dashboard_permissions_ = dashboard_permissions_
6069  self.view_permissions_ = view_permissions_
6070  self.server_permissions_ = server_permissions_

Member Function Documentation

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

Definition at line 6151 of file ttypes.py.

6152  def __eq__(self, other):
6153  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDBObjectPermissions.__ne__ (   self,
  other 
)

Definition at line 6154 of file ttypes.py.

6155  def __ne__(self, other):
6156  return not (self == other)
6157 
def heavydb.thrift.ttypes.TDBObjectPermissions.__repr__ (   self)

Definition at line 6146 of file ttypes.py.

6147  def __repr__(self):
6148  L = ['%s=%r' % (key, value)
6149  for key, value in self.__dict__.items()]
6150  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.TDBObjectPermissions.read (   self,
  iprot 
)

Definition at line 6071 of file ttypes.py.

References heavydb.thrift.ttypes.TDBObjectPermissions.dashboard_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.database_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.server_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.table_permissions_, and heavydb.thrift.ttypes.TDBObjectPermissions.view_permissions_.

6072  def read(self, iprot):
6073  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6074  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6075  return
6076  iprot.readStructBegin()
6077  while True:
6078  (fname, ftype, fid) = iprot.readFieldBegin()
6079  if ftype == TType.STOP:
6080  break
6081  if fid == 1:
6082  if ftype == TType.STRUCT:
6084  self.database_permissions_.read(iprot)
6085  else:
6086  iprot.skip(ftype)
6087  elif fid == 2:
6088  if ftype == TType.STRUCT:
6090  self.table_permissions_.read(iprot)
6091  else:
6092  iprot.skip(ftype)
6093  elif fid == 3:
6094  if ftype == TType.STRUCT:
6096  self.dashboard_permissions_.read(iprot)
6097  else:
6098  iprot.skip(ftype)
6099  elif fid == 4:
6100  if ftype == TType.STRUCT:
6102  self.view_permissions_.read(iprot)
6103  else:
6104  iprot.skip(ftype)
6105  elif fid == 5:
6106  if ftype == TType.STRUCT:
6108  self.server_permissions_.read(iprot)
6109  else:
6110  iprot.skip(ftype)
6111  else:
6112  iprot.skip(ftype)
6113  iprot.readFieldEnd()
6114  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDBObjectPermissions.validate (   self)

Definition at line 6143 of file ttypes.py.

6144  def validate(self):
6145  return
def heavydb.thrift.ttypes.TDBObjectPermissions.write (   self,
  oprot 
)

Definition at line 6115 of file ttypes.py.

References heavydb.thrift.ttypes.TDBObjectPermissions.dashboard_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.database_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.server_permissions_, heavydb.thrift.ttypes.TDBObjectPermissions.table_permissions_, and heavydb.thrift.ttypes.TDBObjectPermissions.view_permissions_.

6116  def write(self, oprot):
6117  if oprot._fast_encode is not None and self.thrift_spec is not None:
6118  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6119  return
6120  oprot.writeStructBegin('TDBObjectPermissions')
6121  if self.database_permissions_ is not None:
6122  oprot.writeFieldBegin('database_permissions_', TType.STRUCT, 1)
6123  self.database_permissions_.write(oprot)
6124  oprot.writeFieldEnd()
6125  if self.table_permissions_ is not None:
6126  oprot.writeFieldBegin('table_permissions_', TType.STRUCT, 2)
6127  self.table_permissions_.write(oprot)
6128  oprot.writeFieldEnd()
6129  if self.dashboard_permissions_ is not None:
6130  oprot.writeFieldBegin('dashboard_permissions_', TType.STRUCT, 3)
6131  self.dashboard_permissions_.write(oprot)
6132  oprot.writeFieldEnd()
6133  if self.view_permissions_ is not None:
6134  oprot.writeFieldBegin('view_permissions_', TType.STRUCT, 4)
6135  self.view_permissions_.write(oprot)
6136  oprot.writeFieldEnd()
6137  if self.server_permissions_ is not None:
6138  oprot.writeFieldBegin('server_permissions_', TType.STRUCT, 5)
6139  self.server_permissions_.write(oprot)
6140  oprot.writeFieldEnd()
6141  oprot.writeFieldStop()
6142  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBObjectPermissions.__dict__
private

Definition at line 6152 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TDBObjectPermissions.dashboard_permissions_

Definition at line 6067 of file ttypes.py.

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

heavydb.thrift.ttypes.TDBObjectPermissions.database_permissions_

Definition at line 6065 of file ttypes.py.

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

heavydb.thrift.ttypes.TDBObjectPermissions.server_permissions_

Definition at line 6069 of file ttypes.py.

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

heavydb.thrift.ttypes.TDBObjectPermissions.table_permissions_

Definition at line 6066 of file ttypes.py.

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

heavydb.thrift.ttypes.TDBObjectPermissions.view_permissions_

Definition at line 6068 of file ttypes.py.

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


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