Class: SCPDataMovement
- Inherits:
-
Object
- Object
- SCPDataMovement
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/data_movement_models_types.rb
Overview
Data Movement through Secured Copy
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
- ALTERNATIVESCPHOSTNAME =
3
- SSHPORT =
4
- 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}, ALTERNATIVESCPHOSTNAME => {:type => ::Thrift::Types::STRING, :name => 'alternativeSCPHostName', :optional => true}, SSHPORT => {:type => ::Thrift::Types::I32, :name => 'sshPort', :default => 22, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
60 |
# File 'lib/data_movement_models_types.rb', line 60 def struct_fields; FIELDS; end |
#validate ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/data_movement_models_types.rb', line 62 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 unless @securityProtocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@securityProtocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field securityProtocol!') end end |