OmniSciDB  94e8789169
 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 5172 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 5185 of file ttypes.py.

5186  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
5187  self.create_ = create_
5188  self.drop_ = drop_
5189  self.select_ = select_
5190  self.insert_ = insert_
5191  self.update_ = update_
5192  self.delete_ = delete_

Member Function Documentation

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

Definition at line 5277 of file ttypes.py.

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

Definition at line 5280 of file ttypes.py.

5281  def __ne__(self, other):
5282  return not (self == other)
5283 
def omnisci.thrift.ttypes.TViewPermissions.__repr__ (   self)

Definition at line 5272 of file ttypes.py.

5273  def __repr__(self):
5274  L = ['%s=%r' % (key, value)
5275  for key, value in self.__dict__.items()]
5276  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 5193 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_.

5194  def read(self, iprot):
5195  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5196  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5197  return
5198  iprot.readStructBegin()
5199  while True:
5200  (fname, ftype, fid) = iprot.readFieldBegin()
5201  if ftype == TType.STOP:
5202  break
5203  if fid == 1:
5204  if ftype == TType.BOOL:
5205  self.create_ = iprot.readBool()
5206  else:
5207  iprot.skip(ftype)
5208  elif fid == 2:
5209  if ftype == TType.BOOL:
5210  self.drop_ = iprot.readBool()
5211  else:
5212  iprot.skip(ftype)
5213  elif fid == 3:
5214  if ftype == TType.BOOL:
5215  self.select_ = iprot.readBool()
5216  else:
5217  iprot.skip(ftype)
5218  elif fid == 4:
5219  if ftype == TType.BOOL:
5220  self.insert_ = iprot.readBool()
5221  else:
5222  iprot.skip(ftype)
5223  elif fid == 5:
5224  if ftype == TType.BOOL:
5225  self.update_ = iprot.readBool()
5226  else:
5227  iprot.skip(ftype)
5228  elif fid == 6:
5229  if ftype == TType.BOOL:
5230  self.delete_ = iprot.readBool()
5231  else:
5232  iprot.skip(ftype)
5233  else:
5234  iprot.skip(ftype)
5235  iprot.readFieldEnd()
5236  iprot.readStructEnd()
def omnisci.thrift.ttypes.TViewPermissions.validate (   self)

Definition at line 5269 of file ttypes.py.

5270  def validate(self):
5271  return
def omnisci.thrift.ttypes.TViewPermissions.write (   self,
  oprot 
)

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

5238  def write(self, oprot):
5239  if oprot._fast_encode is not None and self.thrift_spec is not None:
5240  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5241  return
5242  oprot.writeStructBegin('TViewPermissions')
5243  if self.create_ is not None:
5244  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5245  oprot.writeBool(self.create_)
5246  oprot.writeFieldEnd()
5247  if self.drop_ is not None:
5248  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5249  oprot.writeBool(self.drop_)
5250  oprot.writeFieldEnd()
5251  if self.select_ is not None:
5252  oprot.writeFieldBegin('select_', TType.BOOL, 3)
5253  oprot.writeBool(self.select_)
5254  oprot.writeFieldEnd()
5255  if self.insert_ is not None:
5256  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
5257  oprot.writeBool(self.insert_)
5258  oprot.writeFieldEnd()
5259  if self.update_ is not None:
5260  oprot.writeFieldBegin('update_', TType.BOOL, 5)
5261  oprot.writeBool(self.update_)
5262  oprot.writeFieldEnd()
5263  if self.delete_ is not None:
5264  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
5265  oprot.writeBool(self.delete_)
5266  oprot.writeFieldEnd()
5267  oprot.writeFieldStop()
5268  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TViewPermissions.__dict__
private

Definition at line 5278 of file ttypes.py.

omnisci.thrift.ttypes.TViewPermissions.create_

Definition at line 5186 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.delete_

Definition at line 5191 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 5187 of file ttypes.py.

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

omnisci.thrift.ttypes.TViewPermissions.insert_

Definition at line 5189 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 5188 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 5190 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: