Class: ThriftHiveMetastore::List_roles_args

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

Constant Summary collapse

PRINCIPAL_NAME =
1
PRINCIPAL_TYPE =
2
FIELDS =
{
  PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
  PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3543
# File 'lib/thrift/thrift_hive_metastore.rb', line 3543

def struct_fields; FIELDS; end

#validateObject



3545
3546
3547
3548
3549
# File 'lib/thrift/thrift_hive_metastore.rb', line 3545

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