Class: GridFTPDataMovement

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

Overview

Data Movement through GridFTP

alternativeSCPHostName:

If the login to scp is different than the hostname itself, specify it here

sshPort:

If a non-default port needs to used, specify it.

Constant Summary collapse

DATAMOVEMENTINTERFACEID =
1
SECURITYPROTOCOL =
2
GRIDFTPENDPOINTS =
3
FIELDS =
{
  DATAMOVEMENTINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'dataMovementInterfaceId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  SECURITYPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'securityProtocol', :enum_class => ::SecurityProtocol},
  GRIDFTPENDPOINTS => {:type => ::Thrift::Types::LIST, :name => 'gridFTPEndPoints', :element => {:type => ::Thrift::Types::STRING}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



92
# File 'lib/data_movement_models_types.rb', line 92

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


94
95
96
97
98
99
100
101
# File 'lib/data_movement_models_types.rb', line 94

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