-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Looking up the AWS API for rest Post ResoreObject https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html
I noticed that there are two responses possable 200 and 202
If the object copy is not previously restored, then Amazon S3 returns 202 Accepted in the response.
If the object copy is previously restored, Amazon S3 returns 200 OK in the response.
I was compiling a test for the above an notices that 'status' was missing from the 'Paws::S3::RestoreObjectOutput' class. Would it be propper to add it in??
I have been playing with this and the only pratical was to add it in is to treat it the same as '_request_id'
giving that I added this line in the apprprate templates
has _request_id => (is => 'ro', isa => 'Str');
++has _status => (is => 'ro', isa => 'Str');
and then in a few places in the approtate net response calls
$unserialized_struct->{ _request_id } = $request_id;
- $unserialized_struct->{ _status } = $http_status;
Does hit I think amost every generated class
Anyone else need this or I am just adding something not needed