Class: JobSubmissionInterface
- Inherits:
-
Object
- Object
- JobSubmissionInterface
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/compute_resource_model_types.rb
Overview
Job Submission Interfaces
jobSubmissionInterfaceId: The Job Submission Interface has to be previously registered and referenced here.
priorityOrder:
For resources with multiple interfaces, the priority order should be selected.
Lower the numerical number, higher the priority
Constant Summary collapse
- JOBSUBMISSIONINTERFACEID =
1
- JOBSUBMISSIONPROTOCOL =
2
- PRIORITYORDER =
3
- FIELDS =
{ JOBSUBMISSIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'jobSubmissionInterfaceId'}, JOBSUBMISSIONPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'jobSubmissionProtocol', :enum_class => ::JobSubmissionProtocol}, PRIORITYORDER => {:type => ::Thrift::Types::I32, :name => 'priorityOrder', :default => 0} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
378 |
# File 'lib/compute_resource_model_types.rb', line 378 def struct_fields; FIELDS; end |
#validate ⇒ Object
380 381 382 383 384 385 386 387 |
# File 'lib/compute_resource_model_types.rb', line 380 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 jobSubmissionProtocol is unset!') unless @jobSubmissionProtocol raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field priorityOrder is unset!') unless @priorityOrder unless @jobSubmissionProtocol.nil? || ::JobSubmissionProtocol::VALID_VALUES.include?(@jobSubmissionProtocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field jobSubmissionProtocol!') end end |