Class: PasswordCredential
- Inherits:
-
Object
- Object
- PasswordCredential
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/credential_store_data_models_types.rb
Constant Summary collapse
- GATEWAYID =
1
- PORTALUSERNAME =
2
- LOGINUSERNAME =
3
- PASSWORD =
4
- DESCRIPTION =
5
- PERSISTEDTIME =
6
- TOKEN =
7
- FIELDS =
{ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}, PORTALUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'portalUserName'}, LOGINUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'loginUserName'}, PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'}, DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true}, PERSISTEDTIME => {:type => ::Thrift::Types::I64, :name => 'persistedTime', :optional => true}, TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
161 |
# File 'lib/credential_store_data_models_types.rb', line 161 def struct_fields; FIELDS; end |
#validate ⇒ Object
163 164 165 166 167 168 |
# File 'lib/credential_store_data_models_types.rb', line 163 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field portalUserName is unset!') unless @portalUserName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field loginUserName is unset!') unless @loginUserName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field password is unset!') unless @password end |