OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TViewPermissions Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TViewPermissions:
+ Collaboration diagram for omnisci.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 5292 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 5305 of file ttypes.py.

5306  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
5307  self.create_ = create_
5308  self.drop_ = drop_
5309  self.select_ = select_
5310  self.insert_ = insert_
5311  self.update_ = update_
5312  self.delete_ = delete_

Member Function Documentation

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

Definition at line 5397 of file ttypes.py.

5398  def __eq__(self, other):
5399  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TViewPermissions.__ne__ (   self,
  other 
)

Definition at line 5400 of file ttypes.py.

5401  def __ne__(self, other):
5402  return not (self == other)
5403 
def omnisci.thrift.ttypes.TViewPermissions.__repr__ (   self)

Definition at line 5392 of file ttypes.py.

5393  def __repr__(self):
5394  L = ['%s=%r' % (key, value)
5395  for key, value in self.__dict__.items()]
5396  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 omnisci.thrift.ttypes.TViewPermissions.read (   self,
  iprot 
)

Definition at line 5313 of file ttypes.py.

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

5314  def read(self, iprot):
5315  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5316  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5317  return
5318  iprot.readStructBegin()
5319  while True:
5320  (fname, ftype, fid) = iprot.readFieldBegin()
5321  if ftype == TType.STOP:
5322  break
5323  if fid == 1:
5324  if ftype == TType.BOOL:
5325  self.create_ = iprot.readBool()
5326  else:
5327  iprot.skip(ftype)
5328  elif fid == 2:
5329  if ftype == TType.BOOL:
5330  self.drop_ = iprot.readBool()
5331  else:
5332  iprot.skip(ftype)
5333  elif fid == 3:
5334  if ftype == TType.BOOL:
5335  self.select_ = iprot.readBool()
5336  else:
5337  iprot.skip(ftype)
5338  elif fid == 4:
5339  if ftype == TType.BOOL:
5340  self.insert_ = iprot.readBool()
5341  else:
5342  iprot.skip(ftype)
5343  elif fid == 5:
5344  if ftype == TType.BOOL:
5345  self.update_ = iprot.readBool()
5346  else:
5347  iprot.skip(ftype)
5348  elif fid == 6:
5349  if ftype == TType.BOOL:
5350  self.delete_ = iprot.readBool()
5351  else:
5352  iprot.skip(ftype)
5353  else:
5354  iprot.skip(ftype)
5355  iprot.readFieldEnd()
5356  iprot.readStructEnd()
def omnisci.thrift.ttypes.TViewPermissions.validate (   self)

Definition at line 5389 of file ttypes.py.

5390  def validate(self):
5391  return
def omnisci.thrift.ttypes.TViewPermissions.write (   self,
  oprot 
)

Definition at line 5357 of file ttypes.py.

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

5358  def write(self, oprot):
5359  if oprot._fast_encode is not None and self.thrift_spec is not None:
5360  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5361  return
5362  oprot.writeStructBegin('TViewPermissions')
5363  if self.create_ is not None:
5364  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5365  oprot.writeBool(self.create_)
5366  oprot.writeFieldEnd()
5367  if self.drop_ is not None:
5368  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5369  oprot.writeBool(self.drop_)
5370  oprot.writeFieldEnd()
5371  if self.select_ is not None:
5372  oprot.writeFieldBegin('select_', TType.BOOL, 3)
5373  oprot.writeBool(self.select_)
5374  oprot.writeFieldEnd()
5375  if self.insert_ is not None:
5376  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
5377  oprot.writeBool(self.insert_)
5378  oprot.writeFieldEnd()
5379  if self.update_ is not None:
5380  oprot.writeFieldBegin('update_', TType.BOOL, 5)
5381  oprot.writeBool(self.update_)
5382  oprot.writeFieldEnd()
5383  if self.delete_ is not None:
5384  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
5385  oprot.writeBool(self.delete_)
5386  oprot.writeFieldEnd()
5387  oprot.writeFieldStop()
5388  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TViewPermissions.__dict__
private

Definition at line 5398 of file ttypes.py.

omnisci.thrift.ttypes.TViewPermissions.create_

Definition at line 5306 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.delete_

Definition at line 5311 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.drop_

Definition at line 5307 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.insert_

Definition at line 5309 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.select_

Definition at line 5308 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.update_

Definition at line 5310 of file ttypes.py.

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


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