Class: CertificateCredential
- Inherits:
-
Object
- Object
- CertificateCredential
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/credential_store_data_models_types.rb
Constant Summary collapse
- COMMUNITYUSER =
1
- X509CERT =
2
- NOTAFTER =
3
- PRIVATEKEY =
4
- LIFETIME =
5
- NOTBEFORE =
6
- PERSISTEDTIME =
7
- TOKEN =
8
- FIELDS =
{ COMMUNITYUSER => {:type => ::Thrift::Types::STRUCT, :name => 'communityUser', :class => ::CommunityUser}, X509CERT => {:type => ::Thrift::Types::STRING, :name => 'x509Cert'}, NOTAFTER => {:type => ::Thrift::Types::STRING, :name => 'notAfter', :optional => true}, PRIVATEKEY => {:type => ::Thrift::Types::STRING, :name => 'privateKey', :optional => true}, LIFETIME => {:type => ::Thrift::Types::I64, :name => 'lifeTime', :optional => true}, NOTBEFORE => {:type => ::Thrift::Types::STRING, :name => 'notBefore', :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
131 |
# File 'lib/credential_store_data_models_types.rb', line 131 def struct_fields; FIELDS; end |
#validate ⇒ Object
133 134 135 136 |
# File 'lib/credential_store_data_models_types.rb', line 133 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field communityUser is unset!') unless @communityUser raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field x509Cert is unset!') unless @x509Cert end |