OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TServerPermissions Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TServerPermissions:
+ Collaboration diagram for heavydb.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_
 
 usage_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - create_
 - drop_
 - alter_
 - usage_

Definition at line 6149 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 6160 of file ttypes.py.

6161  def __init__(self, create_=None, drop_=None, alter_=None, usage_=None,):
6162  self.create_ = create_
6163  self.drop_ = drop_
6164  self.alter_ = alter_
6165  self.usage_ = usage_

Member Function Documentation

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

Definition at line 6232 of file ttypes.py.

6233  def __eq__(self, other):
6234  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TServerPermissions.__ne__ (   self,
  other 
)

Definition at line 6235 of file ttypes.py.

6236  def __ne__(self, other):
6237  return not (self == other)
6238 
def heavydb.thrift.ttypes.TServerPermissions.__repr__ (   self)

Definition at line 6227 of file ttypes.py.

6228  def __repr__(self):
6229  L = ['%s=%r' % (key, value)
6230  for key, value in self.__dict__.items()]
6231  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 heavydb.thrift.ttypes.TServerPermissions.read (   self,
  iprot 
)

Definition at line 6166 of file ttypes.py.

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

6167  def read(self, iprot):
6168  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6169  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6170  return
6171  iprot.readStructBegin()
6172  while True:
6173  (fname, ftype, fid) = iprot.readFieldBegin()
6174  if ftype == TType.STOP:
6175  break
6176  if fid == 1:
6177  if ftype == TType.BOOL:
6178  self.create_ = iprot.readBool()
6179  else:
6180  iprot.skip(ftype)
6181  elif fid == 2:
6182  if ftype == TType.BOOL:
6183  self.drop_ = iprot.readBool()
6184  else:
6185  iprot.skip(ftype)
6186  elif fid == 3:
6187  if ftype == TType.BOOL:
6188  self.alter_ = iprot.readBool()
6189  else:
6190  iprot.skip(ftype)
6191  elif fid == 4:
6192  if ftype == TType.BOOL:
6193  self.usage_ = iprot.readBool()
6194  else:
6195  iprot.skip(ftype)
6196  else:
6197  iprot.skip(ftype)
6198  iprot.readFieldEnd()
6199  iprot.readStructEnd()
def heavydb.thrift.ttypes.TServerPermissions.validate (   self)

Definition at line 6224 of file ttypes.py.

6225  def validate(self):
6226  return
def heavydb.thrift.ttypes.TServerPermissions.write (   self,
  oprot 
)

Definition at line 6200 of file ttypes.py.

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

6201  def write(self, oprot):
6202  if oprot._fast_encode is not None and self.thrift_spec is not None:
6203  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6204  return
6205  oprot.writeStructBegin('TServerPermissions')
6206  if self.create_ is not None:
6207  oprot.writeFieldBegin('create_', TType.BOOL, 1)
6208  oprot.writeBool(self.create_)
6209  oprot.writeFieldEnd()
6210  if self.drop_ is not None:
6211  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
6212  oprot.writeBool(self.drop_)
6213  oprot.writeFieldEnd()
6214  if self.alter_ is not None:
6215  oprot.writeFieldBegin('alter_', TType.BOOL, 3)
6216  oprot.writeBool(self.alter_)
6217  oprot.writeFieldEnd()
6218  if self.usage_ is not None:
6219  oprot.writeFieldBegin('usage_', TType.BOOL, 4)
6220  oprot.writeBool(self.usage_)
6221  oprot.writeFieldEnd()
6222  oprot.writeFieldStop()
6223  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TServerPermissions.__dict__
private

Definition at line 6233 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TServerPermissions.alter_

Definition at line 6163 of file ttypes.py.

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

heavydb.thrift.ttypes.TServerPermissions.create_

Definition at line 6161 of file ttypes.py.

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

heavydb.thrift.ttypes.TServerPermissions.drop_

Definition at line 6162 of file ttypes.py.

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

heavydb.thrift.ttypes.TServerPermissions.usage_

Definition at line 6164 of file ttypes.py.

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


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