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

Public Member Functions

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

Public Attributes

 name
 
 is_user
 
 permissions
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - name
 - is_user
 - permissions

Definition at line 5578 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDashboardGrantees.__init__ (   self,
  name = None,
  is_user = None,
  permissions = None 
)

Definition at line 5588 of file ttypes.py.

5589  def __init__(self, name=None, is_user=None, permissions=None,):
5590  self.name = name
5591  self.is_user = is_user
5592  self.permissions = permissions

Member Function Documentation

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

Definition at line 5651 of file ttypes.py.

5652  def __eq__(self, other):
5653  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDashboardGrantees.__ne__ (   self,
  other 
)

Definition at line 5654 of file ttypes.py.

5655  def __ne__(self, other):
5656  return not (self == other)
5657 
def omnisci.thrift.ttypes.TDashboardGrantees.__repr__ (   self)

Definition at line 5646 of file ttypes.py.

5647  def __repr__(self):
5648  L = ['%s=%r' % (key, value)
5649  for key, value in self.__dict__.items()]
5650  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.TDashboardGrantees.read (   self,
  iprot 
)

Definition at line 5593 of file ttypes.py.

References omnisci.thrift.ttypes.TDashboardGrantees.is_user, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, omnisci.thrift.ttypes.TDashboardGrantees.name, omnisci.thrift.ttypes.TDashboardGrantees.permissions, omnisci.thrift.OmniSci.share_dashboards_args.permissions, omnisci.thrift.OmniSci.share_dashboard_args.permissions, omnisci.thrift.OmniSci.unshare_dashboard_args.permissions, omnisci.thrift.OmniSci.unshare_dashboards_args.permissions, and omnisci.thrift.OmniSci.has_object_privilege_args.permissions.

5594  def read(self, iprot):
5595  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5596  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5597  return
5598  iprot.readStructBegin()
5599  while True:
5600  (fname, ftype, fid) = iprot.readFieldBegin()
5601  if ftype == TType.STOP:
5602  break
5603  if fid == 1:
5604  if ftype == TType.STRING:
5605  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5606  else:
5607  iprot.skip(ftype)
5608  elif fid == 2:
5609  if ftype == TType.BOOL:
5610  self.is_user = iprot.readBool()
5611  else:
5612  iprot.skip(ftype)
5613  elif fid == 3:
5614  if ftype == TType.STRUCT:
5616  self.permissions.read(iprot)
5617  else:
5618  iprot.skip(ftype)
5619  else:
5620  iprot.skip(ftype)
5621  iprot.readFieldEnd()
5622  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDashboardGrantees.validate (   self)

Definition at line 5643 of file ttypes.py.

5644  def validate(self):
5645  return
def omnisci.thrift.ttypes.TDashboardGrantees.write (   self,
  oprot 
)

Definition at line 5623 of file ttypes.py.

References omnisci.thrift.ttypes.TDashboardGrantees.is_user, com.mapd.parser.extension.ddl.omnisql.OmniSqlTypeNameSpec.name, com.mapd.parser.extension.ddl.omnisql.OmniSqlColumn.name, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.name, foreign_storage::ForeignServer.name, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, com.mapd.parser.extension.ddl.SqlColumnDeclaration.name, omnisci.extension_functions.ttypes.TUserDefinedFunction.name, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.name, Parser::FunctionRef.name, ArrowForeignStorage.name, import_export::Importer::GeoFileLayerInfo.name, Parser::NameValueAssign.name, omnisci.thrift.ttypes.TDashboardGrantees.name, omnisci.thrift.ttypes.TDashboardGrantees.permissions, omnisci.thrift.OmniSci.share_dashboards_args.permissions, omnisci.thrift.OmniSci.share_dashboard_args.permissions, omnisci.thrift.OmniSci.unshare_dashboard_args.permissions, omnisci.thrift.OmniSci.unshare_dashboards_args.permissions, and omnisci.thrift.OmniSci.has_object_privilege_args.permissions.

5624  def write(self, oprot):
5625  if oprot._fast_encode is not None and self.thrift_spec is not None:
5626  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5627  return
5628  oprot.writeStructBegin('TDashboardGrantees')
5629  if self.name is not None:
5630  oprot.writeFieldBegin('name', TType.STRING, 1)
5631  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
5632  oprot.writeFieldEnd()
5633  if self.is_user is not None:
5634  oprot.writeFieldBegin('is_user', TType.BOOL, 2)
5635  oprot.writeBool(self.is_user)
5636  oprot.writeFieldEnd()
5637  if self.permissions is not None:
5638  oprot.writeFieldBegin('permissions', TType.STRUCT, 3)
5639  self.permissions.write(oprot)
5640  oprot.writeFieldEnd()
5641  oprot.writeFieldStop()
5642  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDashboardGrantees.__dict__
private

Definition at line 5652 of file ttypes.py.

omnisci.thrift.ttypes.TDashboardGrantees.is_user

Definition at line 5590 of file ttypes.py.

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

omnisci.thrift.ttypes.TDashboardGrantees.name

Definition at line 5589 of file ttypes.py.

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

omnisci.thrift.ttypes.TDashboardGrantees.permissions

Definition at line 5591 of file ttypes.py.

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


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