OmniSciDB  e4d26eaa36
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__ (self, create_=None, drop_=None, alter_=None)
 
def read (self, iprot)
 
def write (self, oprot)
 
def validate (self)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 

Public Attributes

 create_
 
 drop_
 
 alter_
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - create_
 - drop_
 - alter_

Definition at line 5273 of file ttypes.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 5283 of file ttypes.py.

5283  def __init__(self, create_=None, drop_=None, alter_=None,):
5284  self.create_ = create_
5285  self.drop_ = drop_
5286  self.alter_ = alter_
5287 

Member Function Documentation

◆ __eq__()

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

Definition at line 5345 of file ttypes.py.

5345  def __eq__(self, other):
5346  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5347 

◆ __ne__()

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

Definition at line 5348 of file ttypes.py.

5348  def __ne__(self, other):
5349  return not (self == other)
5350 
5351 

◆ __repr__()

def omnisci.thrift.ttypes.TServerPermissions.__repr__ (   self)

Definition at line 5340 of file ttypes.py.

5340  def __repr__(self):
5341  L = ['%s=%r' % (key, value)
5342  for key, value in self.__dict__.items()]
5343  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5344 
std::string join(T const &container, std::string const &delim)

◆ read()

def omnisci.thrift.ttypes.TServerPermissions.read (   self,
  iprot 
)

Definition at line 5288 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_, omnisci.thrift.ttypes.TServerPermissions.drop_, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.thrift_spec, omnisci.serialized_result_set.ttypes.TSerializedRows.thrift_spec, and omnisci.thrift.ttypes.TTableEpochInfo.thrift_spec.

5288  def read(self, iprot):
5289  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5290  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5291  return
5292  iprot.readStructBegin()
5293  while True:
5294  (fname, ftype, fid) = iprot.readFieldBegin()
5295  if ftype == TType.STOP:
5296  break
5297  if fid == 1:
5298  if ftype == TType.BOOL:
5299  self.create_ = iprot.readBool()
5300  else:
5301  iprot.skip(ftype)
5302  elif fid == 2:
5303  if ftype == TType.BOOL:
5304  self.drop_ = iprot.readBool()
5305  else:
5306  iprot.skip(ftype)
5307  elif fid == 3:
5308  if ftype == TType.BOOL:
5309  self.alter_ = iprot.readBool()
5310  else:
5311  iprot.skip(ftype)
5312  else:
5313  iprot.skip(ftype)
5314  iprot.readFieldEnd()
5315  iprot.readStructEnd()
5316 
size_t read(FILE *f, const size_t offset, const size_t size, int8_t *buf)
Reads the specified number of bytes from the offset position in file f into buf.
Definition: File.cpp:118

◆ validate()

def omnisci.thrift.ttypes.TServerPermissions.validate (   self)

Definition at line 5337 of file ttypes.py.

5337  def validate(self):
5338  return
5339 

◆ write()

def omnisci.thrift.ttypes.TServerPermissions.write (   self,
  oprot 
)

Definition at line 5317 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_, omnisci.thrift.ttypes.TServerPermissions.drop_, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.thrift_spec, omnisci.serialized_result_set.ttypes.TSerializedRows.thrift_spec, and omnisci.thrift.ttypes.TTableEpochInfo.thrift_spec.

5317  def write(self, oprot):
5318  if oprot._fast_encode is not None and self.thrift_spec is not None:
5319  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5320  return
5321  oprot.writeStructBegin('TServerPermissions')
5322  if self.create_ is not None:
5323  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5324  oprot.writeBool(self.create_)
5325  oprot.writeFieldEnd()
5326  if self.drop_ is not None:
5327  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5328  oprot.writeBool(self.drop_)
5329  oprot.writeFieldEnd()
5330  if self.alter_ is not None:
5331  oprot.writeFieldBegin('alter_', TType.BOOL, 3)
5332  oprot.writeBool(self.alter_)
5333  oprot.writeFieldEnd()
5334  oprot.writeFieldStop()
5335  oprot.writeStructEnd()
5336 
size_t write(FILE *f, const size_t offset, const size_t size, int8_t *buf)
Writes the specified number of bytes to the offset position in file f from buf.
Definition: File.cpp:126

Member Data Documentation

◆ __dict__

omnisci.thrift.ttypes.TServerPermissions.__dict__
private

Definition at line 5346 of file ttypes.py.

◆ alter_

omnisci.thrift.ttypes.TServerPermissions.alter_

◆ create_

omnisci.thrift.ttypes.TServerPermissions.create_

◆ drop_

omnisci.thrift.ttypes.TServerPermissions.drop_

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