Class: IdentityCredential

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

PROVIDER =
1
IDENTIFIER =
2
PASSWORD =
3
FIELDS =
{
  PROVIDER => {:type => ::Thrift::Types::I32, :name => 'provider', :enum_class => ::J0_a_e_a_b_rc},
  IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier'},
  PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



15594
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15594

def struct_fields; FIELDS; end

#validateObject



15596
15597
15598
15599
15600
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15596

def validate
  unless @provider.nil? || ::J0_a_e_a_b_rc::VALID_VALUES.include?(@provider)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field provider!')
  end
end