Class: Jp::JobPool::Purge_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/rb/jp/gen-rb/job_pool.rb

Constant Summary collapse

POOL_NAME =
1
ID =
2
FIELDS =
{
  POOL_NAME => {:type => ::Thrift::Types::STRING, :name => 'pool_name'},
  ID => {:type => ::Thrift::Types::STRING, :name => 'id', :binary => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



190
# File 'lib/rb/jp/gen-rb/job_pool.rb', line 190

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


192
193
194
195
# File 'lib/rb/jp/gen-rb/job_pool.rb', line 192

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pool_name is unset!') unless @pool_name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
end