Class: ThriftHiveMetastore::Revoke_role_args
- Inherits:
-
Object
- Object
- ThriftHiveMetastore::Revoke_role_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/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 => ::PrincipalType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3504 |
# File 'lib/thrift/thrift_hive_metastore.rb', line 3504 def struct_fields; FIELDS; end |
#validate ⇒ Object
3506 3507 3508 3509 3510 |
# File 'lib/thrift/thrift_hive_metastore.rb', line 3506 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 |