Class: Impala::Protocol::HiveMetastore::ThriftHiveMetastore::Revoke_role_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/thrift_hive_metastore.rb

Constant Summary collapse

ROLE_NAME =
1
PRINCIPAL_NAME =
2
PRINCIPAL_TYPE =
3
FIELDS =
{
ROLE_NAME => { :type => ::Thrift::Types::STRING, :name => 'role_name' },
PRINCIPAL_NAME => { :type => ::Thrift::Types::STRING, :name => 'principal_name' },
PRINCIPAL_TYPE => { :type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => Impala::Protocol::HiveMetastore::PrincipalType }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



4350
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 4350

def struct_fields; FIELDS; end

#validateObject



4352
4353
4354
4355
4356
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 4352

def validate
  unless @principal_type.nil? || Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
  end
end