Class: JobStatusChangeRequestEvent
- Inherits:
-
Object
- Object
- JobStatusChangeRequestEvent
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/messaging_events_types.rb
Constant Summary collapse
- STATE =
1
- JOBIDENTITY =
2
- FIELDS =
{ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::JobState}, JOBIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'jobIdentity', :class => ::JobIdentifier} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
354 |
# File 'lib/messaging_events_types.rb', line 354 def struct_fields; FIELDS; end |
#validate ⇒ Object
356 357 358 359 360 361 362 |
# File 'lib/messaging_events_types.rb', line 356 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobIdentity is unset!') unless @jobIdentity unless @state.nil? || ::JobState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |