OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TServerPermissions Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TServerPermissions:
+ Collaboration diagram for omnisci.thrift.ttypes.TServerPermissions:

Public Member Functions

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

Public Attributes

 create_
 
 drop_
 
 alter_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - create_
 - drop_
 - alter_

Definition at line 5284 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TServerPermissions.__init__ (   self,
  create_ = None,
  drop_ = None,
  alter_ = None 
)

Definition at line 5294 of file ttypes.py.

5295  def __init__(self, create_=None, drop_=None, alter_=None,):
5296  self.create_ = create_
5297  self.drop_ = drop_
5298  self.alter_ = alter_

Member Function Documentation

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

Definition at line 5356 of file ttypes.py.

5357  def __eq__(self, other):
5358  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TServerPermissions.__ne__ (   self,
  other 
)

Definition at line 5359 of file ttypes.py.

5360  def __ne__(self, other):
5361  return not (self == other)
5362 
def omnisci.thrift.ttypes.TServerPermissions.__repr__ (   self)

Definition at line 5351 of file ttypes.py.

5352  def __repr__(self):
5353  L = ['%s=%r' % (key, value)
5354  for key, value in self.__dict__.items()]
5355  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.TServerPermissions.read (   self,
  iprot 
)

Definition at line 5299 of file ttypes.py.

References omnisci.thrift.ttypes.TTablePermissions.alter_, omnisci.thrift.ttypes.TServerPermissions.alter_, omnisci.thrift.ttypes.TDatabasePermissions.create_, omnisci.thrift.ttypes.TTablePermissions.create_, omnisci.thrift.ttypes.TDashboardPermissions.create_, omnisci.thrift.ttypes.TViewPermissions.create_, omnisci.thrift.ttypes.TServerPermissions.create_, omnisci.thrift.ttypes.TTablePermissions.drop_, omnisci.thrift.ttypes.TViewPermissions.drop_, and omnisci.thrift.ttypes.TServerPermissions.drop_.

5300  def read(self, iprot):
5301  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5302  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5303  return
5304  iprot.readStructBegin()
5305  while True:
5306  (fname, ftype, fid) = iprot.readFieldBegin()
5307  if ftype == TType.STOP:
5308  break
5309  if fid == 1:
5310  if ftype == TType.BOOL:
5311  self.create_ = iprot.readBool()
5312  else:
5313  iprot.skip(ftype)
5314  elif fid == 2:
5315  if ftype == TType.BOOL:
5316  self.drop_ = iprot.readBool()
5317  else:
5318  iprot.skip(ftype)
5319  elif fid == 3:
5320  if ftype == TType.BOOL:
5321  self.alter_ = iprot.readBool()
5322  else:
5323  iprot.skip(ftype)
5324  else:
5325  iprot.skip(ftype)
5326  iprot.readFieldEnd()
5327  iprot.readStructEnd()
def omnisci.thrift.ttypes.TServerPermissions.validate (   self)

Definition at line 5348 of file ttypes.py.

5349  def validate(self):
5350  return
def omnisci.thrift.ttypes.TServerPermissions.write (   self,
  oprot 
)

Definition at line 5328 of file ttypes.py.

References omnisci.thrift.ttypes.TTablePermissions.alter_, omnisci.thrift.ttypes.TServerPermissions.alter_, omnisci.thrift.ttypes.TDatabasePermissions.create_, omnisci.thrift.ttypes.TTablePermissions.create_, omnisci.thrift.ttypes.TDashboardPermissions.create_, omnisci.thrift.ttypes.TViewPermissions.create_, omnisci.thrift.ttypes.TServerPermissions.create_, omnisci.thrift.ttypes.TTablePermissions.drop_, omnisci.thrift.ttypes.TViewPermissions.drop_, and omnisci.thrift.ttypes.TServerPermissions.drop_.

5329  def write(self, oprot):
5330  if oprot._fast_encode is not None and self.thrift_spec is not None:
5331  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5332  return
5333  oprot.writeStructBegin('TServerPermissions')
5334  if self.create_ is not None:
5335  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5336  oprot.writeBool(self.create_)
5337  oprot.writeFieldEnd()
5338  if self.drop_ is not None:
5339  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5340  oprot.writeBool(self.drop_)
5341  oprot.writeFieldEnd()
5342  if self.alter_ is not None:
5343  oprot.writeFieldBegin('alter_', TType.BOOL, 3)
5344  oprot.writeBool(self.alter_)
5345  oprot.writeFieldEnd()
5346  oprot.writeFieldStop()
5347  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TServerPermissions.__dict__
private

Definition at line 5357 of file ttypes.py.

omnisci.thrift.ttypes.TServerPermissions.alter_

Definition at line 5297 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerPermissions.create_

Definition at line 5295 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerPermissions.drop_

Definition at line 5296 of file ttypes.py.

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


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