Class: AuthzToken
- Inherits:
-
Object
- Object
- AuthzToken
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/security_model_types.rb
Constant Summary collapse
- ACCESSTOKEN =
1
- CLAIMSMAP =
2
- FIELDS =
{ ACCESSTOKEN => {:type => ::Thrift::Types::STRING, :name => 'accessToken'}, CLAIMSMAP => {:type => ::Thrift::Types::MAP, :name => 'claimsMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
19 |
# File 'lib/security_model_types.rb', line 19 def struct_fields; FIELDS; end |
#validate ⇒ Object
21 22 23 |
# File 'lib/security_model_types.rb', line 21 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accessToken is unset!') unless @accessToken end |