Class: ThriftHiveMetastore::List_privileges_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
HIVEOBJECT =
3
FIELDS =
{
  PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
  PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType},
  HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject


3624
3625
3626
3627
3628
# File 'lib/thrift/thrift_hive_metastore.rb', line 3624

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