class 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/thrift/thrift_hive_metastore.rb
3460 def struct_fields; FIELDS; end
validate() click to toggle source
     # File lib/thrift/thrift_hive_metastore.rb
3462 def validate
3463   unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
3464     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
3465   end
3466   unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
3467     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
3468   end
3469 end