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

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDatabasePermissions.__init__ (   self,
  create_ = None,
  delete_ = None,
  view_sql_editor_ = None,
  access_ = None 
)

Definition at line 4989 of file ttypes.py.

4990  def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
4991  self.create_ = create_
4992  self.delete_ = delete_
4993  self.view_sql_editor_ = view_sql_editor_
4994  self.access_ = access_

Member Function Documentation

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

Definition at line 5061 of file ttypes.py.

5062  def __eq__(self, other):
5063  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDatabasePermissions.__ne__ (   self,
  other 
)

Definition at line 5064 of file ttypes.py.

5065  def __ne__(self, other):
5066  return not (self == other)
5067 
def omnisci.thrift.ttypes.TDatabasePermissions.__repr__ (   self)

Definition at line 5056 of file ttypes.py.

5057  def __repr__(self):
5058  L = ['%s=%r' % (key, value)
5059  for key, value in self.__dict__.items()]
5060  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.TDatabasePermissions.read (   self,
  iprot 
)

Definition at line 4995 of file ttypes.py.

References omnisci.thrift.ttypes.TDatabasePermissions.access_, omnisci.thrift.ttypes.TDatabasePermissions.create_, omnisci.thrift.ttypes.TDatabasePermissions.delete_, and omnisci.thrift.ttypes.TDatabasePermissions.view_sql_editor_.

4996  def read(self, iprot):
4997  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4998  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4999  return
5000  iprot.readStructBegin()
5001  while True:
5002  (fname, ftype, fid) = iprot.readFieldBegin()
5003  if ftype == TType.STOP:
5004  break
5005  if fid == 1:
5006  if ftype == TType.BOOL:
5007  self.create_ = iprot.readBool()
5008  else:
5009  iprot.skip(ftype)
5010  elif fid == 2:
5011  if ftype == TType.BOOL:
5012  self.delete_ = iprot.readBool()
5013  else:
5014  iprot.skip(ftype)
5015  elif fid == 3:
5016  if ftype == TType.BOOL:
5017  self.view_sql_editor_ = iprot.readBool()
5018  else:
5019  iprot.skip(ftype)
5020  elif fid == 4:
5021  if ftype == TType.BOOL:
5022  self.access_ = iprot.readBool()
5023  else:
5024  iprot.skip(ftype)
5025  else:
5026  iprot.skip(ftype)
5027  iprot.readFieldEnd()
5028  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDatabasePermissions.validate (   self)

Definition at line 5053 of file ttypes.py.

5054  def validate(self):
5055  return
def omnisci.thrift.ttypes.TDatabasePermissions.write (   self,
  oprot 
)

Definition at line 5029 of file ttypes.py.

References omnisci.thrift.ttypes.TDatabasePermissions.access_, omnisci.thrift.ttypes.TDatabasePermissions.create_, omnisci.thrift.ttypes.TDatabasePermissions.delete_, and omnisci.thrift.ttypes.TDatabasePermissions.view_sql_editor_.

5030  def write(self, oprot):
5031  if oprot._fast_encode is not None and self.thrift_spec is not None:
5032  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5033  return
5034  oprot.writeStructBegin('TDatabasePermissions')
5035  if self.create_ is not None:
5036  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5037  oprot.writeBool(self.create_)
5038  oprot.writeFieldEnd()
5039  if self.delete_ is not None:
5040  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
5041  oprot.writeBool(self.delete_)
5042  oprot.writeFieldEnd()
5043  if self.view_sql_editor_ is not None:
5044  oprot.writeFieldBegin('view_sql_editor_', TType.BOOL, 3)
5045  oprot.writeBool(self.view_sql_editor_)
5046  oprot.writeFieldEnd()
5047  if self.access_ is not None:
5048  oprot.writeFieldBegin('access_', TType.BOOL, 4)
5049  oprot.writeBool(self.access_)
5050  oprot.writeFieldEnd()
5051  oprot.writeFieldStop()
5052  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDatabasePermissions.__dict__
private

Definition at line 5062 of file ttypes.py.

omnisci.thrift.ttypes.TDatabasePermissions.access_

Definition at line 4993 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatabasePermissions.create_

Definition at line 4990 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatabasePermissions.delete_

Definition at line 4991 of file ttypes.py.

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

omnisci.thrift.ttypes.TDatabasePermissions.view_sql_editor_

Definition at line 4992 of file ttypes.py.

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


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