OmniSciDB  340b00dbf6
 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 5607 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 5617 of file ttypes.py.

5618  def __init__(self, name=None, is_user=None, permissions=None,):
5619  self.name = name
5620  self.is_user = is_user
5621  self.permissions = permissions

Member Function Documentation

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

Definition at line 5680 of file ttypes.py.

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

Definition at line 5683 of file ttypes.py.

5684  def __ne__(self, other):
5685  return not (self == other)
5686 
def omnisci.thrift.ttypes.TDashboardGrantees.__repr__ (   self)

Definition at line 5675 of file ttypes.py.

5676  def __repr__(self):
5677  L = ['%s=%r' % (key, value)
5678  for key, value in self.__dict__.items()]
5679  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 5622 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, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, foreign_storage::ForeignServer.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.

5623  def read(self, iprot):
5624  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5625  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5626  return
5627  iprot.readStructBegin()
5628  while True:
5629  (fname, ftype, fid) = iprot.readFieldBegin()
5630  if ftype == TType.STOP:
5631  break
5632  if fid == 1:
5633  if ftype == TType.STRING:
5634  self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5635  else:
5636  iprot.skip(ftype)
5637  elif fid == 2:
5638  if ftype == TType.BOOL:
5639  self.is_user = iprot.readBool()
5640  else:
5641  iprot.skip(ftype)
5642  elif fid == 3:
5643  if ftype == TType.STRUCT:
5645  self.permissions.read(iprot)
5646  else:
5647  iprot.skip(ftype)
5648  else:
5649  iprot.skip(ftype)
5650  iprot.readFieldEnd()
5651  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDashboardGrantees.validate (   self)

Definition at line 5672 of file ttypes.py.

5673  def validate(self):
5674  return
def omnisci.thrift.ttypes.TDashboardGrantees.write (   self,
  oprot 
)

Definition at line 5652 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, com.mapd.parser.extension.ddl.SqlCheckConstraint.name, com.mapd.parser.extension.ddl.SqlCreateTable.name, com.mapd.parser.extension.ddl.SqlCreateView.name, com.mapd.parser.extension.ddl.SqlAttributeDefinition.name, com.mapd.parser.extension.ddl.SqlKeyConstraint.name, foreign_storage::ForeignServer.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.

5653  def write(self, oprot):
5654  if oprot._fast_encode is not None and self.thrift_spec is not None:
5655  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5656  return
5657  oprot.writeStructBegin('TDashboardGrantees')
5658  if self.name is not None:
5659  oprot.writeFieldBegin('name', TType.STRING, 1)
5660  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
5661  oprot.writeFieldEnd()
5662  if self.is_user is not None:
5663  oprot.writeFieldBegin('is_user', TType.BOOL, 2)
5664  oprot.writeBool(self.is_user)
5665  oprot.writeFieldEnd()
5666  if self.permissions is not None:
5667  oprot.writeFieldBegin('permissions', TType.STRUCT, 3)
5668  self.permissions.write(oprot)
5669  oprot.writeFieldEnd()
5670  oprot.writeFieldStop()
5671  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDashboardGrantees.__dict__
private

Definition at line 5681 of file ttypes.py.

omnisci.thrift.ttypes.TDashboardGrantees.is_user

Definition at line 5619 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 5618 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 5620 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: