Class: IdentityCredentialRequest

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

METADATA =
1
IDENTITYPROVIDER =
2
CIPHERKEYID =
3
CIPHERTEXT =
4
CONFIRMATIONREQUEST =
5
FIELDS =
{
  METADATA => {:type => ::Thrift::Types::MAP, :name => 'metaData', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  IDENTITYPROVIDER => {:type => ::Thrift::Types::I32, :name => 'identityProvider', :enum_class => ::P0_a_e_a_b_sc},
  CIPHERKEYID => {:type => ::Thrift::Types::STRING, :name => 'cipherKeyId'},
  CIPHERTEXT => {:type => ::Thrift::Types::STRING, :name => 'cipherText'},
  CONFIRMATIONREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'confirmationRequest', :class => ::IdentifierConfirmationRequest}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



14195
14196
14197
14198
14199
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14195

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