class Impala::Protocol::HiveMetastore::ThriftHiveMetastore::Grant_role_args

Constants

FIELDS
GRANTOR
GRANTORTYPE
GRANT_OPTION
PRINCIPAL_NAME
PRINCIPAL_TYPE
ROLE_NAME

Public Instance Methods

struct_fields() click to toggle source
     # File lib/impala/protocol/thrift_hive_metastore.rb
4306 def struct_fields; FIELDS; end
validate() click to toggle source
     # File lib/impala/protocol/thrift_hive_metastore.rb
4308 def validate
4309   unless @principal_type.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
4310     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
4311   end
4312   unless @grantorType.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@grantorType)
4313     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
4314   end
4315 end