Class: OutputDataObjectType

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

Overview

Application Outputs. The paramters describe how outputs generated by the application.

name:

Name of the parameter.

value:

Value of the parameter.

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.

Constant Summary collapse

NAME =
1
VALUE =
2
TYPE =
3
APPLICATIONARGUMENT =
4
ISREQUIRED =
5
REQUIREDTOADDEDTOCOMMANDLINE =
6
DATAMOVEMENT =
7
LOCATION =
8
SEARCHQUERY =
9
OUTPUTSTREAMING =
10
STORAGERESOURCEID =
11
METADATA =
12
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},
  ISREQUIRED => {:type => ::Thrift::Types::BOOL, :name => 'isRequired', :optional => true},
  REQUIREDTOADDEDTOCOMMANDLINE => {:type => ::Thrift::Types::BOOL, :name => 'requiredToAddedToCommandLine', :optional => true},
  DATAMOVEMENT => {:type => ::Thrift::Types::BOOL, :name => 'dataMovement', :optional => true},
  LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location', :optional => true},
  SEARCHQUERY => {:type => ::Thrift::Types::STRING, :name => 'searchQuery', :optional => true},
  OUTPUTSTREAMING => {:type => ::Thrift::Types::BOOL, :name => 'outputStreaming', :optional => true},
  STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true},
  METADATA => {:type => ::Thrift::Types::STRING, :name => 'metaData', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


151
152
153
154
155
156
# File 'lib/application_io_models_types.rb', line 151

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