OmniSciDB  a575cb28ea
 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 4858 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 4869 of file ttypes.py.

4870  def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
4871  self.create_ = create_
4872  self.delete_ = delete_
4873  self.view_sql_editor_ = view_sql_editor_
4874  self.access_ = access_

Member Function Documentation

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

Definition at line 4941 of file ttypes.py.

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

Definition at line 4944 of file ttypes.py.

4945  def __ne__(self, other):
4946  return not (self == other)
4947 
def omnisci.thrift.ttypes.TDatabasePermissions.__repr__ (   self)

Definition at line 4936 of file ttypes.py.

4937  def __repr__(self):
4938  L = ['%s=%r' % (key, value)
4939  for key, value in self.__dict__.items()]
4940  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 4875 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_.

4876  def read(self, iprot):
4877  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
4878  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4879  return
4880  iprot.readStructBegin()
4881  while True:
4882  (fname, ftype, fid) = iprot.readFieldBegin()
4883  if ftype == TType.STOP:
4884  break
4885  if fid == 1:
4886  if ftype == TType.BOOL:
4887  self.create_ = iprot.readBool()
4888  else:
4889  iprot.skip(ftype)
4890  elif fid == 2:
4891  if ftype == TType.BOOL:
4892  self.delete_ = iprot.readBool()
4893  else:
4894  iprot.skip(ftype)
4895  elif fid == 3:
4896  if ftype == TType.BOOL:
4897  self.view_sql_editor_ = iprot.readBool()
4898  else:
4899  iprot.skip(ftype)
4900  elif fid == 4:
4901  if ftype == TType.BOOL:
4902  self.access_ = iprot.readBool()
4903  else:
4904  iprot.skip(ftype)
4905  else:
4906  iprot.skip(ftype)
4907  iprot.readFieldEnd()
4908  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDatabasePermissions.validate (   self)

Definition at line 4933 of file ttypes.py.

4934  def validate(self):
4935  return
def omnisci.thrift.ttypes.TDatabasePermissions.write (   self,
  oprot 
)

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

4910  def write(self, oprot):
4911  if oprot._fast_encode is not None and self.thrift_spec is not None:
4912  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4913  return
4914  oprot.writeStructBegin('TDatabasePermissions')
4915  if self.create_ is not None:
4916  oprot.writeFieldBegin('create_', TType.BOOL, 1)
4917  oprot.writeBool(self.create_)
4918  oprot.writeFieldEnd()
4919  if self.delete_ is not None:
4920  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
4921  oprot.writeBool(self.delete_)
4922  oprot.writeFieldEnd()
4923  if self.view_sql_editor_ is not None:
4924  oprot.writeFieldBegin('view_sql_editor_', TType.BOOL, 3)
4925  oprot.writeBool(self.view_sql_editor_)
4926  oprot.writeFieldEnd()
4927  if self.access_ is not None:
4928  oprot.writeFieldBegin('access_', TType.BOOL, 4)
4929  oprot.writeBool(self.access_)
4930  oprot.writeFieldEnd()
4931  oprot.writeFieldStop()
4932  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDatabasePermissions.__dict__
private

Definition at line 4942 of file ttypes.py.

omnisci.thrift.ttypes.TDatabasePermissions.access_

Definition at line 4873 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 4870 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.TServerPermissions.read(), omnisci.thrift.ttypes.TDatabasePermissions.write(), omnisci.thrift.ttypes.TTablePermissions.write(), omnisci.thrift.ttypes.TDashboardPermissions.write(), omnisci.thrift.ttypes.TViewPermissions.write(), and omnisci.thrift.ttypes.TServerPermissions.write().

omnisci.thrift.ttypes.TDatabasePermissions.delete_

Definition at line 4871 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 4872 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: