Class: MonitorTaskModel

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

Constant Summary collapse

MONITORMODE =
1
FIELDS =
{
  MONITORMODE => {:type => ::Thrift::Types::I32, :name => 'monitorMode', :enum_class => ::MonitorMode}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



186
# File 'lib/task_model_types.rb', line 186

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


188
189
190
191
192
193
# File 'lib/task_model_types.rb', line 188

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