Class: Airavata::RegisterPwdCredential_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/airavata.rb

Constant Summary collapse

AUTHZTOKEN =
1
LOGINUSERNAME =
4
PASSWORD =
5
DESCRIPTION =
6
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  LOGINUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'loginUserName'},
  PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
  DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



7562
# File 'lib/airavata.rb', line 7562

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


7564
7565
7566
7567
7568
7569
# File 'lib/airavata.rb', line 7564

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authzToken is unset!') unless @authzToken
  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
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field description is unset!') unless @description
end