Class: Airavata::AddLocalDataMovementDetails_args

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

Constant Summary collapse

AUTHZTOKEN =
1
PRODUCTURI =
2
DATAMOVETYPE =
3
PRIORITYORDER =
4
LOCALDATAMOVEMENT =
5
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  PRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'productUri'},
  DATAMOVETYPE => {:type => ::Thrift::Types::I32, :name => 'dataMoveType', :enum_class => ::DMType},
  PRIORITYORDER => {:type => ::Thrift::Types::I32, :name => 'priorityOrder'},
  LOCALDATAMOVEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'localDataMovement', :class => ::LOCALDataMovement}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
# File 'lib/airavata.rb', line 11265

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 productUri is unset!') unless @productUri
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dataMoveType is unset!') unless @dataMoveType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field priorityOrder is unset!') unless @priorityOrder
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field localDataMovement is unset!') unless @localDataMovement
  unless @dataMoveType.nil? || ::DMType::VALID_VALUES.include?(@dataMoveType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataMoveType!')
  end
end