Class: SSHJobSubmission
- Inherits:
-
Object
- Object
- SSHJobSubmission
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/compute_resource_model_types.rb
Overview
Authenticate using Secured Shell
alternativeSSHHostName:
If the login to ssh is different than the hostname itself, specify it here
sshPort:
If a non-default port needs to used, specify it.
batchQueueEmailSenders:
If a resource always sends the monitoring from a specific address, specify the
full email address. If a resource sends emails from multiple addresses (
example: based on the submitted login node) then use the wildchar * to indicate
the same. Example: *@*.example.com or *@example.com
Constant Summary collapse
- JOBSUBMISSIONINTERFACEID =
1
- SECURITYPROTOCOL =
2
- RESOURCEJOBMANAGER =
3
- ALTERNATIVESSHHOSTNAME =
4
- SSHPORT =
5
- MONITORMODE =
6
- BATCHQUEUEEMAILSENDERS =
7
- FIELDS =
{ JOBSUBMISSIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'jobSubmissionInterfaceId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, SECURITYPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'securityProtocol', :enum_class => ::SecurityProtocol}, RESOURCEJOBMANAGER => {:type => ::Thrift::Types::STRUCT, :name => 'resourceJobManager', :class => ::ResourceJobManager}, ALTERNATIVESSHHOSTNAME => {:type => ::Thrift::Types::STRING, :name => 'alternativeSSHHostName', :optional => true}, SSHPORT => {:type => ::Thrift::Types::I32, :name => 'sshPort', :default => 22, :optional => true}, MONITORMODE => {:type => ::Thrift::Types::I32, :name => 'monitorMode', :optional => true, :enum_class => ::MonitorMode}, BATCHQUEUEEMAILSENDERS => {:type => ::Thrift::Types::LIST, :name => 'batchQueueEmailSenders', :element => {:type => ::Thrift::Types::STRING}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
243 |
# File 'lib/compute_resource_model_types.rb', line 243 def struct_fields; FIELDS; end |
#validate ⇒ Object
245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/compute_resource_model_types.rb', line 245 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobSubmissionInterfaceId is unset!') unless @jobSubmissionInterfaceId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field securityProtocol is unset!') unless @securityProtocol raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourceJobManager is unset!') unless @resourceJobManager unless @securityProtocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@securityProtocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field securityProtocol!') end unless @monitorMode.nil? || ::MonitorMode::VALID_VALUES.include?(@monitorMode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field monitorMode!') end end |