Class: Airavata::SearchExperiments_args

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

Constant Summary collapse

AUTHZTOKEN =
1
GATEWAYID =
2
USERNAME =
3
FILTERS =
4
LIMIT =
5
OFFSET =
6
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  USERNAME => {:type => ::Thrift::Types::STRING, :name => 'userName'},
  FILTERS => {:type => ::Thrift::Types::MAP, :name => 'filters', :key => {:type => ::Thrift::Types::I32, :enum_class => ::ExperimentSearchFields}, :value => {:type => ::Thrift::Types::STRING}},
  LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
  OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


8087
8088
8089
8090
8091
8092
8093
# File 'lib/airavata.rb', line 8087

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 gatewayId is unset!') unless @gatewayId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userName is unset!') unless @userName
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field limit is unset!') unless @limit
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field offset is unset!') unless @offset
end