Class: InputDataObjectType

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

Overview

Application Inputs. The paramters describe how inputs are passed to the application.

name:

Name of the parameter.

value:

Value of the parameter. A default value could be set during registration.

type:

Data type of the parameter

applicationArguement:

The argument flag sent to the application. Such as -p pressure.

standardInput:

When this value is set, the parameter is sent as standard input rather than a parameter.
Typically this is passed using redirection operator ">".

userFriendlyDescription:

Description to be displayed at the user interface.

metaData:

Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.

overrideFilename:

Rename input file to given value when staging to compute resource.

Constant Summary collapse

NAME =
1
VALUE =
2
TYPE =
3
APPLICATIONARGUMENT =
4
STANDARDINPUT =
5
USERFRIENDLYDESCRIPTION =
6
METADATA =
7
INPUTORDER =
8
ISREQUIRED =
9
REQUIREDTOADDEDTOCOMMANDLINE =
10
DATASTAGED =
11
STORAGERESOURCEID =
12
ISREADONLY =
13
OVERRIDEFILENAME =
14
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :optional => true},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :optional => true, :enum_class => ::DataType},
  APPLICATIONARGUMENT => {:type => ::Thrift::Types::STRING, :name => 'applicationArgument', :optional => true},
  STANDARDINPUT => {:type => ::Thrift::Types::BOOL, :name => 'standardInput', :optional => true},
  USERFRIENDLYDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'userFriendlyDescription', :optional => true},
  METADATA => {:type => ::Thrift::Types::STRING, :name => 'metaData', :optional => true},
  INPUTORDER => {:type => ::Thrift::Types::I32, :name => 'inputOrder', :optional => true},
  ISREQUIRED => {:type => ::Thrift::Types::BOOL, :name => 'isRequired', :optional => true},
  REQUIREDTOADDEDTOCOMMANDLINE => {:type => ::Thrift::Types::BOOL, :name => 'requiredToAddedToCommandLine', :optional => true},
  DATASTAGED => {:type => ::Thrift::Types::BOOL, :name => 'dataStaged', :optional => true},
  STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true},
  ISREADONLY => {:type => ::Thrift::Types::BOOL, :name => 'isReadOnly', :optional => true},
  OVERRIDEFILENAME => {:type => ::Thrift::Types::STRING, :name => 'overrideFilename', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



83
# File 'lib/application_io_models_types.rb', line 83

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


85
86
87
88
89
90
# File 'lib/application_io_models_types.rb', line 85

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  unless @type.nil? || ::DataType::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end