Class: User
- Inherits:
-
Object
- Object
- User
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/workspace_model_types.rb
Constant Summary collapse
- AIRAVATAINTERNALUSERID =
1
- USERNAME =
2
- GATEWAYID =
3
- FIRSTNAME =
4
- LASTNAME =
5
- EMAIL =
6
- FIELDS =
{ AIRAVATAINTERNALUSERID => {:type => ::Thrift::Types::STRING, :name => 'airavataInternalUserId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, USERNAME => {:type => ::Thrift::Types::STRING, :name => 'userName', :optional => true}, GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}, FIRSTNAME => {:type => ::Thrift::Types::STRING, :name => 'firstName', :optional => true}, LASTNAME => {:type => ::Thrift::Types::STRING, :name => 'lastName', :optional => true}, EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
103 |
# File 'lib/workspace_model_types.rb', line 103 def struct_fields; FIELDS; end |
#validate ⇒ Object
105 106 107 108 |
# File 'lib/workspace_model_types.rb', line 105 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field airavataInternalUserId is unset!') unless @airavataInternalUserId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId end |