Class: AuthService::GetAuthRSAKey_args

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

Constant Summary collapse

AUTHSESSIONID =
2
IDENTITYPROVIDER =
3
FIELDS =
{
  AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
  IDENTITYPROVIDER => {:type => ::Thrift::Types::I32, :name => 'identityProvider', :enum_class => ::J0_a_e_a_b_rc}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



695
# File 'lib/linerb/gen-rb/auth_service.rb', line 695

def struct_fields; FIELDS; end

#validateObject



697
698
699
700
701
# File 'lib/linerb/gen-rb/auth_service.rb', line 697

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