lib/barbeque_client/client.rb in barbeque_client-0.8.1 vs lib/barbeque_client/client.rb in barbeque_client-0.8.2
- old
+ new
@@ -34,12 +34,17 @@
)
result.response
end
# @param [String] message_id - Job execution's message_id to check status
+ # @param optioanl [String] fields - Response fields specification for Garage
# @return [Faraday::Response]
- def execution(message_id:)
- result = garage_client.get("/v1/job_executions/#{message_id}")
+ def execution(message_id:, fields: nil)
+ params = {}
+ if fields
+ params[:fields] = fields
+ end
+ result = garage_client.get("/v1/job_executions/#{message_id}", params)
result.response
end
private