Class: SetEnvPaths

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

Overview

Key Value pairs to be used to set environments

name:

Name of the environment variable such as PATH, LD_LIBRARY_PATH, NETCDF_HOME.

value:

Value of the environment variable to set

envPathOrder:

The order of the setting of the env variables when there are multiple env variables

Constant Summary collapse

NAME =
1
VALUE =
2
ENVPATHORDER =
3
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
  ENVPATHORDER => {:type => ::Thrift::Types::I32, :name => 'envPathOrder', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



34
# File 'lib/application_deployment_model_types.rb', line 34

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


36
37
38
39
# File 'lib/application_deployment_model_types.rb', line 36

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value
end