Class: UserConfigurationDataModel

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

Overview

A structure holding the experiment configuration.

Constant Summary collapse

AIRAVATAAUTOSCHEDULE =
1
OVERRIDEMANUALSCHEDULEDPARAMS =
2
SHAREEXPERIMENTPUBLICLY =
3
COMPUTATIONALRESOURCESCHEDULING =
4
THROTTLERESOURCES =
5
USERDN =
6
GENERATECERT =
7
STORAGEID =
8
EXPERIMENTDATADIR =
9
USEUSERCRPREF =
10
GROUPRESOURCEPROFILEID =
11
FIELDS =
{
  AIRAVATAAUTOSCHEDULE => {:type => ::Thrift::Types::BOOL, :name => 'airavataAutoSchedule', :default => false},
  OVERRIDEMANUALSCHEDULEDPARAMS => {:type => ::Thrift::Types::BOOL, :name => 'overrideManualScheduledParams', :default => false},
  SHAREEXPERIMENTPUBLICLY => {:type => ::Thrift::Types::BOOL, :name => 'shareExperimentPublicly', :default => false, :optional => true},
  COMPUTATIONALRESOURCESCHEDULING => {:type => ::Thrift::Types::STRUCT, :name => 'computationalResourceScheduling', :class => ::ComputationalResourceSchedulingModel, :optional => true},
  THROTTLERESOURCES => {:type => ::Thrift::Types::BOOL, :name => 'throttleResources', :default => false, :optional => true},
  USERDN => {:type => ::Thrift::Types::STRING, :name => 'userDN', :optional => true},
  GENERATECERT => {:type => ::Thrift::Types::BOOL, :name => 'generateCert', :default => false, :optional => true},
  STORAGEID => {:type => ::Thrift::Types::STRING, :name => 'storageId', :optional => true},
  EXPERIMENTDATADIR => {:type => ::Thrift::Types::STRING, :name => 'experimentDataDir', :optional => true},
  USEUSERCRPREF => {:type => ::Thrift::Types::BOOL, :name => 'useUserCRPref', :optional => true},
  GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



75
# File 'lib/experiment_model_types.rb', line 75

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


77
78
79
80
# File 'lib/experiment_model_types.rb', line 77

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field airavataAutoSchedule is unset!') if @airavataAutoSchedule.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field overrideManualScheduledParams is unset!') if @overrideManualScheduledParams.nil?
end